/* ==========================================================================
   GetFPV LTD — getfpv.co.il
   Design tokens, layout and components. Fully bidirectional (RTL/LTR) via
   CSS logical properties — never use left/right, use start/end.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --brand-1: #2DE1C2;
  --brand-2: #4F8BFF;
  --brand-grad: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 100%);

  /* Dark theme (default) */
  --bg:            #070B14;
  --bg-soft:       #0A1020;
  --surface:       rgba(255, 255, 255, 0.035);
  --surface-solid: #0E1526;
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text:          #E8EEF9;
  --text-soft:     #B9C6DC;
  --text-muted:    #8496B4;
  --accent-text:   #2DE1C2;
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 6px 20px -8px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(45, 225, 194, 0.28), 0 18px 50px -20px rgba(45, 225, 194, 0.45);
  --grid-line: rgba(255, 255, 255, 0.045);

  /* Type */
  --font-display: "Rubik", "Heebo", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-body: "Heebo", -apple-system, "Segoe UI", system-ui, sans-serif;

  /* Space & shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme="light"] {
  --bg:            #F6F8FC;
  --bg-soft:       #FFFFFF;
  --surface:       #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-hover: #FFFFFF;
  --border:        rgba(11, 18, 32, 0.10);
  --border-strong: rgba(11, 18, 32, 0.20);
  --text:          #0B1220;
  --text-soft:     #33425C;
  --text-muted:    #5B6C88;
  --accent-text:   #0E9C86;
  --shadow-lg: 0 24px 55px -22px rgba(13, 25, 48, 0.28);
  --shadow-sm: 0 6px 18px -10px rgba(13, 25, 48, 0.25);
  --glow: 0 0 0 1px rgba(14, 156, 134, 0.3), 0 18px 45px -22px rgba(14, 156, 134, 0.4);
  --grid-line: rgba(11, 18, 32, 0.05);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 96px;
  -webkit-text-size-adjust: 100%;
}

html { overflow-x: clip; }

body {
  margin: 0;
  max-inline-size: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
p  { margin: 0 0 1rem; color: var(--text-soft); text-wrap: pretty; }
a  { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand-1);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(45, 225, 194, .28); color: var(--text); }

.container {
  inline-size: 100%;
  max-inline-size: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.25rem);
}

.skip-link {
  position: absolute;
  inset-block-start: -120%;
  inset-inline-start: 1rem;
  z-index: 200;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
}
.skip-link:focus { inset-block-start: 1rem; }

.sr-only {
  position: absolute; inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Section furniture ---------- */
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--bg-soft); }

.section-head {
  max-inline-size: 640px;
  margin-block-end: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-block-end: 1rem;
}
.eyebrow::before {
  content: "";
  inline-size: 26px;
  block-size: 2px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.section-head--center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--text-muted); margin-block-end: 0; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), border-color .25s var(--ease), opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand-grad);
  border-color: transparent;
  color: #041016;
  box-shadow: 0 14px 34px -14px rgba(45, 225, 194, .7);
}
.btn--primary:hover { box-shadow: 0 20px 44px -14px rgba(45, 225, 194, .85); }

.btn--ghost { background: var(--surface); }
.btn--ghost:hover { background: var(--surface-hover); border-color: var(--border-strong); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1rem; }
.btn--block { inline-size: 100%; }

.btn .arrow { transition: transform .25s var(--ease); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-block-end: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-block-end-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  block-size: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}
.brand svg { inline-size: 28px; block-size: 28px; display: block; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  margin-block-start: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-inline-start: auto;
}
.nav a {
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-hover); }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-inline-start: .5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  min-inline-size: 40px;
  block-size: 40px;
  padding-inline: .7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { inline-size: 18px; block-size: 18px; }

.nav-toggle { display: none; }

/* Mobile drawer */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    inset-block-start: 76px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
    padding: 1rem clamp(1.15rem, 4vw, 2.25rem) 1.75rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-block-end: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: .85rem 1rem; font-size: 1rem; }
  .nav .btn { margin-block-start: .6rem; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(8rem, 15vw, 11.5rem) clamp(4rem, 8vw, 6.5rem);
  /* clip, not hidden: `hidden` makes a scroll container, and in RTL its scroll
     origin sits at the inline-start edge — the overflowing orbs would then
     offset the whole hero sideways. `clip` never scrolls. */
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 28%, #000 35%, transparent 78%);
}
.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  animation: float 16s ease-in-out infinite;
}
.orb--1 {
  inline-size: 520px; block-size: 520px;
  inset-block-start: -180px; inset-inline-end: -140px;
  background: radial-gradient(circle, rgba(45,225,194,.55), transparent 68%);
}
.orb--2 {
  inline-size: 460px; block-size: 460px;
  inset-block-start: 120px; inset-inline-start: -170px;
  background: radial-gradient(circle, rgba(79,139,255,.5), transparent 68%);
  animation-delay: -7s;
}
:root[data-theme="light"] .orb { opacity: .34; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, 34px, 0) scale(1.07); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-block-end: 1.5rem;
}
.dot {
  inline-size: 8px;
  block-size: 8px;
  border-radius: 50%;
  background: var(--brand-1);
  box-shadow: 0 0 0 0 rgba(45, 225, 194, .7);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45, 225, 194, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(45, 225, 194, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 225, 194, 0); }
}

.hero p.hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
  max-inline-size: 56ch;
  margin-block-end: 2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-block-end: 2.25rem; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: .87rem;
  color: var(--text-muted);
}
.hero-note li { display: flex; align-items: center; gap: .45rem; }
.hero-note svg { inline-size: 16px; block-size: 16px; color: var(--accent-text); flex-shrink: 0; }

/* Hero panel — live SOC mock */
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface-solid), color-mix(in srgb, var(--surface-solid) 60%, var(--bg)));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
:root[data-theme="light"] .panel { background: #fff; }

.panel-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.1rem;
  border-block-end: 1px solid var(--border);
  background: var(--surface);
}
.panel-bar .tl { display: flex; gap: .35rem; }
.panel-bar .tl i {
  inline-size: 9px; block-size: 9px; border-radius: 50%;
  background: var(--border-strong); display: block;
}
.panel-bar span {
  font-size: .78rem;
  color: var(--text-muted);
  margin-inline-start: auto;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.panel-body { padding: 1.25rem; display: grid; gap: .7rem; }

.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.metric {
  min-inline-size: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem .85rem;
  background: var(--surface);
}
.metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric small { font-size: .72rem; color: var(--text-muted); }

.log {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .7rem;
  min-inline-size: 0;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: .82rem;
  color: var(--text-soft);
  animation: logIn .5s var(--ease) both;
}
.log:nth-child(2) { animation-delay: .1s; }
.log:nth-child(3) { animation-delay: .2s; }
.log:nth-child(4) { animation-delay: .3s; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } }

.log > span:not(.tag) { min-inline-size: 0; overflow-wrap: anywhere; text-align: start; }
.log .tag {
  font-family: var(--font-display);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .2rem .5rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.tag--ok   { background: rgba(45, 225, 194, .15); color: var(--accent-text); }
.tag--warn { background: rgba(255, 184, 70, .16); color: #E0A23C; }
.tag--info { background: rgba(79, 139, 255, .16); color: #6FA0FF; }
.log time { margin-inline-start: auto; font-size: .72rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }
:root[data-theme="light"] .tag--info { color: #2E6BE0; }

/* ---------- 7. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.stat { background: var(--bg); padding: clamp(1.5rem, 3vw, 2.25rem) 1.25rem; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-block-end: .45rem;
}
.stat span { font-size: .85rem; color: var(--text-muted); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 8. Cards ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
  block-size: 100%;
}
:root[data-theme="light"] .card { box-shadow: var(--shadow-sm); }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
  box-shadow: var(--shadow-lg);
}
.card h3 { margin-block-end: .5rem; }
.card p { font-size: .93rem; color: var(--text-muted); margin: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 46px;
  block-size: 46px;
  border-radius: 13px;
  margin-block-end: 1.1rem;
  background: linear-gradient(140deg, rgba(45,225,194,.18), rgba(79,139,255,.16));
  border: 1px solid var(--border);
  color: var(--accent-text);
}
.card-icon svg { inline-size: 22px; block-size: 22px; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: 1.1rem; }
.tags li {
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: .26rem .6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------- 9. Process ---------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-block-end: .9rem;
  opacity: .9;
}
.step h3 { font-size: 1.05rem; margin-block-end: .4rem; }
.step p { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- 10. Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.check-list { display: grid; gap: 1.05rem; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; }
.check-list .ico {
  flex-shrink: 0;
  inline-size: 26px;
  block-size: 26px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 225, 194, .14);
  color: var(--accent-text);
  margin-block-start: 3px;
}
.check-list .ico svg { inline-size: 14px; block-size: 14px; }
.check-list strong { display: block; font-family: var(--font-display); font-weight: 600; margin-block-end: .15rem; }
.check-list span { font-size: .91rem; color: var(--text-muted); }

/* ---------- 11. Industries ---------- */
.industry {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.industry:hover { border-color: var(--border-strong); background: var(--surface-hover); transform: translateY(-3px); }
.industry svg { inline-size: 22px; block-size: 22px; color: var(--accent-text); flex-shrink: 0; }
.industry b { font-family: var(--font-display); font-weight: 600; font-size: .97rem; }
.industry small { display: block; color: var(--text-muted); font-size: .82rem; }

/* ---------- 12. FAQ ---------- */
.faq { display: grid; gap: .75rem; max-inline-size: 840px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .25s, background-color .25s;
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-hover); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  inline-size: 11px;
  block-size: 11px;
  margin-inline-start: auto;
  flex-shrink: 0;
  border-inline-end: 2px solid var(--text-muted);
  border-block-end: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--text-muted); font-size: .93rem; }
.faq .answer p:last-child { margin-block-end: 0; }

/* ---------- 13. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-line {
  display: flex;
  gap: .9rem;
  align-items: center;
  padding: .95rem 0;
  border-block-end: 1px solid var(--border);
}
.contact-line:last-child { border-block-end: 0; }
.contact-line .ico {
  inline-size: 38px; block-size: 38px;
  border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent-text); flex-shrink: 0;
}
.contact-line .ico svg { inline-size: 17px; block-size: 17px; }
.contact-line small { display: block; font-size: .76rem; color: var(--text-muted); }
.contact-line b, .contact-line a { font-family: var(--font-display); font-weight: 600; font-size: .97rem; }
.contact-line a:hover { color: var(--accent-text); }

.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
:root[data-theme="light"] .form-card { background: #fff; }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: block; margin-block-end: 1rem; }
.field > span {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-block-end: .4rem;
}
/* keep the asterisk on the same line as its label text */
.field > span.is-required::after {
  content: " *";
  color: var(--accent-text);
}

input, textarea, select {
  inline-size: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select { background: #F8FAFD; }
textarea { min-block-size: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: .65; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--brand-1);
  box-shadow: 0 0 0 3px rgba(45, 225, 194, .18);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
                    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
}
[dir="rtl"] select { background-position: 14px calc(50% + 2px), 20px calc(50% + 2px); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-block-start: 1.25rem;
}
.form-foot p { font-size: .78rem; color: var(--text-muted); margin: 0; flex: 1 1 220px; }

.form-status {
  margin-block-start: 1rem;
  padding: .85rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.form-status[data-state="ok"]  { border-color: rgba(45,225,194,.4);  color: var(--accent-text); }
.form-status[data-state="err"] { border-color: rgba(255,120,120,.4); color: #FF8E8E; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  overflow: clip;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
  background: linear-gradient(140deg,
      color-mix(in srgb, var(--brand-1) 12%, var(--surface-solid)),
      color-mix(in srgb, var(--brand-2) 12%, var(--surface-solid)));
}
.cta-band h2 { margin-block-end: .5rem; }
.cta-band p { max-inline-size: 52ch; margin-inline: auto; margin-block-end: 1.75rem; }
.cta-band .hero-cta { justify-content: center; margin-block-end: 0; }

/* ---------- 15. Footer ---------- */
.site-footer {
  border-block-start: 1px solid var(--border);
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-block-end: 2.5rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-block-end: 1rem;
  font-weight: 600;
}
.footer-grid li { margin-block-end: .55rem; }
.footer-grid li a { font-size: .9rem; color: var(--text-soft); transition: color .2s; }
.footer-grid li a:hover { color: var(--accent-text); }
.footer-about p { font-size: .9rem; color: var(--text-muted); max-inline-size: 34ch; margin-block-start: 1rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-muted);
}
.footer-bottom p { margin: 0; font-size: inherit; color: inherit; }

/* ---------- 16. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }

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

/* ---------- 17. Print ---------- */
@media print {
  .site-header, .nav, .orb, .cta-band, .form-card { display: none !important; }
  body { background: #fff; color: #000; }
}
