/* CSS Variables & Reset */
:root {
    --bg-color: #ffffff;
    --text-primary: #111111;
    --text-secondary: #5f6368;
    --surface-color: #f8f9fa;
    --surface-hover: #f1f3f4;
    --btn-primary-bg: #1f1f1f;
    --btn-primary-text: #ffffff;
    --btn-secondary-bg: #f8f9fa;
    --btn-secondary-text: #1f1f1f;
    --border-radius-sm: 12px;
    --border-radius-md: 24px;
    --border-radius-lg: 32px;
    --font-family: 'Inter', 'Noto Sans SC', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* iOS Safari needs this on html, not just body */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: clip; /* clip instead of hidden — does not create a new scroll container, preserving position:sticky */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    max-width: 100vw; /* prevent any child from forcing body wider */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    color: var(--text-primary);
}

/* Reusable Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5vw;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    gap: 10px;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: #000000;
    transform: scale(1.02);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background-color: #eef0f2;
    transform: scale(1.02);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo i {
    color: #4285f4;
    font-size: 1.2rem;
}

.nav-logo-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(0.6);
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-links a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switch {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.lang-switch:hover,
.lang-switch.open {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.lang-chevron {
    transition: transform 0.2s ease;
}

.lang-switch.open .lang-chevron {
    transform: rotate(180deg);
}

/* Language dropdown panel */
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 148px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    animation: langDropIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lang-switch.open .lang-dropdown {
    display: block;
}

@keyframes langDropIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    text-decoration: none;
}

.lang-option:hover {
    background: var(--surface-hover);
    color: var(--text-primary);
}

.lang-option.active {
    color: var(--text-primary);
    font-weight: 500;
    background: var(--surface-color);
}

.nav-download-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

.hero-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 24px;
    animation: fadeUp 1s ease-out;
}

.hero-brand-badge .nav-logo-img {
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

.hero-brand-badge span {
    color: var(--text-secondary);
    font-weight: 300;
}

.hero h1 {
    font-size: clamp(3rem, 6.5vw, 5.5rem);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-bottom: 32px;
    max-width: 1000px;
    color: var(--text-primary);
    animation: fadeUp 1s ease-out 0.1s both;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    animation: fadeUp 1s ease-out 0.2s both;
    flex-wrap: wrap;
}

.hero-platforms-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
    animation: fadeUp 1s ease-out 0.3s both;
    flex-wrap: wrap;
}

.platform-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.platform-chip:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.platform-chip i {
    font-size: 1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.platform-chip:hover i {
    color: #4285f4;
    opacity: 1;
}

/* Circular Icons Row */
.icon-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 100px;
    flex-wrap: wrap;
    padding: 0 20px;
    animation: fadeUp 1s ease-out 0.4s both;
    max-width: 1000px;
}

.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.icon-circle:hover {
    background: var(--surface-color);
    border-color: rgba(0,0,0,0.12);
}

/* Feature Showcase (Split Layout) */
.showcase-section {
    padding: 140px 0;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item h3 {
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 28px;
    max-width: 400px;
}

.feature-icon-small {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.5;
}

/* Clean Code/App UI Mockup */
.ui-mockup-wrapper {
    background: var(--surface-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    height: 540px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.ui-mockup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.ui-tabs {
    display: flex;
    gap: 16px;
}

.ui-tab {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.ui-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.ui-content-box {
    flex-grow: 1;
    background: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-line {
    height: 1px;
    background: rgba(0,0,0,0.06);
    width: 100%;
}

.ui-rule-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ui-rule-badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: #e8f0fe;
    color: #1967d2;
    font-family: monospace;
}

.ui-rule-badge.proxy {
    background: #fce8e6;
    color: #c5221f;
}

.ui-rule-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Platforms Download Section */
.platforms-section {
    padding: 140px 0;
    background-color: #fafafa;
}

.platforms-header {
    text-align: left;
    margin-bottom: 80px;
}

.platforms-header .section-subtitle {
    max-width: 560px;
    margin-bottom: 28px;
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.platform-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
}

.platform-tag {
    font-size: 0.75rem;
    color: #4285f4;
    margin-bottom: 16px;
    font-weight: 500;
}

.platform-card.recommended .platform-tag {
    color: #10b981;
}

.platform-title {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.platform-price {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.platform-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.6;
    flex-grow: 1;
}

.platform-btn {
    width: 100%;
}

.platform-card.recommended {
    background: #f8f9fa;
}

/* Trust/GitHub Section */
.trust-section {
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
    background: #ffffff;
}

.trust-content {
    max-width: 600px;
    margin: 0 auto;
}

.trust-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.trust-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.trust-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}

.stat-item h4 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-brand i {
    color: #4285f4;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */

/* Nav collapses to hamburger below 900px */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .lang-switch {
        padding: 8px 10px;
    }
    .lang-switch-text,
    .lang-chevron {
        display: none;
    }
    .lang-dropdown {
        right: 0;
    }

    /* Mobile dropdown panel */
    nav.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        /* Use absolute so backdrop-filter on nav doesn't trap a fixed child */
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        transform: none;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 8px 0 20px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        z-index: 999;
        animation: menuSlideDown 0.2s ease both;
    }

    nav.nav-open .nav-links li a {
        display: block;
        padding: 14px 5vw;
        font-size: 1rem;
        color: var(--text-primary);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    nav.nav-open .nav-links li a::after {
        display: none;
    }

    nav.nav-open .nav-links li a.active {
        font-weight: 500;
        background: var(--surface-color);
    }

    nav.nav-open .nav-links li:last-child a {
        border-bottom: none;
    }
}

@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .platforms-grid .platform-card {
        grid-column: span 1 !important;
    }
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero-brand-badge {
        flex-wrap: wrap;
        justify-content: center;
        font-size: 1rem;
    }
    .hero-brand-badge span {
        width: 100%;
        text-align: center;
        font-size: 0.82rem;
        line-height: 1.5;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 340px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .platforms-grid .platform-card {
        grid-column: span 1 !important;
    }
    .trust-stats {
        flex-direction: column;
        gap: 24px;
    }
    .footer-grid {
        flex-direction: column;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* ========================================
   Scroll-triggered fade animation
   ======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   Eyebrow label (shared across new sections)
   ======================================== */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4285f4;
    margin-bottom: 16px;
    display: block;
}

/* ========================================
   Bento Feature Grid Section
   ======================================== */
.bento-section {
    padding: 140px 0;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.bento-header {
    margin-bottom: 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.bento-cell {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bento-cell:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.bento-span-2 {
    grid-column: span 2;
}

.bento-dark {
    background: #111111;
    border-color: transparent;
}

.bento-dark:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.bento-dark .bento-cell-desc {
    color: rgba(255,255,255,0.5);
}

.bento-dark .bento-cell-label {
    color: rgba(255,255,255,0.35);
}

.bento-dark .bento-cell-title {
    color: #ffffff;
}

.bento-accent {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-color: rgba(66,133,244,0.12);
}

.bento-cell-label {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.bento-cell-title {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.25;
}

.bento-cell-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Protocol name chips */
.protocol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.ptag {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 400;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.14);
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}

.ptag:hover {
    background: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
}

/* TUN animated ring visual */
.bento-visual-tun {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.tun-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px solid rgba(66,133,244,0.22);
    position: absolute;
    animation: tun-pulse 3s ease-in-out infinite;
}

.tun-ring::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(66,133,244,0.3);
}

.tun-ring::after {
    content: '';
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    background: rgba(66,133,244,0.08);
    border: 1px solid rgba(66,133,244,0.2);
}

.tun-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #4285f4;
    position: relative;
    z-index: 1;
}

@keyframes tun-pulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* DNS shield decorative icon */
.dns-icon-wrap {
    margin-top: auto;
    width: 48px;
    height: 48px;
    background: rgba(66,133,244,0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #4285f4;
}

/* Subscription mock input */
.sub-input-mock {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 999px;
    padding: 7px 7px 7px 16px;
    gap: 8px;
    margin-top: auto;
}

.sub-input-mock span {
    font-size: 0.76rem;
    color: var(--text-secondary);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: monospace;
}

.sub-input-mock button {
    padding: 6px 16px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.76rem;
    cursor: default;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* Traffic bars mini chart */
.traffic-bars {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 56px;
    margin-top: auto;
}

.t-bar {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 3px 3px 0 0;
}

.t-bar.hi {
    background: #4285f4;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works-section {
    padding: 140px 0;
    background: #ffffff;
}

.hiw-header {
    margin-bottom: 80px;
}

.steps-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

/* Dashed connector line between steps */
.steps-track::before {
    content: '';
    position: absolute;
    top: 31px;
    left: calc(12.5% + 4px);
    right: calc(12.5% + 4px);
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        rgba(0,0,0,0.14) 0,
        rgba(0,0,0,0.14) 5px,
        transparent 5px,
        transparent 13px
    );
    pointer-events: none;
    z-index: 0;
}

.step-item {
    padding: 0 24px 0 0;
    position: relative;
}

.step-item:last-child {
    padding-right: 0;
}

.step-index {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid rgba(0,0,0,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-item:hover .step-index {
    background: #111111;
    color: #ffffff;
    border-color: transparent;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 140px 0;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.faq-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 100px;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 100px;
}

.faq-left-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 20px;
    line-height: 1.7;
}

.faq-left-note a {
    color: var(--text-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-list {
    border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.faq-question {
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.98rem;
    font-weight: 400;
    transition: color 0.2s;
    gap: 16px;
    user-select: none;
}

.faq-question:hover {
    color: var(--text-secondary);
}

.faq-toggle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer.open {
    max-height: 320px;
}

.faq-answer p {
    padding-bottom: 24px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ========================================
   Responsive — new sections
   ======================================== */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bento-span-2 {
        grid-column: span 2;
    }
    .steps-track {
        grid-template-columns: 1fr 1fr;
        gap: 48px 0;
    }
    .steps-track::before {
        display: none;
    }
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .faq-left {
        position: static;
    }
}

@media (max-width: 768px) {
    .bento-section,
    .how-it-works-section,
    .faq-section {
        padding: 80px 0;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-span-2 {
        grid-column: span 1;
    }
    .bento-cell {
        padding: 32px 28px;
    }
    .steps-track {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .step-item {
        display: grid;
        grid-template-columns: 62px 1fr;
        gap: 0 20px;
        align-items: start;
        padding: 0 0 32px;
    }
    .step-item:last-child {
        padding-bottom: 0;
    }
    .step-index {
        margin-bottom: 0;
        grid-row: 1;
    }
    .step-content {
        grid-row: 1;
        padding-top: 16px;
    }
    .faq-layout {
        gap: 32px;
    }
}
