/* ==========================================================================
   Emehanika v2-claude — Adaptive layout from Figma
   Desktop base: 1920px (content 1720, gutter 100)
   Mobile base: 390px
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-card: #161616;
  --text: #ffffff;
  --text-muted: #c4c4c4;
  --text-dim: #8a8a92;
  --green: #d0ff00;
  --green-dim: #b5dd00;
  --blue: #4f5eff;
  --blue-2: #6371f5;
  --blue-deep: #2c39c9;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --radius-sm: 12px;
  --radius: 24px;
  --radius-lg: 32px;
  --content-max: 1720px;
  --gutter: 100px;
  --header-height: 112px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 10px 16px;
  background: var(--green);
  color: #000;
  border-radius: 8px;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Container */
.container {
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   HEADER — Figma: 1920×112, logo 219×40, nav links 20/30, button 158×64
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-height);
  transition: background 0.2s, backdrop-filter 0.2s, border-color 0.2s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}
.header-logo img {
  height: 40px;
  width: auto;
  display: block;
}
/* Right cluster: nav + tools (Figma frame 165:76 at x=1271, w=549) */
.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 500;
}
.header-nav a { color: var(--text); transition: color 0.15s; }
.header-nav a:hover { color: var(--green); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-picker { position: relative; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  height: 64px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid #fff;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.lang-picker.is-open .lang-toggle { background: rgba(255, 255, 255, 0.08); }
.lang-toggle .lang-caret {
  transition: transform 0.2s;
}
.lang-picker.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 96px;
  padding: 8px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.7);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { width: 100%; }
.lang-menu button {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  transition: background 0.15s;
}
.lang-menu button:hover { background: rgba(255, 255, 255, 0.08); }
.lang-menu button[aria-selected="true"] {
  background: rgba(208, 255, 0, 0.12);
  color: var(--green);
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.contact-btn:hover { background: var(--text); color: #000; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + 32px) 20px 32px;
  gap: 20px;
  font-size: 24px;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s, opacity 0.25s;
}
.mobile-menu[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .lang-toggle,
.mobile-menu .contact-btn { width: 100%; }

/* ==========================================================================
   BUTTONS — Figma "Get started" 164×64
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary {
  background: var(--green);
  color: #0a0a0a;
  box-shadow: 0 12px 32px -12px rgba(208, 255, 0, 0.6);
}
.btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

/* ==========================================================================
   SECTION HEAD — Figma: title 850×128 (font 64/64), subtitle 850×36 (24/36)
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 100px;
}
.section-head h2 {
  font-size: 64px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-head p {
  font-size: 24px;
  line-height: 36px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   HERO — Figma: 1920×1080. H1 848×144 (64/72). p 848×72 (18/24)
   ========================================================================== */
.hero {
  position: relative;
  /* Fill viewport, max 1080 (Figma desktop reference) */
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1080px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/fig-hero-bg.webp");
  background-size: cover;
  background-position: center;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 848px;
  max-width: 100%;
}
.hero-content h1 {
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 400;
}

/* ==========================================================================
   SERVICES — Figma: section padded y=1280 (offset). Cards 413×464.
   Title 850×128 (64/64), subtitle 850×36 (24/36)
   ========================================================================== */
.services {
  padding: 144px 0;
  background: var(--bg);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px; /* (1720 - 4*413) / 3 = 22.67 ≈ 23 */
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  min-height: 464px;
}
.service-icon {
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  margin-bottom: 80px; /* icon at y=40, title at y=200 → gap from icon end (40+80=120) to title (200) = 80 */
}
.service-card h3 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 24px; /* title height 80 (2 lines) → next at y=104 → gap 24 */
}
.service-card p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}

/* ==========================================================================
   PHOTO STATEMENT — Figma 1920×900
   ========================================================================== */
.statement {
  position: relative;
  height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 100px;
}
.statement-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: -1;
}
.statement-content {
  text-align: center;
  width: 100%;
}
.statement-content h2 {
  font-size: 64px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.statement-content p {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-muted);
}

/* ==========================================================================
   METRICS — Figma 1720×1224. Title 850×128 (64/64). Subtitle 850×72 (18/24).
   Bars 412×{700,900,500,800}, gap 24
   ========================================================================== */
.metrics {
  padding: 144px 0;
  background: var(--bg);
}
.metrics .section-head p {
  font-size: 18px;
  line-height: 24px;
}
/* Bars proportional to column width — Figma 412×{700,900,500,800} → aspect-ratio */
.bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: end;
}
.bar {
  position: relative;
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 35%, var(--blue-deep) 100%);
  border-radius: 28px;
  padding: 40px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 40%);
  pointer-events: none;
}
.bar-1 { aspect-ratio: 412 / 700; }
.bar-2 { aspect-ratio: 412 / 900; }
.bar-3 { aspect-ratio: 412 / 500; }
.bar-4 { aspect-ratio: 412 / 800; }
.bar-num {
  position: relative;
  font-size: clamp(64px, 7.8vw, 150px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.bar-label {
  position: relative;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.4;
  font-weight: 500;
}

/* ==========================================================================
   PRODUCTS — Figma 1920×1679. List 412 + gap 24 + phones 1284
   ========================================================================== */
.products {
  position: relative;
  padding: 150px 0;
  overflow: hidden;
  isolation: isolate;
  border-radius: 100px;
}
.products-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.products-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.products-bg-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.products[data-product="games"]      .products-bg-img[data-bg="games"],
.products[data-product="utilities"]  .products-bg-img[data-bg="utilities"],
.products[data-product="services"]   .products-bg-img[data-bg="services"] {
  opacity: 1;
}
.products-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.65) 100%);
}
.products-content {
  position: relative;
  z-index: 1;
}

/* Head — Figma: title h=64, tabs y=104 (gap 40 between bottom of title and tabs) */
.products-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  margin-bottom: 100px;
}
.products-head h2 {
  font-size: 64px;
  line-height: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Tabs — Figma: 518×60. tab text 53×36 with icon 32×32 left, height 60 */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0;
  background: transparent;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  font-size: 24px;
  line-height: 36px;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.tab.is-active {
  background: var(--green);
  color: #0a0a0a;
  border-color: var(--green);
}
.tab-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  fill: currentColor;
  opacity: 0.85;
}
.tab.is-active .tab-icon { opacity: 1; }

/* Stage — Figma 1720×1115. Side 412, gap 24, phones 1284 */
.products-stage {
  display: grid;
  grid-template-columns: minmax(320px, 412fr) minmax(0, 1284fr);
  gap: 24px;
  align-items: stretch;
}
.products-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 841px;
}
/* Product list — only the active category's list is visible */
.product-list { display: none; }
.products[data-product="games"] .product-list[data-list="games"],
.products[data-product="utilities"] .product-list[data-list="utilities"],
.products[data-product="services"] .product-list[data-list="services"] {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.product-list li {
  font-size: 24px;
  line-height: 24px;
  font-weight: 600;
  color: #fff;
}
/* Sky Heat (featured) — Figma fontSize 56, weight 600, h=56 */
.product-list li.is-featured {
  font-size: 56px;
  line-height: 56px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.product-option {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.product-option:hover { color: #fff; }
.product-option:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}
/* Store badges — Figma: 267×80 each, y=665 / y+96, vertical 16 gap */
.store-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.store-badge img {
  width: 267px;
  height: 80px;
  display: block;
  max-width: 100%;
}
.product-weblink {
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  line-height: 1.5;
}
.product-weblink span { text-decoration: underline; text-underline-offset: 4px; }
.product-weblink:hover { color: var(--green); }
.product-weblink-icon { width: 24px; height: 24px; flex-shrink: 0; color: currentColor; }
.products[data-product="services"] .store-badges-apps { display: none; }
.products[data-product="services"] .product-weblink { display: inline-flex; }

/* Phones canvas — Figma frame Group 8 = 1284 × 1115 */
.products-phones {
  position: relative;
  width: 100%;
  aspect-ratio: 1284 / 1115;
}
.product-set {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.products[data-product-item="sky-heat"]        .product-set[data-item="sky-heat"],
.products[data-product-item="happy-happens"]   .product-set[data-item="happy-happens"],
.products[data-product-item="survival-island"] .product-set[data-item="survival-island"],
.products[data-product-item="stay-alive"]      .product-set[data-item="stay-alive"],
.products[data-product-item="findro"]          .product-set[data-item="findro"],
.products[data-product-item="trust-vpn"]       .product-set[data-item="trust-vpn"],
.products[data-product-item="vpn99"]           .product-set[data-item="vpn99"],
.products[data-product-item="appdelivery"]     .product-set[data-item="appdelivery"],
.products[data-product-item="pwa-delivery"]    .product-set[data-item="pwa-delivery"],
.products[data-product-item="convertit"]       .product-set[data-item="convertit"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0s linear 0s;
}
.product-set .phone {
  position: absolute;
  width: calc(412 / 1284 * 100%);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
/* Sky Heat 1 3 (left)   x=0,    y=0     */
.product-set .phone-1 { left: 0;                          top: 0; }
/* Sky Heat 1 2 (center) x=436,  y=274  — overlaps */
.product-set .phone-2 { left: calc(436 / 1284 * 100%);    top: calc(274 / 1115 * 100%); z-index: 2; }
/* Sky Heat 1 1 (right)  x=872,  y=76   */
.product-set .phone-3 { left: calc(872 / 1284 * 100%);    top: calc(76 / 1115 * 100%); }

/* Landscape variant — Happy Happens / Stay Alive (wider screenshots) */
.product-set.is-landscape .phone   { width: calc(622 / 1284 * 100%); }
.product-set.is-landscape .phone-1 { left: 0;                          top: 0; }
.product-set.is-landscape .phone-2 { left: 0;                          top: calc(345 / 1115 * 100%); }
.product-set.is-landscape .phone-3 { left: calc(661 / 1284 * 100%);    top: calc(184 / 1115 * 100%); z-index: 2; }

/* Services — iPad mockup */
.service-ipad {
  position: relative;
  width: 100%;
  aspect-ratio: 1284 / 984.492;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}
.service-ipad-body,
.service-ipad-body-frame {
  position: absolute;
  inset: 0.5% 0.38%;
  width: 99.24%;
  height: 99%;
}
.service-ipad-bevel {
  position: absolute;
  inset: 0.88% 0.67%;
  width: 98.66%;
  height: 98.24%;
}
.service-ipad-camera {
  position: absolute;
  left: 1.43%;
  top: 42.88%;
  width: 14.13%;
  height: 1.41%;
  transform: rotate(-90deg);
  transform-origin: center;
}
.service-ipad-screen {
  position: absolute;
  inset: 4.75% 3.65%;
  overflow: hidden;
  border-radius: 1.45% / 1.94%;
  background: #c4c4c4;
}
.service-screen-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   PROCESS — Figma 1720×1369. Title 850×64. Subtitle 850×36.
   4 steps × 412.75 + gap 23. Image 1720×800 below.
   ========================================================================== */
.process {
  padding: 144px 0;
  background: var(--bg);
}
.process .section-head h2 {
  font-size: 64px;
  line-height: 64px;
}
.process .section-head p {
  font-size: 24px;
  line-height: 36px;
}
.process .section-head { margin-bottom: 100px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 23px;
  position: relative;
  margin-bottom: 100px;
}
/* Dashed line at center of circles (40 from top of step) */
.process-steps::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc((100% / 8) + 40px);
  right: calc((100% / 8) + 40px);
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
  z-index: 0;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
}
.step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.step-num:hover {
  border-color: var(--blue);
}
.step-num:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}
.step.is-current .step-num {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 0 6px rgba(79, 94, 255, 0.18);
}
.step h3 {
  font-size: 24px;
  line-height: 29px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
  max-width: 400px;
}

.process-image {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1720 / 800;
  width: 100%;
  background: var(--bg-card);
}
.process-image .process-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.process-image .process-img.is-current {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   FOOTER — Figma 1920×500. Logo 547×100, copy/links centered below
   ========================================================================== */
.footer {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-radius: 100px 100px 0 0;
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../img/fig-footer-bg.webp");
  background-size: cover;
  background-position: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
  width: 100%;
}
.footer-logo img { width: 547px; height: auto; max-width: 100%; }
.footer-copy { font-size: 16px; line-height: 24px; color: var(--text); margin: 0; }
.footer-nav {
  display: flex;
  gap: 24px;
  margin-top: -24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--text); }
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social svg { width: 20px; height: 20px; display: block; }

/* ==========================================================================
   LEGAL PAGES (Privacy / Terms)
   ========================================================================== */
.legal {
  padding: calc(var(--header-height) + 96px) 0 144px;
  background: var(--bg);
  color: var(--text);
}
.legal-content {
  max-width: 880px;
}
.legal-head {
  margin-bottom: 64px;
  text-align: left;
}
.legal-head h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
}
.legal-updated {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}
.legal section { margin-bottom: 40px; }
.legal h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.legal p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.legal strong { color: var(--text); font-weight: 600; }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--green); }

@media (max-width: 720px) {
  .legal { padding: calc(var(--header-height) + 56px) 0 80px; }
  .legal-head { margin-bottom: 40px; }
  .legal-head h1 { font-size: 36px; }
  .legal h2 { font-size: 22px; }
  .legal p, .legal li { font-size: 16px; }
  .legal section { margin-bottom: 32px; }
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}
.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-dialog .section-head {
  margin: 0 0 32px;
  text-align: left;
}
.modal-dialog .section-head h2 {
  font-size: 40px;
  line-height: 48px;
}
.modal-dialog .section-head p {
  font-size: 16px;
  line-height: 24px;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: var(--text);
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.06); }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.15s, background 0.15s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form .btn-primary {
  margin-top: 4px;
  width: 100%;
  height: 60px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.contact-form .btn-check { width: 20px; height: 20px; display: none; }
.contact-form .btn-primary.is-sent {
  background: rgba(208, 255, 0, 0.08);
  color: var(--green);
  cursor: default;
  pointer-events: none;
}
.contact-form .btn-primary.is-sent:hover { background: rgba(208, 255, 0, 0.08); transform: none; }
.contact-form .btn-primary.is-sent .btn-check { display: inline-block; }
.form-footnote {
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
  text-align: center;
}
.form-footnote a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-footnote a:hover { color: var(--text); }

/* ==========================================================================
   VIEWPORT-HEIGHT ADAPTATION — keep hero text vertically centred
   ========================================================================== */
/* Standard laptop heights ≤900: shrink header so hero content sits centred */
@media (min-width: 1024px) and (max-height: 900px) {
  :root { --header-height: 88px; }
  .hero-content h1 { font-size: 56px; line-height: 64px; }
}
@media (min-width: 1024px) and (max-height: 760px) {
  :root { --header-height: 72px; }
  .hero-content h1 { font-size: 48px; line-height: 56px; margin-bottom: 16px; }
  .hero-content p { margin-bottom: 28px; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  :root { --header-height: 64px; }
  .hero-content h1 { font-size: 40px; line-height: 48px; }
  .hero-content p { font-size: 16px; line-height: 22px; }
  .hero-content .btn { height: 52px; }
}

/* ==========================================================================
   FLUID DOWNSCALE — for viewports between 1280–1920, scale typography
   ========================================================================== */
@media (max-width: 1720px) {
  :root { --gutter: clamp(40px, 5.2vw, 100px); }
  .section-head h2,
  .hero-content h1,
  .statement-content h2,
  .products-head h2 { font-size: clamp(48px, 3.6vw, 64px); line-height: 1.1; }
  .bar-num { font-size: clamp(96px, 8.5vw, 150px); line-height: 1; }
  .product-list li.is-featured { font-size: clamp(32px, 2.4vw, 40px); }
  .service-card h3 { font-size: clamp(24px, 1.9vw, 32px); line-height: 1.2; }
  .step h3 { font-size: clamp(20px, 1.5vw, 24px); }
}

/* ==========================================================================
   TABLET — 4-col grids collapse
   ========================================================================== */
@media (max-width: 1024px) {
  :root { --header-height: 88px; }
  .header-row { gap: 16px; }
  .header-nav { font-size: 16px; gap: 16px; }
  .lang-toggle { width: 52px; height: 52px; font-size: 16px; }
  .contact-btn { height: 52px; padding: 0 24px; font-size: 16px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: auto; }
  .service-icon { margin-bottom: 40px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .process-steps::before { display: none; }
  /* keep aspect-ratio defined globally; just collapse to 2 cols */
  .bars { grid-template-columns: repeat(2, 1fr); }
  .bar-1, .bar-2, .bar-3, .bar-4 { aspect-ratio: auto; height: 320px; }
  .bar-2 { height: 380px; } .bar-3 { height: 280px; }
  .section-head { margin-bottom: 64px; }
  .services, .metrics, .process { padding: 96px 0; }
  .products { padding: 96px 0; }
  .products-head { margin-bottom: 64px; }
  .process .section-head, .process-steps { margin-bottom: 64px; }
}

/* ==========================================================================
   MOBILE — base 390
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --header-height: 72px;
    --radius: 20px;
    --radius-lg: 24px;
  }
  body { font-size: 16px; }

  /* Header */
  .header-nav,
  .header-tools { display: none; }
  .burger { display: inline-flex; }
  .header-logo img { height: 32px; }

  /* Buttons */
  .btn { height: 56px; padding: 0 28px; font-size: 16px; }

  /* Section head */
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 32px !important; line-height: 36px; margin-bottom: 16px; }
  .section-head p { font-size: 16px !important; line-height: 22px; }

  /* Hero */
  .hero {
    height: auto;
    min-height: 720px;
    min-height: 100svh;
    min-height: 100dvh;
    padding: calc(var(--header-height) + 56px) 0 80px;
  }
  .statement, .products { border-radius: 50px; }
  .footer { border-radius: 50px 50px 0 0; }
  .hero-content { width: 100%; }
  .hero-content h1 { font-size: 36px; line-height: 40px; }
  .hero-content p { font-size: 16px; }
  .hero-content .btn { width: 100%; max-width: 360px; }

  /* Services */
  .services { padding: 56px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 24px; min-height: auto; }
  .service-icon { width: 56px; height: 56px; margin-bottom: 24px; }
  .service-card h3 { font-size: 22px !important; line-height: 28px; margin-bottom: 16px; }
  .service-card p { font-size: 15px; }

  /* Statement */
  .statement { height: 420px; }
  .statement-content h2 { font-size: 28px; line-height: 32px; margin-bottom: 16px; }
  .statement-content br { display: none; }
  .statement-content p { font-size: 15px; }

  /* Metrics */
  .metrics { padding: 56px 0; }
  .bars {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    height: auto;
  }
  .bar { padding: 20px; border-radius: 20px; aspect-ratio: 1 / 1; height: auto; }
  .bar-1, .bar-2, .bar-3, .bar-4 { aspect-ratio: 1 / 1; height: auto; }
  .bar-num { font-size: 64px !important; line-height: 1; margin-bottom: 8px; }
  .bar-label { font-size: 14px; line-height: 20px; }

  /* Products */
  .products { padding: 56px 0; }
  .products-head { margin-bottom: 32px; gap: 24px; }
  .products-head h2 { font-size: 36px; line-height: 40px; }
  .tabs { width: 100%; max-width: 360px; gap: 6px; }
  .tab {
    height: 44px;
    padding: 0 14px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
  }
  .tab-icon { width: 18px; height: 18px; }
  .products-stage {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* Hoist products-side children into stage so we can reorder them */
  .products-side {
    display: contents;
    min-height: auto;
    text-align: center;
  }
  .product-list { order: 1; align-items: center; gap: 20px; }
  .products-phones { order: 2; }
  .store-badges {
    order: 3;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
  }
  .product-weblink { order: 3; justify-content: center; }
  .product-list li.is-featured { font-size: 28px !important; line-height: 32px; }
  .product-list li { font-size: 18px; }
  .store-badge img { width: 160px; height: auto; }

  /* Process */
  .process { padding: 56px 0; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .process .section-head { margin-bottom: 40px; }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .step-num { margin-bottom: 24px; width: 40px; height: 40px; font-size: 14px; }
  .step h3 { font-size: 20px !important; line-height: 24px; margin-bottom: 16px; }
  .step p { max-width: 320px; }
  .process-image { border-radius: 16px; }

  /* Footer */
  .footer { height: 320px; }
  .footer-content { gap: 24px; }
  .footer-logo img { width: 280px; }
  .footer-copy { font-size: 14px; }
  .footer-nav { font-size: 14px; flex-direction: row; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 16px; }

  /* Modal */
  .modal { padding: 16px; }
  .modal-dialog { padding: 32px 20px; }
  .modal-dialog .section-head h2 { font-size: 28px !important; line-height: 32px; }
}

/* Tiny phones */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0s !important; transition-duration: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   REVEAL ON SCROLL — fade + 24px slide-up; stagger via parent
   ========================================================================== */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in,
.reveal-stagger.is-in > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
