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

:root {
    --primary: #1A1F2E;
    --primary-dark: #0F1219;
    --primary-light: #2A3042;
    --accent: #5A6A8A;
    --accent-light: #7889A8;
    --steel: #3A4256;
    --bg-light: #F0F1F4;
    --bg-white: #FFFFFF;
    --bg-dark: #13161F;
    --text-dark: #1A1F2E;
    --text-muted: #6B7280;
    --text-light: #FFFFFF;
    --border: #D1D5DB;
    --border-dark: #2A3042;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.10);
    --radius: 8px;
    --radius-sm: 6px;
    --transition: 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

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

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--primary);
    color: var(--text-light) !important;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem !important;
    transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
    background: var(--primary-light) !important;
    color: var(--text-light) !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.03em;
}

.lang-btn:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.lang-btn.active {
    background: var(--primary);
    color: var(--text-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--text-dark);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(58, 66, 86, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(58, 66, 86, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-lg {
    padding: 12px 28px;
    font-size: 0.9375rem;
}

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

.btn-primary:hover {
    background: var(--bg-light);
    border-color: var(--bg-light);
}

.btn-outline {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
}

.btn-outline:hover {
    color: var(--text-light);
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.05);
}

.btn-block {
    width: 100%;
}

/* Hero mockup */
.hero-visual {
    max-width: 480px;
    margin: 0 auto;
}

.hero-mockup {
    background: #1E2230;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    text-align: left;
}

.mockup-header {
    background: rgba(255,255,255,0.04);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
}

.mockup-dot.red { background: #FF5F57; }
.mockup-dot.yellow { background: #FFBD2E; }
.mockup-dot.green { background: #28CA42; }

.mockup-title {
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.mockup-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-line {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.mockup-line .text-muted {
    color: rgba(255,255,255,0.3);
}

.redacted {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.75rem;
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
}

.redacted.person { background: rgba(96, 165, 250, 0.15); color: #93B8F7; }
.redacted.org { background: rgba(251, 191, 36, 0.12); color: #D4A844; }
.redacted.email { background: rgba(52, 211, 153, 0.12); color: #5CC9A0; }
.redacted.ssn { background: rgba(248, 113, 113, 0.12); color: #E87878; }

/* ===== Section Shared ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    padding: 88px 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-white);
    padding: 32px;
    transition: background var(--transition);
}

.feature-card:hover {
    background: var(--bg-light);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    color: var(--steel);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.feature-title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Pricing ===== */
.pricing {
    padding: 88px 0;
    background: var(--bg-light);
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.toggle-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

.toggle-label.active {
    color: var(--text-dark);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--transition);
}

.toggle-switch.active {
    background: var(--steel);
}

.toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--bg-white);
    border-radius: 50%;
    transition: transform var(--transition);
    box-shadow: 0 1px 2px rgba(0,0,0,0.12);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(20px);
}

.save-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    letter-spacing: 0.02em;
}

.pricing-grid {
    display: grid;
    /* 4 tiers (starter / premium / pro / business). On wide screens
       they fit on one row; on narrower viewports the grid auto-wraps
       via the auto-fit + minmax fallback. */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
    }
}

.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--steel);
    box-shadow: var(--shadow-md);
}

.featured-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--text-light);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pricing-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8125rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.price-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-annual-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 6px;
    min-height: 1.4em;
}

.plan-features {
    list-style: none;
    flex: 1;
    margin-bottom: 28px;
}

.plan-features li {
    padding: 6px 0;
    font-size: 0.8125rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-icon {
    color: var(--steel);
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.pricing-card .btn-primary {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    font-size: 0.8125rem;
}

/* Muted "—" rows in the feature comparison list. */
.plan-features li.muted {
    opacity: 0.45;
}
.plan-features li.muted .check-icon {
    color: var(--text-muted);
}

/* Discount badge that appears next to the seat count when one of
   the multi-seat tiers (5+, 10+, 25+) kicks in. */
.seat-discount-badge {
    display: inline-block;
    background: var(--steel);
    color: var(--text-light);
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    letter-spacing: 0.02em;
}

/* Global (above-grid) seat slider — wider than the per-card one
   and centred under the billing toggle. */
.seat-slider-container.global-seats {
    max-width: 480px;
    margin: 0 auto 32px;
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* Secondary pricing note (the pooled-quota explainer line). */
.pricing-note.pricing-note-secondary {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-card .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.pricing-note a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
}

.pricing-note a:hover {
    border-color: var(--text-dark);
}

/* ===== Seat Slider ===== */
.seat-slider-container {
    padding: 12px 0 8px;
}

.seat-slider-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.seat-slider-label strong {
    color: var(--text-dark);
    font-size: 1rem;
    min-width: 24px;
    text-align: center;
}

.seat-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--steel) 0%, var(--steel) var(--progress, 6%), var(--border) var(--progress, 6%), var(--border) 100%);
    outline: none;
    cursor: pointer;
}

.seat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.seat-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.seat-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    cursor: pointer;
}

.seat-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding: 0 2px;
}

/* ===== Download ===== */
.download {
    padding: 88px 0;
    background: var(--bg-white);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 520px;
    margin: 0 auto 40px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-dark);
    transition: all var(--transition);
}

.download-card:hover {
    border-color: var(--steel);
    box-shadow: var(--shadow-md);
}

.download-icon {
    width: 40px;
    height: 40px;
    color: var(--steel);
}

.download-icon svg {
    width: 40px;
    height: 40px;
}

.download-platform {
    font-size: 0.9375rem;
    font-weight: 600;
}

.download-version {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.system-requirements {
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
}

.system-requirements h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.system-requirements ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.system-requirements li {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .lang-switcher {
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
    }

    .nav-cta {
        text-align: center;
    }

    .hero {
        padding: 112px 0 56px;
    }

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

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 260px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-visual {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .feature-card {
        padding: 24px;
    }

    .pricing-card {
        padding: 28px 20px;
    }
}
