/* Flyby Security — foaie de stil
   Direcție vizuală: minimalism Apple. Alb și albastru la lumină, negru și
   albastru pe întuneric. Tipografia folosește chiar SF Pro pe dispozitivele
   Apple (prin stiva de sistem), cu Inter ca rezervă în rest. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #ffffff;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --wrap: 1024px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0a0a0c;
    --card: #131316;
    --ink: #f5f5f7;
    --ink-soft: #86868b;
    --accent: #2997ff;
    --accent-hover: #47a6ff;
    --accent-ink: #ffffff;
    --line: rgba(255, 255, 255, 0.14);
    --line-soft: rgba(255, 255, 255, 0.07);
    --shadow: none;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0c;
  --card: #131316;
  --ink: #f5f5f7;
  --ink-soft: #86868b;
  --accent: #2997ff;
  --accent-hover: #47a6ff;
  --accent-ink: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --shadow: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- tipografie ---------- */

h1, h2, h3 { letter-spacing: -0.022em; text-wrap: balance; margin: 0; font-weight: 600; }

.display {
  font-size: clamp(38px, 6.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.headline {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.026em;
}

.sub {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 18px auto 0;
}

.eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- butoane ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;          /* pastila Apple */
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }

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

.link-arrow { font-size: 17px; color: var(--accent); }
.link-arrow::after { content: " ›"; }

.cta-row {
  display: flex;
  gap: 14px 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- navigație ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 52px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; display: block; }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--ink); font-size: 13px; opacity: 0.85; }
.nav-links a:hover { opacity: 1; text-decoration: none; }

.nav-cta { font-size: 13px; padding: 6px 15px; }

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

/* ---------- secțiuni ---------- */

section { padding: 96px 0; }
section.alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 44ch; margin: 0 auto 56px; }
.section-head .sub { max-width: 46ch; }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 0;
  text-align: center;
  background: var(--bg-alt);
}

.hero .badge {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 980px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.hero-visual {
  margin: 56px auto 0;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%),
    var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- pași ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 16px; }

/* ---------- carduri ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.card .glyph { font-size: 24px; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 15.5px; }

/* ---------- tabel comparativ ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); font-size: 15.5px; }
thead th { font-size: 13px; color: var(--ink-soft); font-weight: 500; }
thead th:nth-child(2) { color: var(--accent); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink-soft); }
td:nth-child(2) { font-weight: 500; }

/* ---------- descărcare aplicație ---------- */

.download { text-align: center; }

.app-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  margin: 0 auto 26px;
  display: block;
  border: 1px solid var(--line);
}

.platforms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
  text-align: left;
}

.platform {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 26px 26px 28px;
  transition: border-color 0.2s ease;
}
/* Evidențiem doar platforma vizitatorului — restul rămân disponibile, dar liniștite. */
.platform.current { border-color: var(--accent); }

.platform h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.platform .tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 980px;
  padding: 2px 9px;
  font-weight: 500;
}
.platform ol { margin: 0; padding-left: 19px; display: flex; flex-direction: column; gap: 9px; }
.platform li { color: var(--ink-soft); font-size: 15px; line-height: 1.45; }
.platform li::marker { color: var(--accent); }

.note {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 34px auto 0;
  max-width: 56ch;
}

/* ---------- FAQ ---------- */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-soft); margin: 12px 0 0; font-size: 16px; max-width: 62ch; }

/* ---------- formular ---------- */

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; color: var(--ink-soft); }
.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
}
.field input::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); }
.field input:focus { border-color: var(--accent); outline: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 22px; }
.consent input { margin-top: 3px; accent-color: var(--accent); }

.form-card .btn { width: 100%; }

.form-msg { margin-top: 14px; font-size: 14.5px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { color: var(--accent); }
.form-msg.err { color: #d70015; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-msg.err { color: #ff453a; } }
:root[data-theme="dark"] .form-msg.err { color: #ff453a; }

/* ---------- subsol ---------- */

footer.site {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0;
  background: var(--bg-alt);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.foot ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--ink); text-decoration: none; }

/* ---------- pagini legale ---------- */

/* Paginile legale nu stau într-un .wrap, deci își poartă singure marginile. */
.legal { max-width: 720px; margin: 0 auto; padding: 72px 22px 96px; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 40px; }
.legal h2 { font-size: 19px; margin-top: 38px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.62; }

/* ==========================================================================
   Drona care însoțește derularea
   Fotografia reală a unității, decupată de fundal. Zboară pe lângă text, nu
   peste el: pozițiile o țin în marginile paginii pe ecrane late, iar pe
   telefon rămâne doar în hero, unde nu are ce acoperi.
   ========================================================================== */

.hero-stage {
  position: relative;
  height: min(56vh, 460px);
  margin-top: 34px;
}

/* Suprafața pe care „stă" drona în hero — o umbră de lumină, nu un obiect. */
.stage-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(70%, 520px);
  height: 90px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side,
              color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%);
  filter: blur(14px);
  opacity: 0.65;
}

.hero-drone {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(78%, 430px);
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.30));
}

/* ---------- apariția textului ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- galeria prototipului ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--card);
}
.shots .shot:nth-child(2) { transition-delay: 0.08s; }
.shots .shot:nth-child(3) { transition-delay: 0.16s; }

/* ---------- ecrane înguste ---------- */

@media (max-width: 820px) {
  /* Pe telefon marginile nu există: drona ar zbura fix peste text.
     Rămâne doar în hero și se stinge la primul scroll — traiectoria e
     definită în JS, aici doar o facem mai mare, cât să se vadă. */
  .hero-drone { width: min(76%, 300px); }
  .hero-stage { height: min(46vh, 340px); }
}

/* ---------- fără animație, la cerere ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- butonul de ascultat alarma ---------- */

.btn-small { font-size: 15px; padding: 8px 18px; margin-top: 18px; }

/* Starea de redare se vede, nu doar se aude — cine a dat din greșeală click
   trebuie să găsească imediat cum se oprește. */
.btn-small.playing { background: var(--accent); color: var(--accent-ink); }

.sound-note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; }
