/* ============================================================
   AI NextStep — main stylesheet
   Design system: editorial / literary, warm parchment canvas,
   serif display (Spectral), sans UI (Inter), hairline borders,
   one signal-blue accent. Inspired by the provided DESIGN.md.
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2218, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+2218, U+20AC, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+20AC, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+20AC, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ---------- Tokens ---------- */
:root {
  --parchment: #fefffc;
  --paper: #ffffff;
  --linen: #f9faf7;
  --ink: #171717;
  --graphite: #2c2c2c;
  --charcoal: #444141;
  --ash: #646464;
  --fog: #b4b8b4;
  --mist: #dee2de;
  --twilight: #282834;
  --dusk: #1f1f29;
  --signal: #41a1cf;
  --cerulean: #0081c0;

  --font-serif: 'Spectral', 'Georgia', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-btn: 8px;
  --radius-card: 16px;
  --radius-large: 24px;
  --radius-pill: 999px;

  --shadow-sm: rgba(0, 0, 0, 0.15) 0px 2px 6px 0px;
  --shadow-card: rgba(0, 0, 0, 0.08) 0px 1px 1px 0px, rgba(0, 0, 0, 0.08) 0px 4px 5px 0px;
  --shadow-diagram: rgba(0, 0, 0, 0.05) 0px 1px 8px 0px;

  --page-max: 1200px;
  --page-pad: clamp(20px, 4vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(65, 161, 207, 0.25); }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--graphite);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-ligatures: none;
}

.container { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 13px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  color: var(--signal);
  border-color: var(--signal);
}
.btn-primary:hover { background: rgba(65, 161, 207, 0.08); }
.btn-dark {
  color: var(--twilight);
  border-color: var(--twilight);
}
.btn-dark:hover { background: rgba(40, 40, 52, 0.06); }
.btn-filled {
  background: var(--dusk);
  color: #fff;
  border-color: var(--twilight);
}
.btn-filled:hover { background: #2e2e3d; }
.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-light:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Nav (frosted pill) ---------- */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--page-pad);
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(40, 40, 52, 0.1);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 14px 5px 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--graphite);
  letter-spacing: -0.01em;
}
.nav-logo svg { width: 22px; height: 22px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { background: rgba(40, 40, 52, 0.05); }
.nav-links a.active { color: var(--ink); background: rgba(40, 40, 52, 0.07); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 4px;
}
.lang-switch {
  display: flex;
  border: 1px solid rgba(40, 40, 52, 0.14);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.lang-switch button {
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ash);
  padding: 6px 11px;
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
}
.lang-switch button.on {
  background: var(--twilight);
  color: #fff;
}
.nav-cta { display: inline-flex; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(40, 40, 52, 0.14);
  border-radius: 50%;
  background: transparent;
  align-items: center;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--twilight);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(254, 255, 252, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; max-width: 480px; margin: 0 auto; width: 100%; }
.mobile-menu a {
  font-family: var(--font-serif);
  font-size: clamp(26px, 7vw, 34px);
  color: var(--graphite);
  padding: 8px 0;
  border-bottom: 1px solid var(--mist);
  letter-spacing: -0.01em;
}
.mobile-menu a.active { color: var(--signal); }
.mobile-menu .mm-foot { margin: 28px auto 0; max-width: 480px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--radius-large) var(--radius-large);
  margin: 0 clamp(8px, 1.2vw, 16px);
  background: var(--dusk);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31,31,41,0.28) 0%, rgba(31,31,41,0) 30%, rgba(20,20,30,0.5) 78%, rgba(20,20,30,0.72) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 140px var(--page-pad) clamp(48px, 7vh, 72px);
  display: flex;
  align-items: flex-end;
}
.hero-card {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-large);
  padding: clamp(26px, 4vw, 44px);
  max-width: 640px;
  box-shadow: 0 20px 60px rgba(10, 10, 20, 0.25);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--signal);
}
.hero-card h1 {
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero-card p {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--charcoal);
  margin-bottom: 26px;
  max-width: 54ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-scroll {
  position: absolute;
  right: clamp(24px, 4vw, 48px);
  bottom: 28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section.tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--signal);
}
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-bottom: 14px;
}
.section-head p { color: var(--ash); font-size: 16.5px; max-width: 62ch; }
.section-head.center p { margin: 0 auto; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stat {
  padding: clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--mist);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 3.4vw, 38px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.stat span { font-size: 14px; color: var(--ash); }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: rgba(0,0,0,0.08) 0 2px 2px 0, rgba(0,0,0,0.08) 0 10px 20px 0; }
.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mist);
  border-radius: 12px;
  background: var(--linen);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p { font-size: 15px; color: var(--ash); margin-bottom: 14px; }
.card ul { margin-top: auto; display: flex; flex-direction: column; gap: 7px; }
.card ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--charcoal);
}
.card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--signal);
}
.card .card-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
}
.card .card-link svg { width: 16px; height: 16px; transition: transform 0.18s ease; }
.card .card-link:hover svg { transform: translateX(4px); }

/* ---------- Steps (how I work) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--mist); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-card); overflow: hidden; }
.step { padding: clamp(22px, 3vw, 30px); border-right: 1px solid var(--mist); }
.step:last-child { border-right: 0; }
.step .num {
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--mist);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ash); }

/* ---------- Atmospheric band (cerulean) ---------- */
.band {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  margin: 0 var(--page-pad);
}
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-overlay { position: absolute; inset: 0; }
.band-inner {
  position: relative;
  z-index: 2;
  padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 64px);
  color: #fff;
}
.band.cerulean .band-overlay { background: linear-gradient(120deg, rgba(0, 95, 143, 0.94) 0%, rgba(0, 129, 192, 0.88) 100%); }
.band.cerulean .band-inner h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  color: #fff;
  max-width: 20ch;
  margin-bottom: 18px;
}
.band.cerulean .band-inner p { color: rgba(255, 255, 255, 0.88); max-width: 56ch; margin-bottom: 28px; font-size: 16.5px; }
.band.cerulean .pixel-flower { position: absolute; right: clamp(20px, 6vw, 80px); bottom: -14px; width: clamp(90px, 14vw, 150px); opacity: 0.95; image-rendering: pixelated; }
.band.cerulean .pixel-flower svg { width: 100%; height: auto; }
.band-dark .band-overlay { background: rgba(20, 20, 30, 0.62); }
.band-dark .band-inner h2 { color: #fff; font-size: clamp(28px, 4.2vw, 44px); max-width: 22ch; margin-bottom: 24px; }

/* ---------- Case cards ---------- */
.case-card { padding: 0; overflow: hidden; }
.case-visual {
  height: 190px;
  background: var(--linen);
  border-bottom: 1px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.case-visual svg { max-width: 100%; max-height: 100%; }
.case-body { padding: clamp(20px, 2.5vw, 26px); display: flex; flex-direction: column; flex: 1; }
.case-tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--signal);
  border: 1px solid rgba(65, 161, 207, 0.5);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.case-body h3 { font-size: 20px; margin-bottom: 8px; }
.case-body p { font-size: 14.5px; color: var(--ash); margin-bottom: 12px; }
.case-meta { margin-top: auto; font-size: 13px; color: var(--fog); display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.price-card { position: relative; padding: clamp(26px, 3vw, 34px); }
.price-card.featured {
  border-color: var(--twilight);
  box-shadow: rgba(0,0,0,0.1) 0 2px 2px 0, rgba(0,0,0,0.1) 0 14px 30px 0;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--twilight);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-name { font-size: 15px; font-weight: 600; color: var(--ash); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.price-value {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.6vw, 50px);
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}
.price-value small { font-family: var(--font-sans); font-size: 15px; font-weight: 400; color: var(--ash); letter-spacing: 0; }
.price-note { font-size: 13.5px; color: var(--fog); margin-bottom: 20px; }
.price-card ul { margin: 0 0 24px; display: flex; flex-direction: column; gap: 9px; }
.price-card ul li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--charcoal); }
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.58em;
  width: 8px;
  height: 5px;
  border-left: 1.6px solid var(--signal);
  border-bottom: 1.6px solid var(--signal);
  transform: rotate(-45deg);
}
.price-card .btn { justify-content: center; width: 100%; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 12px;
  box-shadow: var(--shadow-diagram);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--graphite);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--signal);
  transition: transform 0.2s ease;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; font-size: 14.5px; color: var(--ash); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.about-grid .prose h2 { font-size: clamp(28px, 3.8vw, 40px); margin-bottom: 16px; }
.about-grid .prose p { color: var(--charcoal); margin-bottom: 14px; font-size: 16px; }
.principle { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--mist); }
.principle:last-child { border-bottom: 1px solid var(--mist); }
.principle b { display: block; font-family: var(--font-serif); font-weight: 500; font-size: 19px; color: var(--graphite); margin-bottom: 4px; }
.principle p { font-size: 14.5px; color: var(--ash); }
.stack-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tags span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--charcoal);
  border: 1px solid var(--mist);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-diagram);
}
.contact-line .ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--linen);
  border: 1px solid var(--mist);
}
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line small { display: block; font-size: 12.5px; color: var(--fog); }
.contact-line b { font-size: 15px; font-weight: 600; color: var(--graphite); }
.contact-line a b:hover { color: var(--signal); }

.form-card {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-large);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-card);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--linen);
  border: 0;
  border-bottom: 1px solid var(--charcoal);
  border-radius: 0;
  padding: 11px 2px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--signal); background: #f6f8f4; }
.field textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 13px; color: var(--fog); margin-top: 12px; }
.form-hint.ok { color: #2f8f4e; }
.form-hint.err { color: #c6453d; }
.btn:disabled { opacity: 0.65; pointer-events: none; }

/* ---------- CTA ---------- */
.cta-box {
  background: var(--paper);
  border: 1px solid var(--mist);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
  padding: clamp(36px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-box h2 { font-size: clamp(26px, 3.8vw, 40px); max-width: 22ch; margin-bottom: 10px; }
.cta-box p { color: var(--ash); max-width: 46ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--paper);
  border-top: 1px solid var(--mist);
  margin-top: clamp(48px, 7vw, 88px);
}
.footer-statement {
  padding: clamp(44px, 7vw, 76px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--mist);
}
.footer-statement p {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--graphite);
  max-width: 24ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 52px) 0;
}
.footer-cols h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 16px;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 9px; }
.footer-cols a, .footer-cols li { font-size: 14.5px; color: var(--charcoal); }
.footer-cols a:hover { color: var(--signal); }
.footer-brand p { font-size: 14.5px; color: var(--ash); margin-top: 12px; max-width: 30ch; }
.footer-bottom {
  border-top: 1px solid var(--mist);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--fog);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-right: 0; border-bottom: 1px solid var(--mist); }
  .step:nth-child(odd) { border-right: 1px solid var(--mist); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: inline-flex; }
  .nav-pill { justify-content: space-between; width: 100%; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--mist); }
  .hero-inner { padding-top: 110px; }
  .hero-scroll { display: none; }
  .cta-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero { border-radius: 0 0 18px 18px; margin: 0; min-height: 92vh; }
  .band { margin: 0; border-radius: 18px; }
  .lang-switch button { padding: 5px 9px; }
  .nav-logo span { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}
