/* ==========================================================================
   PadelNation Landing — custom.css
   1. Tokens & base
   2. Layout: hybrid container
   3. Shared components (eyebrow, headings, buttons, browser chrome)
   4. Sections (header → footer, in page order)
   5. Responsive
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
:root {
  --blue: #2E5BFF;
  --blue-hover: #4169FF;
  --blue-soft: #7C97FF;
  --lime: #D7F94B;
  --ink: #0B1020;
  --ink-2: #1C2336;
  --night: #060A1C;
  --night-2: #0A1030;
  --night-3: #0C1330;
  --paper: #F5F7FC;
  --line: #E4E8F2;
  --muted: #5B6478;
  --muted-dark: #A9B2CC;
  --container-max: 1760px;
  --gutter: clamp(18px, 4vw, 40px);
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #1F45E0; }
::selection { background: var(--lime); color: var(--ink); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

.page-wrapper { position: relative; overflow-x: clip; }

/* 2. Layout: hybrid container --------------------------------------------
   Small/medium: 100% width with responsive gutters.
   Large/XL: capped at --container-max (1760px) and centred.
   Section backgrounds stay full-bleed; only .container is capped. */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* 3. Shared components --------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--muted { color: var(--muted); }

.section-title {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.text-blue { color: var(--blue); }
.text-blue-soft { color: var(--blue-soft); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-head__text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head__text--narrow { max-width: 720px; }
.section-head__lead { max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.section-head__lead--dark { color: var(--muted-dark); }

.btn-vibe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #EEF0FF;
  color: #1A1D2E;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 40px rgba(46, 91, 255, .35);
  transition: background .2s, transform .2s;
}
.btn-vibe:hover { background: #fff; color: #1A1D2E; transform: translateY(-2px); }
.btn-vibe__logo { height: 24px; width: auto; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: background .2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost__arrow { font-size: 14px; }

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #111A3D;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.browser-chrome__dots { display: flex; gap: 7px; }
.browser-chrome__dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-chrome__dot--red { background: #FF5F57; }
.browser-chrome__dot--yellow { background: #FEBC2E; }
.browser-chrome__dot--green { background: #28C840; }
.browser-chrome__url {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  color: #8A94B3;
  text-align: center;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-chrome__spacer { width: 47px; }

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
}

/* 4. Sections ------------------------------------------------------------ */

/* 4.1 Header / nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding-top: 14px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: rgba(10, 15, 40, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.site-header__brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.site-header__brand:hover { color: #fff; }
.site-header__logo { height: 30px; width: auto; }
.site-header__name { font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.site-header__links { display: flex; gap: 28px; font-size: 14px; font-weight: 500; }
.site-header__link { color: #C9D0E6; transition: color .2s; }
.site-header__link:hover { color: #fff; }
.site-header__actions { display: flex; gap: 8px; align-items: center; }
/* Entry points into the running application */
.site-header__apps { display: flex; gap: 6px; align-items: center; }
.site-header__app {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s, border-color .2s;
}
.site-header__app:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }

.site-header__demo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: background .2s;
}
.site-header__demo:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-header__demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 8px #3DDC84; }
.site-header__buy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1A1D2E;
  background: #EEF0FF;
  transition: background .2s;
}
.site-header__buy:hover { background: #fff; color: #1A1D2E; }
.site-header__buy-logo { height: 20px; width: auto; }

/* 4.2 Hero */
.hero-section {
  position: relative;
  padding-top: clamp(130px, 16vw, 170px);
  background: var(--night);
  color: #fff;
  overflow: hidden;
}
.hero-section__glow {
  position: absolute;
  left: 0; top: 0;
  width: 1400px; height: 900px;
  margin: -450px 0 0 -700px;
  translate: 50vw 0px;
  background: radial-gradient(closest-side, rgba(40, 70, 200, .38), rgba(27, 47, 143, .16) 50%, rgba(6, 10, 28, 0));
  pointer-events: none;
  transition: translate 1.2s var(--ease-out);
}
.hero-section__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  pointer-events: none;
}
.hero-section__content {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hero-section__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px;
  color: #C9D0E6;
}
.hero-section__badge-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-section__title {
  font-size: clamp(42px, 7.4vw, 96px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-section__lead {
  max-width: 680px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted-dark);
  font-weight: 300;
  text-wrap: pretty;
}
.hero-section__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-section__stack {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: #8A94B3;
  font-family: var(--font-mono);
}
.hero-section__stack-sep { color: #2E3A66; }

.hero-stage {
  position: relative;
  margin: clamp(50px, 7vw, 80px) auto 0;
  perspective: 2200px;
  perspective-origin: 50% 0%;
}
.hero-stage__tilt { position: relative; transform-origin: 50% 0%; transform-style: preserve-3d; }
.hero-stage__browser {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #0E1533;
  border: 1px solid rgba(255, 255, 255, .12);
  border-bottom: none;
  box-shadow: 0 -20px 120px rgba(46, 91, 255, .35), 0 60px 120px rgba(0, 0, 0, .6);
}
.hero-stage__viewport { aspect-ratio: 16 / 9.4; overflow: hidden; }
.hero-stage__screenshot {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 0%;
  transition: object-position 7s cubic-bezier(.4, 0, .2, 1);
}
.hero-stage__screenshot:hover { object-position: center 100%; }
.hero-stage__float { position: absolute; z-index: 3; pointer-events: none; }
.hero-stage__float--booking { left: -60px; top: 22%; width: 300px; }
.hero-stage__float--tournament { right: -50px; top: 12%; width: 250px; }
.hero-stage__float--grid { right: 6%; bottom: 14%; width: 360px; }
.hero-stage__float-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 20, .55), 0 0 0 1px rgba(255, 255, 255, .1);
}
.hero-stage__float--booking .hero-stage__float-card { transform: rotate(-4deg); }
.hero-stage__float--tournament .hero-stage__float-card { transform: rotate(4deg); }
.hero-stage__float--grid .hero-stage__float-card { border-radius: 12px; box-shadow: 0 30px 70px rgba(0, 0, 20, .5), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-2deg); }
.hero-stage__float-card img { width: 100%; }
.hero-stage__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 40%;
  background: linear-gradient(transparent, var(--night));
  pointer-events: none;
  z-index: 2;
}

/* 4.3 Marquee */
.marquee-section {
  position: relative;
  background: var(--night);
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-section__track { display: flex; width: max-content; }
.marquee-section__item {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: #E7EBF7;
  white-space: nowrap;
}
.marquee-section__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

/* 4.4 At a glance */
.glance-section { background: var(--night); color: #fff; padding: clamp(70px, 9vw, 110px) 0; }
.glance-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.glance-section__stat { background: var(--night-2); padding: 30px 26px; display: flex; flex-direction: column; gap: 8px; }
.glance-section__value { font-size: clamp(40px, 4.4vw, 56px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.glance-section__label { font-size: 14px; color: var(--muted-dark); }

/* 4.5 What sets it apart */
.apart-section {
  background: var(--paper);
  padding: clamp(80px, 10vw, 130px) 0;
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
}
.apart-section__inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 60px); }
.apart-section__lead { max-width: 360px; }
.apart-section__cards { display: flex; flex-direction: column; gap: 18px; }
.apart-section__row { display: flex; flex-wrap: wrap; gap: 18px; }
.apart-card {
  flex: 1 1 300px;
  min-width: 0;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(28px, 3vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apart-card__num { font-family: var(--font-mono); font-size: 12px; color: var(--blue); }
.apart-card__title { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.apart-card__text { font-size: 15px; line-height: 1.6; color: var(--muted); }

.apart-card--split {
  flex: 2 1 520px;
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border: none;
  color: #fff;
  padding: clamp(28px, 3.4vw, 44px);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  min-height: 440px;
}
.apart-card--split .apart-card__body { flex: 1 1 240px; display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.apart-card__tag {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.apart-card--split .apart-card__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.apart-card--split .apart-card__text { font-size: 16px; color: #DCE3FF; }
.apart-card__media { flex: 1 1 260px; display: flex; justify-content: center; }
.apart-card__shot {
  width: 100%;
  max-width: 330px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 10, 60, .45);
  transform: rotate(3deg);
  transition: transform .4s var(--ease-out);
}
.apart-card__shot:hover { transform: rotate(0deg) scale(1.03); }
.apart-card__shot img { width: 100%; }

.apart-card--grid { flex: 1 1 340px; overflow: hidden; }
.apart-card__grid-shot {
  margin-top: auto;
  margin-right: calc(-1 * clamp(28px, 3vw, 38px));
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-right: none;
  box-shadow: 0 20px 50px rgba(20, 30, 80, .12);
}
.apart-card__grid-shot img { width: 140%; max-width: none; }

.apart-card--app {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border: none;
  color: #fff;
  min-height: 360px;
}
.apart-card--app .apart-card__num { color: var(--lime); }
.apart-card--app .apart-card__title { max-width: 260px; }
.apart-card--app .apart-card__text { color: var(--muted-dark); max-width: 62%; }
.apart-card__phone {
  position: absolute;
  right: -30px;
  bottom: -120px;
  width: 170px;
  border-radius: 28px;
  border: 5px solid #1E2748;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transform: rotate(-8deg);
}
.apart-card__phone img { width: 100%; height: 340px; object-fit: cover; object-position: top; }

.apart-card__chips { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.apart-card__chip { background: #EEF2FF; color: var(--blue); font-weight: 600; }
.apart-card__chip--muted { background: var(--paper); color: var(--muted); font-weight: 500; }

.pricing-banner {
  border-radius: 26px;
  background: var(--ink);
  color: #fff;
  padding: clamp(28px, 3.4vw, 44px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px 50px;
  align-items: center;
  justify-content: space-between;
}
.pricing-banner__head { display: flex; align-items: center; gap: 18px; flex: 0 1 auto; }
.pricing-banner__icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pricing-banner__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.03em; }
.pricing-banner__text { flex: 1 1 420px; font-size: 16px; line-height: 1.6; color: var(--muted-dark); }

/* 4.6 Screens */
.screens-section {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0;
}
.screens-section__glow {
  position: absolute;
  left: 50%; top: 30%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(46, 91, 255, .28), transparent);
  pointer-events: none;
}
.screens-section__inner { position: relative; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 60px); }
.screens-section__lead { max-width: 380px; }
.screens-section__body { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); align-items: flex-start; }
.screens-section__tabs { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.screen-tab {
  all: unset;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: background .3s, border-color .3s;
}
.screen-tab:hover { border-color: rgba(255, 255, 255, .22); }
.screen-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.screen-tab.is-active { background: rgba(46, 91, 255, .16); border-color: rgba(46, 91, 255, .55); }
.screen-tab__num { font-family: var(--font-mono); font-size: 12px; padding-top: 4px; color: #6F7898; }
.screen-tab.is-active .screen-tab__num { color: var(--lime); }
.screen-tab__body { display: flex; flex-direction: column; gap: 5px; }
.screen-tab__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.screen-tab__caption { font-size: 13.5px; line-height: 1.5; color: var(--muted-dark); }
.screen-tab__bar { margin-top: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; display: none; }
.screen-tab.is-active .screen-tab__bar { display: block; }
.screens-section.is-manual .screen-tab__bar { display: none; }
.screen-tab__progress { display: block; height: 100%; width: 0; background: var(--lime); }

.screens-section__preview { flex: 3 1 600px; min-width: 0; perspective: 1800px; }
.screens-browser {
  border-radius: 16px;
  overflow: hidden;
  background: #0E1533;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(46, 91, 255, .15);
  transition: rotate .5s var(--ease-out);
}
.screens-browser__viewport { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--paper); }
.screens-browser__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 0%;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  transition: opacity .6s ease, transform .9s var(--ease-out), object-position 6s cubic-bezier(.4, 0, .2, 1);
}
.screens-browser__img--booking { object-position: center 52%; }
.screens-browser__img.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }
.screens-browser__img.is-active:hover { object-position: center 100%; }
.screens-section__hint { margin-top: 14px; font-size: 13px; color: #6F7898; text-align: center; }

/* 4.7 Feature list */
.features-section { background: #fff; padding: clamp(80px, 10vw, 130px) 0; }
.features-section__inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 50px); }
.features-section__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tab {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  transition: all .25s;
}
.feature-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.feature-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.feature-tab__group { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; opacity: .7; }
.feature-panel {
  border-radius: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 44px);
  display: none;
  flex-wrap: wrap;
  gap: 30px 50px;
}
.feature-panel.is-active { display: flex; }
.feature-panel__intro { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.feature-panel__meta { font-family: var(--font-mono); font-size: 12px; color: var(--blue); }
.feature-panel__title { font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.feature-panel__text { font-size: 15px; line-height: 1.6; color: var(--muted); }
.feature-panel__list {
  flex: 2 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-panel__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.feature-panel__check {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px; height: 18px;
  border-radius: 6px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 4.8 Tech */
.tech-section {
  background: var(--night);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0;
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
  margin-top: -1px;
}
.tech-section__inner { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 60px); }
.tech-section__lead { max-width: 400px; }
.tech-section__row { display: flex; flex-wrap: wrap; gap: 18px; }
.tech-card {
  flex: 1 1 440px;
  min-width: 0;
  border-radius: 26px;
  background: var(--night-3);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.tech-card--stack { gap: 18px; }
.tech-card__title { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.tech-card__note { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); }
.tech-card__note strong { color: #fff; font-weight: 600; }

.arch-layers { display: flex; flex-direction: column; gap: 10px; }
.arch-layer {
  padding: 16px 18px;
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
}
.arch-layer__name { font-weight: 600; }
.arch-layer__desc { color: var(--muted-dark); font-size: 14px; }
.arch-layer--web { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.arch-layer--infra { margin: 0 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.arch-layer--app { margin: 0 24px; background: rgba(46, 91, 255, .14); border: 1px solid rgba(46, 91, 255, .35); }
.arch-layer--app .arch-layer__desc { color: #C9D0E6; }
.arch-layer--domain { margin: 0 36px; background: var(--blue); }
.arch-layer--domain .arch-layer__desc { color: #DCE3FF; }

.stack-list { display: flex; flex-direction: column; margin: 0; }
.stack-list__row { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.stack-list__key { flex: 0 0 120px; font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-soft); padding-top: 2px; }
.stack-list__value { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 1.5; color: #E7EBF7; }

.security-card {
  border-radius: 26px;
  background: var(--night-3);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.security-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.security-card__sub { font-size: 14px; color: var(--muted-dark); }
.security-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.security-card__item {
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.security-card__item-title { font-weight: 600; font-size: 15px; }
.security-card__item-text { font-size: 13.5px; line-height: 1.55; color: var(--muted-dark); }

/* 4.9 Deployment */
.deploy-section { background: var(--night); color: #fff; padding: 0 0 clamp(80px, 10vw, 130px); }
.deploy-section__inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 50px); }
.deploy-section__title { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.deploy-section__targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.deploy-card {
  border-radius: 22px;
  background: var(--night-3);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.deploy-card--docker { background: var(--blue); border-color: var(--blue); }
.deploy-card__code { font-family: var(--font-mono); font-size: 12px; color: var(--blue-soft); }
.deploy-card--docker .deploy-card__code { color: var(--lime); }
.deploy-card__title { font-size: 22px; font-weight: 600; }
.deploy-card__text { font-size: 14.5px; line-height: 1.6; color: var(--muted-dark); }
.deploy-card--docker .deploy-card__text { color: #DCE3FF; }
.deploy-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}
.deploy-specs__item { background: var(--night-2); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.deploy-specs__label { font-size: 12px; color: #8A94B3; text-transform: uppercase; letter-spacing: .1em; }
.deploy-specs__value { font-size: 15px; }

/* 4.10 AI-ready */
.ai-section { background: var(--night); color: #fff; padding: 0 0 clamp(80px, 10vw, 130px); }
.ai-section__card {
  border-radius: clamp(24px, 3vw, 32px);
  background: radial-gradient(700px 360px at 15% 0%, rgba(46, 91, 255, .28), transparent 70%), var(--night-3);
  border: 1px solid rgba(255, 255, 255, .08);
  padding: clamp(30px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.ai-section__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ai-section__title { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.03; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.ai-section__lead { font-size: 16px; line-height: 1.6; color: var(--muted-dark); max-width: 500px; }
.ai-section__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ai-section__chip { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #E7EBF7; }
.ai-section__logos { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.ai-logo {
  aspect-ratio: 1 / 1.05;
  border-radius: 22px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease-out);
}
.ai-logo img { width: 100%; height: 100%; object-fit: contain; }
.ai-logo--claude:hover { transform: translateY(-8px) rotate(-2deg); }
.ai-logo--codex:hover { transform: translateY(-8px); }
.ai-logo--antigravity:hover { transform: translateY(-8px) rotate(2deg); }

/* 4.11 What is included */
.included-section {
  background: var(--paper);
  padding: clamp(80px, 10vw, 130px) 0;
  border-radius: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 44px) 0 0;
}
.included-section__inner { display: flex; flex-direction: column; gap: clamp(36px, 4vw, 50px); }
.included-section__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.included-card {
  padding: 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.included-card__title { font-weight: 600; font-size: 17px; }
.included-card__text { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.included-card--demo { background: var(--ink); border-color: var(--ink); color: #fff; gap: 12px; }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.demo-stats__value { font-size: 22px; font-weight: 600; }
.demo-stats__value--lime { color: var(--lime); }
.demo-stats__label { font-size: 12px; color: var(--muted-dark); }

.roadmap-box {
  border-radius: 22px;
  border: 1px dashed #C7CEDF;
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.roadmap-box__intro { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.roadmap-box__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.roadmap-box__items { flex: 2 1 420px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.roadmap-box__item { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

/* 4.12 CTA */
.cta-section { background: var(--paper); padding: 0 0 clamp(40px, 5vw, 60px); }
.cta-section__card {
  position: relative;
  border-radius: clamp(24px, 4vw, 40px);
  overflow: hidden;
  background: radial-gradient(800px 400px at 80% 0%, #5A7BFF, rgba(46, 91, 255, 0) 70%), var(--blue);
  color: #fff;
  padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 70px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.cta-section__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; position: relative; z-index: 1; }
.cta-section__logo { height: 56px; width: auto; align-self: flex-start; }
.cta-section__title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
.cta-section__lead { font-size: 17px; line-height: 1.6; color: #DCE3FF; max-width: 520px; }
.cta-section__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-section__demo {
  padding: 16px 26px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  transition: background .2s;
}
.cta-section__demo:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cta-section__media { flex: 1 1 360px; min-width: 0; position: relative; height: clamp(280px, 32vw, 400px); }
.cta-section__shot { position: absolute; border-radius: 14px; overflow: hidden; }
.cta-section__shot img { width: 100%; }
.cta-section__shot--main { right: 0; top: 0; width: 88%; box-shadow: 0 40px 80px rgba(0, 10, 60, .4); transform: rotate(3deg); }
.cta-section__shot--card { left: 0; bottom: 0; width: 48%; box-shadow: 0 40px 80px rgba(0, 10, 60, .45); transform: rotate(-4deg); }

/* 4.13 Back to top */
.back-to-top {
  position: fixed;
  right: clamp(16px, 2.5vw, 32px);
  bottom: clamp(16px, 2.5vw, 32px);
  z-index: 60;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(46, 91, 255, .45);
  opacity: 0;
  pointer-events: none;
  translate: 0 16px;
  transition: opacity .35s, translate .35s, background .2s;
}
.back-to-top:hover { background: var(--blue-hover); color: #fff; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; translate: 0 0; }

/* 4.14 Footer */
.site-footer { background: var(--paper); padding: 30px 0 40px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.site-footer__brand { display: flex; align-items: center; gap: 12px; }
.site-footer__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.site-footer__mark img { height: 22px; width: auto; }
.site-footer__brand-text { display: flex; flex-direction: column; }
.site-footer__name { font-weight: 600; font-size: 16px; }
.site-footer__tagline { font-size: 13px; color: var(--muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.site-footer__link { color: var(--muted); transition: color .2s; }
.site-footer__link:hover { color: var(--blue); }
.site-footer__copy { font-size: 13px; color: #8A93A8; }

/* Reveal: hidden until JS animates it in (only when JS + motion are available) */
.js-motion [data-reveal] { opacity: 0; }

/* 5. Responsive ---------------------------------------------------------- */
@media (max-width: 999px) {
  .site-header__links { display: none; }
  .hero-stage__float { display: none; }
}
@media (max-width: 559px) {
  .site-header__demo { display: none; }
  .site-header__apps { gap: 4px; }
  .site-header__app { padding: 8px 10px; font-size: 13px; }
}
/* Large screens: keep headings proportional in the 1660–1920px range */
@media (min-width: 1660px) {
  .hero-section__title { font-size: clamp(96px, 5.6vw, 108px); }
  .hero-section__content { max-width: 1080px; }
  .section-title { font-size: clamp(64px, 3.75vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-motion [data-reveal] { opacity: 1; }
}
