/* ============================================================
   NOVORY GROUP — Marketing site stylesheet
   Brand: Navy #0A192D · Teal #00A69C · White
   ============================================================ */

:root {
  --navy-950: #050d1a;
  --navy-900: #071426;
  --navy-800: #0a192d;
  --navy-700: #0f2540;
  --navy-600: #16304f;
  --navy-500: #1f3d61;
  --teal-500: #00a69c;
  --teal-400: #21b5b9;
  --teal-300: #5ad4d2;
  --teal-glow: rgba(0, 166, 156, 0.35);
  --white: #ffffff;
  --text: #e6edf5;
  --muted: #9fb3c8;
  --muted-2: #6f86a1;
  --line: rgba(159, 179, 200, 0.14);
  --line-strong: rgba(159, 179, 200, 0.28);
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1200px;
  --font: "Inter", "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; color: var(--white); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--alt { background: var(--navy-900); }
.section--divider { border-top: 1px solid var(--line); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-400); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--teal-500); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }
.eyebrow--center::after { display: none; }
.h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.025em; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.h3 { font-size: 20px; font-weight: 700; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 18px; }
.accent { color: var(--teal-400); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
  max-width: 100%; white-space: normal; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal-500); color: var(--navy-950); box-shadow: 0 10px 30px var(--teal-glow); }
.btn--primary:hover { background: var(--teal-400); transform: translateY(-2px); box-shadow: 0 16px 40px var(--teal-glow); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--teal-400); background: rgba(0, 166, 156, 0.08); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 18px 0; transition: padding .3s var(--ease), background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding: 10px 0;
  background: rgba(7, 20, 38, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand svg, .brand img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--white); background: rgba(255,255,255,0.05); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--white); align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 168px 0 96px; overflow: hidden;
  background:
    radial-gradient(1000px 520px at 78% 12%, rgba(0, 166, 156, 0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(33, 90, 160, 0.22), transparent 60%),
    var(--navy-900);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(159,179,200,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,179,200,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero__grid > *, .contact__grid > *, .form__row > * { min-width: 0; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13px; color: var(--muted); margin-bottom: 28px;
  background: rgba(10, 25, 45, 0.6);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(0,166,156,0.2); }
.hero__title { margin-bottom: 24px; }
.hero__title .accent { background: linear-gradient(90deg, var(--teal-300), var(--teal-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__pillars li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; background: rgba(15, 37, 64, 0.55);
}
.hero__pillars svg { width: 16px; height: 16px; color: var(--teal-400); }
.hero__visual { position: relative; }
.hero__visual::after {
  content: ""; position: absolute; inset: -12% -8% -14% -8%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(0,166,156,0.25), transparent 70%);
  filter: blur(20px);
}
.hero__card {
  position: absolute; left: -28px; bottom: -22px; padding: 16px 18px; border-radius: 14px;
  background: rgba(10, 25, 45, 0.92); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center; max-width: 300px;
}
.hero__card svg { width: 26px; height: 26px; color: var(--teal-400); flex: none; }
.hero__card strong { display: block; color: var(--white); font-size: 14px; }
.hero__card span { font-size: 13px; color: var(--muted); }

/* ---------- Placeholder (image slot) ---------- */
.ph {
  margin: 0; position: relative; width: 100%; border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(33, 181, 185, 0.55);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  overflow: hidden; aspect-ratio: 4 / 3;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--portrait { aspect-ratio: 3 / 4; }
.ph--hero { aspect-ratio: 5 / 4; }
.ph--banner { aspect-ratio: 21 / 9; }
.ph__inner {
  position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 10px;
}
.ph__icon { width: 44px; height: 44px; color: var(--teal-400); opacity: .9; }
.ph__tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-400);
  padding: 4px 10px; border: 1px solid rgba(33,181,185,0.5); border-radius: 999px;
}
.ph__desc { font-size: 14px; line-height: 1.55; color: var(--text); max-width: 42ch; }
.ph__size { font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.ph--filled { border: 0; background: var(--navy-900); }
.ph--filled picture { position: absolute; inset: 0; display: block; }
.ph img.ph__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--sm .ph__icon { width: 30px; height: 30px; }
.ph--sm .ph__desc { font-size: 12.5px; }
.ph--sm .ph__inner { padding: 16px; gap: 6px; }
.figcap { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.figcap::before { content: ""; flex: none; width: 14px; height: 2px; margin-top: 9px; background: var(--teal-500); }

/* ---------- Logo strip ---------- */
.logos { padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-900); }
.logos__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.logos__label { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; flex: 0 1 auto; max-width: 100%; }
.logos__items { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.logos__items .ph { width: 128px; aspect-ratio: 3 / 1; border-radius: 10px; }
.logos__items .ph__inner { padding: 8px; gap: 2px; }
.logos__items .ph__desc { font-size: 11px; color: var(--muted); }

/* ---------- Challenge ---------- */
.challenge__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  padding: 26px; border-radius: var(--radius); background: var(--navy-700); border: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start; transition: transform .3s var(--ease), border-color .3s;
}
.pain:hover { transform: translateY(-4px); border-color: rgba(255, 99, 99, 0.35); }
.pain__icon { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 99, 99, 0.12); color: #ff7b7b; }
.pain__icon svg { width: 20px; height: 20px; }
.pain h3 { font-size: 16px; margin-bottom: 6px; }
.pain p { font-size: 14px; color: var(--muted); }
.callout {
  margin-top: 40px; padding: 28px 32px; border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(0,166,156,0.14), rgba(0,166,156,0.03));
  border: 1px solid rgba(0,166,156,0.35); border-left: 4px solid var(--teal-500);
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.callout svg { width: 28px; height: 28px; color: var(--teal-400); flex: none; }
.callout p { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; color: var(--white); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__formula { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }
.about__formula .chip {
  padding: 10px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--navy-700); border: 1px solid var(--line-strong); color: var(--white);
}
.about__formula .op { color: var(--teal-400); font-weight: 700; font-size: 20px; }
.about__formula .chip--result { background: var(--teal-500); color: var(--navy-950); border-color: transparent; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--teal-400); margin-top: 2px; }
.checklist span { color: var(--text); font-size: 15.5px; }
.about__visual { position: relative; }
.about__stat {
  position: absolute; right: -20px; top: -20px; padding: 16px 20px; border-radius: 14px;
  background: var(--navy-950); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.about__stat strong { display: block; color: var(--teal-400); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.about__stat span { font-size: 13px; color: var(--muted); }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; position: relative; }
.process::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 36px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal-500) 12%, var(--teal-500) 88%, transparent);
  opacity: .5;
}
.step { position: relative; text-align: center; padding: 0 6px; }
.step__num {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-700); border: 1px solid var(--line-strong); color: var(--teal-400); position: relative;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.step__num svg { width: 28px; height: 28px; }
.step__num::after {
  content: attr(data-n); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-500); color: var(--navy-950); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}
.step:hover .step__num { transform: translateY(-4px); box-shadow: 0 12px 30px var(--teal-glow); }
.step h3 { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Solutions ---------- */
.solutions__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sol {
  padding: 22px; border-radius: var(--radius); background: var(--navy-700); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; min-height: 150px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.sol:hover { transform: translateY(-4px); border-color: rgba(0,166,156,0.6); background: var(--navy-600); }
.sol__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,166,156,0.12); color: var(--teal-400); }
.sol__icon svg { width: 22px; height: 22px; }
.sol h3 { font-size: 15.5px; }
.sol p { font-size: 13.5px; color: var(--muted); }
.solutions__note { margin-top: 32px; }
.sol--placeholder { grid-column: span 3; padding: 0; overflow: hidden; }
.sol--placeholder .ph { border: 0; border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 150px; }
@media (max-width: 1080px) { .sol--placeholder { grid-column: span 2; } }
@media (max-width: 640px) { .sol--placeholder { grid-column: span 1; } }

/* ---------- Use cases ---------- */
.usecases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.uc {
  border-radius: var(--radius-lg); background: var(--navy-700); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s;
}
.uc:hover { transform: translateY(-4px); border-color: rgba(0,166,156,0.55); }
.uc .ph { border-radius: 0; border: 0; border-bottom: 1.5px dashed rgba(33,181,185,0.55); }
.uc__body { padding: 24px; }
.uc__body .h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.uc__body .h3 svg { width: 20px; height: 20px; color: var(--teal-400); flex: none; }
.uc__body p { font-size: 14.5px; color: var(--muted); }

/* ---------- Approach ---------- */
.approach__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.approach__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.approach__list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 12px;
  background: var(--navy-700); border: 1px solid var(--line); font-size: 14.5px; color: var(--text);
  transition: border-color .3s, transform .3s var(--ease);
}
.approach__list li:hover { border-color: rgba(0,166,156,0.55); transform: translateX(3px); }
.approach__list svg { flex: none; width: 20px; height: 20px; color: var(--teal-400); margin-top: 1px; }
.approach__visuals { display: grid; gap: 16px; position: sticky; top: 100px; }
.approach__visuals .ph--sm.ph--wide { aspect-ratio: 16 / 7; }
.approach__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Development principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.principle { padding: 30px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--navy-800); transition: background .3s; display: flex; gap: 16px; }
.principle:nth-child(4n) { border-right: 0; }
.principle:nth-child(n+5) { border-bottom: 0; }
.principle:hover { background: var(--navy-700); }
.principle__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,166,156,0.1); border: 1px solid rgba(0,166,156,0.3); color: var(--teal-400); }
.principle__icon svg { width: 22px; height: 22px; }
.principle__num { display: block; color: var(--teal-400); font-weight: 800; font-size: 20px; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.principle p { font-size: 14px; color: var(--text); }

/* ---------- Section figures ---------- */
.section__figure { margin: 56px 0 0; }
.dev__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.dev__figures figure { margin: 0; }
@media (max-width: 640px) { .dev__figures { grid-template-columns: 1fr; } }

/* ---------- How we begin ---------- */
.begin__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.numlist { counter-reset: n; display: grid; gap: 10px; }
.numlist li { counter-increment: n; display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--navy-700); border: 1px solid var(--line); font-size: 15px; }
.numlist li::before { content: counter(n, decimal-leading-zero); flex: none; font-weight: 800; color: var(--teal-400); font-size: 14px; letter-spacing: 0.05em; }
.flow { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 26px; }
.flow::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(var(--teal-500), rgba(0,166,156,0.15)); }
.flow li { position: relative; padding: 10px 0 10px 14px; }
.flow li::before { content: ""; position: absolute; left: -26px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy-800); border: 3px solid var(--teal-500); }
.flow li:last-child::before { background: var(--teal-500); box-shadow: 0 0 0 6px rgba(0,166,156,0.2); }
.flow strong { display: block; color: var(--white); font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; }
.flow span { font-size: 13.5px; color: var(--muted); }
.begin__panel { padding: 32px; border-radius: var(--radius-lg); background: var(--navy-900); border: 1px solid var(--line); }
.begin__panel h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 18px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; padding: 120px 0;
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(0,166,156,0.28), transparent 65%),
    var(--navy-950);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(159,179,200,0.18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 100%, #000, transparent 70%);
}
.cta__title { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta__title .accent { color: var(--teal-400); }
.cta__lead { color: var(--muted); font-size: 18px; margin: 0 auto 36px; max-width: 56ch; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact__info { display: grid; gap: 18px; margin-top: 28px; }
.info { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 14px; background: var(--navy-700); border: 1px solid var(--line); }
.info svg { flex: none; width: 22px; height: 22px; color: var(--teal-400); margin-top: 2px; }
.info strong { display: block; color: var(--white); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 4px; }
.info span, .info a { font-size: 15px; color: var(--muted); }
.info a:hover { color: var(--teal-400); }
.info > div { min-width: 0; overflow-wrap: anywhere; }
.contact__grid iframe { display: block; width: 100%; height: 100%; position: absolute; inset: 0; }
.form > .btn { justify-self: start; }
.form { padding: 32px; border-radius: var(--radius-lg); background: var(--navy-900); border: 1px solid var(--line); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-width: 0; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--navy-800);
  color: var(--white); font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(0,166,156,0.2); }
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: 12.5px; color: var(--muted-2); }
.form__status { font-size: 14px; color: var(--teal-400); min-height: 1.4em; }
.form__status.is-error { color: #ff9b9b; }
.form__status.is-success { color: var(--teal-300); }
.form .btn:disabled { cursor: wait; opacity: .7; transform: none; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.turnstile-wrap { width: 100%; min-height: 65px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 28px; background: var(--navy-950); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand svg { height: 30px; }
.footer__tag { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 40ch; }
.footer h4 { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 14px; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { font-size: 14px; color: var(--muted); }
.footer ul a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }
.footer__line { height: 4px; background: linear-gradient(90deg, var(--teal-500), var(--teal-300), var(--teal-500)); }

/* ---------- Reveal animation ---------- */
html.js .reveal {
  --reveal-x: 0px;
  --reveal-y: 26px;
  opacity: 0;
  transform: translate3d(var(--reveal-x), var(--reveal-y), 0) scale(.985);
  transition: opacity .76s var(--ease), transform .76s var(--ease);
  backface-visibility: hidden;
}
html.js .reveal--left { --reveal-x: -30px; --reveal-y: 0px; }
html.js .reveal--right { --reveal-x: 30px; --reveal-y: 0px; }
html.js .reveal--scale { --reveal-y: 12px; transform: translate3d(0, var(--reveal-y), 0) scale(.96); }
html.js .reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .solutions__grid { grid-template-columns: repeat(3, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(4n) { border-right: 1px solid var(--line); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .principle:nth-child(n+7) { border-bottom: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .hero { padding: 132px 0 72px; }
  .hero__grid, .about__grid, .approach__grid, .begin__grid, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__card { position: static; margin-top: 14px; max-width: none; }
  .about__stat { position: static; margin-top: 14px; display: inline-block; }
  .about__visual { display: flex; flex-direction: column; }
  .about__visual .figcap { order: 2; }
  .about__visual .about__stat { order: 3; }
  .approach__visuals { position: static; }
  .challenge__grid, .usecases__grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 24px; right: 24px; flex-direction: column; align-items: stretch; padding: 12px; border-radius: 14px; background: var(--navy-900); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links { max-height: calc(100dvh - 110px); overflow-y: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__toggle { display: inline-flex; }
  .nav__cta .btn { display: none; }
}
@media (max-width: 640px) {
  html.js .reveal { --reveal-y: 18px; transition-duration: .62s; }
  html.js .reveal--left { --reveal-x: -18px; --reveal-y: 0px; }
  html.js .reveal--right { --reveal-x: 18px; --reveal-y: 0px; }
  .reveal[data-delay="1"] { transition-delay: .05s; }
  .reveal[data-delay="2"] { transition-delay: .10s; }
  .reveal[data-delay="3"] { transition-delay: .15s; }
  .reveal[data-delay="4"], .reveal[data-delay="5"] { transition-delay: .20s; }
  .container { width: min(100% - 32px, var(--container)); }
  .form { padding: 22px; }
  .challenge__grid, .usecases__grid, .solutions__grid, .approach__list, .form__row { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .principle:last-child { border-bottom: 0 !important; }
  .footer__grid { grid-template-columns: 1fr; }
  .logos__items { justify-content: flex-start; }
  .cta { padding: 88px 0; }
}
