/*
 * Volta landing site.
 * Every colour, radius, spacing step, shadow and type size comes from the design tokens of the user app
 * (GitLab volta/web, branch dev, src/theme.ts): lightColors for the page body, darkColors (Volta's
 * default theme) for the header, the heroes, the call to action and the footer; the yellow gradient is
 * the logo's own (src/components/ui/Logo.tsx).
 */

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2-variations'), url(/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/vazirmatn-latin-wght-normal.woff2) format('woff2-variations'), url(/fonts/vazirmatn-latin-wght-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;
}

:root {
  /* lightColors */
  --bg: #F4F6FA;
  --surface: #FFFFFE;
  --surface2: #ECEFF5;
  --border: #DDE2EC;
  --card-border: #EDF0F5;
  --text: #14171F;
  --muted: #566080;
  --faint: #667090;
  --primary: #FFC21A;
  --on-primary: #12151F;
  --accent: #2563EB;
  --success: #15803D;
  --warning: #C2410C;
  --purple: #7C3AED;
  --copper: #B4531F;

  /* darkColors */
  --d-bg: #0B1020;
  --d-surface: #141A2E;
  --d-surface2: #1B2340;
  --d-border: #27304F;
  --d-text: #EEF1FA;
  --d-muted: #98A2C3;
  --d-faint: #7C86AD;
  --d-primary-text: #FFC21B;
  --d-primary-soft: #33302B;
  --d-accent: #3D8BFF;
  --d-success: #22C55E;
  --d-warning: #F59E0B;
  --d-purple: #A78BFA;
  --d-copper: #D9824A;

  /* logo gradient */
  --bolt-from: #FFD84D;
  --bolt-to: #FF9F0A;

  /* spacing (4-pt scale) */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;

  /* radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* shadow */
  --sh-card: 0px 1px 2px rgba(18,21,31,0.04), 0px 4px 12px rgba(18,21,31,0.06);
  --sh-md: 0px 2px 4px rgba(18,21,31,0.06), 0px 6px 16px rgba(18,21,31,0.10);
  --sh-lg: 0px 4px 8px rgba(18,21,31,0.10), 0px 12px 28px rgba(18,21,31,0.18);

  --touch: 44px;
  --bar: 64px;
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Vazirmatn', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  animation: page-in .45s var(--ease) both;
}

h1, h2, h3 { margin: 0; line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  inset-inline-start: var(--s-lg);
  top: -100px;
  z-index: 100;
  padding: var(--s-sm) var(--s-lg);
  border-radius: var(--r-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}
.skip:focus { top: var(--s-lg); }

:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; border-radius: var(--r-sm); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-lg); }
.wrap--narrow { max-width: 820px; }

/* ---------- Page transitions ---------- */
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root) { animation: vt-out .18s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Scroll reveal (only when scripts run; see boot.js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-sm);
  min-height: var(--touch);
  padding: 0 var(--s-xl);
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }
.btn--primary {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 0 rgba(255,194,26,0.5), var(--sh-md);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.55) 50%, transparent 65%);
  transform: translateX(120%);
  transition: transform .6s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(255,194,26,0.18), var(--sh-lg); }
.btn--primary:hover::after { transform: translateX(-120%); }
.btn--ghost { background: rgba(27,35,64,0.6); color: var(--d-text); border-color: var(--d-border); }
.btn--ghost:hover { background: var(--d-surface2); border-color: var(--d-faint); transform: translateY(-2px); }
.btn--sm { min-height: 40px; padding: 0 var(--s-lg); font-size: 14px; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  color: var(--d-text);
  transition: background-color .25s ease, border-color .25s ease;
}
.topbar.is-scrolled { background: rgba(11,16,32,0.96); border-bottom-color: var(--d-border); }
.topbar__in { display: flex; align-items: center; gap: var(--s-lg); min-height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: var(--s-sm); text-decoration: none; flex: none; }
.brand__mark { width: 36px; height: 36px; animation: glow 3.2s ease-in-out infinite; }
.brand__name { font-size: 22px; font-weight: 800; }
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255,194,26,0)); }
  50% { filter: drop-shadow(0 0 7px rgba(255,194,26,0.55)); }
}

.nav { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.nav__link {
  position: relative;
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--r-sm);
  color: var(--d-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  inset-inline: var(--s-md);
  bottom: 2px;
  height: 2px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--bolt-from), var(--bolt-to));
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav__link:hover { color: var(--d-text); background: var(--d-surface); }
.nav__link:hover::after { transform: scaleX(.5); }
.nav__link.is-active { color: var(--d-primary-text); font-weight: 700; }
.nav__link.is-active::after { transform: scaleX(1); }
.topbar__cta { flex: none; }

.menu-btn {
  display: none;
  flex: none;
  place-items: center;
  width: var(--touch);
  height: var(--touch);
  margin-inline-start: var(--s-xs);
  padding: 0;
  border: 1px solid var(--d-border);
  border-radius: var(--r-md);
  background: var(--d-surface);
  color: var(--d-text);
  cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s var(--ease), opacity .2s ease; }
.menu-btn__close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.menu-open .menu-btn__open { opacity: 0; transform: rotate(90deg); }
.menu-open .menu-btn__close { opacity: 1; transform: none; }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--d-bg);
  color: var(--d-text);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(152,162,195,0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero__blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero__blob--a { width: 520px; height: 520px; top: -180px; inset-inline-start: -120px; background: rgba(255,194,26,0.20); animation: drift-a 16s ease-in-out infinite alternate; }
.hero__blob--b { width: 460px; height: 460px; bottom: -200px; inset-inline-end: -100px; background: rgba(61,139,255,0.20); animation: drift-b 19s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-140px, 90px) scale(1.15); } }
@keyframes drift-b { to { transform: translate(120px, -80px) scale(1.1); } }

.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire { fill: none; stroke: rgba(255,194,26,0.13); stroke-width: 1.5; }
.pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 70 1300;
  stroke-dashoffset: 1370;
  opacity: .85;
  animation: pulse-run 6s linear infinite;
}
.pulse--2 { animation-delay: -1.5s; animation-duration: 7s; }
.pulse--3 { animation-delay: -3s; animation-duration: 6.5s; }
.pulse--4 { animation-delay: -4.5s; animation-duration: 7.5s; }
@keyframes pulse-run { to { stroke-dashoffset: 0; } }
.node { fill: var(--primary); animation: node 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.node:nth-of-type(2) { animation-delay: -.6s; }
.node:nth-of-type(3) { animation-delay: -1.2s; }
.node:nth-of-type(4) { animation-delay: -1.8s; }
@keyframes node { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.4); } }

.hero__in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
  min-height: min(calc(100vh - var(--bar)), 820px);
  padding-block: 72px 96px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  padding: var(--s-xs) var(--s-md);
  border: 1px solid var(--d-border);
  border-radius: var(--r-pill);
  background: var(--d-primary-soft);
  color: var(--d-primary-text);
  font-size: 13px;
  font-weight: 700;
}
.pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hero h1 { margin-top: var(--s-lg); font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; line-height: 1.3; letter-spacing: -0.5px; }
.hl {
  background: linear-gradient(100deg, var(--bolt-from), var(--bolt-to), var(--bolt-from));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }

.rotator { display: flex; align-items: center; gap: var(--s-sm); margin-top: var(--s-lg); color: var(--d-muted); font-size: 18px; font-weight: 500; }
.rotator__words { display: inline-block; height: 1.65em; overflow: hidden; color: var(--d-text); font-weight: 800; }
.rotator__words span { display: block; height: 1.65em; animation: rotate-words 7.5s var(--ease) infinite; }
.rotator__words span:nth-child(1) { color: var(--d-primary-text); }
.rotator__words span:nth-child(2) { color: var(--d-accent); }
.rotator__words span:nth-child(3) { color: var(--d-success); }
.rotator__words span:nth-child(4) { color: var(--d-primary-text); }
@keyframes rotate-words {
  0%, 26% { transform: translateY(0); }
  33%, 59% { transform: translateY(-100%); }
  66%, 92% { transform: translateY(-200%); }
  100% { transform: translateY(-300%); }
}
.lead { margin-top: var(--s-lg); max-width: 580px; color: var(--d-muted); font-size: 17px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-top: var(--s-xxl); }

/* Phone illustration (decorative; no data) */
.hero__art { position: relative; display: flex; justify-content: center; padding: var(--s-xxl) 0; }
.halo {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,194,26,0.28), transparent 65%);
  transform: translate(-50%, -50%);
  animation: halo 4s ease-in-out infinite;
}
@keyframes halo { 50% { transform: translate(-50%, -50%) scale(1.12); opacity: .7; } }
.phone {
  position: relative;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--d-border);
  border-radius: 40px;
  background: linear-gradient(160deg, #1B2340, #0B1020);
  box-shadow: 0 40px 80px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(238,241,250,0.04);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px); } }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 18px; border-radius: var(--r-pill); background: var(--d-bg); transform: translateX(-50%); z-index: 2; }
.phone__screen { display: grid; gap: 10px; padding: 40px 14px 14px; border-radius: 32px; background: var(--d-bg); overflow: hidden; }
.phone__bar { display: flex; align-items: center; gap: var(--s-sm); font-weight: 800; font-size: 16px; }
.phone__logo { width: 26px; height: 26px; }
.phone__avatar { margin-inline-start: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--d-surface2); border: 1px solid var(--d-border); }
.phone__search { height: 34px; border-radius: var(--r-md); background: var(--d-surface); border: 1px solid var(--d-border); padding: 12px; }
.phone__search i { display: block; width: 45%; height: 8px; border-radius: var(--r-pill); background: var(--d-border); }
.phone__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--bolt-from), var(--bolt-to));
  color: var(--on-primary);
}
.phone__banner .lines i { background: rgba(18,21,31,0.25); }
.phone__banner svg { width: 34px; height: 34px; fill: rgba(18,21,31,0.85); animation: zap 2.6s ease-in-out infinite; }
@keyframes zap { 0%, 100% { transform: scale(1) rotate(0); } 8% { transform: scale(1.18) rotate(-8deg); } 16% { transform: scale(1) rotate(0); } }
.phone__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-sm); }
.tile {
  display: grid;
  justify-items: center;
  gap: var(--s-xs);
  padding: 10px var(--s-sm);
  border: 1px solid var(--d-border);
  border-radius: var(--r-lg);
  background: var(--d-surface);
  font-size: 12px;
  font-weight: 700;
  animation: pop .5s var(--ease) both;
}
.tile:nth-child(1) { animation-delay: .5s; }
.tile:nth-child(2) { animation-delay: .62s; }
.tile:nth-child(3) { animation-delay: .74s; }
.tile:nth-child(4) { animation-delay: .86s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.tile__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-md); flex: none; }
.tile__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone__card { display: flex; align-items: center; gap: var(--s-md); padding: 10px; border: 1px solid var(--d-border); border-radius: var(--r-lg); background: var(--d-surface); }
.phone__tabs { display: flex; justify-content: space-around; padding: 10px 6px 4px; border-top: 1px solid var(--d-border); }
.phone__tabs i { width: 18px; height: 18px; border-radius: 6px; background: var(--d-surface2); }
.phone__tabs i.on { background: var(--primary); box-shadow: 0 0 12px rgba(255,194,26,0.6); }

.lines { flex: 1; display: grid; gap: 7px; }
.lines i {
  display: block;
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--d-border) 0%, var(--d-surface2) 50%, var(--d-border) 100%);
  background-size: 200% 100%;
  animation: shimmer 2.2s linear infinite;
}
.lines i.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 6px var(--s-md) 6px 6px;
  border: 1px solid var(--d-border);
  border-radius: var(--r-pill);
  background: rgba(20,26,46,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--d-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  animation: chip-in .6s var(--ease) both, float 5s ease-in-out infinite;
}
.chip .tile__ico { width: 28px; height: 28px; border-radius: var(--r-pill); }
.chip .tile__ico svg { width: 16px; height: 16px; }
.chip--a { top: 30%; inset-inline-start: -2%; animation-delay: 1.1s, 1.7s; }
.chip--b { top: 58%; inset-inline-end: -2%; animation-delay: 1.4s, 0s; }
.chip--c { bottom: 7%; inset-inline-start: 4%; animation-delay: 1.7s, .8s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }

/* Tints behind icons: the colour at 13 % (tintOf in src/theme.ts). Dark hues on dark surfaces. */
.t-copper { background: rgba(180,83,31,0.13); color: var(--copper); }
.t-purple { background: rgba(124,58,237,0.13); color: var(--purple); }
.t-accent { background: rgba(37,99,235,0.13); color: var(--accent); }
.t-warning { background: rgba(194,65,12,0.13); color: var(--warning); }
.t-success { background: rgba(21,128,61,0.13); color: var(--success); }
.t-primary { background: var(--primary); color: var(--on-primary); }
.hero .t-copper, .chip .t-copper { background: rgba(217,130,74,0.13); color: var(--d-copper); }
.hero .t-purple { background: rgba(167,139,250,0.13); color: var(--d-purple); }
.hero .t-accent { background: rgba(61,139,255,0.13); color: var(--d-accent); }
.hero .t-warning { background: rgba(245,158,11,0.13); color: var(--d-warning); }
.hero .t-success { background: rgba(34,197,94,0.13); color: var(--d-success); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: 72px 64px;
  background: var(--d-bg);
  color: var(--d-text);
}
.page-hero__bg {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(255,194,26,0.18), transparent),
    radial-gradient(closest-side at 70% 60%, rgba(61,139,255,0.16), transparent);
  animation: spin 40s linear infinite;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,194,26,0.05) 46px 47px);
  background-size: 200% 200%;
  animation: slide 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { to { background-position: 200% 0; } }
.page-hero h1 { margin-top: var(--s-lg); max-width: 760px; font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; }
.page-hero--center { text-align: center; }
.page-hero--center .wrap { display: grid; justify-items: center; }
.page-hero--center .actions { justify-content: center; }
.notfound__mark { width: 88px; height: 88px; animation: float 5s ease-in-out infinite; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-sm); margin-top: var(--s-xl); }
.chips a {
  padding: 6px var(--s-lg);
  border: 1px solid var(--d-border);
  border-radius: var(--r-pill);
  background: var(--d-surface);
  color: var(--d-muted);
  font-size: 14px;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, transform .18s var(--ease);
}
.chips a:hover { color: var(--d-primary-text); border-color: var(--d-primary-text); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding-block: 88px; }
.section--alt { background: var(--surface2); }
.section__head { max-width: 680px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  padding: 2px var(--s-md);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 700;
}
.section h2 { margin-top: var(--s-md); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
.section__lead { margin-top: var(--s-sm); color: var(--muted); font-size: 16px; }
.prose { display: grid; gap: var(--s-lg); color: var(--muted); font-size: 16px; line-height: 1.95; }
.prose a { color: var(--accent); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.split .section__head { margin-bottom: 0; }
.split--media { align-items: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-xs);
  margin-top: var(--s-lg);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.link-arrow:hover svg, .card:hover .link-arrow svg { transform: translateX(-5px); }

.grid { display: grid; gap: var(--s-lg); margin: 0; padding: 0; list-style: none; }
.grid--features { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid--steps { grid-template-columns: repeat(3, 1fr); }
.grid--two { grid-template-columns: 1fr 1fr; }
.grid--three { grid-template-columns: repeat(3, 1fr); }
.grid--four { grid-template-columns: repeat(4, 1fr); }

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
  padding: var(--s-xl);
  color: inherit;
  text-decoration: none;
}
.js .card.reveal { transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .25s ease, border-color .25s ease; }
a.card:hover, .feature:hover, .contact:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); border-color: var(--border); }
.js a.card.reveal.in:hover, .js .feature.reveal.in:hover, .js .contact.reveal.in:hover { transition-delay: 0s; transform: translateY(-6px); }

.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ico svg { animation: icon-pop .55s var(--ease); }
@keyframes icon-pop { 30% { transform: scale(1.22) rotate(-10deg); } 60% { transform: scale(.95) rotate(5deg); } }

.feature h3, .audience h3 { margin-top: var(--s-lg); font-size: 17px; font-weight: 700; }
.audience h3 { font-size: 21px; font-weight: 800; }
.feature p, .audience p { margin-top: var(--s-sm); color: var(--muted); font-size: 14px; }
.audience p { font-size: 15px; }
.audience--pro { border-top: 4px solid var(--primary); }

/* Steps */
.step__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 20px;
  font-weight: 800;
}
.step__n::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid var(--primary);
  opacity: 0;
}
.in .step__n::after, .step.in .step__n::after { animation: ring 1.4s var(--ease) .3s; }
@keyframes ring { from { opacity: .8; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }
.step h3 { margin-top: var(--s-lg); font-size: 17px; font-weight: 700; }
.step p { margin-top: var(--s-sm); color: var(--muted); font-size: 14px; }

/* Feature rows */
.rows { display: grid; gap: 56px; }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; scroll-margin-top: calc(var(--bar) + 24px); }
.row:nth-child(even) .row__art { order: 2; }
.row__art {
  position: relative;
  display: grid;
  place-items: center;
  width: 200px;
  height: 200px;
  border-radius: 44px;
}
.row__art::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 52px;
  border: 2px dashed currentColor;
  opacity: .25;
  animation: spin 30s linear infinite;
}
.row__art svg { width: 84px; height: 84px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; animation: float 5s ease-in-out infinite; }
.row__text h2 { margin-top: 0; }
.row__text p { margin-top: var(--s-md); color: var(--muted); font-size: 16px; line-height: 1.9; max-width: 640px; }

.checks { margin: var(--s-lg) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-md); }
.checks li { display: flex; align-items: flex-start; gap: var(--s-sm); font-size: 15px; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--success); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.js .reveal .checks svg, .js .checks.reveal svg { stroke-dashoffset: 24; transition: stroke-dashoffset .6s var(--ease) .35s; }
.js .reveal.in .checks svg, .js .reveal.in.checks svg, .js .in .checks svg { stroke-dashoffset: 0; }

/* Timeline */
.timeline { position: relative; display: grid; gap: var(--s-xl); margin: 0; padding: 0 var(--s-xxl) 0 0; list-style: none; max-width: 720px; }
.timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--bolt-from), var(--bolt-to));
  border-radius: var(--r-pill);
}
.timeline li { position: relative; padding: var(--s-lg) var(--s-xl); background: var(--surface); border: 1px solid var(--card-border); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.timeline__dot {
  position: absolute;
  inset-inline-start: calc(-1 * var(--s-xxl) + 2px);
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--surface2);
}
.timeline li.in .timeline__dot { animation: ring-dot 1.2s var(--ease); }
@keyframes ring-dot { 0% { box-shadow: 0 0 0 4px var(--surface2), 0 0 0 4px rgba(255,194,26,0.6); } 100% { box-shadow: 0 0 0 4px var(--surface2), 0 0 0 16px rgba(255,194,26,0); } }
.timeline h3 { font-size: 17px; font-weight: 700; }
.timeline p { margin-top: var(--s-xs); color: var(--muted); font-size: 14px; }

/* Course illustration (decorative; the bar is not a value) */
.course-art { position: relative; display: grid; gap: var(--s-md); padding: var(--s-xl); border-radius: var(--r-xl); background: var(--d-bg); box-shadow: var(--sh-lg); }
.course-art__card { display: flex; align-items: center; gap: var(--s-md); padding: var(--s-md); border: 1px solid var(--d-border); border-radius: var(--r-lg); background: var(--d-surface); }
.course-art .t-purple { background: rgba(167,139,250,0.13); color: var(--d-purple); }
.course-art .t-success { background: rgba(34,197,94,0.13); color: var(--d-success); }
.course-art__card--b { margin-inline-start: var(--s-xxl); }
.course-art__bar { height: 10px; border-radius: var(--r-pill); background: var(--d-surface2); overflow: hidden; }
.course-art__bar i { display: block; height: 100%; width: 15%; border-radius: inherit; background: linear-gradient(90deg, var(--bolt-from), var(--bolt-to)); transition: width 1.6s var(--ease) .3s; }
.course-art.in .course-art__bar i, html:not(.js) .course-art__bar i { width: 68%; }

/* Contact */
.contact h2 { margin-top: var(--s-lg); font-size: 17px; font-weight: 700; }
.contact p { margin-top: var(--s-xs); color: var(--muted); font-size: 14px; }
.note { display: flex; align-items: center; gap: var(--s-sm); margin-top: var(--s-xl); color: var(--muted); }
.note svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* FAQ */
.faq { display: grid; gap: var(--s-md); margin-bottom: var(--s-sm); }
.faq details { padding: 0; transition: box-shadow .25s ease, border-color .25s ease; }
.faq details:hover { box-shadow: var(--sh-md); }
.faq details[open] { border-color: var(--border); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  min-height: 56px;
  padding: var(--s-lg) var(--s-xl);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--surface2);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform .3s var(--ease), background-color .2s ease;
}
.faq details[open] summary::after { content: '−'; background: var(--primary); color: var(--on-primary); transform: rotate(180deg); }
.faq details p { padding: 0 var(--s-xl) var(--s-xl); color: var(--muted); animation: faq-open .35s var(--ease); }
.faq details p a { color: var(--accent); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }

/* Final call to action */
.cta-band { padding-block: 72px; background: var(--bg); }
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-xl);
  padding: 44px;
  border: 1px solid var(--d-border);
  border-radius: var(--r-xl);
  background: var(--d-bg);
  color: var(--d-text);
  box-shadow: var(--sh-lg);
}
.cta__glow {
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  top: -210px;
  inset-inline-start: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,194,26,0.30), transparent 65%);
  animation: drift-a 12s ease-in-out infinite alternate;
}
.cta__mark { width: 76px; height: 76px; animation: float 5s ease-in-out infinite, glow 3.2s ease-in-out infinite; }
.cta h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta p { margin-top: var(--s-sm); color: var(--d-muted); max-width: 560px; }

/* Footer */
.footer { background: var(--d-bg); color: var(--d-text); padding-top: 56px; }
.footer__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-xxl); padding-bottom: 40px; }
.footer__brand p { margin-top: var(--s-md); color: var(--d-muted); font-size: 14px; max-width: 320px; }
.footer h2 { font-size: 15px; font-weight: 700; margin-bottom: var(--s-sm); }
.footer__links { display: grid; align-content: start; gap: 2px; }
.footer__link { color: var(--d-muted); text-decoration: none; font-size: 14px; padding-block: var(--s-xs); transition: color .18s ease, padding .18s var(--ease); }
.footer__link:hover { color: var(--d-text); padding-inline-start: var(--s-xs); }
.footer__link.is-active { color: var(--d-primary-text); }
.footer__contact p { color: var(--d-muted); font-size: 14px; }
.footer__more { display: inline-block; margin-top: var(--s-sm); color: var(--d-primary-text); font-size: 14px; }
.footer__bottom { border-top: 1px solid var(--d-border); padding-block: var(--s-lg); color: var(--d-muted); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: grid; position: relative; }
  .topbar__cta { margin-inline-start: auto; }
  .nav {
    position: fixed;
    inset: var(--bar) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-xs);
    margin: 0;
    padding: var(--s-md) var(--s-lg) var(--s-xl);
    background: var(--d-bg);
    border-bottom: 1px solid var(--d-border);
    box-shadow: 0 24px 40px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s var(--ease), visibility 0s linear .25s;
  }
  .menu-open .topbar { background: var(--d-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--d-border); }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .25s var(--ease); }
  .nav__link { padding: var(--s-md) var(--s-lg); font-size: 16px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--d-surface2); }
  .menu-open .nav__link { animation: nav-in .35s var(--ease) both; }
  .menu-open .nav__link:nth-child(2) { animation-delay: .03s; }
  .menu-open .nav__link:nth-child(3) { animation-delay: .06s; }
  .menu-open .nav__link:nth-child(4) { animation-delay: .09s; }
  .menu-open .nav__link:nth-child(5) { animation-delay: .12s; }
  .menu-open .nav__link:nth-child(6) { animation-delay: .15s; }
  .menu-open .nav__link:nth-child(7) { animation-delay: .18s; }
  @keyframes nav-in { from { opacity: 0; transform: translateX(-12px); } }
}
@media (max-width: 960px) {
  .hero__in { grid-template-columns: 1fr; min-height: 0; padding-block: 48px 72px; gap: 24px; }
  .grid--steps, .grid--three { grid-template-columns: 1fr; }
  .grid--four { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--s-xl); }
  .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: var(--s-xxl) var(--s-xl); }
  .cta p { margin-inline: auto; }
}
@media (max-width: 768px) {
  .grid--two { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding-block: 60px; }
  .row { grid-template-columns: 1fr; gap: var(--s-xl); }
  .row:nth-child(even) .row__art { order: 0; }
  .row__art { width: 120px; height: 120px; border-radius: 30px; }
  .row__art::before { border-radius: 36px; }
  .row__art svg { width: 54px; height: 54px; }
}
@media (max-width: 480px) {
  body { font-size: 14px; }
  .brand__name { font-size: 19px; }
  .brand__mark { width: 32px; height: 32px; }
  .topbar__in { gap: var(--s-sm); }
  .topbar__cta { padding: 0 var(--s-md); font-size: 13px; }
  .actions .btn { width: 100%; }
  .cta .btn { width: 100%; }
  .card { padding: var(--s-lg); }
  .grid--four { grid-template-columns: 1fr; }
  .faq summary { padding: var(--s-md) var(--s-lg); }
  .faq details p { padding: 0 var(--s-lg) var(--s-lg); }
  .footer__in { grid-template-columns: 1fr; }
  .lead { font-size: 16px; }
  .rotator { font-size: 16px; }
  .phone { width: 250px; }
  .chip--a { inset-inline-start: 0; }
  .chip--b { inset-inline-end: 0; }
  .chip--c { inset-inline-start: 2%; }
  .timeline { padding-inline-start: var(--s-xl); }
  .timeline__dot { inset-inline-start: calc(-1 * var(--s-xl) + 2px); }
}

@media (max-width: 359px) {
  .brand__name { display: none; }
}

/* ---------- Reduced motion: no movement, everything visible at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .rotator__words span { animation: none; }
  .pulse { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
