/* ================================================================
   AIChat.org — Custom CSS
   Google-clean design / Dark mode / Brand accent #006cff
   ================================================================ */

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

:root {
    /* Brand */
    --brand: #006cff;
    --brand-hover: #0058d4;
    --brand-light: rgba(0,108,255,0.12);
    --brand-glow: rgba(0,108,255,0.15);

    /* Surfaces */
    --bg: #09090b;
    --bg-raised: #111114;
    --bg-elevated: #18181c;
    --bg-overlay: #1f1f24;

    /* Borders */
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --border-strong: rgba(255,255,255,0.18);

    /* Text */
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --text-muted: #52525b;

    /* Status */
    --green: #22c55e;
    --green-light: rgba(34,197,94,0.12);
    --purple: #a78bfa;
    --purple-light: rgba(167,139,250,0.12);
    --emerald: #34d399;
    --emerald-light: rgba(52,211,153,0.12);

    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-secondary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 15px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); line-height: 1.2; font-weight: 700; }

/* ── Container ─────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Grid ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* ── Flex utilities ────────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

/* ── Typography ────────────────────────────────────────────────── */
.text-xs { font-size: 12px; line-height: 1.5; }
.text-sm { font-size: 13px; line-height: 1.5; }
.text-base { font-size: 15px; line-height: 1.6; }
.text-lg { font-size: 17px; line-height: 1.5; }
.text-xl { font-size: 20px; line-height: 1.4; }
.text-2xl { font-size: 26px; line-height: 1.25; }
.text-3xl { font-size: 34px; line-height: 1.15; }
.text-4xl { font-size: 44px; line-height: 1.1; }
.text-5xl { font-size: 56px; line-height: 1.05; letter-spacing: -0.025em; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.text-white { color: #fff; }
.text-green { color: var(--green); }

.text-center { text-align: center; }
.tracking-tight { letter-spacing: -0.02em; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.7; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
    .text-5xl { font-size: 36px; }
    .text-4xl { font-size: 30px; }
    .text-3xl { font-size: 26px; }
}

/* ── Spacing ───────────────────────────────────────────────────── */
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mt-4xl { margin-top: var(--space-4xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.py-section { padding-top: 80px; padding-bottom: 80px; }
.py-section-lg { padding-top: 100px; padding-bottom: 100px; }

@media (max-width: 640px) {
    .py-section { padding-top: 48px; padding-bottom: 48px; }
    .py-section-lg { padding-top: 64px; padding-bottom: 64px; }
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 24px var(--brand-glow), 0 1px 3px rgba(0,0,0,0.3);
}
.btn-primary:hover {
    background: var(--brand-hover);
    box-shadow: 0 0 40px var(--brand-glow), 0 2px 8px rgba(0,0,0,0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.btn-ghost {
    background: rgba(255,255,255,0.04);
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-icon { width: 20px; height: 20px; }
.btn-sm .btn-icon { width: 16px; height: 16px; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all var(--duration) var(--ease);
}
.card:hover, .card-hover:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.card-flat {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}
.card-sm { padding: var(--space-md); border-radius: var(--radius-lg); }

/* ── Badge / Pill ──────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
}
.badge-green {
    background: var(--green-light);
    border-color: rgba(34,197,94,0.2);
    color: var(--green);
}
.badge-brand {
    background: var(--brand-light);
    border-color: rgba(0,108,255,0.2);
    color: var(--brand);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.dot-sm { width: 5px; height: 5px; }
.dot-pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Icon Box ──────────────────────────────────────────────────── */
.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    font-weight: 700;
    color: #fff;
}
.icon-box-nav { width: 20px; height: 20px; border-radius: 5px; font-size: 8px; }
.icon-box-xs { width: 24px; height: 24px; border-radius: var(--radius-sm); font-size: 10px; }
.icon-box-sm { width: 32px; height: 32px; border-radius: var(--radius-md); font-size: 11px; }
.icon-box-md { width: 40px; height: 40px; font-size: 13px; }
.icon-box-lg { width: 48px; height: 48px; font-size: 15px; border-radius: var(--radius-xl); }
.icon-box-xl { width: 56px; height: 56px; font-size: 18px; border-radius: var(--radius-xl); }
.icon-box-2xl { width: 64px; height: 64px; font-size: 20px; border-radius: var(--radius-xl); }

.icon-box-outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
}

/* ── Section ───────────────────────────────────────────────────── */
.section-border { border-top: 1px solid var(--border); }
.section-raised { background: var(--bg-raised); }
.section-alt { background: var(--bg-elevated); }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { transition: color var(--duration) var(--ease); }
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb-sep {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}
.breadcrumb-current { color: var(--text-secondary); }

/* ── Header ────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}
.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--brand);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon svg { width: 16px; height: 16px; color: #fff; }
.logo span { color: var(--text-tertiary); font-weight: 500; }

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

/* Nav item (dropdown trigger) */
.nav-item {
    position: relative;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link .nav-icon { flex-shrink: 0; }
.nav-link .nav-icon svg { width: 16px; height: 16px; }
.nav-chevron {
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform var(--duration) var(--ease);
    margin-left: 2px;
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 240px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: all 0.2s var(--ease);
    z-index: 200;
}
.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}
.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-item:hover .nav-chevron { transform: rotate(180deg); }
.nav-item:hover .nav-link { color: var(--text-primary); background: rgba(255,255,255,0.04); }

/* Dropdown header */
.nav-dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 4px;
}
.nav-dd-header a {
    font-size: 12px;
    color: var(--text-muted);
    transition: color var(--duration) var(--ease);
}
.nav-dd-header a:hover { color: var(--text-primary); }

/* Dropdown items */
.nav-dd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}
.nav-dd-item:hover { background: rgba(255,255,255,0.05); }
.nav-dd-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
}
.nav-dd-icon svg { width: 16px; height: 16px; color: var(--text-muted); }
.nav-dd-item:hover .nav-dd-icon { border-color: var(--border-hover); }
.nav-dd-name { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.nav-dd-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.nav-dd-item:hover .nav-dd-name { color: #fff; }

.nav-dd-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Dropdown CTA */
.nav-dd-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    margin-top: 4px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all var(--duration) var(--ease);
}
.nav-dd-cta:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.nav-dd-cta svg { width: 12px; height: 12px; }

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

/* ── Footer ────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 64px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-heading { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color var(--duration) var(--ease); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.07;
    pointer-events: none;
}
.hero-glow-brand {
    background: var(--brand);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-home { padding: 100px 0 80px; }
.hero-page { padding: 64px 0; }

@media (max-width: 640px) {
    .hero-home { padding: 64px 0 48px; }
    .hero-page { padding: 40px 0; }
}

/* ── Platform icon ─────────────────────────────────────────────── */
.platform-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

/* ── Stats row ─────────────────────────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    padding: 40px 0;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

@media (max-width: 640px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ── Accordion (FAQ) ───────────────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }
.accordion-item {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: color var(--duration) var(--ease);
    cursor: pointer;
    background: none;
    border: none;
}
.accordion-trigger:hover { color: var(--text-primary); }
.accordion-chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform var(--duration) var(--ease), color var(--duration) var(--ease);
    flex-shrink: 0;
    margin-left: 16px;
}
.accordion-item[open] .accordion-chevron { transform: rotate(180deg); color: var(--brand); }
.accordion-item[open] .accordion-trigger { color: var(--text-primary); }
.accordion-body {
    padding: 0 24px 20px;
    color: var(--text-tertiary);
    line-height: 1.7;
    font-size: 14px;
}

/* ── Feature card ──────────────────────────────────────────────── */
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon-brand { background: var(--brand-light); border: 1px solid rgba(0,108,255,0.2); color: var(--brand); }
.feature-icon-purple { background: var(--purple-light); border: 1px solid rgba(167,139,250,0.2); color: var(--purple); }
.feature-icon-emerald { background: var(--emerald-light); border: 1px solid rgba(52,211,153,0.2); color: var(--emerald); }

/* ── Info sidebar ──────────────────────────────────────────────── */
.info-card { width: 300px; flex-shrink: 0; }
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.info-label { font-size: 13px; color: var(--text-muted); }
.info-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.info-divider { border: none; border-top: 1px solid var(--border); margin: 0; }

@media (max-width: 1024px) {
    .info-card { width: 100%; }
}

/* ── Content prose ─────────────────────────────────────────────── */
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--text-tertiary); line-height: 1.75; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose ul { margin: 16px 0; }
.prose li { padding: 4px 0; color: var(--text-tertiary); padding-left: 20px; position: relative; }
.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    opacity: 0.6;
}

/* Feature list as grid cards */
.features-grid ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    list-style: none;
    padding: 0;
}
.features-grid li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.6;
}
.features-grid li::before { display: none; }
.features-grid li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.features-grid li strong {
    display: block;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 6px;
}
.feature-li-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--brand-light, rgba(0,108,255,0.12));
    border: 1px solid rgba(255,255,255,0.06);
    margin-top: 2px;
}
.feature-li-icon svg {
    width: 18px;
    height: 18px;
    color: var(--brand, #006cff);
}
.themed .feature-li-icon {
    background: rgba(var(--brand-rgb), 0.12);
    border-color: rgba(var(--brand-rgb), 0.15);
}
.themed .feature-li-icon svg { color: rgb(var(--brand-rgb)); }

@media (max-width: 768px) {
    .features-grid ul { grid-template-columns: 1fr; }
}

/* Capabilities/Use cases as grid */
.caps-grid ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    list-style: none;
    padding: 0;
}
.caps-grid li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.caps-grid li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    margin-top: 7px;
    flex-shrink: 0;
    position: static;
    opacity: 1;
    padding: 0;
}

@media (max-width: 768px) {
    .caps-grid ul { grid-template-columns: 1fr; }
}

/* ── Animations ────────────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.6s ease-out both; }
.fade-in-d1 { animation: fadeIn 0.6s ease-out 0.1s both; }
.fade-in-d2 { animation: fadeIn 0.6s ease-out 0.2s both; }
.fade-in-d3 { animation: fadeIn 0.6s ease-out 0.3s both; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Arrow shift on hover */
.arrow-shift { transition: transform var(--duration) var(--ease); }
.group:hover .arrow-shift { transform: translateX(3px); }

/* Card accent line */
.card-accent {
    position: relative;
    overflow: hidden;
}
.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand), transparent);
    opacity: 0;
    transition: opacity var(--duration) var(--ease);
}
.card-accent:hover::before { opacity: 1; }

/* ── Link styles ───────────────────────────────────────────────── */
.link-brand { color: var(--brand); font-weight: 500; transition: color var(--duration) var(--ease); }
.link-brand:hover { color: var(--brand-hover); }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--brand); }
.link-arrow svg { width: 14px; height: 14px; transition: transform var(--duration) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── Utility ───────────────────────────────────────────────────── */
.max-w-2xl { max-width: 640px; }
.max-w-3xl { max-width: 768px; }
.max-w-sm { max-width: 480px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.hidden { display: none; }
@media (min-width: 769px) { .md-flex { display: flex; } .md-hidden { display: none; } }
@media (min-width: 1025px) { .lg-flex { display: flex; } }
@media (max-width: 768px) { .md-hide { display: none; } }
@media (max-width: 1024px) { .lg-hide { display: none; } }

/* Visually hidden */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ── Mobile menu ───────────────────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.05); }
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
}

/* ── Platform icon with inline SVG ─────────────────────────────── */
.platform-icon-svg svg {
    width: 55%;
    height: 55%;
}

/* ── Platform brand color theming ──────────────────────────────── */
/* Pages set --brand-rgb via inline <style> to override the global brand color.
   All components using var(--brand) automatically pick up the platform color. */
.themed {
    --brand: rgb(var(--brand-rgb));
    --brand-hover: rgb(var(--brand-rgb));
    --brand-light: rgba(var(--brand-rgb), 0.12);
    --brand-glow: rgba(var(--brand-rgb), 0.18);
}
.themed .btn-primary {
    background: rgb(var(--brand-rgb));
    box-shadow: 0 0 24px rgba(var(--brand-rgb), 0.18), 0 1px 3px rgba(0,0,0,0.3);
}
.themed .btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 40px rgba(var(--brand-rgb), 0.22), 0 2px 8px rgba(0,0,0,0.4);
}
.themed .link-brand,
.themed .link-arrow { color: rgb(var(--brand-rgb)); }
.themed .accordion-item[open] .accordion-chevron { color: rgb(var(--brand-rgb)); }
.themed .prose li::before { background: rgb(var(--brand-rgb)); }
.themed .caps-grid li::before { background: rgb(var(--brand-rgb)); }
.themed .card-accent::before {
    background: linear-gradient(90deg, transparent, rgb(var(--brand-rgb)), transparent);
}
.themed .badge-brand {
    background: rgba(var(--brand-rgb), 0.12);
    border-color: rgba(var(--brand-rgb), 0.2);
    color: rgb(var(--brand-rgb));
}
.themed .feature-icon-brand {
    background: rgba(var(--brand-rgb), 0.12);
    border-color: rgba(var(--brand-rgb), 0.2);
    color: rgb(var(--brand-rgb));
}
.themed .info-cta {
    background: rgba(var(--brand-rgb), 0.12);
    color: rgb(var(--brand-rgb));
}
.themed .info-cta:hover {
    background: rgba(var(--brand-rgb), 0.2);
}

/* ── Hero platform (big centered, same as home) ────────────────── */
.hero-platform { padding: 80px 0 64px; }
.hero-platform .hero-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.hero-platform .hero-badge-row .platform-icon {
    width: 48px;
    height: 48px;
    font-size: 16px;
}
.hero-platform .hero-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 640px) {
    .hero-platform { padding: 48px 0 40px; }
}
