@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@500;700;800&family=Heebo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --paper: #f7f9fb;
  --paper-raised: #ffffff;
  --ink: #0e1b26;
  --steel: #48586a;
  --steel-soft: #8896a3;
  --line: #dee4e9;
  --line-strong: #c3ccd4;
  --signal: #e08a00;
  --signal-deep: #b96f00;
  --signal-soft: #fdf0da;
  --max-width: 1180px;
  --font-display: 'Rubik', 'Heebo', -apple-system, sans-serif;
  --font-body: 'Heebo', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* Eyebrow / mono label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: var(--signal-deep);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 1px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 251, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  text-decoration: none;
  color: var(--steel);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  font-weight: 500;
  color: var(--steel) !important;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 5px 10px;
}

.lang-switch:hover {
  border-color: var(--signal);
  color: var(--signal-deep) !important;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-block;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--signal);
  color: #fff;
  padding: 12px 22px;
}

.btn-primary:hover {
  background: var(--signal-deep);
  box-shadow: 0 6px 18px rgba(224, 138, 0, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  padding: 11px 22px;
}

.btn-ghost:hover {
  border-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 110px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, black, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black, black 55%, transparent 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero-copy p.lede {
  color: var(--steel);
  font-size: 1.14rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-graphic {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-frame {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 5 / 6;
}

.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
}

.hud-corner.tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.hud-corner.tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.hud-corner.bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.hud-corner.br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

.shield-svg {
  width: 100%;
  height: 100%;
}

.shield-outline,
.shield-facet {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 1.8s ease forwards 0.2s;
}

.shield-facet {
  stroke: var(--steel-soft);
  stroke-width: 1.1;
  animation-delay: 0.5s;
}

.shield-core {
  fill: var(--signal);
  opacity: 0;
  transform-origin: 100px 118px;
  animation: core-in 0.6s ease forwards 1.5s;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes core-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

.hud-readout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-soft);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hud-readout.r1 { top: 6%; right: -6%; text-align: left; }
.hud-readout.r2 { bottom: 8%; left: -8%; text-align: right; }

.hud-readout .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--signal);
  border-radius: 50%;
  margin-inline-end: 6px;
}

/* Sections */
section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  max-width: 640px;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-header p {
  color: var(--steel);
  font-size: 1.06rem;
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header--center .eyebrow {
  justify-content: center;
}

/* Capability cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar-card {
  position: relative;
  background: var(--paper-raised);
  padding: 34px 30px;
  transition: background 0.15s ease;
}

.pillar-card:hover {
  background: var(--signal-soft);
}

.pillar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--signal-deep);
  border: 1px solid var(--signal);
  border-radius: 2px;
  padding: 3px 8px;
  margin-bottom: 20px;
}

[lang="he"] .pillar-tag {
  letter-spacing: 0;
}

[lang="he"] .eyebrow,
[lang="he"] .hud-readout {
  letter-spacing: 0.01em;
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card p {
  color: var(--steel);
  font-size: 0.96rem;
}

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-inner img {
  border-radius: 6px;
  border: 1px solid var(--line);
}

.about-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.about-copy p {
  color: var(--steel);
  margin-bottom: 16px;
}

.notice {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--signal);
  border-radius: 3px;
  padding: 16px 18px;
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* Contact */
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
}

.contact-inner .section-header {
  margin-bottom: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

[lang="he"] .form-row label {
  letter-spacing: 0;
  text-transform: none;
}

.form-row input,
.form-row textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-inner .btn-primary {
  width: 100%;
  padding: 13px 22px;
  font-size: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--steel-soft);
  font-size: 0.88rem;
}

.footer-brand img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--steel-soft);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--steel);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

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

  .hero-graphic {
    order: -1;
  }

  .hud-frame {
    max-width: 220px;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-inner .about-image {
    order: -1;
  }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px 28px;
    gap: 18px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .contact-inner {
    padding: 30px 22px;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }
}

/* RTL adjustments */
[dir="rtl"] .eyebrow::before {
  transform: rotate(45deg);
}

[dir="rtl"] .site-nav.open {
  left: 0;
  right: 0;
}
