/* =========================================================================
   SMS Localhost — 70/20/10 Design System
   70% White  ·  20% Blue  ·  10% Green (CTA)
   ========================================================================= */

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

:root {
    /* 70% — White / Neutral */
    --white: #fff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;

    /* 20% — Blue (headings, accents, secondary) */
    --blue-900: #0f172a;
    --blue-800: #1e293b;
    --blue-700: #334155;
    --blue-600: #475569;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;

    /* 10% — Green (CTA only) */
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;

    /* Legacy alias */
    --black: #0f172a;

    /* Semantic */
    --text-primary: var(--blue-900);
    --text-secondary: var(--gray-500);
    --text-muted: var(--gray-400);
    --border: var(--gray-200);
    --bg: var(--white);
    --bg-subtle: var(--gray-50);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    --max-w: 1200px;
    --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); }

img { max-width: 100%; display: block; }

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--blue-900); }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

.mono { font-family: var(--font-mono); }

/* --- Layout -------------------------------------------------------------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section {
    padding: 100px 0;
}

.section--dark {
    background: var(--blue-900);
    color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--white {
    background: var(--white);
    color: var(--text-primary);
}

.section--gray {
    background: var(--gray-50);
    color: var(--text-primary);
}

/* backwards compat alias */
.section--black { background: var(--blue-900); color: var(--white); }
.section--black h1, .section--black h2, .section--black h3 { color: var(--white); }

/* --- Navbar -------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.navbar--dark {
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.navbar--dark .navbar__brand { color: var(--white); }
.navbar--dark .navbar__links a { color: rgba(255,255,255,0.65); }
.navbar--dark .navbar__links a:hover { color: var(--white); }
.navbar--dark .nav-dropdown__trigger { color: rgba(255,255,255,0.65); }
.navbar--dark .nav-dropdown__trigger:hover { color: var(--white); }

.navbar__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.navbar__brand {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    color: var(--blue-900);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.navbar__links a {
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-block;
}

.navbar__links a:hover { color: var(--blue-900); }

/* Dock / magnifier effect */
.navbar__links--dock li {
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.navbar__links--dock li:hover {
    transform: scale(1.18);
}
.navbar__links--dock li:hover a {
    background: rgba(0,0,0,0.04);
}
.navbar--dark .navbar__links--dock li:hover a {
    background: rgba(255,255,255,0.08);
}
/* Neighbours scale up slightly too for a smooth dock wave */
.navbar__links--dock li:hover + li,
.navbar__links--dock li:has(+ li:hover) {
    transform: scale(1.06);
}

/* Hamburger button - hidden on desktop */
.navbar__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}
.navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-500);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}
.navbar--dark .navbar__hamburger span { background: rgba(255,255,255,0.8); }
.navbar__hamburger span:nth-child(1) { top: 0; }
.navbar__hamburger span:nth-child(2) { top: 9px; }
.navbar__hamburger span:nth-child(3) { top: 18px; }
.navbar__hamburger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* --- Nav Dropdown -------------------------------------------------------- */
/* Stretch the li to the full navbar height so top:100% = navbar bottom */
.nav-dropdown {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.nav-dropdown__trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 6px 10px;
    border-radius: 6px;
    font-family: inherit;
    height: 100%;
}

.nav-dropdown__trigger svg {
    transition: transform 0.2s;
}

.nav-dropdown__trigger:hover { color: var(--blue-900); }

.nav-dropdown.is-open .nav-dropdown__trigger {
    color: var(--blue-900);
}

.nav-dropdown.is-open .nav-dropdown__trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    list-style: none;
    min-width: 170px;
    padding: 6px 0;
    z-index: 200;
}

.nav-dropdown.is-open .nav-dropdown__menu { display: block; }

.nav-dropdown__menu li a {
    display: block;
    padding: 9px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown__menu li a:hover {
    color: var(--blue-900);
    background: var(--gray-50);
}

.nav-dropdown__divider {
    height: 1px;
    background: var(--gray-200);
    margin: 4px 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-sans);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: -0.01em;
}

/* CTA — green 10% (signup, pay, submit) */
.btn--cta {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
}

.btn--cta:hover {
    background: #15803d;
    border-color: #15803d;
}

/* Primary — blue 20% */
.btn--primary {
    background: var(--blue-900);
    color: var(--white);
    border-color: var(--blue-900);
}

.btn--primary:hover {
    background: var(--blue-800);
    border-color: var(--blue-800);
}

.btn--outline {
    background: transparent;
    color: var(--blue-900);
    border-color: var(--gray-300);
}

.btn--outline:hover {
    background: var(--blue-900);
    color: var(--white);
    border-color: var(--blue-900);
}

/* White variant (for dark backgrounds) */
.btn--white {
    background: var(--white);
    color: var(--blue-900);
    border-color: var(--white);
}

.btn--white:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

/* Ghost (dark bg outlines) */
.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.3);
}

.btn--ghost:hover {
    background: var(--white);
    color: var(--blue-900);
    border-color: var(--white);
}

.btn--sm {
    padding: 6px 16px;
    font-size: 0.78rem;
}

.btn--full { width: 100%; }

.btn--danger {
    background: transparent;
    color: #dc2626;
    border-color: #fecaca;
}

.btn--danger:hover {
    background: #dc2626;
    color: var(--white);
    border-color: #dc2626;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 56px;
    background: var(--blue-900);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero__content {
    max-width: 800px;
}

.hero__label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue-400);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--white);
}

.hero__sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: rgba(255,255,255,0.6);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* --- Features ------------------------------------------------------------ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
}

.feature {
    padding: 40px 0;
    border-top: 2px solid var(--blue-100);
}

.section--dark .feature,
.section--black .feature {
    border-top-color: rgba(255,255,255,0.1);
}

.feature__number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--blue-500);
    margin-bottom: 16px;
}

.feature h3 {
    margin-bottom: 12px;
}

.feature p {
    color: var(--gray-500);
    line-height: 1.7;
}

.section--dark .feature p,
.section--black .feature p {
    color: rgba(255,255,255,0.6);
}

/* --- Code block ---------------------------------------------------------- */
.code-block {
    background: var(--blue-900);
    color: var(--gray-300);
    padding: 20px 24px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.6;
    overflow-x: auto;
    border: 1px solid var(--blue-800);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.code-block .code-comment { opacity: 0.4; }
.code-block .code-key { color: var(--blue-400); font-weight: 600; }
.code-block .code-string { color: var(--green-400); }

/* --- Integration grid ---------------------------------------------------- */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}
.integration-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
    gap: 6px;
}
.integration-badge:hover {
    border-color: var(--blue-400);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}
.integration-badge__icon { font-size: 1.8rem; line-height: 1; }
.integration-badge span:nth-child(2) { font-size: 0.85rem; font-weight: 700; color: var(--blue-900); }
.integration-badge__eg { font-size: 0.72rem; color: var(--gray-400); }

/* --- Code tabs ----------------------------------------------------------- */
.code-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--blue-800);
    margin-bottom: 0;
    overflow-x: auto;
}
.code-tab {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--gray-400);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}
.code-tab:hover { color: var(--blue-400); }
.code-tab--active {
    color: var(--white);
    background: var(--blue-900);
    border-bottom-color: var(--blue-400);
    border-radius: 6px 6px 0 0;
}
.code-panel { display: none; border-radius: 0 0 var(--radius) var(--radius); }
.code-panel--active { display: block; }

/* --- Pricing ------------------------------------------------------------- */
.pricing-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.pricing-card__price {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 16px 0 8px;
    color: var(--blue-900);
}

.pricing-card__unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green-600);
    margin-bottom: 32px;
}

.pricing-card__features {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-card__features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.95rem;
    color: var(--gray-600);
}

.pricing-card__features li::before {
    content: "\2713";
    margin-right: 12px;
    font-weight: 700;
    color: var(--green-600);
}

/* --- How it works -------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    counter-reset: step;
}

.step {
    padding: 40px 32px;
    border-right: 1px solid rgba(255,255,255,0.1);
    counter-increment: step;
}

.step:last-child { border-right: none; }

.step::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    opacity: 0.15;
    display: block;
    margin-bottom: 16px;
    color: var(--white);
}

.step h3 { margin-bottom: 8px; color: var(--white); }
.step p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* --- CTA banner ---------------------------------------------------------- */
.cta {
    text-align: center;
}

.cta h2 { margin-bottom: 16px; color: var(--white); }
.cta p { color: rgba(255,255,255,0.6); margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* --- Footer -------------------------------------------------------------- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--gray-200);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.footer--dark {
    background: var(--blue-900);
    color: rgba(255,255,255,0.5);
    border-top-color: var(--blue-800);
}

/* =========================================================================
   Auth Pages (Login / Signup)
   ========================================================================= */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-900);
    color: var(--white);
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card__header {
    margin-bottom: 48px;
}

.auth-card__brand {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--white);
    display: block;
    margin-bottom: 32px;
}

.auth-card__header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.auth-card__header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--blue-400);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.auth-card__footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.auth-card__footer a {
    color: var(--green-400);
    font-weight: 600;
}

/* --- Social Auth Buttons ------------------------------------------------ */
.social-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
}

.social-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.social-btn--google { background: rgba(255,255,255,0.08); }
.social-btn--google:hover { background: rgba(255,255,255,0.16); }

.social-btn--facebook { background: #1877F2; border-color: #1877F2; }
.social-btn--facebook:hover { background: #1565d8; border-color: #1565d8; }

.social-btn--apple { background: #000; border-color: #333; }
.social-btn--apple:hover { background: #1a1a1a; border-color: #555; }

.social-btn--github { background: #24292e; border-color: #444; }
.social-btn--github:hover { background: #2f363d; border-color: #666; }

.social-btn--microsoft { background: rgba(255,255,255,0.08); }
.social-btn--microsoft:hover { background: rgba(255,255,255,0.16); }

.social-btn--linkedin { background: #0A66C2; border-color: #0A66C2; }
.social-btn--linkedin:hover { background: #004182; border-color: #004182; }

.auth-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.12);
}

.auth-divider span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

/* Dashboard form inputs (light context) */
.dash .form-input,
.panel .form-input {
    background: var(--white);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.dash .form-input::placeholder,
.panel .form-input::placeholder {
    color: var(--gray-400);
}

.dash .form-input:focus,
.panel .form-input:focus {
    border-color: var(--blue-500);
}

.dash .form-group label,
.panel .form-group label {
    color: var(--text-secondary);
}

/* --- Messages / Alerts --------------------------------------------------- */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.messages li {
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
}

.messages .success { border-color: var(--green-400); background: rgba(34,197,94,0.1); }
.messages .error { border-color: #f87171; background: rgba(248,113,113,0.1); }

/* in light context */
.messages--light li { border-color: var(--gray-200); background: var(--white); }
.messages--light .success { border-color: var(--green-600); background: var(--green-50); color: #166534; }
.messages--light .error { border-color: #f87171; background: #fef2f2; color: #991b1b; }

/* special style for the API key reveal message */
.messages .success-key {
    border-color: var(--blue-500);
    background: var(--blue-50);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    word-break: break-all;
    padding: 16px;
    color: var(--blue-900);
}

/* =========================================================================
   Dashboard
   ========================================================================= */
.dash {
    padding-top: 64px;
    min-height: 100vh;
    background: var(--gray-50);
}

.dash__header {
    background: var(--blue-900);
    color: var(--white);
    padding: 48px 0;
}

.dash__header h2 { color: var(--white); }

.dash__greeting {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-mono);
    margin-bottom: 8px;
}

.dash__balance-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 8px;
}

.dash__balance {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
}

.dash__balance-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.dash__body {
    padding: 48px 0;
}

/* --- Stats --------------------------------------------------------------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

.stat-card {
    background: var(--white);
    padding: 32px 24px;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blue-900);
}

.stat-card__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-top: 4px;
}

/* --- Panels / Cards ------------------------------------------------------ */
.panel {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-100);
}

.panel__title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--blue-900);
}

.panel__body {
    padding: 24px;
}

/* --- Tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    font-weight: 600;
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--text-primary);
}

.table tr:last-child td { border-bottom: none; }

/* --- Badges -------------------------------------------------------------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
    border-radius: 4px;
}

.badge--sent { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--failed { border-color: #f87171; background: #fef2f2; color: #dc2626; }
.badge--pending { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-500); }
.badge--approved { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--rejected { border-color: #f87171; background: #fef2f2; color: #dc2626; }
.badge--credit { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--debit { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-500); }
.badge--draft { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-500); }
.badge--scheduled { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-500); }
.badge--sending { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-500); }
.badge--paused { border-color: var(--gray-400); background: var(--gray-100); color: var(--gray-600); }
.badge--cancelled { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-400); }
.badge--completed { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--active { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--archived { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-400); }
.badge--idea { border-color: var(--gray-300); background: var(--gray-50); color: var(--gray-500); }
.badge--drafted { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-500); }
.badge--ready { border-color: var(--blue-500); background: var(--blue-100); color: var(--blue-500); }
.badge--launched { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--processing { border-color: var(--blue-400); background: var(--blue-50); color: var(--blue-500); }
.badge--paid { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }
.badge--bundle { border-color: var(--blue-500); background: var(--blue-50); color: var(--blue-500); }

/* --- Empty state --------------------------------------------------------- */
.empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* --- Sidebar nav (dashboard) --------------------------------------------- */
.dash-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.dash-nav a {
    padding: 8px 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--gray-500);
    transition: all 0.15s;
}

.dash-nav a:hover,
.dash-nav a.active {
    background: var(--blue-900);
    color: var(--white);
    border-color: var(--blue-900);
}

/* --- Billing page specific ----------------------------------------------- */
.billing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
}

/* --- Form inline --------------------------------------------------------- */
.form-row-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.form-row-inline .form-input {
    background: var(--white);
    border-color: var(--gray-300);
    color: var(--text-primary);
}

.form-row-inline .form-input:focus {
    border-color: var(--blue-500);
}

/* --- Hero split (text + phone) ------------------------------------------- */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 80px;
    align-items: center;
}

/* =========================================================================
   Phone Mockup
   ========================================================================= */
.phone {
    width: 320px;
    background: var(--blue-800);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 40px;
    padding: 12px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.phone__notch {
    width: 120px;
    height: 28px;
    background: var(--blue-900);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 0;
    position: relative;
    z-index: 2;
}

.phone__screen {
    background: var(--blue-800);
    border-radius: 28px;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    flex-direction: column;
}

.phone__header {
    background: rgba(255,255,255,0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.phone__header-back {
    font-size: 1.4rem;
    opacity: 0.5;
    font-weight: 300;
    color: var(--white);
}

.phone__header-avatar {
    width: 36px;
    height: 36px;
    background: var(--green-500);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.phone__header-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
}

.phone__header-status {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
}

.phone__messages {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.phone__date {
    text-align: center;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    padding: 8px 0;
}

.phone__bubble {
    max-width: 85%;
    padding: 10px 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    position: relative;
}

.phone__bubble--received {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    align-self: flex-start;
    border-radius: 2px 16px 16px 16px;
}

.phone__bubble--sent {
    background: var(--green-500);
    color: var(--white);
    align-self: flex-end;
    border-radius: 16px 2px 16px 16px;
}

.phone__bubble-text {
    margin-bottom: 4px;
}

.phone__bubble-time {
    font-size: 0.6rem;
    opacity: 0.5;
    text-align: right;
}

/* --- Channel cards ------------------------------------------------------- */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.channel-card {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 40px 32px;
}

.channel-card--dark {
    border-color: rgba(255,255,255,0.1);
}

.channel-card__icon {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue-500);
    border-radius: var(--radius);
    margin-bottom: 24px;
    color: var(--blue-500);
}

.channel-card h3 { margin-bottom: 12px; }

.channel-card p {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.channel-card__price {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-900);
}

.channel-card__price span {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--gray-400);
}

/* --- Trust grid ---------------------------------------------------------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

.trust-item {
    padding: 32px 24px;
    text-align: center;
    background: var(--white);
}

.trust-item__value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    color: var(--blue-900);
}

.trust-item__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

/* --- Pricing grid -------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

/* --- Bundle tiles (landing page compact grid) ---------------------------- */
.bundle-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}
.bundle-tile {
    position: relative;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s;
    cursor: default;
}
.bundle-tile:hover {
    border-color: var(--blue-900);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}
.bundle-tile--featured {
    border-color: var(--blue-900);
    background: var(--blue-900);
    color: var(--white);
}
.bundle-tile--featured .bundle-tile__credits { color: var(--white); }
.bundle-tile--featured .bundle-tile__label { color: rgba(255,255,255,0.5); }
.bundle-tile--featured .bundle-tile__price { color: rgba(255,255,255,0.85); }
.bundle-tile--featured:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.3); }
.bundle-tile__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-600);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}
.bundle-tile__name {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-500);
    margin-bottom: 8px;
}
.bundle-tile--featured .bundle-tile__name { color: rgba(255,255,255,0.5); }
.bundle-tile__credits {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--blue-900);
    line-height: 1;
}
.bundle-tile__label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    margin: 4px 0 12px;
}
.bundle-tile__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-600);
}

/* --- Channel badges ------------------------------------------------------ */
.badge--sms { border-color: var(--blue-500); color: var(--blue-500); background: var(--blue-50); }
.badge--whatsapp { border-color: var(--green-600); background: var(--green-50); color: var(--green-600); }

/* =========================================================================
   Floating Live Queue Widget
   ========================================================================= */
/* --- Use-case carousel --------------------------------------------------- */
.usecase-carousel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 64px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.usecase-carousel__phone-wrap {
    position: relative;
    width: 240px;
    height: 420px;
}
.usecase-phone {
    width: 240px;
    height: 420px;
    background: var(--blue-900);
    border-radius: 28px;
    border: 3px solid var(--blue-800);
    position: absolute;
    top: 0; left: 0;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    opacity: 0;
    pointer-events: none;
    transition: none;
}
.usecase-phone.usecase-slide--active {
    opacity: 1;
    pointer-events: auto;
}
.usecase-phone__notch {
    width: 70px;
    height: 6px;
    background: var(--blue-800);
    border-radius: 3px;
    margin: 12px auto 0;
}
.usecase-phone__screen {
    padding: 20px 14px;
    height: calc(100% - 30px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.usecase-bubble {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px 12px 12px 2px;
    padding: 10px 12px;
    font-size: 0.7rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    opacity: 0;
}
.usecase-bubble__sender {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--green-400);
    margin-bottom: 3px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Info side */
.usecase-carousel__info {
    position: relative;
    min-height: 220px;
}
.usecase-info {
    position: absolute;
    top: 0; left: 0; right: 0;
    opacity: 0;
    pointer-events: none;
    transition: none;
}
.usecase-info--active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}
.usecase-info__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}
.usecase-info__title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.usecase-info__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.55;
    max-width: 380px;
}

/* Dots */
.usecase-dots {
    display: flex;
    gap: 10px;
    margin-top: 32px;
}
.usecase-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}
.usecase-dot--active {
    background: var(--blue-500);
    border-color: var(--blue-500);
    transform: scale(1.2);
}

/* --- Delivery animation (replaces live queue) ---------------------------- */
.delivery-anim {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    pointer-events: none;
}
.delivery-anim__envelope {
    width: 48px;
    height: 48px;
    position: relative;
}
.delivery-anim__icon {
    width: 48px;
    height: 48px;
    background: var(--green-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(34,197,94,0.4);
    opacity: 0;
}
.delivery-anim__icon svg {
    width: 22px;
    height: 22px;
    fill: white;
}
.delivery-anim__trail {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--green-400);
    border-radius: 50%;
    opacity: 0;
}
.delivery-anim__label {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-500);
    white-space: nowrap;
    opacity: 0;
}

/* --- Navbar scrolled ----------------------------------------------------- */
.navbar--scrolled {
    background: rgba(15, 23, 42, 1) !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

.navbar--scrolled .navbar__brand { color: var(--white); }
.navbar--scrolled .navbar__links a { color: rgba(255,255,255,0.7); }

/* =========================================================================
   Onboarding Modal
   ========================================================================= */
.onboard-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: onboard-fade-in 0.3s ease;
}

@keyframes onboard-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes onboard-slide-up {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes onboard-item-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.onboard-modal {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2), 0 8px 24px rgba(0,0,0,0.1);
    animation: onboard-slide-up 0.4s ease 0.1s both;
    overflow: hidden;
}

.onboard-modal__header {
    background: var(--blue-900);
    color: var(--white);
    padding: 32px 32px 28px;
}

.onboard-modal__icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.onboard-modal__header h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 4px;
}

.onboard-modal__header p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.onboard-modal__body {
    padding: 28px 32px 32px;
}

.onboard-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.onboard-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    animation: onboard-item-in 0.35s ease both;
}

.onboard-list li:last-child { border-bottom: none; }

.onboard-list li:nth-child(1) { animation-delay: 0.25s; }
.onboard-list li:nth-child(2) { animation-delay: 0.35s; }
.onboard-list li:nth-child(3) { animation-delay: 0.45s; }
.onboard-list li:nth-child(4) { animation-delay: 0.55s; }
.onboard-list li:nth-child(5) { animation-delay: 0.65s; }
.onboard-list li:nth-child(6) { animation-delay: 0.75s; }

.onboard-list__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--blue-50);
    color: var(--blue-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.onboard-list__icon--green {
    background: var(--green-50);
    color: var(--green-600);
}

.onboard-list__text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--blue-900);
    margin-bottom: 2px;
}

.onboard-list__text span {
    font-size: 0.82rem;
    color: var(--gray-500);
    line-height: 1.5;
}

.onboard-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.onboard-modal__dismiss {
    font-size: 0.82rem;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    padding: 0;
}

.onboard-modal__dismiss:hover {
    color: var(--gray-600);
}

/* exit animation */
.onboard-overlay--closing {
    animation: onboard-fade-out 0.25s ease forwards;
}

.onboard-overlay--closing .onboard-modal {
    animation: onboard-slide-down 0.25s ease forwards;
}

@keyframes onboard-fade-out {
    to { opacity: 0; }
}

@keyframes onboard-slide-down {
    to { opacity: 0; transform: translateY(16px) scale(0.97); }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .demo-form { max-width: 100%; }
    .phone {
        margin: 0 auto;
        width: 280px;
    }
    .phone__screen { min-height: 440px; }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .usecase-carousel { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
    .usecase-info__desc { margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
    .tmpl-landing-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 768px) {
    /* Hamburger visible */
    .navbar__hamburger { display: block; }

    /* Mobile nav menu */
    .navbar__links {
        display: none;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 24px;
        z-index: 999;
        overflow-y: auto;
    }
    .navbar__links--open { display: flex !important; }

    .navbar__links li { width: 100%; }
    .navbar__links a {
        font-size: 1rem !important;
        color: rgba(255,255,255,0.8) !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0 !important;
        display: block !important;
    }
    .navbar__links a:hover {
        color: var(--white) !important;
        background: none !important;
    }

    /* Disable dock effect on mobile */
    .navbar__links--dock li:hover,
    .navbar__links--dock li:hover + li,
    .navbar__links--dock li:has(+ li:hover) {
        transform: none;
    }

    /* Mobile nav dropdowns */
    .nav-dropdown { align-self: auto; }
    .nav-dropdown__trigger {
        font-size: 1rem !important;
        color: rgba(255,255,255,0.8) !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0 !important;
        width: 100%;
        justify-content: space-between;
    }
    .nav-dropdown__menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 8px 16px;
        min-width: 0;
    }
    .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
    .nav-dropdown__menu li a {
        color: rgba(255,255,255,0.6) !important;
        padding: 10px 0 !important;
        font-size: 0.9rem !important;
    }
    .nav-dropdown__menu li a:hover { background: transparent !important; color: var(--white) !important; }
    .nav-dropdown__divider { background: rgba(255,255,255,0.06); }

    /* Light navbar mobile menu override */
    .navbar:not(.navbar--dark) .navbar__links {
        background: rgba(255, 255, 255, 0.98);
    }
    .navbar:not(.navbar--dark) .navbar__links a {
        color: var(--gray-700) !important;
        border-bottom-color: var(--gray-100);
    }
    .navbar:not(.navbar--dark) .nav-dropdown__trigger {
        color: var(--gray-700) !important;
        border-bottom-color: var(--gray-100);
    }
    .navbar:not(.navbar--dark) .nav-dropdown__menu li a {
        color: var(--gray-500) !important;
    }

    /* Hero */
    .hero { padding-top: 80px; min-height: auto; padding-bottom: 60px; }
    .hero h1 { font-size: 1.8rem; }
    .hero__sub { font-size: 1rem; }

    /* Sections */
    .section { padding: 48px 0; }
    .container { padding: 0 16px; }

    /* Steps */
    .step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 28px 20px; }
    .step:last-child { border-bottom: none; }
    .step::before { font-size: 2rem; }

    /* Hero actions */
    .hero__actions { flex-direction: column; }
    .btn { width: 100%; }

    /* Trust grid */
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item { padding: 20px 12px; }
    .trust-item__value { font-size: 1.4rem; }

    /* Features */
    .features-grid { grid-template-columns: 1fr; gap: 0; }
    .feature { padding: 24px 0; }

    /* Templates */
    .tmpl-landing-grid { grid-template-columns: 1fr; }

    /* Integrations */
    .integration-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .integration-badge { padding: 16px 10px; }
    .integration-badge__icon { font-size: 1.4rem; }

    /* Code tabs */
    .code-tabs { gap: 0; }
    .code-tab { padding: 8px 10px; font-size: 0.7rem; }
    .code-block { font-size: 0.7rem; padding: 14px; }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .bundle-tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
    .bundle-tile { padding: 18px 10px; }
    .bundle-tile__credits { font-size: 1.5rem; }

    /* Dashboard */
    .dash__balance { font-size: 2rem; }
    .form-row-inline { flex-direction: column; }
    .dash-nav { gap: 4px; }
    .dash-nav a { padding: 6px 12px; font-size: 0.75rem; }
    .dash__header h2 { font-size: 1.3rem; }

    /* Delivery animation */
    .delivery-anim { display: none; }

    /* Use case carousel */
    .usecase-carousel { grid-template-columns: 1fr; gap: 32px; }
    .usecase-carousel__phone-wrap { width: 200px; height: 350px; }
    .usecase-phone { width: 200px; height: 350px; }
    .usecase-dots { justify-content: center; }

    /* Footer */
    .footer .container > div { flex-direction: column; align-items: flex-start; gap: 12px; }
    .footer nav { flex-wrap: wrap; gap: 12px 20px; }

    /* Code block */
    .code-block { font-size: 0.7rem; padding: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero__label { font-size: 0.7rem; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .demo-form { padding: 20px; }
    .navbar__brand { font-size: 0.95rem; }
}

/* =========================================================================
   Gantt Timeline
   ========================================================================= */
.gantt {
    display: flex;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    min-height: 120px;
}
.gantt__labels {
    width: 190px;
    flex-shrink: 0;
    border-right: 2px solid var(--gray-200);
    background: var(--gray-50);
}
.gantt__labels-hdr {
    height: 56px;
    display: flex;
    align-items: flex-end;
    padding: 0 14px 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.4;
    border-bottom: 1px solid var(--gray-200);
}
.gantt__label {
    height: 44px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gantt__label--sm {
    font-size: 0.68rem;
    opacity: 0.4;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    height: 32px;
}
.gantt__scroll {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.gantt__inner {
    min-width: 100%;
}
.gantt__hdr {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
}
.gantt__months {
    display: flex;
    height: 26px;
    border-bottom: 1px solid var(--gray-100);
}
.gantt__month-cell {
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--primary);
    border-right: 1px solid var(--gray-200);
    flex-shrink: 0;
    overflow: hidden;
}
.gantt__days {
    display: flex;
    height: 30px;
}
.gantt__day-cell {
    width: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0.35;
    border-right: 1px solid var(--gray-100);
    font-weight: 600;
}
.gantt__day-cell.is-today {
    opacity: 1;
    color: var(--primary);
    font-weight: 800;
}
.gantt__body {
    position: relative;
}
.gantt__row {
    height: 44px;
    position: relative;
    border-bottom: 1px solid var(--gray-100);
}
.gantt__row--credits {
    height: 32px;
    display: flex;
    align-items: flex-end;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}
.gantt__grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--gray-100);
    pointer-events: none;
}
.gantt__today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    pointer-events: none;
    z-index: 2;
    opacity: 0.7;
}
.gantt__bar {
    position: absolute;
    top: 6px;
    height: 32px;
    border-radius: 5px;
    cursor: grab;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 0 28px 0 10px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: box-shadow 0.12s, opacity 0.12s;
    gap: 6px;
}
.gantt__bar:active { cursor: grabbing; box-shadow: 0 3px 12px rgba(0,0,0,0.25); }
.gantt__bar.is-saving { opacity: 0.6; }
.gantt__bar.is-error { outline: 2px solid #ef4444; }
.gantt__bar-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.gantt__bar-cred {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}
.gantt__bar-resize {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: ew-resize;
    border-radius: 0 5px 5px 0;
    background: rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gantt__bar-resize::after {
    content: '';
    width: 2px;
    height: 14px;
    background: rgba(255,255,255,0.55);
    border-radius: 1px;
}
.gantt__credit-cell {
    width: 36px;
    flex-shrink: 0;
    height: 32px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 2px 2px;
}
.gantt__credit-bar {
    width: 100%;
    background: #dbeafe;
    border-top: 1px solid #93c5fd;
    border-radius: 2px 2px 0 0;
    flex-shrink: 0;
}

/* --- Getting Started Stepper ------------------------------------------------ */
.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 24px 32px;
}
.stepper__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 100px;
}
.stepper__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--gray-400);
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
}
.stepper__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gray-400);
    text-align: center;
    white-space: nowrap;
}
.stepper__connector {
    flex: 1;
    height: 2px;
    min-width: 40px;
    background: var(--gray-200);
    margin-bottom: 28px;
}
.stepper__step--active .stepper__circle {
    background: var(--blue-500);
    color: var(--white);
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
}
.stepper__step--active .stepper__label { color: var(--blue-500); }
.stepper__step--done .stepper__circle {
    background: var(--green-500);
    color: var(--white);
    border-color: var(--green-500);
}
.stepper__step--done .stepper__label { color: var(--green-600); }
.stepper__connector--done { background: var(--green-500); }
