/* =====================================================================
   COTENA.IN — main stylesheet (v2, professional UI)
   Dark hero / footer bands, light content sections, violet brand colour.
   ===================================================================== */

:root {
    /* Brand */
    --brand:      #6c4dff;
    --brand-600:  #5a3af0;
    --brand-300:  #a996ff;
    --brand-50:   #f2efff;
    --lime:       #b6ff3b;

    /* Light surfaces */
    --bg:         #ffffff;
    --tint:       #f6f7fb;
    --ink:        #0e1118;
    --ink-2:      #475063;
    --ink-3:      #6b7385;
    --border:     #e5e8f0;

    /* Dark surfaces */
    --night:      #0a0c12;
    --night-2:    #121520;
    --night-3:    #1a1e2c;
    --on-dark:    #eef0f6;
    --on-dark-2:  #a3abbd;
    --line-dark:  rgba(255, 255, 255, .09);

    --ok:         #12a150;
    --err:        #d93a2b;

    --font-head:  'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:  'Inter', system-ui, sans-serif;

    --r-sm: 8px;
    --r:    14px;
    --r-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(14, 17, 24, .05), 0 2px 8px rgba(14, 17, 24, .04);
    --shadow:    0 2px 4px rgba(14, 17, 24, .04), 0 12px 32px -8px rgba(14, 17, 24, .12);
    --shadow-lg: 0 30px 80px -20px rgba(10, 12, 18, .55);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
    font-family: var(--font-body); font-size: 16px; line-height: 1.65;
    color: var(--ink-2); background: var(--bg);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.link { color: var(--brand); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--brand-600); }

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

/* Dark bands */
.dark { background: var(--night); color: var(--on-dark-2); }
.dark h1, .dark h2, .dark h3 { color: #fff; }

.text-grad {
    background: linear-gradient(95deg, var(--brand-300) 0%, #d7c9ff 45%, var(--lime) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.dark .eyebrow { color: var(--brand-300); }

.lead { font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.dark .lead { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1;
    padding: 14px 22px; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
}
.btn i { font-size: .9em; transition: transform .25s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(3px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px -8px rgba(108, 77, 255, .7); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 12px 30px -8px rgba(108, 77, 255, .8); }

.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .16); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--lime); transform: translateY(-1px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
    transition: background .3s, border-color .3s, box-shadow .3s;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(10, 12, 18, .82);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-color: var(--line-dark);
}
.nav-bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-10deg); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -.01em; color: #fff; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) {
    font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--on-dark-2);
    padding: 8px 14px; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-links a.active { color: #fff; }
.nav-cta { margin-left: 12px; }

.nav-toggle {
    display: none; width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 72px) 0 96px; }
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(108, 77, 255, .28), transparent 60%),
        radial-gradient(700px 420px at 0% 100%, rgba(182, 255, 59, .08), transparent 60%);
}
.hero-bg::after {
    content: ''; position: absolute; inset: 0; opacity: .5;
    background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }

.pill {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
    padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--on-dark);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(182, 255, 59, .18); }

.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 22px; }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 34px; font-size: 15px; color: var(--on-dark-2); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points i { color: var(--lime); font-size: 13px; }

/* Hero visual (CSS mock of a game build) */
.hero-visual { position: relative; padding: 24px 0 36px; }
.window {
    position: relative; border-radius: var(--r-lg); overflow: hidden;
    background: var(--night-2); border: 1px solid var(--line-dark); box-shadow: var(--shadow-lg);
    transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
    transition: transform .6s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(0) rotateX(0); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-dark); }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #343a4d; }
.window-bar span:nth-child(1) { background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: var(--on-dark-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.viewport { position: relative; aspect-ratio: 16 / 9; }
.viewport svg { width: 100%; height: 100%; }
.hud {
    position: absolute; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff;
    background: rgba(10, 12, 18, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-family: var(--font-head); display: inline-flex; align-items: center; gap: 4px;
}
.hud-l { left: 12px; } .hud-l i { color: #ff5d8f; font-size: 11px; } .hud-l b { margin-left: 6px; }
.hud-r { right: 12px; color: var(--lime); }
.window-body { padding: 18px 20px 20px; display: grid; gap: 12px; }
.meter { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; font-size: 13px; color: var(--on-dark-2); }
.meter > div { height: 7px; border-radius: 7px; background: var(--night-3); overflow: hidden; }
.meter i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-300)); }
.meter i { animation: grow 1.4s var(--ease) .7s both; }
@keyframes grow { from { width: 0; } }
.meter b { color: #fff; font-weight: 600; text-align: right; font-size: 12px; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
    border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45);
    animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); font-size: 14px; color: var(--ink); line-height: 1.3; }
.float-card small { font-size: 12px; color: var(--ink-3); }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.fc-icon.ok { background: #e6f8ee; color: var(--ok); }
.fc-1 { left: -28px; bottom: 6px; }
.fc-2 { right: -18px; top: 0; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Tools marquee ---------- */
.tools-strip { background: var(--night); border-top: 1px solid var(--line-dark); padding: 34px 0 40px; }
.tools-title { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6f7790; margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: #8c94a8; white-space: nowrap; transition: color .2s; }
.marquee-track li i { font-size: 22px; }
.marquee-track li:hover { color: #fff; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.tint { background: var(--tint); }
.section h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head.center p:not(.eyebrow) { margin-top: 18px; font-size: 18px; }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; }
.section-head.split p:not(.eyebrow) { font-size: 18px; }

/* Icon tile */
.icon-tile {
    width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
    font-size: 21px; color: var(--brand); background: var(--brand-50);
    transition: background .3s, color .3s, transform .3s var(--ease);
}
.icon-tile.sm { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    position: relative; display: flex; flex-direction: column; padding: 30px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card::after {
    content: ''; position: absolute; left: 30px; right: 30px; top: -1px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--brand), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .icon-tile { background: var(--brand); color: #fff; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.service-card > .icon-tile { margin-bottom: 22px; }
.service-no { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: #c3c8d4; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15.5px; flex-grow: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--tint); color: var(--ink-2); border: 1px solid var(--border); }

/* ---------- Why ---------- */
.why { position: relative; overflow: hidden; }
.why::before { content: ''; position: absolute; width: 700px; height: 700px; right: -260px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(108, 77, 255, .22), transparent 65%); pointer-events: none; }
.why-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.why h2 { margin-bottom: 20px; }
.why em { font-style: normal; color: var(--lime); font-weight: 600; }
.checklist { display: grid; gap: 20px; margin-top: 34px; }
.checklist li { display: flex; gap: 14px; }
.checklist i { color: var(--lime); font-size: 20px; margin-top: 3px; }
.checklist b { display: block; color: #fff; font-family: var(--font-head); font-size: 17px; margin-bottom: 2px; }
.checklist span { font-size: 15px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
    padding: 30px 28px; border-radius: var(--r);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid var(--line-dark);
}
.stat b { display: block; font-family: var(--font-head); font-size: 48px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; margin-bottom: 10px; }
.stat span { font-size: 15px; }
.stat.light { background: #fff; border-color: var(--border); box-shadow: var(--shadow-sm); }
.stat.light b { color: var(--brand); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process::before {
    content: ''; position: absolute; top: 23px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step-no {
    position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px;
    border-radius: 50%; font-family: var(--font-head); font-weight: 800; font-size: 17px;
    color: var(--brand); background: #fff; border: 2px solid var(--brand);
    box-shadow: 0 0 0 6px #fff; transition: background .3s, color .3s;
}
.step:hover .step-no { background: var(--brand); color: #fff; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 15px; }
.step-out { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-50); }

/* ---------- Engagement models ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.model-card {
    position: relative; display: flex; flex-direction: column; padding: 34px 30px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.model-card.featured { border: 2px solid var(--brand); box-shadow: 0 24px 60px -24px rgba(108, 77, 255, .45); }
.model-card .icon-tile { margin-bottom: 22px; }
.model-card h3 { font-size: 22px; margin-bottom: 10px; }
.model-card > p { font-size: 15.5px; }
.badge { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--brand); }
.fit-title { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.fit { display: grid; gap: 10px; margin: 14px 0 28px; flex-grow: 1; font-size: 15px; }
.fit i { color: var(--ok); margin-right: 6px; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.faq-grid h2 { margin-bottom: 14px; }
.faq { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--border); border-radius: var(--r); background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
    padding: 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: var(--brand); background: var(--brand-50); transition: transform .3s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-wrap { padding-top: 0; }
.tint + .cta-wrap, .section:not(.tint):not(.dark) + .cta-wrap { padding-top: 0; }
.cta-band {
    position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
    padding: 56px 60px; border-radius: 28px; color: rgba(255, 255, 255, .78);
    background: radial-gradient(600px 300px at 100% 0%, rgba(182, 255, 59, .22), transparent 60%), linear-gradient(120deg, #3f24c9, var(--brand) 55%, #8a6bff);
}
.cta-band::after {
    content: ''; position: absolute; right: -60px; bottom: -110px; width: 320px; height: 320px; border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .07);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.cta-band p { font-size: 17px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.cta-mail { color: #fff; font-weight: 500; font-size: 15px; opacity: .85; display: inline-flex; gap: 8px; align-items: center; }
.cta-mail:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 80px; }
.page-hero > .container { position: relative; }
.page-hero h1 { max-width: 880px; font-size: clamp(36px, 5vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 18px; }
.page-hero .lead { max-width: 680px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 14px; color: #7d859b; }
.crumbs a:hover { color: #fff; }
.crumbs i { font-size: 10px; }
.crumbs span { color: var(--on-dark); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; }
.prose p { font-size: 17.5px; line-height: 1.8; }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); }
.prose em { color: var(--brand); font-style: normal; font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.55fr; gap: 56px; align-items: start; }
.contact-side h2 { font-size: 28px; margin-bottom: 26px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: center; }
.contact-list small { display: block; font-size: 13px; color: var(--ink-3); }
.contact-list a, .contact-list span { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); word-break: break-word; }
.contact-list a:hover { color: var(--brand); }

.next-steps { margin-top: 40px; padding: 28px; border-radius: var(--r); background: var(--tint); border: 1px solid var(--border); }
.next-steps h3 { font-size: 17px; margin-bottom: 18px; }
.next-steps ol { display: grid; gap: 16px; counter-reset: s; }
.next-steps li { position: relative; padding-left: 42px; font-size: 15px; counter-increment: s; }
.next-steps li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: #fff; background: var(--brand);
}
.next-steps b { display: block; color: var(--ink); font-family: var(--font-head); }

.form-card { padding: 44px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.form-card h2 { font-size: 28px; margin-bottom: 6px; }
.form-card > .muted { margin-bottom: 28px; font-size: 15px; }
.form-card form { display: grid; gap: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field > span { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--ink); }
.req { color: var(--err); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border-radius: 10px; color: var(--ink); background: #fff;
    border: 1px solid #d5d9e3; transition: border-color .2s, box-shadow .2s;
}
.field select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7385' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input::placeholder, .field textarea::placeholder { color: #a2a9b8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bfcd; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(108, 77, 255, .14); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13.5px; color: var(--ink-3); text-align: center; }
.form-note i { margin-right: 4px; }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; }
.alert i { margin-top: 4px; }
.alert ul { display: grid; gap: 4px; }
.alert-ok  { background: #eafaf0; border: 1px solid #b5e8c9; color: #0d6b37; }
.alert-err { background: #fdeeec; border: 1px solid #f5c3bd; color: #a42b1f; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; max-width: 1080px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc p { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.toc ul { display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; color: var(--ink-3); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.legal { max-width: 760px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.8; }
.legal h2 { font-size: 23px; margin: 48px 0 14px; padding-top: 4px; }
.legal h2:first-of-type { margin-top: 36px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal ul { display: grid; gap: 6px; margin: 12px 0; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.legal a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); }

/* ---------- 404 ---------- */
.hero-404 { min-height: 80vh; display: flex; align-items: center; }
.hero-404 .container { text-align: center; }
.hero-404 .lead { max-width: 560px; margin: 0 auto 34px; }
.hero-404 .actions { justify-content: center; }
.big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(90px, 18vw, 180px); line-height: 1; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px rgba(169, 150, 255, .5); margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 48px; padding-bottom: 56px; }
.footer-about p { max-width: 340px; margin: 18px 0 22px; font-size: 15px; }
.site-footer h4 { font-size: 14px; color: #fff; margin-bottom: 18px; letter-spacing: 0; }
.footer-links { display: grid; gap: 12px; font-size: 15px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; word-break: break-word; }
.footer-contact i { width: 16px; color: var(--brand-300); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark); transition: all .2s; }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 26px 0 32px; border-top: 1px solid var(--line-dark); font-size: 14px; color: #6f7790; }
.footer-bottom nav { display: flex; gap: 24px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Entrance (hero, CSS only) ---------- */
.rise { animation: rise .8s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .07s; }
.rise:nth-child(3) { animation-delay: .14s; }
.rise:nth-child(4) { animation-delay: .21s; }
.rise:nth-child(5) { animation-delay: .28s; }
.hero-visual.rise { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .service-card.reveal.in:hover, .js .model-card.reveal.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
    .process::before { display: none; }
    .fc-1 { left: -8px; } .fc-2 { right: -4px; }
}

@media (max-width: 980px) {
    .hero-grid, .why-grid, .faq-grid, .about-grid, .contact-grid, .section-head.split { grid-template-columns: 1fr; gap: 48px; }
    .section-head.split { gap: 18px; }
    .hero-visual { max-width: 620px; width: 100%; margin: 0 auto; }
    .window { transform: none; }
    .services-grid, .models { grid-template-columns: repeat(2, 1fr); }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .cta-band { grid-template-columns: 1fr; padding: 48px 40px; }
    .cta-actions { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .legal-layout { grid-template-columns: 1fr; }
    .toc { display: none; }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: var(--header-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
        background: rgba(10, 12, 18, .98); border-bottom: 1px solid var(--line-dark);
        opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .3s var(--ease);
    }
    .nav-links.open { opacity: 1; visibility: visible; transform: none; }
    .nav-links a:not(.btn) { padding: 13px 12px; font-size: 16px; }
    .nav-cta { margin: 12px 0 0; padding: 15px; }
    .site-header.menu-open { background: rgba(10, 12, 18, .98); border-color: var(--line-dark); }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    .container { padding: 0 16px; }
    .section { padding: 76px 0; }
    .hero { padding: calc(var(--header-h) + 40px) 0 64px; }
    .hero .lead, .lead { font-size: 17px; }
    .actions .btn { flex: 1 1 100%; }
    .hero-visual { padding: 20px 0 46px; }
    .fc-1 { left: 0; bottom: 0; } .fc-2 { right: 0; top: 0; }
    .float-card { padding: 9px 12px 9px 9px; }
    .float-card small { display: none; }
    .meter { grid-template-columns: 100px 1fr 36px; }
    .services-grid, .models, .values-grid, .process, .stat-grid, .stat-row, .field-row { grid-template-columns: 1fr; }
    .stat-grid, .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat { padding: 22px 18px; }
    .stat b { font-size: 38px; }
    .process { row-gap: 36px; }
    .page-hero { padding: calc(var(--header-h) + 36px) 0 56px; }
    .form-card { padding: 28px 20px; }
    .cta-band { padding: 40px 24px; border-radius: 20px; }
    .cta-band .btn { width: 100%; }
    .cta-actions { align-items: stretch; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; }
    .marquee-track { gap: 40px; }
    .marquee-track li { font-size: 17px; }
}
