/* =========================================================================
   Asian IT Solutions — design system
   Dark, premium agency look. Hand-crafted, dependency-free.
   ========================================================================= */

:root {
    --bg: #09090f;
    --bg-2: #0c0c15;
    --surface: #14141f;
    --surface-2: #1a1a28;
    --border: rgba(255, 255, 255, .08);
    --border-2: rgba(255, 255, 255, .16);

    --text: #ececf5;
    --muted: #a4a4be;
    --faint: #8a8aa6; /* ~5.8:1 on --bg for WCAG AA small text */

    --primary: #8b5cf6;
    --primary-2: #6366f1;
    --cyan: #22d3ee;
    --pink: #ec4899;
    --amber: #f59e0b;
    --green: #34d399;

    --grad: linear-gradient(120deg, #a78bfa, #818cf8 42%, #22d3ee);
    --grad-2: linear-gradient(120deg, #8b5cf6, #ec4899);
    --grad-soft: linear-gradient(150deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .10));

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 26px;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-glow: 0 0 0 1px var(--border), 0 30px 60px -30px rgba(99, 102, 241, .55);

    --maxw: 1180px;
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* z-index scale (avoid arbitrary values) */
    --z-header: 100;
    --z-top: 300;
    --z-overlay: 1500;
    --z-toast: 2000;
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Signature signal line across the very top edge. */
body::after {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--grad);
    z-index: var(--z-top);
}
[id] { scroll-margin-top: 92px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Ambient background glow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, .18), transparent 70%),
        radial-gradient(50% 45% at 90% 5%, rgba(34, 211, 238, .12), transparent 70%),
        radial-gradient(60% 60% at 50% 110%, rgba(236, 72, 153, .10), transparent 70%);
    pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    margin: 0 0 .5em;
    letter-spacing: -.02em;
    font-weight: 600;
    text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1rem; color: var(--muted); text-wrap: pretty; }
.lead { text-wrap: pretty; }

::selection { background: rgba(139, 92, 246, .35); color: #fff; }

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Layout ------------------------------------------------------------ */
.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.center .lead { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--cyan);
    opacity: .7;
}
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    --bg-btn: var(--surface-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .98rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--border-2);
    background: var(--bg-btn);
    color: var(--text);
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
    will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary {
    background: var(--grad);
    border-color: transparent;
    color: #0a0a12;
    font-weight: 600;
    box-shadow: 0 12px 30px -12px rgba(99, 102, 241, .8);
}
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(99, 102, 241, .9); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .05); border-color: var(--border-2); }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }
.center .btn-row { justify-content: center; }

/* ---- Header / nav ------------------------------------------------------ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    backdrop-filter: blur(14px);
    background: rgba(9, 9, 15, .6);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}
.site-header.is-scrolled {
    background: rgba(9, 9, 15, .85);
    border-bottom-color: var(--border);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }
.brand .logo-mark { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--faint); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    padding: .55rem .85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: .95rem;
    font-weight: 500;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.is-active { color: var(--text); background: rgba(139, 92, 246, .16); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: "";
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1.5px); }

@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; }
    .nav-cta .btn:not(.nav-toggle) { display: none; }
    .nav-links {
        position: fixed;
        inset: 72px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
        padding: 1rem 1.25rem 1.5rem;
        background: rgba(12, 12, 21, .98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        visibility: hidden; /* keep closed menu out of the tab order + AT */
        transition: transform .35s var(--ease), visibility .35s var(--ease);
    }
    body.nav-open .nav-links { transform: translateY(0); visibility: visible; }
    .nav-links a { padding: .9rem 1rem; font-size: 1.05rem; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); text-align: center; position: relative; }
/* Signature engineering-grid motif behind the hero.
   Horizontal inset stays 0 so it never pushes the page wider than the
   viewport on mobile; the radial mask already fades it toward the edges. */
.hero::before {
    content: "";
    position: absolute;
    inset: -2rem 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 78%);
    mask-image: radial-gradient(60% 60% at 50% 35%, #000, transparent 78%);
    pointer-events: none;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { margin-inline: auto; margin-bottom: 2rem; }
.hero-pill {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .9rem .4rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    font-size: .85rem; color: var(--muted);
    margin-bottom: 1.6rem;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero-pill b { color: var(--text); font-weight: 600; }

.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 3rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--faint); font-size: .9rem; }

/* ---- Split hero with interactive demo preview ------------------------- */
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; text-align: left; }
.hero-grid .lead { margin-inline: 0; }
.hero-copy .hero-pill { margin-bottom: 1.4rem; }
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-grid .lead { margin-inline: auto; }
    .hero-copy .btn-row { justify-content: center; }
    .hero-preview { order: -1; max-width: 460px; margin-inline: auto; }
}

.hero-preview { perspective: 1400px; }
.preview-window {
    position: relative;
    border-radius: 18px;
    border: 1px solid var(--border-2);
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotateY(-4deg) rotateX(2deg);
    transition: transform .5s var(--ease);
}
.hero-preview:hover .preview-window { transform: none; }
.preview-chrome { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.preview-chrome .dots { display: flex; gap: 6px; }
.preview-chrome .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.preview-chrome .preview-url { margin-left: auto; font-size: .76rem; color: var(--faint); background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: .2rem .8rem; transition: color .4s; }
.preview-stage { position: relative; min-height: 312px; }
.preview-slide {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: .85rem;
    padding: 1.4rem; margin: 0; width: 100%;
    text-align: left; background: none; border: 0; color: inherit; font: inherit; cursor: pointer;
    opacity: 0; transform: translateY(10px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    pointer-events: none;
}
.preview-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.preview-slide:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: 14px; }
.pv-head { display: flex; align-items: center; gap: .75rem; }
.pv-emoji { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--accent) 24%, var(--surface-2)); border: 1px solid var(--border); }
.pv-emoji svg.ico { width: 24px; height: 24px; color: color-mix(in srgb, var(--accent) 62%, #fff); }
.pv-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.pv-tag { font-size: .82rem; color: var(--faint); }
.pv-mock { display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pv-bar { display: flex; align-items: center; gap: .5rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 999px; padding: .55rem .85rem; font-size: .82rem; color: var(--muted); }
.pv-bar svg.ico { width: 16px; height: 16px; color: var(--faint); flex: none; }
.pv-type::after { content: ""; display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: pv-caret 1s steps(1) infinite; }
@keyframes pv-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv-type::after { animation: none; } }
.pv-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.pv-chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .45rem .55rem; font-size: 1.25rem; line-height: 1; }
.pv-bubble { max-width: 82%; padding: .5rem .8rem; border-radius: 14px; font-size: .82rem; line-height: 1.4; }
.pv-bubble.bot { background: var(--surface-2); border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; }
.pv-bubble.user { background: color-mix(in srgb, var(--accent) 75%, var(--primary-2)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pv-line { height: 9px; border-radius: 999px; background: var(--surface-2); }
.pv-line.sm { width: 60%; }
.pv-line.accent { background: color-mix(in srgb, var(--accent) 55%, var(--surface-2)); width: 78%; height: 12px; }
.pv-slots { display: flex; gap: .45rem; flex-wrap: wrap; }
.pv-slot { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: .4rem .6rem; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.pv-slot.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); color: var(--text); }
.pv-cta { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: color-mix(in srgb, var(--accent) 75%, #fff); }
.preview-dots { display: flex; gap: .45rem; justify-content: center; padding: .85rem; border-top: 1px solid var(--border); }
.preview-dots button { width: 8px; height: 8px; min-height: 0; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .2); padding: 0; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.preview-dots button.is-on { width: 22px; background: var(--primary); }

/* ---- Clients marquee --------------------------------------------------- */
.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 1.1rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--muted); white-space: nowrap; }
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .65; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .preview-window { transform: none; }
}

/* ---- Cards & grids ----------------------------------------------------- */
.grid { display: grid; gap: 1.5rem; }
.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: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    position: relative;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
    overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .card-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    font-size: 1.7rem;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    margin-bottom: 1.1rem;
    color: var(--icon-color, #a5b4fc);
}
/* Consistent SVG icon family (replaces emoji as structural icons). */
.ico { display: inline-block; vertical-align: middle; flex: none; }
.card-icon svg.ico { width: 26px; height: 26px; }
.demo-thumb svg.ico { width: 46px; height: 46px; color: color-mix(in srgb, var(--accent, var(--primary)) 52%, #fff); }
.work-top svg.ico { width: 42px; height: 42px; color: color-mix(in srgb, var(--accent, var(--primary)) 55%, #fff); }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; margin-bottom: 1rem; }
.card .tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
    font-size: .78rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--muted);
}

.section-head { max-width: 56ch; margin-bottom: 3rem; }
.center .section-head { margin-inline: auto; }

/* ---- Process steps ----------------------------------------------------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute; left: 0; top: 0;
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 600;
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--grad-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

/* ---- Demo Lab cards ---------------------------------------------------- */
.demo-card { cursor: pointer; padding: 0; display: flex; flex-direction: column; }
.demo-card .demo-thumb {
    aspect-ratio: 16 / 10;
    display: grid; place-items: center;
    font-size: 3.4rem;
    position: relative;
    background: var(--accent-soft, var(--grad-soft));
    border-bottom: 1px solid var(--border);
}
.demo-card .demo-thumb .browser-dots { position: absolute; top: 12px; left: 14px; display: flex; gap: 6px; }
.demo-card .demo-thumb .browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.demo-card .demo-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.demo-card .demo-body h3 { display: flex; align-items: center; gap: .5rem; }
.demo-card .play {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    color: var(--text);
}
.demo-card .play svg { transition: transform .3s var(--ease); }
.demo-card:hover .play svg { transform: translateX(4px); }
.demo-card .badge-live {
    position: absolute; top: 12px; right: 14px;
    font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
    padding: .25rem .55rem; border-radius: 999px;
    background: rgba(52,211,153,.16); color: var(--green);
    border: 1px solid rgba(52,211,153,.3);
}

/* ---- Portfolio --------------------------------------------------------- */
.work-card { padding: 0; overflow: hidden; }
.work-card .work-top {
    aspect-ratio: 16 / 9;
    display: grid; place-items: center;
    font-size: 3rem;
    background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
}
.work-card .work-meta { padding: 1.3rem 1.4rem 1.5rem; }
.work-card .work-meta .row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .4rem; }
.work-card .metric { color: var(--green); font-weight: 600; font-size: .85rem; font-family: var(--font-display); }
.work-card .cat { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }

/* ---- Testimonials ------------------------------------------------------ */
.quote-card { padding: 1.8rem; }
.quote-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: .8rem; }
.quote-card blockquote { margin: 0 0 1.2rem; font-size: 1.08rem; color: var(--text); line-height: 1.55; }
.quote-card .who { display: flex; align-items: center; gap: .8rem; }
.quote-card .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; color: #fff; background: var(--grad-soft); border: 1px solid var(--border); }
.quote-card .who b { display: block; font-size: .95rem; }
.quote-card .who span { font-size: .82rem; color: var(--faint); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(34, 211, 238, .14));
    border: 1px solid var(--border-2);
    overflow: hidden;
}
.cta-band::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(50% 80% at 50% 0%, rgba(139, 92, 246, .35), transparent 70%);
}

/* ---- Forms ------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .4rem; font-weight: 500; }
.input, .field input, .field textarea, .field select {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font: inherit;
    font-size: .98rem;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .25);
}
.field select { appearance: none; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--faint); }

/* ---- Toast ------------------------------------------------------------- */
.toast-wrap { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: .6rem; align-items: center; pointer-events: none; }
.toast {
    background: var(--surface-2);
    border: 1px solid var(--border-2);
    border-radius: 999px;
    padding: .75rem 1.3rem;
    font-size: .92rem;
    box-shadow: var(--shadow);
    animation: toast-in .4s var(--ease);
}
.toast.is-ok { border-color: rgba(52, 211, 153, .4); }
.toast.is-err { border-color: rgba(248, 113, 113, .5); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---- Demo modal (browser-frame iframe) --------------------------------- */
.demo-modal {
    position: fixed; inset: 0; z-index: var(--z-overlay);
    display: none;
    place-items: center;
    padding: clamp(.5rem, 3vw, 2.5rem);
    background: rgba(5, 5, 9, .8);
    backdrop-filter: blur(8px);
}
.demo-modal.is-open { display: grid; animation: fade .3s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.demo-window {
    width: min(100%, 1100px);
    height: min(88vh, 760px);
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8);
    animation: pop .4s var(--ease);
}
@keyframes pop { from { transform: scale(.96) translateY(10px); opacity: 0; } }
.demo-chrome {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem 1rem;
    background: #1a1a28;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    flex: none;
}
.demo-chrome .dots { display: flex; gap: 7px; }
.demo-chrome .dots i { width: 12px; height: 12px; border-radius: 50%; }
.demo-chrome .dots i:nth-child(1) { background: #ff5f57; }
.demo-chrome .dots i:nth-child(2) { background: #febc2e; }
.demo-chrome .dots i:nth-child(3) { background: #28c840; }
.demo-chrome .url {
    flex: 1; text-align: center;
    font-size: .82rem; color: #a4a4be;
    background: #0c0c15; border-radius: 999px; padding: .35rem 1rem;
    font-family: var(--font-sans);
}
.demo-chrome .close {
    background: transparent; border: none; color: #a4a4be; cursor: pointer;
    font-size: 1.4rem; line-height: 1; border-radius: 8px;
    width: 40px; height: 40px; display: grid; place-items: center; flex: none;
}
.demo-chrome .close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.demo-window iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; margin-top: 2rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-family: var(--font-sans); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-grid a { color: var(--muted); font-size: .95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { font-size: .95rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--faint); font-size: .85rem; }

/* ---- Scroll reveal ----------------------------------------------------- */
/* Only hide content once JS is confirmed (html.js) — without JS everything
   stays visible (progressive enhancement, SEO + no-JS safe). */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .card { transition: none; }
}

/* ---- Bento features grid ----------------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; grid-auto-rows: minmax(158px, auto); }
.bento > * { margin: 0; }
.bento > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(5) { grid-column: span 2; }
.bento > :nth-child(6) { grid-column: span 2; }
.bento .card { height: 100%; display: flex; flex-direction: column; }
.bento .card.is-feature { justify-content: flex-start; background: linear-gradient(165deg, color-mix(in srgb, var(--primary) 18%, var(--surface)), var(--bg-2)); }
.bento .card.is-feature .card-icon { width: 64px; height: 64px; }
.bento .card.is-feature .card-icon svg.ico { width: 32px; height: 32px; }
.bento .card.is-feature h3 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.bento .card.is-feature .lead { margin-top: .3rem; }
@media (max-width: 760px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
}

/* ---- Packages / pricing ------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: start; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }
.plan { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; }
.plan.is-popular { border-color: var(--primary); box-shadow: var(--shadow-glow); }
.plan-badge { align-self: flex-start; background: var(--grad); color: #0a0a12; font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; }
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); font-variant-numeric: tabular-nums; line-height: 1; }
.plan-price small { font-size: .8rem; font-weight: 500; color: var(--faint); }
.plan-desc { font-size: .92rem; color: var(--muted); margin: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.plan ul li { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; color: var(--muted); }
.plan ul li svg.ico { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }

/* ---- FAQ accordion (native details) ------------------------------------ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .25s; }
.faq details[open] { border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.faq summary .chev { flex: none; color: var(--faint); transition: transform .25s var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq .faq-body p { margin: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary .chev, .faq details { transition: none; } }

/* ---- Misc -------------------------------------------------------------- */
.divider { height: 1px; background: var(--border); border: 0; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
