/* ==========================================================================
   LegaSys — Legacy systems maintenance
   RTL Hebrew stylesheet. Uses logical properties so layout follows dir="rtl".
   ========================================================================== */

:root {
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --muted: #5b6577;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: #e3dfd5;
  --amber: #f2a900;
  --amber-dark: #b77f00;
  --amber-soft: #fff4d6;
  --phosphor: #3dff8b;
  --night: #0b1220;
  --night-2: #121c33;
  --danger: #c0392b;
  --ok: #1e8f4e;

  --font-body: "Heebo", "Arial Hebrew", Arial, sans-serif;
  --font-display: "Rubik", "Heebo", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px rgba(20, 33, 61, .08);
  --container: 1180px;
  --header-h: 72px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--amber-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--amber);
  color: var(--night);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s, background-color .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--amber); color: var(--night); box-shadow: 0 6px 18px rgba(242, 169, 0, .35); }
.btn-primary:hover { background: #ffbb1f; color: var(--night); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); color: inherit; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); color: #fff; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: .01em;
}
.logo:hover { color: #fff; }
.logo img { width: 36px; height: 36px; }
.logo .accent { color: var(--amber); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .15s, background-color .15s;
}
.main-nav a:hover,
.main-nav a.active { color: #fff; background: rgba(255, 255, 255, .07); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: .55em 1.1em; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-text { display: none; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--night);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    z-index: -1;
  }
  .main-nav.open { transform: translateY(0); visibility: visible; }
  .main-nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .main-nav a { padding: 12px 8px; font-size: 1.1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(242, 169, 0, .16), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(61, 255, 139, .07), transparent 60%),
    var(--night);
  color: #fff;
  padding: 88px 0 96px;
}
.hero::before {
  /* subtle grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(242, 169, 0, .1);
  border: 1px solid rgba(242, 169, 0, .3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.hero h1 .hl { color: var(--amber); }
.hero .lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .78);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 36px;
  margin: 0;
  padding: 0;
}
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: rgba(255, 255, 255, .6); font-size: .92rem; }
.hero-stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Terminal mock */
.terminal {
  direction: ltr;
  background: #050a14;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(242, 169, 0, .05), inset 0 0 60px rgba(61, 255, 139, .04);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: .9rem;
  position: relative;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0e1626;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .45);
  font-size: .8rem;
}
.terminal-bar i { width: 12px; height: 12px; border-radius: 50%; background: #2a3550; display: inline-block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-inline-start: auto; }
.terminal-body {
  padding: 20px 22px 24px;
  min-height: 330px;
  color: var(--phosphor);
  text-shadow: 0 0 6px rgba(61, 255, 139, .45);
  white-space: pre-wrap;
  line-height: 1.75;
}
.terminal-body .dim { color: #6f8a7a; text-shadow: none; }
.terminal-body .amb { color: var(--amber); text-shadow: 0 0 6px rgba(242, 169, 0, .45); }
.terminal-body .warn { color: #ff7a6b; text-shadow: 0 0 6px rgba(255, 122, 107, .4); }
.cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  background: var(--phosphor);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal::after {
  /* scanlines */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 24px; }
  .hero-stats dd { font-size: 1.6rem; }
  .terminal-body { min-height: 280px; font-size: .8rem; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--night); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  color: var(--amber-dark);
  letter-spacing: .04em;
  margin-bottom: 10px;
  direction: ltr;
}
.section-dark .kicker { color: var(--amber); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }

@media (max-width: 700px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 36px; }
}

/* ---------- Pain points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.pain {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.pain .ico {
  flex: none;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fde8e5;
  color: var(--danger);
}
.pain .ico svg { width: 22px; height: 22px; }
.pain h3 { font-size: 1.08rem; margin-bottom: 4px; }
.pain p { margin: 0; color: var(--muted); font-size: .98rem; }

.pain-answer {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
}
.pain-answer p { margin: 0; font-size: 1.2rem; font-weight: 500; }
.pain-answer strong { color: var(--amber); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6cfbf; }
.service .ico {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--amber);
  margin-bottom: 20px;
}
.service .ico svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--muted); }
.service ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: .96rem;
}
.service li { position: relative; padding-inline-start: 22px; }
.service li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .62em;
  width: 10px; height: 10px;
  border-radius: 2px;
  background: var(--amber);
}

@media (max-width: 1000px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Tech stack ---------- */
.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.tech-group {
  background: var(--night-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 26px;
}
.tech-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.tech-group h3 svg { width: 22px; height: 22px; color: var(--amber); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  direction: ltr;
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(61, 255, 139, .06);
  border: 1px solid rgba(61, 255, 139, .22);
  color: #b9ffd6;
}
.tech-note {
  margin-top: 32px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.tech-note a { color: var(--amber); }

@media (max-width: 800px) { .tech-groups { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.industry {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.industry .ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--amber-soft);
  color: var(--amber-dark);
}
.industry .ico svg { width: 24px; height: 24px; }
.industry h3 { font-size: 1.1rem; margin-bottom: 4px; }
.industry p { margin: 0; color: var(--muted); font-size: .96rem; }

@media (max-width: 1000px) { .industries { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .industries { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.2rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .98rem; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  inset-inline-end: -16px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  transform: rotate(-45deg);
  z-index: 1;
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Compare ---------- */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: center;
}
.compare-wrap .section-head { margin-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .98rem;
  min-width: 520px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; }
.compare thead th.us { background: var(--amber); color: var(--night); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 30%; }
.compare td.us { background: #fffaf0; font-weight: 500; }
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

@media (max-width: 900px) { .compare-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Plans ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.plan.featured {
  border: 2px solid var(--amber);
  box-shadow: 0 20px 50px rgba(242, 169, 0, .18);
  position: relative;
}
.plan .badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 24px;
  background: var(--amber);
  color: var(--night);
  font-size: .82rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .plan-desc { color: var(--muted); min-height: 3.4em; }
.plan .price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 0;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 4px; }
.plan .btn { width: 100%; }

@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #d6cfbf; box-shadow: var(--shadow); background: var(--surface); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--amber-dark);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: start;
}
.contact-info .section-head { margin-bottom: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ico {
  flex: none;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(242, 169, 0, .12);
  color: var(--amber);
}
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: rgba(255, 255, 255, .6); font-size: .88rem; }
.contact-list a,
.contact-list span.val { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.08rem; }
.contact-list a:hover { color: var(--amber); }

.emergency {
  border: 1px dashed rgba(242, 169, 0, .5);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: rgba(242, 169, 0, .06);
  color: rgba(255, 255, 255, .85);
}
.emergency strong { color: var(--amber); }

.contact-form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--amber);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(242, 169, 0, .18);
}
.field input[type="tel"],
.field input[type="email"] { direction: ltr; text-align: right; }
.field .error { color: var(--danger); font-size: .88rem; min-height: 0; }
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: var(--danger); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.consent input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--amber-dark); }
.form-actions { margin-top: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-weight: 600; margin: 0; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; inset-inline-start: -9999px; }

@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--amber);
  color: var(--night);
  padding: 56px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 4px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: #070c17;
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 28px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-about p { margin-top: 14px; max-width: 30em; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .88rem;
}
.footer-bottom .mono { color: rgba(61, 255, 139, .7); direction: ltr; }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating call button (mobile) ---------- */
.float-call {
  position: fixed;
  inset-inline-start: 16px;
  bottom: 16px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--amber);
  color: var(--night);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.float-call svg { width: 26px; height: 26px; }
@media (max-width: 700px) { .float-call { display: grid; } }

/* ---------- Legal / inner pages ---------- */
.page-hero {
  background: var(--night);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.page-hero p { color: rgba(255, 255, 255, .7); margin: 0; }
.prose { max-width: 780px; padding: 56px 20px 88px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-inline-start: 1.3em; }
.prose li { margin-bottom: .4em; }

.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--night);
  color: #fff;
  padding: 40px 20px;
}
.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 8rem);
  color: var(--phosphor);
  text-shadow: 0 0 20px rgba(61, 255, 139, .5);
  line-height: 1;
  margin-bottom: 12px;
  direction: ltr;
}
.notfound p { color: rgba(255, 255, 255, .7); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  .site-header, .float-call, .cta-band, .contact-form, .nav-toggle { display: none !important; }
  body { background: #fff; }
}
