/* =====================================================================
   TubePress — Marketing Site v3
   Balanced, meticulous, wide layouts, intentional spacing
   ===================================================================== */

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

/* ── Tokens ── */
:root {
    --black: #09090b;
    --gray-950: #131316;
    --gray-900: #18181b;
    --gray-800: #27272a;
    --gray-700: #3f3f46;
    --gray-600: #52525b;
    --gray-500: #71717a;
    --gray-400: #a1a1aa;
    --gray-300: #d4d4d8;
    --gray-200: #e4e4e7;
    --gray-100: #f0f0f3;
    --gray-50: #f8f8fa;
    --white: #ffffff;
    --accent: #635bff;
    --accent-dark: #4f46e5;
    --accent-light: #818cf8;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* ── Texture patterns (reusable via classes) ── */
.tx-dots {
    background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
    background-size: 24px 24px;
}
.tx-grid {
    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: 48px 48px;
}
.tx-noise::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── Typography ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/inter-var.woff2') format('woff2');
}

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
::selection { background: rgba(99,91,255,0.15); color: var(--black); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }
a { color: inherit; text-decoration: none; }
select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Containers ── */
.w { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.w-wide { max-width: 1440px; margin: 0 auto; padding: 0 48px; }
.w-narrow { max-width: 680px; margin: 0 auto; padding: 0 32px; }

/* Legacy compat (forms, documentation, etc.) */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 480px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* =====================================================================
   TOPBAR
   ===================================================================== */
.topbar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.76rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.topbar-left span {
    color: var(--gray-500);
    font-weight: 480;
}
.topbar-left i { color: var(--accent); margin-right: 4px; }
.topbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.topbar-right a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    color: var(--gray-600);
    font-weight: 520;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.topbar-right a:hover {
    color: var(--accent);
    background: rgba(99,91,255,0.06);
    text-decoration: none;
}
.topbar-right a i { font-size: 0.72rem; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    height: 64px;
    border-bottom: 1px solid var(--gray-200);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.25;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 48px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 48px;
}
.logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}
.logo img {
    height: 22px;
    width: auto;
    display: block;
}
.logo:hover { text-decoration: none; opacity: 0.85; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}
.header-nav a {
    font-size: 0.88rem;
    font-weight: 480;
    color: var(--gray-600);
    transition: color 0.15s;
    position: relative;
}
.header-nav a:hover { color: var(--black); text-decoration: none; }
.header-nav a.is-active { color: var(--black); font-weight: 600; }
.header-nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
}
.header-nav .gh { font-size: 1.25rem; display: flex; color: var(--gray-500); }
.header-nav .gh:hover { color: var(--accent); }

.header-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 7px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #ffffff !important;
    background: var(--accent);
    border-radius: 6px;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 3px rgba(99,91,255,0.2);
}
.header-cta > i,
.header-cta > [class*="fa-"] {
    margin-right: 8px;
    padding-right: 8px;
    border-right: 1px solid rgba(255,255,255,0.25);
    line-height: 1;
    font-size: 0.7em;
}
.header-cta:hover {
    background: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(99,91,255,0.3);
    text-decoration: none;
    color: #ffffff !important;
}

.header-mobile-auth { display: none; }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gray-700);
    margin: 4px 0;
    transition: 0.2s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* =====================================================================
   BUTTONS — TubePress signature style
   Sharp edges, split icon, bottom accent bar, lift hover
   ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-family: inherit;
    font-weight: 620;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

/* Icon separator — signature split look */
.btn > i,
.btn > [class*="fa-"] {
    margin-right: 9px;
    padding-right: 9px;
    border-right: 1px solid rgba(255,255,255,0.15);
    line-height: 1;
}

/* ── Accent (Primary CTA) ── */
.btn-accent {
    padding: 11px 24px;
    font-size: 0.9rem;
    color: var(--white);
    background: var(--accent);
    border-bottom: 2px solid var(--accent-dark);
    box-shadow: 0 1px 4px rgba(99,91,255,0.18);
}
.btn-accent:hover {
    background: var(--accent-dark);
    border-bottom-color: #4338ca;
    box-shadow: 0 4px 16px rgba(99,91,255,0.28);
}

/* ── Dark ── */
.btn-dark {
    padding: 12px 28px;
    font-size: 0.92rem;
    background: var(--black);
    color: var(--white);
    border-bottom: 2px solid var(--gray-900);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.btn-dark:hover { background: var(--gray-800); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-dark > i,
.btn-dark > [class*="fa-"] { border-right-color: rgba(255,255,255,0.12); }

/* ── Outline ── */
.btn-outline {
    padding: 11px 24px;
    font-size: 0.9rem;
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-bottom: 2px solid var(--gray-300);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-outline > i,
.btn-outline > [class*="fa-"] { border-right-color: var(--gray-200); color: var(--gray-500); }
.btn-outline:hover {
    color: var(--accent);
    border-color: var(--accent);
    border-bottom-color: var(--accent-dark);
    background: rgba(99,91,255,0.02);
    box-shadow: 0 2px 8px rgba(99,91,255,0.08);
}
.btn-outline:hover > i,
.btn-outline:hover > [class*="fa-"] { border-right-color: rgba(99,91,255,0.2); }

/* ── Sizes ── */
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-sm > i, .btn-sm > [class*="fa-"] { margin-right: 7px; padding-right: 7px; }
.btn-lg { padding: 12px 26px; font-size: 0.92rem; }
.btn-xl { padding: 14px 32px; font-size: 0.95rem; }

/* ── On dark backgrounds ── */
.on-dark .btn-accent {
    background: var(--accent);
    border-bottom-color: #4338ca;
}
.on-dark .btn-accent:hover {
    background: var(--accent-light);
    border-bottom-color: var(--accent);
}
.on-dark .btn-outline {
    background: transparent;
    color: var(--gray-300);
    border-color: var(--gray-600);
    border-bottom-color: var(--gray-700);
    box-shadow: none;
}
.on-dark .btn-outline > i,
.on-dark .btn-outline > [class*="fa-"] { border-right-color: var(--gray-600); }
.on-dark .btn-outline:hover {
    color: var(--white);
    border-color: var(--gray-400);
    border-bottom-color: var(--gray-500);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 16px rgba(255,255,255,0.04);
}
.on-dark .btn-outline:hover > i,
.on-dark .btn-outline:hover > [class*="fa-"] { border-right-color: var(--gray-400); }
.on-dark .btn-dark { background: var(--white); color: var(--black); border-bottom-color: var(--gray-200); }
.on-dark .btn-dark:hover { background: var(--gray-100); }

/* Icon animation on hover */
.btn:hover > .fa-arrow-down { animation: iconBounce 0.4s ease; }
.btn:hover > .fa-arrow-right { animation: iconSlide 0.3s ease; }
.btn:hover > .fa-eye { animation: iconPulse 0.4s ease; }
@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
@keyframes iconSlide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}
@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* =====================================================================
   HERO — Split layout, uses full width
   ===================================================================== */
.hero-split {
    /* Layered background: grid lines + accent glows + base gradient */
    background:
        linear-gradient(rgba(99,91,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,91,255,0.04) 1px, transparent 1px),
        radial-gradient(ellipse at 15% 85%, rgba(99,91,255,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(79,70,229,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(99,91,255,0.04) 0%, transparent 70%),
        linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
    color: var(--black);
    overflow: hidden;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

/* Large decorative glow orb — top-left */
.hero-split::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99,91,255,0.09) 0%, rgba(99,91,255,0.03) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
/* Large decorative glow orb — bottom-right */
.hero-split::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(79,70,229,0.07) 0%, rgba(79,70,229,0.02) 40%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Floating feature icons in hero ── */
.hero-float-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero-float-icons i {
    position: absolute;
    color: var(--accent);
    animation: heroIconFloat 18s infinite ease-in-out;
}
/* Spread icons across the full hero — visible but not distracting */
.hero-float-icons i:nth-child(1)  { top: 10%; left: 5%;  font-size: 1.4rem; opacity: 0.10; animation-delay: 0s; }
.hero-float-icons i:nth-child(2)  { top: 30%; left: 12%; font-size: 1rem;  opacity: 0.07; animation-delay: 2.5s; }
.hero-float-icons i:nth-child(3)  { top: 65%; left: 3%;  font-size: 1.2rem; opacity: 0.08; animation-delay: 5s; }
.hero-float-icons i:nth-child(4)  { top: 82%; left: 9%;  font-size: 0.9rem; opacity: 0.07; animation-delay: 7.5s; }
.hero-float-icons i:nth-child(5)  { top: 48%; left: 40%; font-size: 1.1rem; opacity: 0.05; animation-delay: 10s; }
.hero-float-icons i:nth-child(6)  { top: 8%;  right: 7%; font-size: 1.1rem; opacity: 0.08; animation-delay: 1.5s; }
.hero-float-icons i:nth-child(7)  { top: 38%; right: 3%; font-size: 1.3rem; opacity: 0.07; animation-delay: 4s; }
.hero-float-icons i:nth-child(8)  { top: 72%; right: 10%;font-size: 1rem;  opacity: 0.09; animation-delay: 6.5s; }
.hero-float-icons i:nth-child(9)  { top: 90%; right: 5%; font-size: 1.1rem; opacity: 0.06; animation-delay: 9s; }
.hero-float-icons i:nth-child(10) { top: 18%; left: 30%; font-size: 1rem;  opacity: 0.06; animation-delay: 11.5s; }
.hero-float-icons i:nth-child(11) { top: 55%; left: 7%;  font-size: 1.3rem; opacity: 0.08; animation-delay: 13s; }
.hero-float-icons i:nth-child(12) { top: 85%; left: 35%; font-size: 0.95rem;opacity: 0.06; animation-delay: 14.5s; }

@keyframes heroIconFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-10px) rotate(6deg); }
    50%  { transform: translateY(-3px) rotate(-4deg); }
    75%  { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ── Decorative geometric rings ── */
.hero-geo {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.hero-geo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99,91,255,0.08);
}
.hero-geo-ring:nth-child(1) {
    width: 320px; height: 320px;
    top: -60px; left: -80px;
    border-width: 1.5px;
    border-color: rgba(99,91,255,0.07);
}
.hero-geo-ring:nth-child(2) {
    width: 200px; height: 200px;
    top: 60%; right: -40px;
    border-color: rgba(99,91,255,0.06);
}
.hero-geo-ring:nth-child(3) {
    width: 140px; height: 140px;
    bottom: -30px; left: 25%;
    border-color: rgba(99,91,255,0.05);
}
/* Filled soft circle accents */
.hero-geo-dot {
    position: absolute;
    border-radius: 50%;
    background: rgba(99,91,255,0.06);
}
.hero-geo-dot:nth-child(4) {
    width: 10px; height: 10px;
    top: 20%; left: 18%;
}
.hero-geo-dot:nth-child(5) {
    width: 6px; height: 6px;
    top: 75%; left: 42%;
    background: rgba(99,91,255,0.08);
}
.hero-geo-dot:nth-child(6) {
    width: 8px; height: 8px;
    top: 15%; right: 15%;
    background: rgba(79,70,229,0.07);
}
.hero-geo-dot:nth-child(7) {
    width: 12px; height: 12px;
    bottom: 20%; right: 25%;
    background: rgba(99,91,255,0.05);
}

/* Smaller version for sub-page heroes */
.hero-float-icons--sm i { font-size: 1rem !important; }
.hero-float-icons--sm i:nth-child(1)  { top: 15%; left: 6%; }
.hero-float-icons--sm i:nth-child(2)  { top: 55%; left: 4%; }
.hero-float-icons--sm i:nth-child(3)  { top: 30%; left: 16%; }
.hero-float-icons--sm i:nth-child(4)  { top: 70%; left: 12%; }
.hero-float-icons--sm i:nth-child(5)  { top: 20%; right: 8%; }
.hero-float-icons--sm i:nth-child(6)  { top: 60%; right: 4%; }
.hero-float-icons--sm i:nth-child(7)  { top: 40%; right: 16%; }
.hero-float-icons--sm i:nth-child(8)  { top: 75%; right: 12%; }

.hero-split-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    min-height: 480px;
    padding-top: 64px;
    padding-bottom: 56px;
}
.hero-content {
    max-width: 520px;
}
.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(99,91,255,0.06);
    border: 1px solid rgba(99,91,255,0.12);
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--black);
    margin-bottom: 16px;
}
.hero-content p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--gray-500);
    margin-bottom: 28px;
    max-width: 420px;
}
.hero-note {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 16px;
}

/* Terminal mockup */
.terminal {
    background: var(--gray-950);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-xl);
    overflow: hidden;
    font-family: 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--gray-800);
}
.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.terminal-dot.r { background: #ff5f57; }
.terminal-dot.y { background: #febc2e; }
.terminal-dot.g { background: #28c840; }
.terminal-title {
    margin-left: 8px;
    font-size: 0.72rem;
    color: var(--gray-600);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}
.terminal-body {
    padding: 20px 24px;
    color: var(--gray-400);
}
.terminal-body .cmd { color: var(--gray-300); }
.terminal-body .prompt { color: var(--gray-600); }
.terminal-body .ok { color: #4ade80; }
.terminal-body .dim { color: var(--gray-700); }
.terminal-body .line { display: block; }
.terminal-body .line + .line { margin-top: 2px; }
.terminal-body .gap { display: block; height: 12px; }

/* Hero page (centered, for sub-pages) */
.hero-page {
    background:
        radial-gradient(circle, rgba(0,0,0,0.025) 0.6px, transparent 0.6px),
        radial-gradient(ellipse at 30% 80%, rgba(99,91,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(79,70,229,0.03) 0%, transparent 50%),
        linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    background-size: 22px 22px, 100% 100%, 100% 100%, 100% 100%;
    color: var(--black);
    text-align: center;
    padding: 56px 32px 44px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}
.hero-page::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(99,91,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}
.hero-page h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 780;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: 10px;
}
.hero-page p {
    font-size: 0.98rem;
    color: var(--gray-500);
    max-width: 440px;
    margin: 0 auto;
}

/* =====================================================================
   METRICS BAR
   ===================================================================== */
.metrics {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-bottom: 1px solid var(--gray-200);
}
.metric {
    padding: 28px 24px;
    text-align: center;
    border-right: 1px solid var(--gray-200);
}
.metric:last-child { border-right: none; }
.metric-val {
    font-size: 1.4rem;
    font-weight: 780;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.metric-label {
    font-size: 0.76rem;
    font-weight: 480;
    color: var(--gray-500);
    margin-top: 2px;
}

/* =====================================================================
   BENTO GRID — Feature showcase with visual hierarchy
   ===================================================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.bento-item {
    background: var(--white);
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: background 0.2s;
}
.bento-item:hover { background: var(--gray-50); }
.bento-item.wide { grid-column: span 2; }
.bento-item h3 {
    font-size: 0.98rem;
    font-weight: 640;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.bento-item p {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}
/* Lead item gets bigger text */
.bento-item.lead h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.bento-item.lead p {
    font-size: 0.92rem;
}
/* Bento item icon */
.bento-item .bento-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99,91,255,0.08);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* =====================================================================
   FEATURE BLOCKS — Wide 2-col, icon-left, KVS-inspired
   ===================================================================== */
.fblocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fblock {
    display: flex;
    gap: 18px;
    padding: 32px 28px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
    position: relative;
}
.fblock:hover { background: var(--gray-50); }
.fblock::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}
.fblock:hover::before { opacity: 1; }
/* Vertical separator on left column items */
.fblock:nth-child(odd) { border-right: 1px solid var(--gray-100); }
/* Remove bottom border on last row */
.fblock:nth-last-child(-n+2) { border-bottom: none; }
.fblock-icon {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    background: rgba(99,91,255,0.07);
    border-bottom: 2px solid rgba(99,91,255,0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.fblock:hover .fblock-icon {
    background: rgba(99,91,255,0.12);
    border-bottom-color: var(--accent);
    box-shadow: 0 2px 12px rgba(99,91,255,0.15);
}
.fblock h3 {
    font-size: 0.98rem;
    font-weight: 640;
    color: var(--black);
    margin-bottom: 5px;
}
.fblock p {
    font-size: 0.86rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* =====================================================================
   DEVICE SHOWCASE — Laptop + Tablet + Phone, overlapping
   ===================================================================== */
.devices {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-right: 40px;
}

/* ── iMac-style Monitor ── */
.dev-desktop {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 620px;
    /* animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.dev-desktop .dev-bezel {
    background: #e2e2e7;
    border-radius: 14px;
    padding: 10px 10px 32px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.12),
        0 0 0 1px rgba(0,0,0,0.06);
}
.dev-desktop .dev-screen {
    background: #0f172a;
    border-radius: 6px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.dev-desktop .dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Chin dot (webcam) */
.dev-desktop .dev-bezel::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #c0c0c8;
    border-radius: 50%;
    margin: 10px auto 0;
}
/* Stand neck */
.dev-desktop .dev-neck {
    width: 70px;
    height: 48px;
    background: linear-gradient(to right, #d0d0d6, #e2e2e7, #d0d0d6);
    margin: 0 auto;
    border-radius: 0 0 2px 2px;
}
/* Stand base */
.dev-desktop .dev-foot {
    width: 160px;
    height: 10px;
    background: linear-gradient(to bottom, #d8d8de, #c0c0c8);
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ── iPad-style Tablet ── */
.dev-tablet {
    position: absolute;
    z-index: 2;
    right: -8%;
    bottom: 8%;
    width: 40%;
    max-width: 230px;
    /* animation */
    opacity: 0;
    transform: translateX(50px) translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.dev-tablet .dev-bezel {
    background: #2c2c2e;
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.15);
}
.dev-tablet .dev-screen {
    background: #0f172a;
    border-radius: 4px;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}
.dev-tablet .dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }

/* ── iPhone-style Phone ── */
.dev-phone {
    position: absolute;
    z-index: 3;
    right: 2%;
    bottom: 4%;
    width: 20%;
    max-width: 110px;
    /* animation */
    opacity: 0;
    transform: translateX(30px) translateY(10px);
    transition: opacity 0.6s ease 0.55s, transform 0.6s ease 0.55s;
}
.dev-phone .dev-bezel {
    background: #2c2c2e;
    border-radius: 18px;
    padding: 10px 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.dev-phone .dev-notch {
    width: 32%;
    height: 4px;
    background: #1a1a1c;
    border-radius: 4px;
    margin: 0 auto 5px;
}
.dev-phone .dev-screen {
    background: #0f172a;
    border-radius: 8px;
    aspect-ratio: 9/19;
    overflow: hidden;
    position: relative;
}
.dev-phone .dev-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.dev-phone .dev-bar {
    width: 32%;
    height: 3px;
    background: #4a4a4e;
    border-radius: 3px;
    margin: 6px auto 0;
}

/* Reveal animation trigger */
.devices.vis .dev-desktop,
.devices.vis .dev-tablet,
.devices.vis .dev-phone {
    opacity: 1;
    transform: none;
}

/* =====================================================================
   SECTIONS
   ===================================================================== */
.sec { padding: 80px 0; position: relative; }
.sec-sm { padding: 56px 0; position: relative; }

.sec-alt {
    background-color: var(--gray-50);
    background-image:
        radial-gradient(circle, rgba(0,0,0,0.04) 0.6px, transparent 0.6px),
        radial-gradient(ellipse at 30% 50%, rgba(99,91,255,0.025) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(79,70,229,0.02) 0%, transparent 60%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    position: relative;
}
.sec-dark { background: var(--black); color: var(--white); }

/* Section with dot pattern + soft accent glow */
.sec-grid {
    background-image:
        radial-gradient(circle, rgba(99,91,255,0.06) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 100%, rgba(99,91,255,0.03) 0%, transparent 55%);
    background-size: 20px 20px, 100% 100%;
}

/* Section with accent tint */
.sec-tint {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99,91,255,0.035) 0%, transparent 60%),
        var(--white);
}

.sec-head {
    margin-bottom: 40px;
}
.sec-head.centered { text-align: center; }
.sec-head .eyebrow {
    font-size: 0.72rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}
.sec-dark .sec-head .eyebrow { color: var(--accent-light); }

.sec-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 10px;
}
.sec-dark .sec-head h2 { color: var(--white); }

.sec-head p {
    font-size: 1rem;
    color: var(--gray-500);
    max-width: 480px;
    line-height: 1.6;
}
.sec-head.centered p { margin: 0 auto; }

/* =====================================================================
   COMPARISON TABLE — Full width, highlighted column
   ===================================================================== */
.tbl-wrap {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
}
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.tbl th {
    padding: 16px 24px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 640;
    color: var(--gray-500);
    background: var(--white);
    border-bottom: 2px solid var(--gray-200);
}
.tbl th:first-child { text-align: left; }
.tbl th.hl {
    color: var(--white);
    font-weight: 700;
    background: var(--accent);
}
.tbl td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-500);
    text-align: center;
}
.tbl td:first-child { text-align: left; color: var(--gray-700); font-weight: 520; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--gray-50); }
.tbl td.hl {
    color: var(--black);
    font-weight: 640;
    background: rgba(99,91,255,0.03);
}
.tbl tr:hover td.hl { background: rgba(99,91,255,0.06); }
.tbl .yes { color: var(--accent); font-size: 1.05em; }
.tbl .no { color: var(--gray-300); }

/* =====================================================================
   CATALOGUE SHOWCASE — Visual card + feature list
   ===================================================================== */
.catalogue-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.catalogue-visual {
    display: flex;
    justify-content: center;
}

/* Catalogue mock card */
.catalogue-card {
    width: 100%;
    max-width: 480px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow:
        0 12px 40px rgba(0,0,0,0.06),
        0 2px 8px rgba(0,0,0,0.03);
}
.catalogue-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 640;
}
.catalogue-card-header i {
    font-size: 0.95rem;
}
.catalogue-card-body {
    padding: 6px 0;
}

/* Catalogue rows */
.catalogue-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}
.catalogue-row:last-child { border-bottom: none; }
.catalogue-row:hover { background: var(--gray-50); }

.catalogue-thumb {
    width: 56px;
    height: 36px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-100) 100%);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.catalogue-thumb::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Pro';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: var(--gray-400);
}

.catalogue-meta {
    flex: 1;
    min-width: 0;
}
.catalogue-title-line {
    height: 10px;
    background: var(--gray-200);
    border-radius: 3px;
    width: 80%;
    margin-bottom: 6px;
}
.catalogue-row:nth-child(2) .catalogue-title-line { width: 65%; }
.catalogue-row:nth-child(3) .catalogue-title-line { width: 90%; }
.catalogue-row:nth-child(4) .catalogue-title-line { width: 72%; }

.catalogue-tags {
    display: flex;
    gap: 4px;
}
.catalogue-tags span {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-100);
}
.catalogue-tags span:nth-child(1) { width: 32px; }
.catalogue-tags span:nth-child(2) { width: 24px; }
.catalogue-tags span:nth-child(3) { width: 28px; }
.catalogue-tags span:nth-child(4) { width: 20px; }

/* Import button */
.catalogue-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 620;
    font-family: inherit;
    color: var(--accent);
    background: rgba(99,91,255,0.08);
    border: 1px solid rgba(99,91,255,0.15);
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    flex-shrink: 0;
}
.catalogue-btn:hover {
    background: rgba(99,91,255,0.14);
    border-color: rgba(99,91,255,0.3);
}

/* Importing state */
.catalogue-row.is-importing {
    background: rgba(99,91,255,0.02);
}
.catalogue-status {
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

/* Done state */
.catalogue-row.is-done {
    background: rgba(22,163,74,0.03);
}
.catalogue-row.is-done .catalogue-thumb {
    background: linear-gradient(135deg, rgba(22,163,74,0.15), rgba(22,163,74,0.08));
}
.catalogue-row.is-done .catalogue-thumb::after {
    color: var(--green);
}
.catalogue-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* Catalogue feature list */
.catalogue-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.catalogue-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.catalogue-feat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(99,91,255,0.07);
    border-bottom: 2px solid rgba(99,91,255,0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.catalogue-feat h3 {
    font-size: 0.95rem;
    font-weight: 640;
    color: var(--black);
    margin-bottom: 4px;
}
.catalogue-feat p {
    font-size: 0.86rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* =====================================================================
   FEATURE BLOCKS (alternating text + visual)
   ===================================================================== */
.fb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 56px 0;
}
.fb + .fb { border-top: 1px solid var(--gray-100); }
.fb.flip .fb-text { order: 2; }
.fb.flip .fb-media { order: 1; }

.fb-text h3 {
    font-size: 1.4rem;
    font-weight: 720;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 14px;
    line-height: 1.2;
}
.fb-text p {
    font-size: 0.94rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 18px;
}
.fb-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--gray-600);
}
.fb-list li::before {
    content: '\2713';
    color: var(--accent);
    flex-shrink: 0;
    font-weight: 700;
}

.fb-media {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    aspect-ratio: 3/2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.fb-media img { width: 100%; height: 100%; object-fit: cover; }
.fb-ph {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.82rem;
}
.fb-ph i { font-size: 2rem; display: block; margin-bottom: 8px; color: var(--accent-light); }

/* =====================================================================
   STEPS
   ===================================================================== */
.steps { counter-reset: s; }
.step {
    counter-increment: s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
}
.step + .step { border-top: 1px solid var(--gray-200); }
.sec-dark .step + .step { border-top-color: var(--gray-800); }
.step-n {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--accent);
    border-bottom: 2px solid var(--accent-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(99,91,255,0.15);
}
.step-n::before { content: counter(s); }
.sec-dark .step-n { background: var(--accent-light); color: var(--white); }
.step h4 {
    font-size: 0.95rem;
    font-weight: 640;
    color: var(--black);
    margin-bottom: 4px;
}
.sec-dark .step h4 { color: var(--white); }
.step p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.55;
}

/* =====================================================================
   DOWNLOAD CARD
   ===================================================================== */
.dl-hero {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 56px;
    align-items: start;
    padding: 64px 0 48px;
}
.dl-info h2 {
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: 12px;
}
.dl-info p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 8px;
}
.dl-info ul {
    margin-top: 16px;
    list-style: none;
}
.dl-info li {
    padding: 5px 0;
    font-size: 0.88rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dl-info li i { color: var(--accent); font-size: 0.8rem; }

.dl-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.03);
}
.dl-box .tag {
    display: inline-block;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--gray-500);
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 3px 10px;
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.dl-box h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 6px;
}
.dl-box .meta {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-bottom: 20px;
}
.dl-box .meta span + span::before { content: ' · '; color: var(--gray-400); }
.dl-box .btn { width: 100%; }
.dl-box .note {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 12px;
}

/* Requirements row */
.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.req-item {
    background: var(--white);
    padding: 28px 24px;
    text-align: center;
}
.req-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}
.req-item h4 { font-size: 0.95rem; font-weight: 640; color: var(--black); margin-bottom: 4px; }
.req-item p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.5; }

/* Add-on row */
.addon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 640px;
    margin: 0 auto;
}
.addon {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.addon .tag {
    display: inline-block;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.72rem;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.addon h4 { font-size: 1rem; font-weight: 640; color: var(--black); margin-bottom: 6px; }
.addon p { font-size: 0.84rem; color: var(--gray-500); line-height: 1.5; margin-bottom: 16px; }

/* Coming soon */
.soon {
    border: 1px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.soon h3 { font-size: 1rem; font-weight: 640; color: var(--gray-600); margin-bottom: 6px; }
.soon p { font-size: 0.86rem; color: var(--gray-500); line-height: 1.55; }

/* =====================================================================
   CTA BANNER
   ===================================================================== */
.cta {
    background:
        radial-gradient(ellipse at 25% 0%, rgba(99,91,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 100%, rgba(79,70,229,0.05) 0%, transparent 50%),
        radial-gradient(circle, rgba(0,0,0,0.03) 0.6px, transparent 0.6px),
        linear-gradient(180deg, var(--gray-50) 0%, rgba(99,91,255,0.04) 100%);
    background-size: 100% 100%, 100% 100%, 20px 20px, 100% 100%;
    border-top: 1px solid var(--gray-200);
    color: var(--black);
    text-align: center;
    padding: 72px 32px;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 350px;
    background: radial-gradient(ellipse, rgba(99,91,255,0.08) 0%, transparent 55%);
    pointer-events: none;
}
.cta h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 750;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: 10px;
}
.cta p {
    font-size: 0.92rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================================================================
   FEATURES PAGE — Two-column alternating rows
   ===================================================================== */
.feat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feat-row.flip .feat-text { order: 2; }
.feat-row.flip .feat-visual { order: 1; }

.feat-text .eyebrow {
    font-size: 0.72rem;
    font-weight: 680;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}
.feat-text .eyebrow i {
    margin-right: 6px;
    font-size: 0.9em;
}
.feat-text h2 {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 14px;
}
.feat-text p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.65;
    margin-bottom: 20px;
}
.feat-list {
    list-style: none;
}
.feat-list li {
    padding: 6px 0;
    font-size: 0.86rem;
    color: var(--gray-600);
    line-height: 1.5;
    border-bottom: 1px solid var(--gray-100);
}
.feat-list li:last-child { border-bottom: none; }
.feat-list li strong {
    color: var(--black);
    font-weight: 600;
}
.sec-alt .feat-list li { border-bottom-color: var(--gray-200); }

/* Formula highlight */
.feat-formula {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.feat-formula code {
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

/* Stat cards (right side) */
.feat-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.feat-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.feat-stat:hover {
    border-color: var(--gray-200);
    border-left-color: var(--accent-dark);
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}
.sec-alt .feat-stat { background: var(--white); }
.feat-stat-val {
    font-size: 1.5rem;
    font-weight: 780;
    letter-spacing: -0.02em;
    color: var(--accent);
    min-width: 64px;
}
.feat-stat-lbl {
    font-size: 0.86rem;
    color: var(--gray-500);
    font-weight: 480;
}

/* Code block visual (right side) */
.feat-code {
    background: var(--gray-950);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
}
.feat-code-bar {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--gray-800);
}
.feat-code-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.feat-code-bar span:nth-child(1) { background: #ff5f57; }
.feat-code-bar span:nth-child(2) { background: #febc2e; }
.feat-code-bar span:nth-child(3) { background: #28c840; }
.feat-code-body {
    padding: 16px 20px;
    color: var(--gray-400);
}
.feat-code-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fc-key { color: #c084fc; }
.fc-str { color: #4ade80; }
.fc-num { color: #fbbf24; }
.fc-fn { color: #60a5fa; }
.fc-tag { color: #f87171; }
.fc-attr { color: #fbbf24; }
.fc-dim { color: var(--gray-700); }
.fc-ok { color: #4ade80; }

/* Language tags (multilingual section) */
.feat-langs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.feat-lang {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 520;
    color: var(--gray-700);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.feat-lang:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 3px 12px rgba(99,91,255,0.1);
    transform: translateY(-1px);
}
.feat-lang-rtl { direction: rtl; }
.feat-lang-more {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    font-weight: 640;
}
.feat-lang-more:hover { color: var(--white); background: var(--accent-dark); border-color: var(--accent-dark); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    border-top: 1px solid var(--gray-200);
    padding: 40px 0 0;
    background: var(--white);
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.foot-logo img { height: 20px; width: auto; }
.foot-brand p {
    font-size: 0.84rem;
    color: var(--gray-500);
    line-height: 1.55;
    max-width: 250px;
    margin-top: 10px;
}
.foot-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 12px;
}
.foot-col a {
    display: block;
    font-size: 0.84rem;
    color: var(--gray-600);
    padding: 3px 0;
    transition: color 0.15s;
}
.foot-col a:hover { color: var(--accent); text-decoration: none; }
.foot-col .muted {
    display: block;
    font-size: 0.82rem;
    color: var(--gray-400);
    font-style: italic;
    padding: 3px 0;
}
.foot-bottom {
    border-top: 1px solid var(--gray-200);
    padding: 16px 0;
    font-size: 0.76rem;
    color: var(--gray-400);
    text-align: center;
}

/* =====================================================================
   FORMS (login / register)
   ===================================================================== */
.form { margin-top: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.9rem; color: var(--black); }
.form-group small { font-weight: 400; color: var(--gray-400); }
.form-group input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color 0.15s;
    color: var(--black);
}
.form-group input:focus { outline: none; border-color: var(--gray-700); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.alert { padding: 0.8rem 1rem; border-radius: var(--radius); font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: var(--red); border: 1px solid #fecaca; }

/* Legacy pricing compat */
.pricing-card { text-align: center; border: 1px solid var(--gray-200); background: var(--white); padding: 2rem; border-radius: var(--radius-lg); }
.price { font-size: 2.5rem; font-weight: 800; margin: 1rem 0; color: var(--black); }
.price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }

.text-center { text-align: center; }
.mt-1 { margin-top: 1.5rem; }

/* =====================================================================
   AUTH MODAL
   ===================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}
.modal {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 0;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.04);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}
.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}
.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    z-index: 1;
}
.modal-close:hover { color: var(--gray-700); background: var(--gray-100); }

/* Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-200);
}
.modal-tab {
    flex: 1;
    padding: 16px 0;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.modal-tab:hover { color: var(--gray-700); }
.modal-tab.is-active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Panes */
.modal-pane {
    display: none;
    padding: 28px 32px 32px;
}
.modal-pane.is-active { display: block; }

/* Fields */
.modal-field {
    margin-bottom: 18px;
}
.modal-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}
.modal-hint {
    font-weight: 400;
    color: var(--gray-500);
}
.modal-field input {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--gray-900);
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-field input::placeholder { color: var(--gray-400); }
.modal-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(99,91,255,0.12);
}
.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Submit */
.modal-submit {
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    font-size: 0.92rem;
}

/* Alert */
.modal-alert {
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    margin-bottom: 18px;
}
.modal-alert.is-success {
    color: #15803d;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

/* Bonus line */
.modal-bonus {
    text-align: center;
    font-size: 0.78rem;
    color: var(--accent);
    margin-top: 16px;
    font-weight: 520;
}
.modal-bonus i { margin-right: 4px; }

/* Forgot password link */
.modal-forgot {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: -10px;
    margin-bottom: 14px;
    cursor: pointer;
}
.modal-forgot:hover { color: var(--accent-dark); text-decoration: underline; }

/* Separator */
.modal-or {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gray-400);
    margin: 16px 0;
    position: relative;
}
.modal-or::before,
.modal-or::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 24px);
    height: 1px;
    background: var(--gray-200);
}
.modal-or::before { left: 0; }
.modal-or::after { right: 0; }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.vis {
    opacity: 1;
    transform: none;
}
.stagger > .reveal:nth-child(2) { transition-delay: 60ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 120ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 180ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 240ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 300ms; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
    .hero-split-inner { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-top: 64px; padding-bottom: 56px; }
    .hero-content { max-width: 100%; }
    .devices { min-height: 320px; max-width: 500px; margin: 0 auto; }
    .dev-desktop { max-width: 440px; }
    .dev-tablet { width: 38%; right: 0; }
    .dev-phone { width: 20%; right: 2%; }
    .fblocks { grid-template-columns: 1fr 1fr; }
    .fb { grid-template-columns: 1fr; gap: 40px; }
    .fb.flip .fb-text { order: 1; }
    .fb.flip .fb-media { order: 2; }
    .feat-row { grid-template-columns: 1fr; gap: 40px; }
    .feat-row.flip .feat-text { order: 1; }
    .feat-row.flip .feat-visual { order: 2; }
    .dl-hero { grid-template-columns: 1fr; gap: 40px; }
    .dl-box { max-width: 360px; }
}

@media (max-width: 768px) {
    .w, .w-wide, .w-narrow { padding: 0 20px; }
    .header-inner { padding: 0 20px; }

    .topbar { display: none; }

    .hamburger { display: block; }
    .header-nav {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 1px solid var(--gray-200);
        z-index: 199;
    }
    .header-nav.open { display: flex; }
    .header-nav a { padding: 14px 0; font-size: 0.95rem; border-bottom: 1px solid var(--gray-100); width: 100%; color: var(--gray-700); }
    .header-nav .gh { padding: 14px 0; font-size: 1.3rem; color: var(--gray-500); }
    .header-cta { margin-top: 8px; width: 100%; justify-content: center; padding: 11px 18px; font-size: 0.88rem; }
    .header-mobile-auth {
        display: flex;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--gray-200);
    }
    .header-mobile-auth a {
        flex: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 10px;
        font-size: 0.85rem;
        color: var(--gray-600);
        border: 1px solid var(--gray-300);
        border-radius: 6px;
        border-bottom: none;
    }
    .header-mobile-auth a:hover { color: var(--accent); border-color: var(--accent); }

    .sec { padding: 56px 0; }
    .sec-sm { padding: 40px 0; }

    .hero-float-icons, .hero-geo { display: none; }
    .hero-split-inner { padding-top: 40px; padding-bottom: 32px; }
    .hero-page { padding: 40px 20px 32px; }
    .devices { min-height: 260px; }
    .dev-tablet { width: 36%; }
    .dev-phone { width: 18%; }

    .metrics { grid-template-columns: repeat(3, 1fr); }
    .metric:nth-child(4), .metric:nth-child(5) { border-top: 1px solid var(--gray-200); }

    .fblocks { grid-template-columns: 1fr; }
    .fblock:nth-child(odd) { border-right: none; }
    .fblock { padding: 28px 20px; }

    .bento { grid-template-columns: 1fr; }
    .bento-item.wide { grid-column: span 1; }

    .catalogue-showcase { grid-template-columns: 1fr; gap: 36px; }
    .catalogue-card { max-width: 400px; margin: 0 auto; }

    .req-grid { grid-template-columns: 1fr; }
    .addon-grid { grid-template-columns: 1fr; max-width: 320px; }

    .btn-row { flex-direction: column; align-items: stretch; }
    .btn-row .btn { justify-content: center; }

    .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .foot-brand { grid-column: 1 / -1; }

    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .metrics { grid-template-columns: 1fr 1fr; }
    .metric:nth-child(3) { border-top: 1px solid var(--gray-200); }
    .metric:nth-child(odd) { border-right: 1px solid var(--gray-200); }
    .metric:nth-child(5) { grid-column: 1 / -1; border-right: none; }
    .foot-grid { grid-template-columns: 1fr; }
    .modal-pane { padding: 24px 20px 28px; }
    .modal-row { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   DOCUMENTATION (preserved)
   ===================================================================== */
.doc-hero {
    background: var(--black);
    color: var(--white);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 2px solid var(--gray-800);
}
.doc-hero .container-wide { text-align: center; }
.doc-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--white); }
.doc-hero h1 span { color: var(--gray-400); }
.doc-hero p { color: var(--gray-400); font-size: 1.05rem; }

.doc-wrap { background: var(--gray-50); min-height: calc(100vh - 200px); }
.doc-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
}

.doc-sidebar {
    background: var(--white);
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    position: sticky;
    top: 64px;
    align-self: start;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
}
.doc-sidebar ul { display: flex; flex-direction: column; }
.doc-sidebar a {
    display: block;
    padding: 0.45rem 1.5rem;
    color: var(--gray-700);
    font-size: 0.84rem;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.doc-sidebar a:hover {
    color: var(--black);
    background: var(--gray-50);
    border-left-color: var(--black);
    text-decoration: none;
}
.doc-nav-group { padding: 0.3rem 0; }
.doc-nav-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--gray-400); padding: 1.2rem 1.5rem 0.4rem;
}
.doc-nav-label:first-child { padding-top: 0; }

.doc-content { padding: 2.5rem 3rem 4rem; max-width: 860px; }
.doc-content h2 {
    font-size: 1.5rem; font-weight: 800; color: var(--gray-900);
    margin: 3rem 0 1rem; padding-top: 2rem;
    border-top: 1px solid var(--gray-200); scroll-margin-top: 80px;
}
.doc-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.doc-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 1.8rem 0 0.6rem; scroll-margin-top: 80px; }
.doc-content h4 { font-size: 0.95rem; font-weight: 700; margin: 1.3rem 0 0.4rem; color: var(--gray-700); }
.doc-content p { margin-bottom: 0.9rem; color: var(--gray-700); font-size: 0.92rem; line-height: 1.75; }
.doc-content > ul, .doc-content > ol { margin: 0 0 1rem 1.25rem; }
.doc-content ul { list-style: disc; }
.doc-content ol { list-style: decimal; }
.doc-content li { margin-bottom: 0.35rem; color: var(--gray-700); font-size: 0.92rem; line-height: 1.6; }

.doc-content code {
    background: #e8edf4; padding: 0.15rem 0.45rem; border-radius: 4px;
    font-size: 0.82rem; font-family: 'SF Mono', Consolas, 'Liberation Mono', monospace;
    color: var(--gray-800); font-weight: 500;
}
.doc-content pre {
    background: var(--black); color: #cbd5e1;
    padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
    overflow-x: auto; margin-bottom: 1.5rem;
    font-size: 0.82rem; line-height: 1.7; border: 1px solid var(--gray-800);
}
.doc-content pre code { background: none; padding: 0; color: inherit; font-size: inherit; font-weight: 400; }

.doc-content table {
    width: 100%; border-collapse: collapse; margin-bottom: 1.5rem;
    font-size: 0.85rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-200);
}
.doc-content th { background: var(--gray-900); color: var(--white); font-weight: 600; padding: 0.65rem 1rem; text-align: left; font-size: 0.82rem; }
.doc-content td { padding: 0.6rem 1rem; border-top: 1px solid var(--gray-200); vertical-align: top; }
.doc-content tr:nth-child(even) td { background: var(--gray-50); }
.doc-content td code { font-size: 0.78rem; white-space: nowrap; }

.doc-note {
    display: flex; gap: 0.75rem; background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.doc-note::before {
    content: '\2139'; flex-shrink: 0; width: 24px; height: 24px;
    background: #2563eb; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; margin-top: 1px;
}
.doc-note p { margin: 0; font-size: 0.88rem; color: var(--gray-900); line-height: 1.6; }

.doc-warn {
    display: flex; gap: 0.75rem; background: #fef3c7; border: 1px solid #fcd34d;
    border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem;
}
.doc-warn::before {
    content: '!'; flex-shrink: 0; width: 24px; height: 24px;
    background: #d97706; color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800; margin-top: 1px;
}
.doc-warn p { margin: 0; font-size: 0.88rem; color: var(--gray-900); line-height: 1.6; }

.doc-tree {
    background: var(--black); color: #94a3b8;
    padding: 1.25rem 1.5rem; border-radius: var(--radius-lg);
    margin-bottom: 1.5rem; font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.82rem; line-height: 1.8; border: 1px solid var(--gray-800); overflow-x: auto;
}
.doc-tree .f { color: #93c5fd; }
.doc-tree .d { color: #fbbf24; font-weight: 600; }
.doc-tree .c { color: #64748b; }
.doc-tree .r { color: #34d399; font-weight: 600; }

@media (max-width: 768px) {
    .doc-layout { grid-template-columns: 1fr; }
    .doc-sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--gray-200); padding: 1rem 0; }
    .doc-sidebar ul { flex-direction: row; flex-wrap: wrap; padding: 0 1rem; }
    .doc-nav-label { display: none; }
    .doc-sidebar a { padding: 0.35rem 0.7rem; font-size: 0.8rem; border-left: none; border-radius: 4px; }
    .doc-sidebar a:hover { border-left-color: transparent; }
    .doc-content { padding: 1.5rem 1.25rem 3rem; }
    .doc-content pre { font-size: 0.78rem; padding: 1rem; }
    .doc-content table { font-size: 0.8rem; }
    .doc-content th, .doc-content td { padding: 0.5rem 0.6rem; }
    .doc-hero h1 { font-size: 1.6rem; }
    .doc-hero { padding: 2.5rem 0 2rem; }
}
