/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* Blues */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-300: #93c5fd;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;
    --blue-950: #0f172a;

    /* Cyans */
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;

    /* Surfaces */
    --surface-primary: #0a0f1e;
    --surface-card: rgba(15, 23, 42, 0.7);
    --surface-card-hover: rgba(30, 41, 59, 0.8);
    --surface-elevated: rgba(30, 58, 138, 0.15);

    /* Text */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-accent: #60a5fa;

    /* Borders */
    --border-subtle: rgba(59, 130, 246, 0.15);
    --border-accent: rgba(59, 130, 246, 0.3);
    --border-glow: rgba(96, 165, 250, 0.5);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #1e3a8a 0%, #0f172a 50%, #0c1929 100%);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-card: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.04));
    --gradient-text: linear-gradient(135deg, #60a5fa, #22d3ee, #60a5fa);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--border-subtle);
    --shadow-card-hover: 0 8px 40px rgba(59, 130, 246, 0.15), 0 0 0 1px var(--border-accent);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.2);

    /* Spacing */
    --container-max: 900px;
    --section-gap: 2rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--cyan-400);
    text-decoration: underline;
}

/* ============================================
   ANIMATED BACKGROUND ORBS
   ============================================ */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--blue-600), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-500), transparent);
    top: 40%;
    right: -15%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--blue-700), transparent);
    bottom: -5%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 22s;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--blue-500), transparent);
    top: 60%;
    left: 50%;
    animation-delay: -15s;
    animation-duration: 30s;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    z-index: 1;
    padding: 6rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
    opacity: 0.8;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-300);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: var(--gradient-accent);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
    text-decoration: none;
    color: white;
}

.hero-cta svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.stat-card {
    padding: 1.5rem 2rem;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(16px);
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-accent);
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
    letter-spacing: 0.02em;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CATEGORY NAVIGATION
   ============================================ */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.category-pills {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.25rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.pill {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    font-family: inherit;
}

.pill:hover {
    color: var(--text-primary);
    border-color: var(--border-accent);
    background: var(--surface-elevated);
}

.pill.active {
    color: white;
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

/* ============================================
   FAQ CARDS
   ============================================ */
.faq-section {
    position: relative;
    z-index: 1;
    padding: 3rem 0 6rem;
}

.faq-card {
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    animation: cardAppear 0.6s ease-out forwards;
}

.faq-card:nth-child(1) { animation-delay: 0.05s; }
.faq-card:nth-child(2) { animation-delay: 0.1s; }
.faq-card:nth-child(3) { animation-delay: 0.15s; }
.faq-card:nth-child(4) { animation-delay: 0.2s; }
.faq-card:nth-child(5) { animation-delay: 0.25s; }
.faq-card:nth-child(6) { animation-delay: 0.3s; }
.faq-card:nth-child(7) { animation-delay: 0.35s; }
.faq-card:nth-child(8) { animation-delay: 0.4s; }
.faq-card:nth-child(9) { animation-delay: 0.45s; }
.faq-card:nth-child(10) { animation-delay: 0.5s; }
.faq-card:nth-child(n+11) { animation-delay: 0.55s; }

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
}

.faq-card.open {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
    background: var(--surface-card-hover);
}

.faq-card.hidden {
    display: none;
}

/* FAQ Header / Button */
.faq-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background var(--transition-fast);
}

.faq-header:hover {
    background: rgba(59, 130, 246, 0.05);
}

.faq-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-smooth);
}

.faq-card.open .faq-icon-wrap {
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--blue-400);
    transition: color var(--transition-fast);
}

.faq-card.open .faq-icon {
    color: white;
}

.faq-question {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.faq-category-tag {
    flex-shrink: 0;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--blue-300);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: none;
}

@media (min-width: 768px) {
    .faq-category-tag {
        display: inline-block;
    }
}

/* Toggle Icon (Plus/Cross) */
.faq-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle span {
    position: absolute;
    width: 14px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition-smooth);
}

.faq-toggle span:last-child {
    transform: rotate(90deg);
}

.faq-card.open .faq-toggle span:first-child {
    transform: rotate(180deg);
    opacity: 0;
}

.faq-card.open .faq-toggle span:last-child {
    transform: rotate(0deg);
    background: var(--blue-400);
}

/* FAQ Body / Answer */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-card.open .faq-body {
    max-height: 2000px;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    padding-left: calc(1.5rem + 40px + 1rem); /* align with question text */
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: 600;
}

.faq-answer em {
    color: var(--blue-300);
    font-style: italic;
}

.faq-answer ul {
    margin: 0.75rem 0 1rem 1.5rem;
    list-style: none;
}

.faq-answer ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    background: var(--gradient-accent);
    border-radius: 50%;
}

/* Alert Box inside answers */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--blue-500);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.alert-box svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--blue-400);
    margin-top: 2px;
}

.alert-box p {
    margin: 0;
    font-size: 0.9rem;
}

/* Info Box */
.info-box {
    padding: 1.25rem 1.5rem;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--radius-sm);
    margin: 1rem 0;
}

.info-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cyan-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.info-box p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.info-box p:last-child {
    margin-bottom: 0;
}

/* Highlight Box (Rent Increase Stats) */
.highlight-box {
    display: flex;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.highlight-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-smooth);
}

.highlight-item:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.highlight-year {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.highlight-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0.25rem 0;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 15, 30, 0.9);
    backdrop-filter: blur(20px);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--blue-300);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 1.25rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 300px;
    }

    .stat-card {
        padding: 1rem 1.5rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .category-pills {
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding: 0.25rem 1rem;
    }

    .faq-header {
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
        padding-left: 1.25rem;
        font-size: 0.9rem;
    }

    .faq-icon-wrap {
        width: 34px;
        height: 34px;
    }

    .faq-icon {
        width: 16px;
        height: 16px;
    }

    .highlight-box {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .pill {
        padding: 0.4rem 0.9rem;
        font-size: 0.78rem;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.faq-card.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.faq-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection colors */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-800);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-700);
}
