/* ════════════════════════════════════════════════════════
   DOA — shared design system
   Single source of truth for tokens, nav, footer,
   typography, buttons, cards, and shared behaviours.
   Every page links this file; page-specific styles stay
   in each page's own <style> block, built on these tokens.
   ════════════════════════════════════════════════════════ */

:root {
  /* surfaces */
  --bg:      #161513;
  --bg2:     #1C1B18;
  --card:    #211F1C;
  --card2:   #2A2A27;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);

  /* type */
  --ink:  #F5F4EF;
  --ink2: #A3A29C;
  --ink3: #6C6B66;

  /* accent */
  --accent:      #8a2be2;
  --accent-deep: #7a20d2;
  --accent2:     #b066ff;
  --accent-dim:  rgba(138,43,226,0.14);

  /* status */
  --green:      #34D399;
  --green-dim:  rgba(52,211,153,0.1);
  --yellow:     #FBBF24;
  --yellow-dim: rgba(251,191,36,0.1);
  --blue:       #60A5FA;
  --blue-dim:   rgba(96,165,250,0.1);
  --red:        #f87171;
  --red-dim:    rgba(248,113,113,0.1);

  /* shape */
  --radius:    14px;
  --radius-sm: 10px;

  /* layout */
  --nav-h: 84px;

  /* fonts */
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'League Spartan', sans-serif;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink2);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* grain texture — the single most common trait of a "crafted" dark site */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
::selection { background: rgba(138,43,226,0.4); color: var(--ink); }

img { max-width: 100%; }

/* ── Typography ── */
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--font-display); font-weight: 800; line-height: 1.02; }
h1 { font-size: clamp(44px, 6.5vw, 80px); letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.5vw, 50px); letter-spacing: -0.02em; }
h1 em, h2 em { color: var(--accent2); font-style: italic; font-weight: 800; }

.kicker {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 18px;
}
.kicker b { color: var(--accent2); font-weight: 700; }

.section { padding: 96px 40px; max-width: 1100px; margin: 0 auto; }
.section-sub { font-size: 17px; color: var(--ink2); max-width: 540px; line-height: 1.7; margin-top: 18px; }

/* ── Icons (SVG sprite) ── */
svg.icon {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: block;
}
svg.icon-sm { width: 18px; height: 18px; }
.icon-tile {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim); color: var(--accent2);
  margin-bottom: 18px;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 9px;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 12px rgba(138,43,226,0.25); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 4px 18px rgba(138,43,226,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--accent2); color: var(--ink); }
.btn-big { font-size: 16px; padding: 15px 32px; border-radius: 11px; }

/* ── Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: var(--nav-h);
  background: rgba(22,21,19,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }
.nav-name {
  font-size: 17px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ink); margin-left: 14px; padding-left: 14px;
  border-left: 1.5px solid var(--border2);
  white-space: nowrap; text-transform: lowercase;
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink2);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.burger span {
  width: 24px; height: 2.5px; border-radius: 2px;
  background: var(--ink); transition: transform 0.3s, opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ── Cards ── */
.card-base {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card-base:hover { border-color: rgba(138,43,226,0.35); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,0.25); }

/* ── Forms ── */
input.field, select.field, textarea.field {
  font-family: var(--font-body);
  font-size: 15px; color: var(--ink); width: 100%;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: 9px; padding: 12px 16px;
  outline: none; transition: border-color 0.2s;
}
input.field::placeholder, textarea.field::placeholder { color: var(--ink3); }
input.field:focus, select.field:focus, textarea.field:focus { border-color: var(--accent); }
textarea.field { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── Footer ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--ink3); line-height: 1.6; max-width: 240px; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink3); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--ink2); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-divider { height: 1px; background: var(--border); margin-bottom: 18px; }
.footer-legal-note {
  font-size: 12px; color: var(--ink3); text-align: center;
  margin: 0 auto 18px; line-height: 1.6; max-width: 700px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink3); flex-wrap: wrap; gap: 8px;
}

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-name { display: none; }
}
@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--nav-h); right: 20px;
    background: var(--card); padding: 18px 24px; gap: 14px;
    border-radius: var(--radius-sm); border: 1px solid var(--border2);
    z-index: 200; box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .section { padding: 64px 20px; }
  .site-footer { padding: 48px 20px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
