/* ========================================================================
   FlashClaw — Landing Page Styles
   Aesthetic: Violet Storm / Cyber-Agent
   Fonts: Syne (headings) + Plus Jakarta Sans (body) + JetBrains Mono (code)
   ======================================================================== */

/* ========== Variables ========== */
:root {
    --bg: #060A16;
    --bg-subtle: #080E1C;
    --surface: #0C1322;
    --surface-hover: #111A2E;
    --surface-elevated: #151E34;

    --primary: #8B5CF6;
    --primary-soft: rgba(139, 92, 246, 0.08);
    --primary-border: rgba(139, 92, 246, 0.18);
    --primary-glow: rgba(139, 92, 246, 0.12);
    --accent: #22D3EE;
    --accent-soft: rgba(34, 211, 238, 0.08);
    --success: #34D399;
    --error: #F87171;

    --text: #E4E9F0;
    --text-secondary: #828DA2;
    --text-dim: #4E5A6E;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);
    --border-accent: rgba(139, 92, 246, 0.15);

    --container: 1140px;
    --nav-h: 64px;
    --radius: 14px;
    --radius-sm: 8px;

    --ease: cubic-bezier(0.22, 0.68, 0, 1);
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
    --dur: 200ms;
    --dur-slow: 400ms;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .chat-bubble,
    .chat-tool {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur) var(--ease-out);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #22D3EE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

section {
    padding: 6rem 0;
    position: relative;
}

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(6, 10, 22, 0.9);
    border-bottom: 1px solid var(--border);
    transition: background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

nav.scrolled {
    background: rgba(6, 10, 22, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--nav-h);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo-icon-svg {
    color: var(--primary);
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.35));
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: color var(--dur) var(--ease-out);
}

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: #fff !important;
    border-radius: 100px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.nav-cta:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

/* Language dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--dur) var(--ease-out);
}

.lang-dropdown-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.lang-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    max-height: 320px;
    overflow-y: auto;
    background: var(--surface-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.5);
    padding: 6px;
    padding-top: 14px;
    z-index: 1100;

    /* Transition text */
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0s linear 0.2s;
}

.lang-dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.lang-dropdown:hover .lang-dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Mobile override - hidden by default, visible when menu active */
.mobile-nav-links .lang-dropdown-content {
    display: none;
    visibility: inherit;
    opacity: 1;
    transform: none;
    transition: none;
}

.mobile-menu-overlay.active .mobile-nav-links .lang-dropdown-content {
    display: block;
}

.lang-item {
    display: block;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.lang-item.active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
}

/* Mobile menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 22, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-slow) var(--ease-out);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    width: 85%;
    max-width: 400px;
    text-align: center;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.mobile-nav-links a {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
}

.close-menu:hover {
    color: var(--error);
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 3rem) 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Aurora glow */
.hero-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.hero-aurora-1 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.07);
    top: -100px;
    right: 5%;
}

.hero-aurora-2 {
    width: 400px;
    height: 400px;
    background: rgba(34, 211, 238, 0.05);
    bottom: -100px;
    left: 0;
}

.hero-grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}

.hero-text>p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 460px;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Hero stats strip */
.hero-stats {
    max-width: var(--container);
    margin: 4rem auto 0;
    display: flex;
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    border: 1px solid var(--border);
}

.hero-stat {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    text-align: center;
    transition: background var(--dur) var(--ease-out);
}

.hero-stat:hover {
    background: var(--surface-hover);
}

.hero-stat-value {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.15rem;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========== Phone Mockup ========== */
.phone-mockup {
    width: 300px;
    margin: 0 auto;
    background: #0A0F1E;
    border-radius: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(139, 92, 246, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 32px;
    padding: 3px;
    background: linear-gradient(160deg, rgba(139, 92, 246, 0.2), transparent 35%, transparent 65%, rgba(34, 211, 238, 0.12));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.phone-notch {
    width: 100px;
    height: 22px;
    background: #060A16;
    border-radius: 0 0 14px 14px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.phone-screen {
    padding: 0.5rem 0.75rem 1rem;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem 0.5rem;
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 600;
}

.phone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.phone-model-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
}

.phone-header-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    flex: 1;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 0.25rem;
}

.chat-bubble {
    max-width: 85%;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.78rem;
    line-height: 1.5;
    opacity: 0;
    animation: lineReveal 0.4s var(--ease-out) forwards;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    font-weight: 500;
    border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
    align-self: flex-start;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-tool {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: var(--text-dim);
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid var(--border);
    align-self: flex-start;
    opacity: 0;
    animation: lineReveal 0.4s var(--ease-out) forwards;
}

.chat-tool-icon {
    color: var(--success);
    font-size: 0.7rem;
}

.chat-tool-name {
    color: var(--accent);
    font-weight: 600;
}

.chat-cursor {
    display: inline-block;
    width: 6px;
    height: 12px;
    background: var(--primary);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
    border-radius: 1px;
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--text-dim);
}

.phone-input-send {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
}

.phone-input-send i {
    color: #fff;
    width: 12px;
    height: 12px;
}

.chat-bubble:nth-child(1) {
    animation-delay: 0.3s;
}

.chat-bubble:nth-child(2) {
    animation-delay: 0.8s;
}

.chat-tool:nth-child(3) {
    animation-delay: 1.3s;
}

.chat-tool:nth-child(4) {
    animation-delay: 1.7s;
}

.chat-bubble:nth-child(5) {
    animation-delay: 2.2s;
}

/* ========== Buttons ========== */
.btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--dur) var(--ease-out);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 0 36px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-hover);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary-border);
    color: var(--primary);
    background: var(--primary-soft);
}

.btn-outline:active {
    transform: translateY(0);
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

/* ========== Bento Grid (Features) ========== */
#features {
    background: var(--bg-subtle);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1rem;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.bento-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}

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

.bento-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
}

.bento-icon i {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.bento-icon.blue {
    background: var(--accent-soft);
    border-color: rgba(34, 211, 238, 0.15);
}

.bento-icon.blue i {
    color: var(--accent);
}

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ========== How It Works ========== */
#how-it-works {
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
}

/* Connecting line between steps */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 1px;
    background: linear-gradient(90deg, var(--primary-border), var(--border), var(--primary-border));
    z-index: 0;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: border-color var(--dur) var(--ease-out);
}

.step-card:hover {
    border-color: var(--primary-border);
}

.step-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ========== Pricing ========== */
#pricing {
    background: var(--bg-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    align-items: start;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    transition: border-color var(--dur) var(--ease-out);
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: var(--primary-border);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.06);
}

.pricing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.pricing-amount {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0.75rem 0;
}

.pricing-amount span {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 500;
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ========== Model Cost Table ========== */
#model-costs {
    background: var(--bg);
}

.model-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    backdrop-filter: blur(12px);
    max-width: 640px;
    margin: 0 auto;
}

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

.model-cost-table thead {
    background: var(--surface-elevated);
    border-bottom: 1px solid var(--border);
}

.model-cost-table th {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    padding: 0.85rem 1.25rem;
    text-align: left;
}

.model-cost-table td {
    padding: 0.7rem 1.25rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

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

.model-cost-table tbody tr:hover {
    background: var(--surface-hover);
}

.model-cost-table td:nth-child(2) {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.model-cost-table th:nth-child(2),
.model-cost-table th:nth-child(3) {
    text-align: center;
}

.model-cost-table td:nth-child(3) {
    text-align: center;
}

.model-premium td:first-child {
    color: var(--text-secondary);
}

.badge-free {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-sub {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    padding: 0.1rem 0.5rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ========== Use Cases / Testimonials ========== */
#use-cases {
    background: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: border-color var(--dur) var(--ease-out);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-soft);
    border: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}

.avatar-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
}

.avatar-info span {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.testimonial-card blockquote {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    font-style: italic;
}

/* ========== FAQ ========== */
#faq {
    background: var(--bg-subtle);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.faq-item {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--dur) var(--ease-out);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-item h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.65;
}

/* ========== CTA Banner ========== */
.cta-banner {
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(139, 92, 246, 0.05), transparent);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03em;
}

.cta-banner p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer ========== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.75rem;
}

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

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 0.75rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

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

.footer-links a {
    color: var(--text-dim);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--dur) var(--ease-out);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.78rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1.25rem;
}

.footer-social a {
    color: var(--text-dim);
    transition: color var(--dur) var(--ease-out);
}

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

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

@keyframes lineReveal {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger>*:nth-child(1) {
    transition-delay: 0ms;
}

.stagger>*:nth-child(2) {
    transition-delay: 60ms;
}

.stagger>*:nth-child(3) {
    transition-delay: 120ms;
}

.stagger>*:nth-child(4) {
    transition-delay: 180ms;
}

.stagger>*:nth-child(5) {
    transition-delay: 240ms;
}

.stagger>*:nth-child(6) {
    transition-delay: 300ms;
}

/* ========== Focus States ========== */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        max-width: 580px;
        margin: 0 auto;
    }

    .hero-text>p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: calc(var(--nav-h) + 2rem) 1.25rem 2rem;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-direction: column;
    }

    .hero-stat {
        border-bottom: 1px solid var(--border);
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

    .phone-mockup {
        margin-top: 3rem;
    }

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

    .bento-card.wide {
        grid-column: span 1;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-grid::before {
        display: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

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

    .terminal-body {
        font-size: 0.7rem;
        padding: 1rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.85rem;
    }
}