/* ==========================================================================
   Creaveel Technologies Private Limited — Core Stylesheet
   Light, editorial, engineering-first. Indigo / teal / amber accents.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:          #f6f7fb;
  --bg-alt:      #ffffff;
  --ink:         #101528;
  --ink-2:       #2c3552;
  --muted:       #5c6685;
  --dim:         #8d97b2;

  --line:        #e3e7f2;
  --line-2:      #cfd6e8;

  --brand:       #4338ca;   /* indigo */
  --brand-2:     #0d9488;   /* teal   */
  --brand-3:     #ea580c;   /* amber  */
  --brand-soft:  #eef0ff;
  --brand-soft2: #e6f6f3;

  --grad:        linear-gradient(115deg, #4338ca, #6366f1 42%, #0d9488);
  --grad-warm:   linear-gradient(115deg, #ea580c, #f59e0b);
  --grad-tint:   linear-gradient(140deg, #eef0ff, #e6f6f3);

  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;

  --shadow-sm:   0 1px 2px rgba(16, 21, 40, .05), 0 4px 12px -6px rgba(16, 21, 40, .1);
  --shadow:      0 4px 10px -4px rgba(16, 21, 40, .08), 0 24px 48px -28px rgba(16, 21, 40, .28);
  --shadow-lg:   0 40px 80px -40px rgba(67, 56, 202, .38);

  --ff:          "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-mono:     "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --shell:       1160px;
  --pad:         clamp(1.15rem, 4vw, 2.25rem);
  --sec-y:       clamp(4.25rem, 8.5vw, 7rem);
  --ease:        cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff);
  font-size: 16px; line-height: 1.68;
  color: var(--ink-2);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.16; color: var(--ink); font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.8vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.08rem, 1.9vw, 1.28rem); }
p  { margin: 0 0 1.05rem; color: var(--muted); }
a  { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 1.05rem; padding-left: 1.15rem; color: var(--muted); }
li { margin-bottom: .5rem; }
strong { color: var(--ink); font-weight: 600; }
svg, img { max-width: 100%; display: block; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 5px; }
::selection { background: #ddd9ff; color: var(--ink); }

/* ---------- 3. Layout ---------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--paper { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--ink { background: #0d1226; color: #dfe4f4; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: #a3adcb; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono); font-size: .715rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--grad); border-radius: 2px; }
.section--ink .eyebrow { color: #7dd3c4; }

.sec-head { max-width: 640px; margin-bottom: clamp(2.2rem, 4.5vw, 3.2rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { font-size: 1.03rem; margin-bottom: 0; }

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

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-size: .93rem; font-weight: 600;
  padding: .84rem 1.55rem; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background .28s var(--ease), border-color .28s var(--ease), color .28s var(--ease);
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(67,56,202,.7); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn--sm { padding: .58rem 1.1rem; font-size: .85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--brand); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- 5. Header ---------- */
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(246,247,251,.72); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-head.is-stuck { border-bottom-color: var(--line); box-shadow: 0 8px 26px -20px rgba(16,21,40,.45); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.1rem; color: var(--ink); letter-spacing: -.03em; }
.brand__mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand small { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .19em; text-transform: uppercase; color: var(--dim); margin-top: -3px; }

.nav__links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: .5rem .8rem; font-size: .9rem; font-weight: 500; color: var(--muted); border-radius: 8px; transition: color .25s var(--ease), background .25s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); background: #fff; }
.nav__cta { display: flex; align-items: center; gap: .6rem; }

.burger { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 17px; height: 1.7px; background: var(--ink); border-radius: 2px; transition: transform .32s var(--ease), opacity .22s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.7px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav__cta .btn { display: none; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: .8rem var(--pad) 1.5rem; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(16,21,40,.6);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .34s var(--ease), opacity .3s var(--ease), visibility .34s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: .85rem .4rem; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
}

/* ---------- 6. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg svg { width: 100%; height: 100%; }
.blob { transform-origin: center; }
.blob--1 { animation: morph 18s var(--ease) infinite; }
.blob--2 { animation: morph 24s var(--ease) infinite reverse; }
@keyframes morph { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(26px,-18px) scale(1.1); } 66% { transform: translate(-20px,22px) scale(.94); } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.05rem; }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.12rem); max-width: 52ch; margin-bottom: 1.9rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.hero__proof { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; font-size: .85rem; color: var(--dim); }
.hero__proof span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__proof svg { width: 15px; height: 15px; stroke: var(--brand-2); fill: none; stroke-width: 2.4; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { max-width: 480px; margin-inline: auto; } }

/* hero art */
.hero__art { position: relative; aspect-ratio: 5 / 4.4; }
.hero__art svg { width: 100%; height: 100%; overflow: visible; }
.spin      { transform-origin: center; animation: spin 30s linear infinite; }
.spin--rev { transform-origin: center; animation: spin 22s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.dash { stroke-dasharray: 5 8; animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.bob   { animation: bob 5s var(--ease) infinite; }
.bob--2{ animation: bob 6.5s var(--ease) infinite .8s; }
.bob--3{ animation: bob 7.5s var(--ease) infinite 1.6s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.pulse { transform-origin: center; animation: pulse 3.6s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
.type-bar { animation: typeBar 3.4s var(--ease) infinite; }
@keyframes typeBar { 0%,100% { width: 30px; } 50% { width: 92px; } }

/* ---------- 7. Logo strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-alt); overflow: hidden; }
.strip__inner { display: flex; gap: 3rem; padding-block: 1.15rem; width: max-content; animation: slide 30s linear infinite; }
.strip:hover .strip__inner { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.strip__item { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.strip__item i { width: 6px; height: 6px; border-radius: 2px; background: var(--brand-2); transform: rotate(45deg); }

/* ---------- 8. Bento grid ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-4 { grid-column: span 4; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 940px) { .bento { grid-template-columns: repeat(4, 1fr); } .bento > * { grid-column: span 2; } .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 4; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento .span-3, .bento .span-4, .bento .span-6 { grid-column: span 1; } }

.tile {
  position: relative; overflow: hidden;
  padding: clamp(1.35rem, 2.4vw, 1.9rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.tile:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tile h3 { margin-bottom: .45rem; }
.tile p { font-size: .93rem; margin-bottom: 0; }
.tile__icon {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--brand-soft); margin-bottom: 1.05rem;
}
.tile__icon svg { width: 21px; height: 21px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile--teal .tile__icon { background: var(--brand-soft2); }
.tile--teal .tile__icon svg { stroke: var(--brand-2); }
.tile--amber .tile__icon { background: #fff2e6; }
.tile--amber .tile__icon svg { stroke: var(--brand-3); }
.tile--feature { background: var(--grad-tint); border-color: #dbe0f5; }
.tile--dark { background: #0d1226; border-color: #1e2748; color: #cdd5ec; }
.tile--dark h3 { color: #fff; }
.tile--dark p { color: #98a2c0; }
.tile__art { position: absolute; right: -30px; bottom: -30px; width: 190px; opacity: .5; pointer-events: none; }

/* ---------- 9. Generic grid + cards ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.3rem); }
.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: 940px) { .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 {
  padding: clamp(1.35rem, 2.4vw, 1.85rem);
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .38s var(--ease), box-shadow .38s var(--ease), border-color .38s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-bottom: .45rem; }
.card p { font-size: .93rem; margin-bottom: 0; }
.card__num { display: block; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .16em; color: var(--brand); margin-bottom: .8rem; }

/* pricing / engagement cards */
.plan { display: flex; flex-direction: column; height: 100%; }
.plan__head { padding-bottom: 1.15rem; margin-bottom: 1.15rem; border-bottom: 1px solid var(--line); }
.plan__tag { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); }
.plan__price { font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.plan__price small { font-size: .82rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4rem; flex: 1; }
.plan li { display: flex; gap: .6rem; align-items: flex-start; font-size: .91rem; margin-bottom: .65rem; }
.plan li::before {
  content: ""; flex: 0 0 17px; height: 17px; margin-top: .28rem; border-radius: 50%; background: var(--brand-soft2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.plan--hot { background: var(--grad-tint); border-color: #c9d0f0; box-shadow: var(--shadow); }

/* ---------- 10. Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--rev .split__art { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split__art { order: 0; } }
.split__art { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--grad-tint); border: 1px solid var(--line); aspect-ratio: 4/3; }
.section--ink .split__art { background: #131a35; border-color: #232c4f; }
.split__art svg { width: 100%; height: 100%; }

.check-list { list-style: none; padding: 0; margin: 1.35rem 0 1.7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; margin-bottom: .7rem; }
.check-list li::before {
  content: ""; flex: 0 0 19px; height: 19px; margin-top: .28rem; border-radius: 6px; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.section--ink .check-list li { color: #a3adcb; }
.section--ink .check-list li::before { background-color: #1b2544; }

/* ---------- 11. Vertical timeline ---------- */
.tl { position: relative; padding-left: 2.4rem; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(#4338ca, #0d9488); opacity: .28; border-radius: 2px; }
.tl__item { position: relative; padding-bottom: 2.1rem; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: -2.4rem; top: 5px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--brand);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.tl__item:hover::before { background: var(--brand); transform: scale(1.15); }
.tl__step { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-2); }
.tl__item h3 { margin: .2rem 0 .4rem; }
.tl__item p { font-size: .94rem; margin: 0; }

/* ---------- 12. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: clamp(1.2rem, 2.4vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); }
.section--ink .stat { background: #131a35; border-color: #232c4f; }
.stat__num { font-size: clamp(1.9rem, 3.6vw, 2.5rem); font-weight: 700; letter-spacing: -.035em; color: var(--ink); }
.section--ink .stat__num { background: linear-gradient(100deg,#a5b4fc,#5eead4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }

/* ---------- 13. Quotes ---------- */
.quote { padding: clamp(1.4rem, 2.5vw, 1.9rem); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .38s var(--ease), box-shadow .38s var(--ease); }
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.quote__stars { display: flex; gap: 2px; margin-bottom: .9rem; }
.quote__stars svg { width: 15px; height: 15px; fill: #f59e0b; }
.quote p { color: var(--ink-2); font-size: .96rem; }
.quote__by { display: flex; align-items: center; gap: .75rem; margin-top: 1.15rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; font-size: .82rem; font-weight: 700; color: #fff; background: var(--grad); }
.quote__by b { display: block; font-size: .89rem; color: var(--ink); }
.quote__by small { font-size: .79rem; color: var(--dim); }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
  font: inherit; font-size: 1.01rem; font-weight: 600; color: var(--ink); text-align: left;
  padding: 1.3rem .1rem; background: none; border: 0; cursor: pointer; transition: color .26s var(--ease);
}
.faq__q:hover { color: var(--brand); }
.faq__icon { flex: 0 0 24px; height: 24px; position: relative; border-radius: 50%; background: var(--brand-soft); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% 6px auto; height: 2px; background: var(--brand); border-radius: 2px; transform: translateY(-50%); transition: transform .34s var(--ease), opacity .34s var(--ease); }
.faq__icon::after { transform: translateY(-50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translateY(-50%); opacity: 0; }
.faq__a { overflow: hidden; height: 0; transition: height .38s var(--ease); }
.faq__a p { padding: 0 .1rem 1.3rem; margin: 0; font-size: .95rem; max-width: 74ch; }

/* ---------- 15. CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0d1226; color: #dfe4f4; padding: clamp(2.4rem, 6vw, 4.2rem) clamp(1.4rem, 4vw, 3rem); text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #a3adcb; max-width: 56ch; margin-inline: auto; }
.cta__mesh { position: absolute; inset: 0; opacity: .6; pointer-events: none; }
.cta > *:not(.cta__mesh) { position: relative; z-index: 1; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.7rem; }

/* ---------- 16. Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 3.4rem); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: .35rem; stroke: var(--brand); fill: none; stroke-width: 1.8; }
.info-row b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
.info-row span { font-size: .96rem; color: var(--ink-2); }

.form { padding: clamp(1.5rem, 3vw, 2.1rem); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .78rem .9rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: #fbfcfe;
  transition: border-color .26s var(--ease), box-shadow .26s var(--ease), background .26s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(67,56,202,.12); }
.field input::placeholder, .field textarea::placeholder { color: #9aa3bd; }
.form__note { font-size: .79rem; color: var(--dim); margin: .85rem 0 0; }
.form__status { font-size: .88rem; color: var(--brand-2); margin-top: .8rem; min-height: 1.2em; font-weight: 500; }

/* ---------- 17. Footer ---------- */
.site-foot { background: #0d1226; color: #98a2c0; margin-top: clamp(3rem, 6vw, 5rem); }
.site-foot .brand { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.2rem; padding-block: clamp(2.6rem, 5vw, 3.6rem); }
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__grid h4 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #6b7699; font-weight: 600; margin-bottom: 1rem; }
.foot__list { list-style: none; padding: 0; margin: 0; }
.foot__list li { margin-bottom: .55rem; }
.foot__list a { font-size: .92rem; color: #98a2c0; transition: color .25s var(--ease), padding-left .25s var(--ease); }
.foot__list a:hover { color: #7dd3c4; padding-left: 4px; }
.foot__about p { font-size: .92rem; max-width: 42ch; margin-top: 1rem; color: #98a2c0; }
.foot__bar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-block: 1.35rem; border-top: 1px solid #1e2748; font-size: .84rem; color: #6b7699; }
.foot__bar nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot__bar a:hover { color: #7dd3c4; }

/* ---------- 18. Legal pages ---------- */
.page-head { padding-block: clamp(2.8rem, 6vw, 4.5rem) clamp(1.8rem, 4vw, 2.8rem); background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head__art { position: absolute; right: -60px; top: -40px; width: 380px; opacity: .35; pointer-events: none; }
.page-head > .shell { position: relative; z-index: 1; }
.crumbs { font-size: .84rem; color: var(--dim); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--brand); }
.legal { display: grid; grid-template-columns: 245px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-block: clamp(2.4rem, 5vw, 4rem); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static !important; } }
.legal__toc { position: sticky; top: 100px; padding: 1.25rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.legal__toc h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: .8rem; font-weight: 600; }
.legal__toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.legal__toc li { margin-bottom: .3rem; counter-increment: toc; }
.legal__toc a { display: block; font-size: .86rem; color: var(--muted); padding: .26rem .4rem; border-radius: 7px; transition: color .25s var(--ease), background .25s var(--ease); }
.legal__toc a::before { content: counter(toc) ". "; font-family: var(--ff-mono); font-size: .8em; color: var(--dim); }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--brand); background: var(--brand-soft); }
.legal__body { max-width: 74ch; }
.legal__body h2 { font-size: clamp(1.28rem, 2.3vw, 1.55rem); margin-top: 2.5rem; scroll-margin-top: 100px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { font-size: 1.03rem; margin-top: 1.6rem; }
.legal__body p, .legal__body li { font-size: .96rem; }
.notice { padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.9rem; background: var(--brand-soft); border-left: 3px solid var(--brand); }
.notice p { margin: 0; font-size: .93rem; color: var(--ink-2); }
.notice--warn { background: #fff4e8; border-left-color: var(--brand-3); }
.meta-row { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .84rem; color: var(--dim); }
.meta-row b { color: var(--ink-2); font-weight: 600; }

/* ---------- 19. Reveal + utilities ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: var(--grad); }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, border-color .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--brand); }
.to-top svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
