/* dark-theme.css — PiastIT "dark tech / security" design system
   Loaded after tailwind.css: Tailwind still drives layout/spacing utilities
   (max-w-*, grid, flex, gap-*, p-*, rounded-*, text sizes); this file owns
   color, typography character and the handful of custom components below. */

:root {
  --bg: #0a0f15;
  --bg-2: #0e1520;
  --panel: #121a24;
  --panel-2: #0d131b;
  --ink: #e9eff3;
  --ink-soft: #8fa3ae;
  --ink-faint: #566b76;
  --line: #1f2b36;
  --line-soft: #182129;
  --cyan: #3fd6e6;
  --cyan-dim: rgba(63, 214, 230, 0.12);
  --gold: #d7ab5c;
  --gold-dim: rgba(215, 171, 92, 0.14);
  --mono: "SF Mono", "Cascadia Code", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

html { color-scheme: dark; }
body { background: var(--bg); color: var(--ink); }
::selection { background: var(--cyan-dim); color: var(--ink); }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; }

/* ---------- typography helpers ---------- */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.mono { font-family: var(--mono); }
.accent-text { color: var(--cyan); }
.gold-text { color: var(--gold); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
  flex: none;
}

/* ---------- header / footer chrome ---------- */
.site-header {
  background: rgba(10, 15, 21, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .nav-link { color: var(--ink-soft); }
.site-header .nav-link:hover { color: var(--ink); }
.site-header .nav-link.strong { color: var(--ink); }
.nav-link.nav-active { color: var(--cyan); font-weight: 600; }
.lang-pill { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); }
.lang-pill .current { color: var(--ink); font-weight: 700; }
.lang-pill a:hover { color: var(--ink); }

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line-soft); color: var(--ink-faint); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--cyan); color: #061217;
  box-shadow: 0 0 0 1px rgba(63,214,230,.3), 0 14px 30px -12px rgba(63,214,230,.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(63,214,230,.45), 0 18px 34px -10px rgba(63,214,230,.6); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); background: var(--panel); }
.btn-dark { background: var(--cyan); color: #061217; }
.btn-dark:hover { filter: brightness(1.08); }

/* ---------- surfaces / cards ---------- */
.surface { background: var(--panel); border: 1px solid var(--line); }
.surface-2 { background: var(--panel-2); border: 1px solid var(--line); }
.surface-soft { background: var(--bg-2); }
.card-hover:hover { background: var(--panel-2); }
.section-line { border-top: 1px solid var(--line-soft); }
.divider { border-color: var(--line); }

/* service / feature cards */
.icon-tile {
  width: 38px; height: 38px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--cyan-dim); color: var(--cyan);
}
.icon-tile.gold { background: var(--gold-dim); color: var(--gold); }
.link-arrow { color: var(--cyan); font-weight: 600; font-size: 13px; }

/* about / credibility items */
.rule-top { border-top: 2px solid var(--cyan); }

/* ---------- pricing cards ---------- */
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
}
.pricing-card.featured {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(63,214,230,.25), 0 20px 40px -24px rgba(63,214,230,.5);
}
.pricing-card .price { color: var(--ink); }
.pricing-card ul li { color: var(--ink-soft); }
.pricing-card ul li::marker { color: var(--cyan); }

/* ---------- FAQ ---------- */
details.faq {
  background: var(--panel);
  border: 1px solid var(--line);
}
details.faq summary { color: var(--ink); }
details.faq summary .chevron { color: var(--ink-faint); }
details.faq p { color: var(--ink-soft); }

/* callouts */
.callout { background: var(--panel); border-left: 3px solid var(--gold); }
.callout h2, .callout h3 { color: var(--ink); }
.callout p { color: var(--ink-soft); }

/* ---------- forms ---------- */
.field label { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.field input, .field select, .field textarea,
input.dt-input, select.dt-input, textarea.dt-input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus,
input.dt-input:focus, select.dt-input:focus, textarea.dt-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.status-ok { color: #56d69a; }
.status-err { color: #ec7a61; }

/* ---------- hero radar visual ---------- */
.radar {
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.radar::before, .radar::after {
  content: "";
  position: absolute; inset: 16%;
  border-radius: 50%;
  border: 1px solid var(--line-soft);
}
.radar::after { inset: 32%; }
.radar .core {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(63,214,230,.20), rgba(63,214,230,0) 70%);
  border: 1px solid var(--cyan-dim);
  display: grid; place-items: center;
}
.radar .core svg { width: 34%; opacity: .9; color: var(--cyan); }
.radar .sweep {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(63,214,230,.5), transparent 26%);
  animation: dt-spin 5.5s linear infinite;
  mask: radial-gradient(circle, transparent 0%, black 1%);
}
.radar .blip {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px var(--gold-dim);
}
@keyframes dt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .radar .sweep { animation: none; opacity: .35; }
}

/* terms / regulamin pages */
.legal h1 { color: var(--ink); }
.legal h2 { color: var(--cyan); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.legal p { color: var(--ink-soft); }
.legal a.switch-lang { color: var(--ink-faint); border-bottom: 1px solid var(--line); }
.legal a.switch-lang:hover { color: var(--ink); }
