/* ═══════════════════════════════════════════════════════
   TAKTYN — Public site
   Identity carried over from the app (config/theme.py): dark
   background, tactical blue accent #3498db, C2/reticle look.
   ═══════════════════════════════════════════════════════ */

:root {
  --bg-main:    #121212;
  --bg-panel:   #1a1a1a;
  --bg-panel-2: #1e1e1e;
  --bg-input:   #202020;
  --accent:     #3498db;
  --accent-dim: rgba(52,152,219,0.14);
  --text-main:  #ecf0f1;
  --text-dim:   #95a5a6;
  --border:     #2a2a2a;
  --danger:     #e74c3c;
  --success:    #2ecc71;
  --warning:    #f1c40f;
  --mono: 'SF Mono', 'Courier New', 'Lucida Console', monospace;
  --sans: 'Helvetica Neue', 'Segoe UI', -apple-system, sans-serif;
  --display: 'Chakra Petch', 'Helvetica Neue', sans-serif;
  --max: 1120px;
  --header-bg: rgba(18,18,18,0.85);
}

:root[data-theme="light"] {
  --bg-main:    #f4f6f7;
  --bg-panel:   #ffffff;
  --bg-panel-2: #f7f9fa;
  --bg-input:   #ffffff;
  --accent:     #2980b9;
  --accent-dim: rgba(41,128,185,0.10);
  --text-main:  #17202a;
  --text-dim:   #5c6b73;
  --border:     #dbe1e4;
  --danger:     #c0392b;
  --success:    #1e8449;
  --warning:    #b8860b;
  --header-bg: rgba(255,255,255,0.85);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(52,152,219,0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.reveal-init { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-in { opacity: 1; transform: translateY(0); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
a:visited { color: inherit; }

.section-title {
  font-family: var(--display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-top: 10px;
  max-width: 560px;
}

.section-head { margin-bottom: 40px; }

.accent { color: var(--accent); }

/* ── Ops document section numbering ── */
.sec-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); opacity: 0.75; margin-bottom: 12px;
}

/* ── HUD viewfinder corners ── */
.hud-frame { position: relative; }
.hud-corner { position: absolute; width: 16px; height: 16px; pointer-events: none; }
.hud-corner::before, .hud-corner::after { content: ''; position: absolute; background: var(--accent); opacity: 0.55; }
.hud-corner::before { width: 100%; height: 2px; }
.hud-corner::after { width: 2px; height: 100%; }
.hud-tl { top: -1px; left: -1px; }
.hud-tr { top: -1px; right: -1px; }
.hud-tr::after { right: 0; left: auto; }
.hud-bl { bottom: -1px; left: -1px; }
.hud-bl::before { bottom: 0; top: auto; }
.hud-br { bottom: -1px; right: -1px; }
.hud-br::before { bottom: 0; top: auto; }
.hud-br::after { right: 0; left: auto; }

/* Faint tactical scanline overlay */
.scanline-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: repeating-linear-gradient(
    to bottom, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px,
    transparent 1px, transparent 3px
  );
  opacity: 0.4;
}

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-weight: 800; letter-spacing: 3px; font-size: 15px;
  font-family: var(--mono);
}

.header-status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--text-dim);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: pulse 1.8s infinite;
}
.header-clock {
  color: var(--accent); padding-left: 10px; border-left: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.main-nav a { color: var(--text-dim); transition: color .15s; white-space: nowrap; }
.main-nav a:hover { color: var(--text-main); }
.main-nav .nav-cta {
  color: var(--bg-main); background: var(--accent);
  padding: 8px 16px; border-radius: 4px; font-weight: 700;
}
.main-nav .nav-cta:hover { color: var(--bg-main); filter: brightness(1.1); }

.lang-switch {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1px;
  color: var(--text-dim); border: 1px solid var(--border); border-radius: 3px;
  padding: 4px 8px; margin-left: 4px;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

.theme-toggle {
  font-size: 13px; line-height: 1;
  color: var(--text-dim); background: none; border: 1px solid var(--border); border-radius: 3px;
  padding: 4px 8px; margin-left: 8px; cursor: pointer;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 100px 0 70px;
  overflow: clip;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(52,152,219,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(52,152,219,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 20%, black 20%, transparent 75%);
}

.hero-watermark {
  position: absolute; top: 50%; right: -80px; width: 620px; height: 620px;
  transform: translateY(-50%);
  opacity: 0.05; pointer-events: none;
  animation: watermark-spin 90s linear infinite;
}
@keyframes watermark-spin { to { transform: translateY(-50%) rotate(360deg); } }

.grid-ref {
  margin-top: 30px; font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.5px;
}
.grid-ref span { color: var(--border); margin: 0 6px; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 2px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(52,152,219,0.3);
  padding: 6px 14px; border-radius: 20px; margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(46,204,113,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.04;
  text-transform: uppercase;
}

.hero-sub {
  color: var(--text-dim); font-size: 16.5px; max-width: 480px;
  margin-top: 22px;
}

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

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 4px;
  font-weight: 700; font-size: 14.5px; transition: all .15s; border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-ghost { border-color: var(--border); color: var(--text-main); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Terminal widget ── */
.terminal {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; box-shadow: 0 30px 80px -40px rgba(52,152,219,0.35);
  font-family: var(--mono); font-size: 12.5px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; background: var(--bg-panel-2); border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-red { background: #e74c3c; } .t-yellow { background: #f1c40f; } .t-green { background: #2ecc71; }
.terminal-path { margin-left: 10px; color: var(--text-dim); font-size: 11px; }
.terminal-body { padding: 18px 16px; min-height: 220px; }
.tl-row { padding: 3px 0; white-space: pre; color: var(--text-main); }
.tl-cmd { color: var(--text-dim); }
.tl-ok { color: var(--success); }
.tl-warn { color: var(--warning); }
.tl-info { color: var(--accent); margin-top: 6px; }
.tl-cursor-row { display: flex; gap: 6px; align-items: center; }
.tl-prompt { color: var(--text-dim); }
.tl-cursor {
  width: 7px; height: 14px; background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ── Ticker ── */
.ticker {
  overflow: hidden; background: var(--bg-panel);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 4px; width: max-content;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-dim); white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-sep { color: var(--accent); opacity: 0.5; margin: 0 22px; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
}

/* ── Stats bar ── */
.stats-bar { border-bottom: 1px solid var(--border); background: var(--bg-panel); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
}
.stat {
  padding: 26px 20px; text-align: center; border-right: 1px solid var(--border);
}
.stat-num {
  display: block; font-family: var(--mono); font-size: 26px; font-weight: 800; color: var(--accent);
}
.stat-lbl { display: block; font-size: 11.5px; color: var(--text-dim); margin-top: 6px; }

/* ── Problem / compare ── */
.problem { padding: 80px 0; border-bottom: 1px solid var(--border); }
.problem .section-title { text-align: center; max-width: 640px; margin: 0 auto; }
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch;
  margin-top: 44px;
}
.compare-col {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px 26px;
}
.compare-before { border-left: 3px solid var(--text-dim); }
.compare-after { border-left: 3px solid var(--accent); }
.compare-head {
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 16px;
}
.compare-after .compare-head { color: var(--accent); }
.compare-col ul { display: flex; flex-direction: column; gap: 12px; }
.compare-col li {
  font-size: 13.5px; color: var(--text-dim); padding-left: 16px; position: relative;
}
.compare-before li::before { content: '×'; position: absolute; left: 0; color: var(--text-dim); font-weight: 700; }
.compare-after li { color: var(--text-main); }
.compare-after li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.compare-arrow {
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent); font-weight: 700;
}

/* ── Features ── */
.features { padding: 90px 0; border-bottom: 1px solid var(--border); }
.features-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.feature-card {
  grid-column: span 2;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 26px 24px; transition: border-color .15s, transform .15s;
}
.feature-card:hover { border-color: rgba(52,152,219,0.4); transform: translateY(-2px); }
.feature-card--hero {
  grid-column: span 4;
  background:
    linear-gradient(135deg, rgba(52,152,219,0.09), transparent 60%),
    var(--bg-panel);
  border-color: rgba(52,152,219,0.3);
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px 34px;
}
.feature-card--hero h3 { font-size: 22px; }
.feature-card--hero p { font-size: 14.5px; max-width: 440px; }
.feature-card--third { grid-column: span 3; }
.feature-card--wide {
  grid-column: span 6;
  display: flex; align-items: flex-start; gap: 24px;
  background: var(--bg-panel-2);
}
.feature-card--wide .f-icon { margin-bottom: 0; flex-shrink: 0; margin-top: 3px; }
.feature-card--wide p { max-width: 620px; }
.f-icon {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 26px; padding: 0 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: 1px;
  border-radius: 4px; background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(52,152,219,0.3);
  margin-bottom: 16px;
}
.feature-card h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; color: var(--text-dim); }

/* ── Gallery ── */
.gallery { padding: 90px 0; border-bottom: 1px solid var(--border); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-slot {
  aspect-ratio: 16 / 10; border-radius: 8px;
  background:
    linear-gradient(rgba(52,152,219,0.05), rgba(52,152,219,0.05)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 10px);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  grid-column: 1 / -1;
}
.gallery-slot-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--text-dim);
}
.gallery-grid--shots { grid-template-columns: repeat(6, 1fr); }
.gallery-shot {
  grid-column: span 2;
  aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  background: var(--bg-panel);
}
.gallery-shot--wide { grid-column: span 4; }
.gallery-shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform .3s ease;
}
.gallery-shot:hover img { transform: scale(1.03); }

.gallery-shot--video {
  grid-column: span 6; aspect-ratio: auto; cursor: default;
}
.gallery-shot--video video {
  width: 100%; display: block; background: var(--bg-main);
}

/* ── Lightbox ── */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(8,8,8,0.92);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox-overlay.open { opacity: 1; pointer-events: auto; }
.lightbox-overlay figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox-overlay img {
  max-width: 92vw; max-height: 80vh; object-fit: contain;
  border-radius: 6px; border: 1px solid var(--border);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.lightbox-overlay figcaption {
  margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-dim);
}
.lightbox-close {
  position: absolute; top: 22px; right: 28px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text-main); font-size: 22px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }
.gallery-shot-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 20px 12px 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1px;
  color: var(--text-main);
}

/* ── Security ── */
.security { padding: 90px 0; border-bottom: 1px solid var(--border); background: var(--bg-panel); }
.security-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.security-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.security-list li {
  font-size: 14px; color: var(--text-dim); padding-left: 18px; position: relative;
}
.security-list li::before {
  content: ''; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px;
  background: var(--accent); transform: rotate(45deg);
}
.security-list strong { color: var(--text-main); }

.security-card {
  background: var(--bg-main); border: 1px solid var(--border); border-radius: 10px;
  padding: 30px; position: sticky; top: 90px;
}
.sc-badge { font-size: 30px; margin-bottom: 14px; }
.security-card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 10px; }
.security-card p { font-size: 13.5px; color: var(--text-dim); }
.sc-divider { height: 1px; background: var(--border); margin: 18px 0; }
.sc-small { font-size: 12.5px; }

/* ── Field rack ── */
.field-rack { padding: 70px 0; border-bottom: 1px solid var(--border); }
.field-rack-card {
  position: relative;
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(52,152,219,0.07), transparent 55%), var(--bg-panel);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 36px 40px;
}
.fr-icon {
  flex-shrink: 0; align-self: flex-start;
  font-family: var(--mono); font-weight: 800; font-size: 13px; letter-spacing: 1px;
  color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(52,152,219,0.3);
  border-radius: 4px; padding: 8px 12px;
}
.fr-text { flex: 1 1 380px; }
.fr-text .sec-num { margin-bottom: 10px; }
.fr-text .section-title { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 12px; }
.fr-text p { font-size: 14px; color: var(--text-dim); max-width: 560px; }
.fr-badges { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.fr-badges span {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px;
  color: var(--text-dim); border: 1px solid var(--border); border-radius: 3px;
  padding: 7px 12px; white-space: nowrap;
}

.field-diagram {
  margin-top: 28px; background: var(--bg-panel);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 20px 18px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.field-diagram svg { width: 100%; height: auto; display: block; }
.field-diagram figcaption {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-dim); line-height: 1.5; max-width: 680px;
}

/* ── Sectors ── */
.sectors { padding: 90px 0; border-bottom: 1px solid var(--border); }
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sector-card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 8px;
  padding: 22px; font-weight: 600; font-size: 14.5px;
  border-left: 3px solid var(--accent);
}
.sector-card--muted {
  border-left-color: var(--border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.sector-card--muted span {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px;
  background: var(--bg-input); padding: 3px 8px; border-radius: 10px; color: var(--text-dim);
}

/* ── Process ── */
.process { padding: 90px 0; border-bottom: 1px solid var(--border); }
.process .section-title { text-align: center; margin-bottom: 50px; }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; }
.step-num {
  font-family: var(--mono); font-size: 13px; font-weight: 800; color: var(--accent);
  border: 1.5px solid var(--accent); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.step h3 { font-family: var(--display); font-size: 17px; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--text-dim); max-width: 280px; margin: 0 auto; }

/* ── Pricing ── */
.pricing { padding: 90px 0; border-bottom: 1px solid var(--border); }
.pricing .section-head { text-align: center; }
.pricing .section-sub { margin-left: auto; margin-right: auto; }
.pricing-card {
  max-width: 460px; margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px;
  padding: 34px 34px 30px;
}
.pricing-badge {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 1.5px; color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(52,152,219,0.3); padding: 5px 12px; border-radius: 3px;
  margin-bottom: 22px;
}
.pricing-features { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.pricing-features li {
  font-size: 13.5px; color: var(--text-dim); padding-left: 22px; position: relative;
}
.pricing-features li::before {
  content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 800;
}

/* ── Contact ── */
.contact { padding: 90px 0; }
.contact-inner { max-width: 560px; }
.contact-form { margin-top: 34px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.4px; color: var(--text-dim); }
.form-row input, .form-row textarea {
  background: var(--bg-input); border: 1px solid var(--border); border-radius: 5px;
  padding: 11px 13px; color: var(--text-main); font-family: inherit; font-size: 14px;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-legal { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: -6px; }
.form-legal a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.form-legal a:hover { color: var(--accent); }
.form-status { font-size: 13px; text-align: center; margin-top: -6px; min-height: 1em; }
.form-status-ok { color: var(--success); }
.form-status-error { color: var(--danger); }

/* ── Footer ── */
.site-footer { padding: 44px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-brand .brand-name { font-size: 13px; }
.footer-tagline { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; color: var(--text-dim); }
.footer-copy { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.footer-copy a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: var(--accent); }

/* ── Legal page ── */
.legal { padding: 100px 0 90px; }
.legal-inner { max-width: 720px; }
.legal-updated { color: var(--text-dim); font-size: 13px; margin-top: 10px; }
.legal-body { margin-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.legal-body h2 {
  font-size: 16px; font-weight: 700; margin-top: 30px; margin-bottom: 4px;
  color: var(--text-main);
}
.legal-body p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }
.legal-body ul { margin: 6px 0 6px 20px; display: flex; flex-direction: column; gap: 4px; }
.legal-body li { font-size: 14.5px; color: var(--text-dim); }
.legal-body a { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 880px) {
  .security-inner { grid-template-columns: 1fr; }
  .security-card { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-watermark { display: none; }
  .field-rack-card { padding: 30px 26px; }
  .fr-badges { flex-direction: row; flex-wrap: wrap; flex-basis: 100%; flex-shrink: 1; }
  .compare { grid-template-columns: 1fr; }
  .compare-arrow { transform: rotate(90deg); padding: 4px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card, .feature-card--hero, .feature-card--third { grid-column: span 1; }
  .feature-card--wide { grid-column: span 2; flex-direction: column; }
  .gallery-grid--shots { grid-template-columns: repeat(2, 1fr); }
  .gallery-shot, .gallery-shot--wide, .gallery-shot--video { grid-column: span 1; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-main); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; }
  .main-nav .lang-switch, .main-nav .theme-toggle { align-self: flex-start; margin: 12px 8px 0 0; border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-status { display: none; }
  .features-grid, .gallery-grid, .gallery-grid--shots, .sectors-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .gallery-shot, .gallery-shot--wide, .gallery-shot--video { grid-column: span 1; }
  .hero { padding: 60px 0 40px; }
  .grid-ref { font-size: 10px; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }

  .terminal-body { font-size: 10.5px; min-height: 190px; padding: 14px 12px; }

  .field-rack-card { padding: 22px 18px; gap: 20px; }
  .field-diagram svg { min-width: 620px; }
  .field-diagram { padding: 16px 16px 14px; }

  .pricing-card { padding: 26px 22px 24px; }
  .compare-col { padding: 20px 18px; }
  .feature-card, .feature-card--hero, .feature-card--wide { padding: 22px 20px; }
}
