/* ==== Fonts ==== */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ==== Tokens ==== */
:root {
  --bg: #07070e; --bg-raised: #0d0d1a; --bg-header: rgba(7, 7, 14, 0.82);
  --border: #1e1e33; --text: #e8e8f2; --text-dim: #9494ad;
  --violet: #7c3aed; --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #7c3aed, #22d3ee);
  --font-head: "Space Grotesk", sans-serif; --font-body: "Inter", sans-serif;
  --radius: 14px; --container: 1140px;
}

/* ==== Reset / base ==== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-dim); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==== Header ==== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-header); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.02em; }
.logo-mark { width: 30px; height: 29px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* ==== Buttons ==== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: linear-gradient(100deg, #7c3aed, #0891b2); color: #fff; font-weight: 500; font-size: 0.98rem;
  transition: box-shadow 0.25s, transform 0.25s;
}
.btn:hover { box-shadow: 0 0 28px rgba(124, 58, 237, 0.55); transform: translateY(-2px); }
.btn-ghost { background: none; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(34, 211, 238, 0.25); }

/* ==== Sections / cards ==== */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--violet); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(124, 58, 237, 0.18); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }
.card .card-icon { font-size: 1.6rem; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-head); font-weight: 700; }

/* ==== Hero (home) ==== */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; z-index: 0; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-inner .kicker { font-family: var(--font-head); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; color: var(--cyan); margin-bottom: 18px; }
.hero-inner p.lead { margin: 22px 0 34px; font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==== Inner-page hero ==== */
.page-hero { padding: 90px 0 30px; }
.page-hero p { margin-top: 16px; max-width: 620px; font-size: 1.1rem; }

/* ==== Prose (about / privacy) ==== */
.prose { max-width: 720px; }
.prose h2 { margin: 44px 0 14px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: var(--text-dim); }
.prose li { margin-bottom: 8px; }

/* ==== Contact form ==== */
.contact-form label { display: block; margin-bottom: 16px; color: var(--text); font-size: 0.9rem; font-weight: 500; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); font: inherit; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}
.contact-form .btn { border: none; cursor: pointer; margin-top: 4px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; font-size: 0.95rem; }
.form-ok { border: 1px solid rgba(34, 211, 238, 0.4); color: #7fe3f2; background: rgba(34, 211, 238, 0.07); }
.form-err { border: 1px solid rgba(248, 113, 113, 0.4); color: #f8a5a5; background: rgba(248, 113, 113, 0.07); }

/* ==== Placeholder note ==== */
.placeholder-note {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 18px 22px; color: var(--text-dim); font-size: 0.95rem;
}

/* ==== Footer ==== */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner .nav-links { gap: 20px; }
.footer-meta { color: var(--text-dim); font-size: 0.88rem; }

/* ==== Scroll reveal (JS adds .reveal; GSAP animates) ==== */
.js .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==== Responsive ==== */
@media (max-width: 720px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.85rem; }
  .section { padding: 64px 0; }
  .hero { min-height: 72vh; }
}

@media (max-width: 480px) {
  .nav { flex-wrap: wrap; justify-content: center; height: auto; padding: 14px 0; row-gap: 10px; }
  .nav-links { justify-content: center; flex-wrap: wrap; row-gap: 8px; }
}
