/* ==========================================================================
   Noptics Technologies — site styles
   ========================================================================== */

:root {
  --bg: #070b16;
  --bg-raised: #0b1122;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8edf7;
  --muted: #9aa6bd;
  --faint: #6c7891;
  --cyan: #29c3db;
  --blue: #335bdd;
  --violet: #5b4bff;
  --grad: linear-gradient(120deg, #29c3db 0%, #335bdd 55%, #5b4bff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --header-h: 76px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Site-wide backdrop: faint grid + colour glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 80vh;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(41, 195, 219, 0.16), transparent 70%),
    radial-gradient(35% 45% at 85% 10%, rgba(91, 75, 255, 0.16), transparent 70%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }

/* Decorative glows/rings may extend past the edges; never let them cause sideways scrolling */
main { overflow-x: clip; }
a { color: var(--cyan); text-decoration: none; transition: color .2s ease; }
a:hover { color: #7fe3f2; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: #fff;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--grad);
}

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--grad); }

.divider {
  height: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(51, 91, 221, .7);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(41, 195, 219, .7); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: #fff; border-color: var(--cyan); background: var(--surface-hover); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 11, 22, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-link svg { width: 14px; height: 14px; transition: transform .2s ease; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 14rem;
  padding: 8px;
  border-radius: 14px;
  background: rgba(11, 17, 34, .96);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown.is-open > .nav-link svg { transform: rotate(180deg); }
.dropdown-menu.up { top: auto; bottom: calc(100% + 10px); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .94rem;
}
.dropdown-item:hover, .dropdown-item.active { background: var(--surface-hover); color: #fff; }
.dropdown-item img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }

.nav-cta { margin-left: 10px; padding: 10px 20px; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .typed-wrap { display: inline-block; min-height: 1.15em; white-space: nowrap; }
.typed-wrap::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: .9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background: var(--cyan);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.hero .lead { font-size: 1.2rem; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  margin-bottom: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
}
.badge-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(41, 195, 219, .7);
}

/* Orbit visual */
.orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin-left: auto;
}
.orbit-core {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), transparent 35%),
    var(--grad);
  box-shadow: 0 0 80px rgba(41, 195, 219, .45), 0 0 160px rgba(91, 75, 255, .35), inset 0 0 40px rgba(0, 0, 0, .25);
  animation: float 8s ease-in-out infinite;
}
.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .22);
  animation: spin linear infinite;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}
.orbit-ring.r1 { inset: 18%; animation-duration: 14s; }
.orbit-ring.r2 { inset: 8%; animation-duration: 22s; animation-direction: reverse; border-style: dashed; }
.orbit-ring.r2::before { background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.orbit-ring.r3 { inset: 0; animation-duration: 34s; }
.orbit-ring.r3::before { background: var(--blue); box-shadow: 0 0 16px var(--blue); top: auto; bottom: -5px; }
.orbit-chip {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(11, 17, 34, .75);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: .85rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  animation: float 7s ease-in-out infinite;
}
.orbit-chip svg { width: 16px; height: 16px; color: var(--cyan); }
.orbit-chip.c1 { top: 12%; left: -2%; }
.orbit-chip.c2 { top: 46%; right: -4%; animation-delay: -2s; }
.orbit-chip.c3 { bottom: 10%; left: 8%; animation-delay: -4s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--header-h) + 96px) 0 72px;
  text-align: center;
  position: relative;
}
.page-hero .container { max-width: 860px; }
.page-hero p { font-size: 1.15rem; max-width: 720px; margin: 0 auto; }
.page-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 60%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(41, 195, 219, .6), transparent);
}

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.split-text p { font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  color: inherit;
}
a.card { display: block; color: inherit; }
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); background: var(--surface-hover); }
.card:hover::before { opacity: 1; }
.card h3, .card h4 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }

.icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 195, 219, .22), rgba(91, 75, 255, .22));
  border: 1px solid rgba(41, 195, 219, .35);
  box-shadow: 0 0 30px -8px rgba(41, 195, 219, .5);
}
.icon-tile svg { width: 24px; height: 24px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cyan);
}
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

/* Values list */
.value {
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.value::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--grad);
}
.value .num {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: 12px;
  display: block;
}

/* Image collage */
.collage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; }
.collage .frame {
  position: absolute;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.collage .frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.collage .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(41, 195, 219, .18), transparent 40%, rgba(91, 75, 255, .25));
  mix-blend-mode: screen;
}
.collage .f1 { top: 0; right: 0; width: 72%; height: 66%; }
.collage .f2 { bottom: 0; left: 0; width: 56%; height: 52%; }
.collage .glow {
  position: absolute;
  inset: 20%;
  background: var(--grad);
  filter: blur(80px);
  opacity: .35;
  z-index: -1;
}
.collage .stat {
  position: absolute;
  right: 4%;
  bottom: 10%;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: 1px dashed rgba(41, 195, 219, .6);
  animation: spin 20s linear infinite;
}

/* Phone mockup */
.phone-wrap { position: relative; display: grid; place-items: center; padding: 24px 0; }
.phone-wrap::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(80px);
  opacity: .6;
  animation: glow 6s ease-in-out infinite;
}
.phone {
  position: relative;
  width: min(340px, 82%);
  border-radius: 46px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3660, #0b1122 70%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    0 0 0 1px rgba(41, 195, 219, .25),
    0 0 60px -10px rgba(51, 91, 221, .7),
    0 60px 120px -30px rgba(0, 0, 0, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden;
  animation: phone-float 7s ease-in-out infinite;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.phone:hover {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.03);
  box-shadow:
    0 0 0 1px rgba(41, 195, 219, .45),
    0 0 90px -5px rgba(51, 91, 221, .9),
    0 60px 120px -30px rgba(0, 0, 0, .95);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 36px; }
.phone::after {
  content: "";
  position: absolute;
  top: 20px; left: 50%;
  width: 84px; height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05070f;
}
/* Light sweeping across the glass every few seconds */
.phone-sheen {
  position: absolute;
  inset: 10px;
  border-radius: 36px;
  overflow: hidden;
  pointer-events: none;
}
.phone-sheen::before {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-12deg);
  animation: sheen 5s ease-in-out 1.2s infinite;
}
.phone-chip { z-index: 2; white-space: nowrap; }
.phone-chip.pc1 { top: 22%; left: 2%; }
.phone-chip.pc2 { bottom: 20%; right: 0; animation-delay: -3s; }
.phone-chip.pc1 svg { color: #34d399; }
.ring-deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, .18);
}
.ring-pulse { border-color: rgba(41, 195, 219, .45); animation: ring-pulse 3.5s ease-out infinite; }
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-18px) rotate(1deg); }
}
@keyframes glow { 0%, 100% { opacity: .45; transform: scale(.95); } 50% { opacity: .75; transform: scale(1.08); } }
@keyframes sheen { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@keyframes ring-pulse { 0% { transform: scale(.75); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 31px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 195, 219, .5), rgba(91, 75, 255, .5), transparent);
}
.step { text-align: center; padding: 0 12px; position: relative; }
.step-num {
  width: 62px; height: 62px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  background: var(--bg);
  border: 1px solid rgba(41, 195, 219, .5);
  box-shadow: 0 0 0 6px var(--bg), 0 0 30px -4px rgba(41, 195, 219, .6);
}

/* Feature panels (gradient promo cards) */
.promo {
  position: relative;
  min-height: 25rem;
  border-radius: 24px;
  overflow: hidden;
  padding: 36px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--border-strong);
  color: #fff;
  isolation: isolate;
  transition: transform .3s ease;
}
.promo:hover { transform: translateY(-4px); color: #fff; }
.promo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--promo-bg, var(--grad));
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to top, transparent, #000 70%);
}
.promo h2, .promo h3 { color: #fff; margin-bottom: 10px; }
.promo p { color: rgba(255, 255, 255, .85); margin: 0; }
.promo-1 { --promo-bg: linear-gradient(145deg, #335bdd 0%, #1e2f8a 60%, #0b1122 100%); }
.promo-2 { --promo-bg: linear-gradient(160deg, #29c3db 0%, #1b6c93 55%, #0b1122 100%); }
.promo-3 { --promo-bg: linear-gradient(160deg, #5b4bff 0%, #2d2390 55%, #0b1122 100%); }
.promo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }
.accordion details { border-bottom: 1px solid var(--border); }
.accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: #fff;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.accordion summary .plus svg { width: 14px; height: 14px; }
.accordion details[open] summary .plus { transform: rotate(45deg); border-color: var(--cyan); background: rgba(41, 195, 219, .12); }
.accordion summary:hover { color: var(--cyan); }
.accordion .answer { padding: 0 4px 26px; color: var(--muted); max-width: 90%; }

/* ---------- Forms ---------- */
.form-card { max-width: 640px; margin: 0 auto; }
.form-card.card:hover { transform: none; }
.form-card.card:hover::before { opacity: .6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: .88rem; font-weight: 500; color: var(--text); }
.form-label-secondary { color: var(--faint); font-weight: 400; }
.form-control {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(7, 11, 22, .6);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(7, 11, 22, .9);
  box-shadow: 0 0 0 4px rgba(41, 195, 219, .15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa6bd' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
select.form-control option { background: var(--bg-raised); color: var(--text); }
.form-text { font-size: .88rem; color: var(--faint); text-align: center; margin: 14px 0 0; }

/* Subscribe */
.subscribe {
  position: relative;
  border-radius: 28px;
  padding: 64px 32px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(41, 195, 219, .18), transparent 70%),
    radial-gradient(50% 100% at 100% 100%, rgba(91, 75, 255, .2), transparent 70%),
    var(--bg-raised);
}
.subscribe h2 { margin-bottom: 28px; }
.subscribe-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(7, 11, 22, .7);
}
.subscribe-form .form-control { border: 0; background: transparent; box-shadow: none; padding-left: 18px; }
.subscribe-form .form-control:focus { box-shadow: none; }
.subscribe p.small { font-size: .88rem; margin: 0; }

/* CTA band */
.cta-band {
  position: relative;
  text-align: center;
  padding: 72px 32px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-raised);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 80% at 50% 120%, rgba(51, 91, 221, .45), transparent 70%),
    radial-gradient(30% 50% at 10% 0%, rgba(41, 195, 219, .2), transparent 70%);
  z-index: 0;
}
.cta-band > * { position: relative; }
.cta-band p { margin-bottom: 28px; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.legal-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.legal-nav .label {
  display: block;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 10px 10px;
}
.legal-nav ul { list-style: none; margin: 0; padding: 0; }
.legal-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: .93rem;
  border-left: 2px solid transparent;
}
.legal-nav a:hover { color: #fff; background: var(--surface-hover); }
.legal-nav a.active { color: #fff; background: rgba(41, 195, 219, .1); border-left-color: var(--cyan); }
.legal-body section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-body section:last-of-type { border-bottom: 0; }
.legal-body h4 { font-size: 1.35rem; margin-bottom: 16px; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { margin: 0; padding-left: 20px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li::marker { color: var(--cyan); }
.legal-intro p { font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(11, 17, 34, .6), var(--bg));
  padding: 72px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand img { height: 42px; width: auto; margin-bottom: 22px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .92rem; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: #fff; }
.footer-contact svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--cyan); margin-top: 3px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--muted); font-size: .94rem; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: #fff; }
.footer-col a svg { width: 12px; height: 12px; }
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }
.icon-btn svg { width: 16px; height: 16px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: .88rem;
  cursor: pointer;
}
.lang-btn:hover { color: #fff; border-color: var(--cyan); }
.lang-btn img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.copyright { text-align: center; color: var(--faint); font-size: .85rem; margin: 28px 0 0; }

/* Back to top */
.go-to {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: 0 12px 30px -10px rgba(41, 195, 219, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.go-to.is-visible { opacity: 1; visibility: visible; transform: none; }
.go-to:hover { color: #fff; transform: translateY(-3px); }
.go-to svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px 24px 28px;
    background: rgba(7, 11, 22, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: rgba(7, 11, 22, .97); border-bottom-color: var(--border); }
  .nav-link { padding: 14px 8px; font-size: 1.05rem; border-radius: 10px; justify-content: space-between; }
  .nav-link.active::after { left: 8px; right: auto; width: 24px; bottom: 6px; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: var(--surface);
    margin: 4px 0 8px;
  }
  .dropdown.is-open .dropdown-menu { display: block; }
  .nav-cta { margin: 14px 0 0; }

  .hero { min-height: auto; }
  .hero-grid, .split, .split-text { grid-template-columns: 1fr; gap: 48px; }
  .orbit { margin: 0 auto; width: min(420px, 100%); }
  .collage { margin: 0 auto; width: 100%; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo-grid .promo:first-child { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal-nav { position: static; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .phone-first { order: -1; }
}

@media (max-width: 640px) {
  .phone-chip { font-size: .75rem; padding: 8px 10px; }
  .phone-chip.pc1 { left: 0; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .page-hero { padding: calc(var(--header-h) + 56px) 0 56px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .promo-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .subscribe { padding: 48px 20px; }
  .subscribe-form { flex-direction: column; border-radius: 20px; }
  .subscribe-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .orbit-chip { font-size: .75rem; padding: 8px 10px; }
  .orbit-chip.c1 { left: 0; }
  .orbit-chip.c2 { right: 0; }
  .accordion .answer { max-width: 100%; }
  .brand img { height: 34px; }
}

/* ---------- Form feedback ---------- */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  line-height: 1.5;
  text-align: left;
}
.alert::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; }
.alert-success { background: rgba(41, 195, 219, .1); border: 1px solid rgba(41, 195, 219, .45); color: #b9f1fa; }
.alert-success::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.alert-error { background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .45); color: #fecdd3; }
.alert-error::before { background: #f43f5e; box-shadow: 0 0 10px #f43f5e; }
.field-error { font-size: .85rem; color: #fda4af; }
.field:has(.field-error) .form-control { border-color: rgba(244, 63, 94, .6); }
#subscribe { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- reCAPTCHA ---------- */
.captcha { min-height: 78px; }
.subscribe-wrap { max-width: 520px; margin: 0 auto 16px; }
.subscribe-wrap .subscribe-form { margin-bottom: 14px; }
.subscribe-wrap .captcha { display: flex; justify-content: center; }
@media (max-width: 400px) {
  /* Google's widget is a fixed 304px; scale it to fit very narrow phones */
  .captcha .g-recaptcha { transform: scale(.88); transform-origin: left top; }
  .subscribe-wrap .captcha .g-recaptcha { transform-origin: center top; }
  .captcha { min-height: 70px; }
}
