/* ==========================================================================
   NEXVO — Design tokens
   ========================================================================== */
:root {
    /* Color */
    --ink: #14171F;
    --ink-secondary: #5B6472;
    --ink-muted: #8B93A1;
    --bg: #FFFFFF;
    --bg-subtle: #F6F5F2;
    --border: #E3E1DB;
    --border-strong: #C9C6BC;
    --accent: #0F6F5C;
    --accent-strong: #0B4F41;
    --accent-soft: #E6EFEC;
    --white: #FFFFFF;

    /* Type */
    --font-display: 'Instrument Sans', -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

    /* Layout */
    --container: 1120px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 96px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.25; }
h3 { font-size: 1.1rem; line-height: 1.4; margin-bottom: var(--space-1); }

p { color: var(--ink-secondary); }

a { color: inherit; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--ink);
    color: var(--white);
    padding: 12px 20px;
    z-index: 200;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

/* ==========================================================================
   Eyebrow / labels
   ========================================================================== */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-strong);
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s var(--ease), transform 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn-primary {
    background: var(--accent-strong);
    color: var(--white);
    padding: 12px 22px;
}
.btn-primary:hover { background: #093C31; }
.btn-primary:active { transform: translateY(1px); }

.btn-nav { padding: 10px 18px; font-size: 0.9rem; }

.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding: var(--space-7) 0 var(--space-6);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.hero-sub {
    font-size: 1.1rem;
    max-width: 46ch;
    margin-bottom: var(--space-4);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.hero-note {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Chat mockup */
.chat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 380px;
    margin-left: auto;
}

.chat-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.chat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.chat-header-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-secondary);
}

.chat-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bubble {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.45;
}

.bubble-in {
    background: var(--bg-subtle);
    color: var(--ink);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.bubble-out {
    background: var(--accent-soft);
    color: var(--accent-strong);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

.visual-caption {
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-align: right;
    max-width: 380px;
    margin-left: auto;
    margin-top: var(--space-2);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: var(--space-6) 0;
}

.section-subtle {
    background: var(--bg-subtle);
}

.section-head {
    max-width: 620px;
    margin-bottom: var(--space-5);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.plain-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
}

.section-subtle .plain-card {
    background: var(--white);
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.step-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-bottom: var(--space-2);
}

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-5);
}

.pricing-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    margin-bottom: var(--space-1);
}

.pricing-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--space-3);
}

.pricing-amount span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 2px;
}

.pricing-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-list li {
    font-size: 0.92rem;
    color: var(--ink-secondary);
    padding-left: 20px;
    position: relative;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.pricing-divider {
    width: 1px;
    background: var(--border);
}

.guarantee {
    max-width: 620px;
    margin: var(--space-4) auto 0;
    text-align: center;
    font-size: 0.95rem;
    color: var(--ink-secondary);
}

.guarantee strong {
    color: var(--ink);
}

.pricing-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-5);
}

/* ==========================================================================
   Team
   ========================================================================== */
.team-block {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.team-avatars {
    display: flex;
    flex-shrink: 0;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-offset {
    margin-left: -14px;
}

.avatar-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink-muted);
    position: relative;
    display: block;
}

.avatar-icon::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 18px;
    border-radius: 18px 18px 0 0;
    background: var(--ink-muted);
}

.team-copy {
    max-width: 56ch;
    font-size: 1.02rem;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list {
    max-width: 720px;
    display: flex;
    flex-direction: column;
}

.faq-item {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child { padding-top: 0; }

.faq-item h3 { font-size: 1.05rem; }

.faq-item p { font-size: 0.95rem; }

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
    background: var(--ink);
    padding: var(--space-7) 0;
}

.cta-final-inner {
    max-width: 620px;
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    margin-bottom: var(--space-2);
}

.cta-final p {
    color: #A9AFBB;
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--ink);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-5) 0;
}

.footer-inner { text-align: center; }

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.footer-desc, .footer-contact, .footer-legal {
    font-size: 0.85rem;
    color: #8890A0;
    margin-bottom: 6px;
}

.footer-contact a {
    color: #A9AFBB;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .hero-visual { order: -1; }
    .chat-card, .visual-caption { margin-left: 0; }

    .grid-3, .steps {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        grid-template-columns: 1fr;
    }
    .pricing-divider {
        width: 100%;
        height: 1px;
    }

    .team-block {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
}

@media (max-width: 560px) {
    .nav-inner { padding-top: 12px; padding-bottom: 12px; }
    .hero { padding: var(--space-6) 0 var(--space-5); }
    .section { padding: var(--space-5) 0; }
    .hero-actions { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}
