/* Your GenLab: AI agency by Sousa Dev
   Hand-written CSS, no framework. Dark, futuristic, accessible. */

:root {
    --bg: #05060b;
    --bg-2: #090c16;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(160, 175, 255, 0.13);
    --line-strong: rgba(160, 175, 255, 0.26);
    --text: #e9ecf7;
    --muted: #a3abc4;
    --dim: #7c84a0;

    --cyan: #67e8f9;
    --blue: #7aa2ff;
    --violet: #a78bfa;
    --pink: #f0abfc;
    --live: #34d399;
    --dev: #fbbf24;
    --sd-green: #0fa347;

    --grad: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 75%, var(--pink) 100%);
    --grad-btn: linear-gradient(110deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);

    --font-display: "Space Grotesk", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --container: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Faint noise-free vignette across the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 40%, rgba(34, 211, 238, 0.05), transparent 60%);
    z-index: -1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    --pad-y: 13px;
    --pad-x: 22px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: var(--pad-y) var(--pad-x);
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
    white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
    color: #fff;
    background: var(--grad-btn);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 10px 30px -10px rgba(99, 102, 241, 0.7), 0 0 40px -12px rgba(34, 211, 238, 0.6);
}
.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 14px 36px -10px rgba(99, 102, 241, 0.85), 0 0 50px -10px rgba(34, 211, 238, 0.75);
}

.btn--ghost {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line-strong);
    backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--cyan); background: var(--surface-2); }

.btn--sm { --pad-y: 9px; --pad-x: 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 36px; height: 36px; filter: drop-shadow(0 0 12px rgba(122, 162, 255, 0.45)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand__by {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
}
.brand__by::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--sd-green);
    box-shadow: 0 0 8px var(--sd-green);
    vertical-align: 1px;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    padding: 14px var(--gutter);
    transition: padding 0.3s var(--ease);
}
.nav__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 12px 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled .nav__inner {
    background: rgba(9, 12, 22, 0.72);
    border-color: var(--line);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    box-shadow: 0 10px 40px -20px rgba(0, 0, 0, 0.8);
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 15px;
    transition: color 0.2s, background 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.nav__toggle span {
    position: absolute;
    left: 13px; right: 13px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
    .nav__toggle { display: block; }
    .nav__inner { background: rgba(9, 12, 22, 0.72); border-color: var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
    .nav__links {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px;
        border-radius: var(--r-lg);
        border: 1px solid var(--line);
        background: #0a0d18;
        box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0.2s;
    }
    .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
    .nav__links a:not(.btn) { padding: 12px 14px; font-size: 16px; }
    .nav__cta { margin: 8px 0 0; }
    /* Without JS, keep the links reachable */
    .no-js .nav__links { position: static; opacity: 1; visibility: visible; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(120px, 16vw, 168px) 0 0;
}
.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.9;
}
.hero__glow {
    position: absolute;
    z-index: -2;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero__glow--a { width: 560px; height: 560px; top: -180px; right: -120px; background: rgba(99, 102, 241, 0.32); animation: drift 18s ease-in-out infinite alternate; }
.hero__glow--b { width: 460px; height: 460px; top: 160px; left: -200px; background: rgba(34, 211, 238, 0.18); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.1); } }

.hero__grid {
    position: absolute;
    left: -50%; right: -50%;
    bottom: 0;
    height: 46%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(122, 162, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 162, 255, 0.16) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(62deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
    animation: grid-move 6s linear infinite;
}
@keyframes grid-move { to { background-position: 0 64px; } }

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(9, 12, 22, 0.6);
    backdrop-filter: blur(10px);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.chip__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.chip__sep { color: var(--dim); }
.chip__by { padding: 10px 0; margin: -10px 0; display: inline-flex; align-items: center; gap: 6px; color: var(--text); transition: color 0.2s; }
.chip__by:hover { color: var(--cyan); }
.chip__by img { width: 14px; height: 14px; }

.hero__title {
    margin-top: 24px;
    font-size: clamp(42px, 6.6vw, 82px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.0;
}
.hero__lead {
    margin-top: 24px;
    max-width: 580px;
    font-size: clamp(17px, 1.6vw, 19px);
    color: var(--muted);
}
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    max-width: 600px;
}
.hero__facts > div { padding: 18px 16px 0 0; }
.hero__facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts dt { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.hero__facts dd { margin: 4px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }

/* Console */
.console {
    position: relative;
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(17, 22, 40, 0.85), rgba(9, 12, 22, 0.9));
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 60px -20px rgba(99, 102, 241, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 13px;
}
/* Animated gradient border */
.console::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 60%, var(--cyan), var(--violet), transparent 85%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin 6s linear infinite;
    pointer-events: none;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --angle: 360deg; } }

/* Scanline sweep */
.console::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(103, 232, 249, 0.06) 50%, transparent 58%);
    transform: translateY(-100%);
    animation: scan 5s linear infinite;
    pointer-events: none;
}
@keyframes scan { to { transform: translateY(100%); } }

.console__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--dim);
    font-size: 12px;
}
.console__dots { display: flex; gap: 6px; }
.console__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.console__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console__live { display: inline-flex; align-items: center; gap: 6px; color: var(--live); text-transform: uppercase; letter-spacing: 0.08em; }
.console__live span { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 8px var(--live); animation: pulse 1.4s ease-in-out infinite; }

.console__body { padding: 20px 20px 8px; }
.console__label { color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.console__prompt {
    margin-top: 8px;
    min-height: 3.4em;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
.console__caret { color: var(--cyan); }
.console__cursor {
    display: inline-block;
    width: 8px; height: 1.1em;
    margin-left: 2px;
    vertical-align: -3px;
    background: var(--cyan);
    animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.console__steps { margin-top: 16px; display: grid; gap: 10px; counter-reset: step; }
.console__steps li {
    position: relative;
    padding-left: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dim);
    transition: color 0.3s;
}
.console__steps li::before {
    content: "";
    position: absolute;
    left: 0; top: 4px;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.console__steps li.is-active { color: var(--text); }
.console__steps li.is-active::before {
    border-color: var(--cyan) transparent var(--cyan) var(--cyan);
    animation: rotate 0.8s linear infinite;
}
.console__steps li.is-done { color: var(--muted); }
.console__steps li.is-done::before {
    border-color: var(--live);
    background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2305060b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}
@keyframes rotate { to { transform: rotate(360deg); } }

.console__meter { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.console__meter-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad); transform-origin: left; animation: bar 3.2s var(--ease) infinite alternate; }
@keyframes bar { from { transform: scaleX(0.45); } }

.console__foot { padding: 10px 20px 14px; color: var(--dim); font-size: 12px; text-align: right; }

/* Marquee */
.marquee {
    margin-top: clamp(64px, 9vw, 112px);
    padding: 18px 0;
    border-block: 1px solid var(--line);
    background: rgba(9, 12, 22, 0.55);
    backdrop-filter: blur(8px);
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee 50s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
    flex: none;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}
.marquee__track li::before { content: "▸ "; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 960px) {
    .hero__inner { grid-template-columns: 1fr; }
    .console { max-width: 560px; }
}
@media (max-width: 520px) {
    .hero__facts { grid-template-columns: 1fr; }
    .hero__facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
    .hero__facts > div:first-child { padding-top: 18px; }
    .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 9vw, 112px) 0; }
.section--alt {
    background: linear-gradient(180deg, transparent, rgba(17, 22, 40, 0.5) 20%, rgba(17, 22, 40, 0.5) 80%, transparent);
}

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.section-head h2 { margin-top: 16px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 700; }
.section-head__lead { margin-top: 18px; color: var(--muted); font-size: 18px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
}
.eyebrow span { color: var(--cyan); }

/* Cards */
.card {
    position: relative;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Pointer-following spotlight, set by JS */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(122, 162, 255, 0.12), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--line-strong); }

.tags {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dim);
}

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { padding: 28px; display: flex; flex-direction: column; gap: 12px; min-height: 290px; }
.service:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -30px rgba(99, 102, 241, 0.45); }
.service__icon {
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--cyan);
    background: linear-gradient(140deg, rgba(103, 232, 249, 0.14), rgba(167, 139, 250, 0.14));
    border: 1px solid rgba(103, 232, 249, 0.25);
    box-shadow: 0 0 24px -6px rgba(103, 232, 249, 0.45);
}
.service__icon svg { width: 24px; height: 24px; }
.service__num { position: absolute; top: 26px; right: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.service h3 { margin-top: 8px; font-size: 22px; font-weight: 600; }
.service > p:not(.tags):not(.service__num) { color: var(--muted); flex: 1; }

@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Process */
.process {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    counter-reset: none;
}
.process::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 28px; right: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
    opacity: 0.35;
}
.process::after {
    content: "";
    position: absolute;
    top: 25px;
    left: 28px; right: 28px;
    height: 6px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent) no-repeat;
    background-size: 80px 100%;
    background-position: -80px 0;
    filter: blur(1px);
    animation: travel 4s var(--ease) infinite;
}
@keyframes travel { from { background-position: -80px 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { background-position: calc(100% + 80px) 0; opacity: 0; } }
.process__step { position: relative; padding-right: 8px; }
.process__node {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--cyan);
    box-shadow: 0 0 0 6px var(--bg), 0 0 30px -6px rgba(103, 232, 249, 0.5);
}
.process__step h3 { margin-top: 24px; font-size: 22px; font-weight: 600; }
.process__step p { margin-top: 10px; color: var(--muted); }
.process__step .process__out { font-family: var(--font-mono); font-size: 13px; color: var(--text); margin-top: 16px; }

@media (max-width: 900px) {
    .process { grid-template-columns: 1fr; gap: 0; }
    .process::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink)); }
    .process::after { display: none; }
    .process__step { padding: 0 0 36px 80px; }
    .process__node { position: absolute; left: 0; top: 0; }
    .process__step h3 { margin-top: 12px; }
}

/* Principles */
.principles { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.principles .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.principles__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.principle { padding: 26px; }
.principle h3 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.principle__mark { font-size: 12px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.principle p { margin-top: 10px; color: var(--muted); }
@media (max-width: 900px) {
    .principles { grid-template-columns: 1fr; }
    .principles .section-head { position: static; }
}
@media (max-width: 620px) { .principles__list { grid-template-columns: 1fr; } }

/* Products */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; overflow: hidden; }
.product:hover { transform: translateY(-4px); border-color: rgba(103, 232, 249, 0.45); box-shadow: 0 30px 60px -30px rgba(34, 211, 238, 0.4); }
.product__shot {
    position: relative;
    aspect-ratio: 880 / 416;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.product__shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 11, 0.55));
}
.product__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s var(--ease); }
.product:hover .product__shot img { transform: scale(1.04); }
.product__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product h3 { font-size: 22px; font-weight: 600; }
.product__body > p:not(.tags):not(.product__domain) { color: var(--muted); flex: 1; }
.product__domain { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); }

.status {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.status--live { color: var(--live); border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.status--dev { color: var(--dev); border: 1px solid rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }

@media (max-width: 960px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; place-items: center; }
.about__card {
    max-width: 820px;
    padding: clamp(32px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}
.about__card::after {
    content: "";
    position: absolute;
    inset: auto -20% -60% auto;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 163, 71, 0.18), transparent 65%);
    pointer-events: none;
}
.about__lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.about__lockup img:first-child { width: 56px; height: 56px; }
.about__x { font-family: var(--font-mono); color: var(--dim); font-size: 18px; }
.about__sd { width: 190px; height: auto; }
.about h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.about p a { color: var(--text); border-bottom: 1px solid var(--sd-green); }
.about p a:hover { color: #fff; border-bottom-width: 2px; }
.about__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.about__meta li {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.about__card .btn { align-self: flex-start; position: relative; z-index: 1; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { margin-bottom: 0; }
.faq__list { display: grid; gap: 10px; }
.faq details {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    transition: border-color 0.2s, background 0.2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface-2); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 56px 18px 22px;
    position: relative;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 22px; top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--cyan);
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

/* Contact */
.contact { overflow: hidden; }
.contact__glow {
    position: absolute;
    left: 50%; top: 40%;
    width: 900px; height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, rgba(99, 102, 241, 0.22), transparent);
    filter: blur(20px);
    z-index: -1;
}
.contact__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__copy h2 { margin-top: 16px; font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.contact__alt { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.contact__mail { padding: 10px 0; font-family: var(--font-mono); font-size: 14px; color: var(--cyan); border-bottom: 1px dashed rgba(103, 232, 249, 0.5); }
.contact__mail:hover { border-bottom-style: solid; }
.contact__note { margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

.form { padding: clamp(24px, 4vw, 36px); display: grid; gap: 18px; background: linear-gradient(180deg, rgba(17, 22, 40, 0.85), rgba(9, 12, 22, 0.85)); backdrop-filter: blur(12px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.optional { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line-strong);
    background: rgba(5, 6, 11, 0.7);
    color: var(--text);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103, 232, 249, 0.18); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__sent {
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(52, 211, 153, 0.08);
    color: var(--text);
}
.form__sent strong { color: var(--live); }

@media (max-width: 900px) { .contact__inner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: linear-gradient(180deg, rgba(9, 12, 22, 0.6), var(--bg)); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 340px; color: var(--muted); font-size: 15px; }
.footer__col h2 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.footer__col ul { margin-top: 8px; display: grid; gap: 0; }
.footer__col a { display: inline-block; padding: 9px 0; color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.footer__legal {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--dim);
    font-size: 13px;
}
.footer__by { padding: 10px 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); opacity: 0.85; transition: opacity 0.2s; }
.footer__by:hover { opacity: 1; }
.footer__by img { width: 106px; height: auto; }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }


/* Reveal on scroll (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }


/* ---------- Touch devices: no sticky hover lifts, give tap feedback ---------- */
@media (hover: none) {
    .service:hover, .product:hover { transform: none; box-shadow: none; }
    .product:hover .product__shot img { transform: none; }
    .btn--primary:hover { transform: none; }
    .card:active { border-color: var(--line-strong); }
    .btn:active { transform: scale(0.98); }
}

/* ---------- Tablet ---------- */
@media (min-width: 641px) and (max-width: 960px) {
    .products { grid-template-columns: 1fr; }
    .product { flex-direction: row; }
    .product__shot { flex: 0 0 44%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
    .product__shot img { object-position: top left; }
    .product__body { padding: 26px 28px; }
    .console { margin-inline: auto; width: 100%; }
}

/* ---------- Phones ---------- */
@media (max-width: 768px) {
    /* Cheaper effects on small, battery-powered devices */
    .hero__glow { animation: none; filter: blur(60px); }
    .hero__glow--a { width: 380px; height: 380px; top: -140px; right: -160px; }
    .hero__glow--b { width: 320px; height: 320px; left: -180px; }
    .hero__grid { animation: none; }
    .marquee, .chip, .console, .form { backdrop-filter: none; -webkit-backdrop-filter: none; }
    .marquee__track { animation-duration: 38s; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .section-head { text-align: left; margin-bottom: 32px; }
    .section-head h2 { font-size: clamp(30px, 8.4vw, 40px); }
    .section-head__lead { font-size: 17px; }

    .hero { padding-top: 112px; }
    .hero__title { margin-top: 20px; font-size: clamp(38px, 11.2vw, 52px); }
    .hero__lead { margin-top: 18px; font-size: 17px; }
    .hero__actions { margin-top: 28px; }
    .marquee { margin-top: 48px; padding: 14px 0; }

    .service { padding: 22px; gap: 10px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; }
    .service__icon { width: 44px; height: 44px; border-radius: 12px; }
    .service__icon svg { width: 22px; height: 22px; }
    .service h3 { margin: 0; font-size: 20px; padding-right: 28px; }
    .service > p:not(.service__num) { grid-column: 1 / -1; }
    .service__num { top: 22px; right: 22px; }

    .process__step { padding-bottom: 28px; }
    .principle { padding: 22px; }

    .product__body { padding: 20px; }
    .product h3 { font-size: 20px; }

    .about__card { padding: 26px 20px; gap: 16px; }
    .about__lockup { gap: 12px; }
    .about__lockup img:first-child { width: 44px; height: 44px; }
    .about__sd { width: 140px; }
    .about p:not(.eyebrow) { font-size: 16px; }

    .faq summary { font-size: 17px; padding: 16px 48px 16px 18px; }
    .faq summary::after { right: 18px; }
    .faq details p { padding: 0 18px 18px; }

    .contact__alt { margin-top: 24px; }
    .form { padding: 22px 18px; }

    .footer { padding-top: 48px; }
    .footer__inner { gap: 20px 24px; }
    .footer__legal { margin-top: 32px; }
}

@media (max-width: 520px) {
    .hero__facts { margin-top: 36px; }
    .hero__facts > div,
    .hero__facts > div + div,
    .hero__facts > div:first-child {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 12px 0;
        border-left: 0;
    }
    .hero__facts > div + div { border-top: 1px solid var(--line); }
    .hero__facts dt { font-size: 16px; white-space: nowrap; }
    .hero__facts dd { margin: 0; text-align: right; font-size: 12px; }

    .console { font-size: 12px; border-radius: 18px; }
    .console__bar { padding: 10px 14px; }
    .console__body { padding: 16px 16px 4px; }
    .console__prompt { font-size: 13px; min-height: 3.2em; }
    .console__steps { gap: 9px; }
    .console__meter { display: none; }
    .console__foot { padding: 10px 16px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
    .marquee { mask-image: none; -webkit-mask-image: none; }
    .marquee__track li[aria-hidden="true"] { display: none; }
    .console::after, .process::after { display: none; }
    .js .reveal { opacity: 1; transform: none; }
}
