/* ALLStudio — Developer Dark */
:root {
    --bg: #121212;
    --bg-2: #1e1e24;
    --surface: #1a1a1f;
    --surface-2: #232329;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #ffffff;
    --text-2: #a0a0a5;
    --text-3: #6b6b72;
    --grad: linear-gradient(45deg, #ff3b00 0%, #e31a38 50%, #9c0042 100%);
    --accent: #e31a38;
    --radius: 6px;
    --font-head: "Outfit", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
    --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

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

body {
    background: var(--bg);
    color: var(--text-2);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--text); font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: var(--font-mono); }
code { font-size: 0.88em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.muted { color: var(--text-3); }
.small { font-size: 0.8rem; }
::selection { background: rgba(227, 26, 56, 0.35); color: #fff; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px;
    font: 600 0.92rem/1 var(--font-body);
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 120ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), box-shadow 150ms var(--ease);
    will-change: transform;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.85rem; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 59, 0, 0.4), 0 8px 24px -8px rgba(227, 26, 56, 0.6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: rgba(227, 26, 56, 0.6); background: rgba(227, 26, 56, 0.06); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid #ff3b00; outline-offset: 2px; }

/* Chevron motif */
.chev {
    display: inline-block; width: 7px; height: 7px;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg); margin-left: 2px;
    transition: transform 150ms var(--ease);
}
.btn:hover .chev { transform: translateX(3px) rotate(45deg); }

/* Nav */
.nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 1.1rem var(--font-head); letter-spacing: -0.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; margin-right: auto; }
.nav-links a { font-size: 0.9rem; color: var(--text-2); transition: color 150ms var(--ease); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) {
    .nav-row { gap: 16px; }
    .nav-links { gap: 16px; }
    .nav-links a:nth-child(3) { display: none; }
}

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 40%, #000 20%, transparent 75%);
    opacity: 0.6;
}
.hero-bg::after {
    content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%;
    background: radial-gradient(closest-side, rgba(227, 26, 56, 0.16), transparent);
}
.hero-inner { position: relative; padding: 120px 24px 112px; }
.eyebrow { font-size: 0.82rem; color: var(--text-3); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; margin-bottom: 20px; }
.lead { font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .hero-inner { padding: 72px 16px 64px; } }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: 1.5rem; }

/* Device mockup */
.device { display: flex; justify-content: center; }
.phone {
    width: 280px; max-width: 100%; aspect-ratio: 9 / 18.5;
    background: #0a0a0c; border: 1px solid var(--line-strong); border-radius: 34px;
    padding: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px #18181c;
}
.screen {
    height: 100%; border-radius: 26px; overflow: hidden;
    background: linear-gradient(180deg, #101014 0%, #0c0c0f 100%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.term { padding: 36px 16px 0; font-size: 0.7rem; line-height: 1.8; color: #d4d4d8; }
.t-acc { color: #ff5a3c; }
.caret { display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -2px; background: #e31a38; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.kb { background: #16161b; border-top: 1px solid var(--line); padding: 8px 5px 14px; display: grid; gap: 5px; }
.kb-row { display: flex; gap: 4px; }
.kb-row.pad { padding: 0 4.5%; }
.kb-row i {
    flex: 1 1 0; height: 30px; display: grid; place-items: center;
    font: 500 0.66rem var(--font-mono); font-style: normal; color: #e4e4e7;
    background: #24242b; border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 4px;
}
.kb-row:first-child i { height: 24px; font-size: 0.56rem; color: #a0a0a5; background: #1d1d23; }
.kb-row i.w15 { flex-grow: 1.5; }
.kb-row i.w5 { flex-grow: 5; }
.kb-row i.hot { background: var(--grad); color: #fff; border-color: transparent; }

/* Footer */
.footer { padding: 32px 0; font-size: 0.85rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-2); transition: color 150ms var(--ease); }
.footer-links a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Nav without CTA */
.nav-links { margin-left: auto; margin-right: 0; }
@media (max-width: 640px) { .nav-links a:nth-child(3) { display: inline; } }

/* Hero product index */
.hero-inner { padding-bottom: 96px; }
.hero h1 { margin-bottom: 16px; }
.lead { margin-bottom: 40px; }
.product-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 26, 31, 0.7); }
.pi { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--text); font-weight: 600; font-size: 0.95rem; transition: background-color 150ms var(--ease); min-width: 0; }
.pi + .pi { border-left: 1px solid var(--line); }
.pi img { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.pi em { font-style: normal; font-size: 0.78rem; color: var(--text-3); font-family: var(--font-mono); margin-left: auto; white-space: nowrap; }
.pi .chev { color: var(--text-3); flex: none; }
.pi:hover { background: rgba(227, 26, 56, 0.06); }
.pi:hover .chev { color: #ff3b00; transform: translateX(3px) rotate(45deg); }
@media (max-width: 760px) {
    .product-index { grid-template-columns: 1fr; }
    .pi + .pi { border-left: 0; border-top: 1px solid var(--line); }
}

/* Product icons */
.icon-luvio, .icon-tabcraft { position: relative; display: inline-block; width: 56px; height: 56px; border-radius: 14px; flex: none; }
.icon-luvio.sm, .icon-tabcraft.sm { width: 28px; height: 28px; border-radius: 7px; }
.icon-luvio { background: linear-gradient(145deg, #1e3a8a, #0b1640); border: 1px solid rgba(96, 165, 250, 0.35); }
.icon-luvio::before {
    content: ""; position: absolute; inset: 24%;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20.5 7v10L12 21.5 3.5 17V7z'/%3E%3Cpath d='M3.5 7 12 11.5 20.5 7M12 11.5v10'/%3E%3C/svg%3E");
}
.icon-tabcraft { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }
.icon-tabcraft::before { content: ""; position: absolute; left: 20%; right: 20%; top: 24%; bottom: 24%; background: #fff; border-radius: 4px; }
.icon-tabcraft::after { content: ""; position: absolute; left: 20%; right: 20%; top: 24%; height: 16%; background: #111827; border-radius: 4px 4px 0 0; }
.icon-tabcraft.sm::before, .icon-tabcraft.sm::after { border-radius: 2px; }

/* Product rows */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product.reverse .product-copy { order: 2; }
.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; border: 1px solid var(--line-strong); }
.product h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.platform { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.pitch { max-width: 500px; margin-bottom: 20px; font-size: 1.02rem; }
.specs { list-style: none; display: grid; gap: 8px; margin-bottom: 32px; }
.specs li { position: relative; padding-left: 20px; font-size: 0.93rem; }
.specs li::before {
    content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px;
    border-top: 2px solid #ff3b00; border-right: 2px solid #e31a38; transform: rotate(45deg);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-link { background: none; color: var(--text-2); padding: 0 8px; }
.btn-link:hover { color: #fff; }
@media (max-width: 860px) {
    .product { grid-template-columns: 1fr; gap: 40px; }
    .product.reverse .product-copy { order: 0; }
}

/* Browser mockups */
.browser { position: relative; background: #0d0d10; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #16161b; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c33; }
.browser-bar span { margin-left: 10px; font-size: 0.72rem; color: var(--text-3); }
.vault { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 300px; }
.vault-side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vs-search { font-size: 0.7rem; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; margin-bottom: 4px; }
.vs-item { padding: 8px; border-radius: 4px; display: flex; flex-direction: column; min-width: 0; }
.vs-item b { font-size: 0.74rem; color: #e4e4e7; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-item span { font-size: 0.66rem; color: var(--text-3); }
.vs-item.active { background: rgba(59, 130, 246, 0.12); box-shadow: inset 2px 0 0 #3b82f6; }
.vault-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vm-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vm-top b { font-size: 0.8rem; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-btn { font-size: 0.64rem; color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.35); border-radius: 4px; padding: 3px 6px; white-space: nowrap; }
.bubble { font-size: 0.72rem; line-height: 1.5; padding: 8px 10px; border-radius: 6px; color: #d4d4d8; }
.bubble.you { align-self: flex-end; max-width: 85%; background: #232329; }
.bubble.ai { background: #16161b; border: 1px solid var(--line); }
.bubble pre { margin-top: 6px; font-size: 0.66rem; color: #a7f3d0; white-space: pre; overflow: hidden; }
.rec-dot { position: absolute; right: 14px; bottom: 14px; width: 30px; height: 30px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.18); }
.rec-dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #dcfce7; }
@media (max-width: 480px) { .vault { grid-template-columns: 1fr; } .vault-side { display: none; } }

.browser.tc { background: #0f0f13; }
.tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #16161b; border-bottom: 1px solid var(--line); overflow: hidden; }
.tab { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 0.72rem; color: var(--text-3); border-radius: 6px 6px 0 0; white-space: nowrap; }
.tab.active { background: #0f0f13; color: #fff; box-shadow: inset 0 2px 0 #7c3aed; }
.fav, .tc-icons i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; font-size: 0.56rem; font-style: normal; color: #fff; font-weight: 700; }
.tc-body { padding: 20px; min-height: 280px; display: flex; justify-content: flex-end; background: linear-gradient(180deg, rgba(124, 58, 237, 0.10), transparent 60%); }
.tc-panel { width: 100%; max-width: 280px; background: #1a1a1f; border: 1px solid var(--line-strong); border-radius: 6px; padding: 6px 14px; }
.tc-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 0.76rem; color: #d4d4d8; }
.tc-row + .tc-row { border-top: 1px solid var(--line); }
.tc-icons { display: flex; gap: 6px; }
.tc-icons i { width: 22px; height: 22px; font-size: 0.7rem; border-radius: 6px; }
.tc-icons i:first-child { box-shadow: 0 0 0 2px #1a1a1f, 0 0 0 3px #a78bfa; }
.tc-swatch { width: 44px; height: 18px; border-radius: 4px; background: linear-gradient(90deg, #7c3aed, #4f46e5); }
.tc-toggle { width: 30px; height: 17px; border-radius: 999px; background: #2c2c33; position: relative; }
.tc-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #a0a0a5; }
.tc-toggle.on { background: var(--grad); }
.tc-toggle.on::after { left: 15px; background: #fff; }

/* Studio page sections */
.eyebrow { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 820px; margin: 0 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(26, 26, 31, 0.7); }
.stats > div { padding: 18px 20px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.stats dd { font-size: 0.85rem; color: var(--text-3); margin-top: 4px; }
@media (max-width: 640px) {
    .stats { grid-template-columns: 1fr; }
    .stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
.section-intro { padding-bottom: 0; border-bottom: 0; }
.section-intro .section-head { margin-bottom: 0; }

.studio-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.studio-lead { font-size: 1.1rem; color: var(--text-2); line-height: 1.7; }
.pillars { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.pillar { padding: 22px 24px; }
.pillar + .pillar { border-top: 1px solid var(--line); }
.pillar .idx { display: block; font-size: 0.75rem; color: #e31a38; margin-bottom: 8px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pillar p { font-size: 0.93rem; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; gap: 28px; } }

.contact { background: linear-gradient(120deg, rgba(255, 59, 0, 0.08), rgba(156, 0, 66, 0.10)); }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
