﻿/* ---------- Design tokens ---------- */
:root {
  --bg: #0b0712;
  --bg-alt: #120b1f;
  --surface: #17102a;
  --surface-hover: #1e1736;
  --border: #2b2147;
  --text: #f1edf9;
  --text-dim: #a99fc4;
  --text-faint: #6f6488;
  --accent: #8b5cf6;
  --accent-2: #c4b5fd;
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #c4b5fd 100%);
  --radius: 14px;
  --font-display: 'Book Antiqua', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --font-body: 'Book Antiqua', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { color: var(--text-dim); margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Background effects ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(circle, rgba(139,92,246,0.28) 0%, rgba(196,181,253,0.08) 45%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent-grad);
  color: #06070a;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(139,92,246,0.6); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(139,92,246,0.08); }
.btn-block { width: 100%; padding: 14px 24px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,7,18,0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(11,7,18,0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; display: block; }
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
}
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav-desktop a:hover { color: var(--text); }
.nav-cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(11,7,18,0.97);
}
.nav-mobile a {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 500;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  padding: 168px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-text { text-align: left; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 18px;
}
.eyebrow.center { display: block; text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  max-width: 640px;
}
.hero-sub {
  max-width: 560px;
  margin-top: 24px;
  font-size: 1.08rem;
  color: var(--text-dim);
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
}
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 460px; height: auto; }
.hero-visual.reveal { animation-delay: 0.15s; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 640px;
}
.section-title.center { margin: 0 auto; text-align: center; }
.section-sub {
  color: var(--text-dim);
  max-width: 560px;
  margin-top: 14px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,0.4);
  background: var(--surface-hover);
}
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139,92,246,0.12);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.card p { font-size: 0.94rem; margin-bottom: 18px; }
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--text-dim);
  white-space: nowrap;
}
.chip-list .chip:nth-child(n+7) { display: none; }
.chip-list.expanded .chip:nth-child(n+7) { display: inline-flex; }
.chip-toggle {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--accent-2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.chip-toggle:hover { color: var(--text); }
.card-note {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
}

/* ---------- Partners ---------- */
.partners { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partner-logos {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.partner-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 48px;
  text-align: center;
  min-width: 220px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.partner-badge:hover { border-color: rgba(196,181,253,0.4); transform: translateY(-3px); }
.partner-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.partner-tag { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p { margin-top: 16px; font-size: 0.98rem; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.about-item h4 { font-size: 1rem; margin-bottom: 8px; }
.about-item p { font-size: 0.87rem; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-alt); border-top: 1px solid var(--border); }
.contact-inner { max-width: 560px; }
.contact-form { margin-top: 48px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.form-field input, .form-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-note { text-align: center; font-size: 0.85rem; color: var(--accent-2); min-height: 1.2em; }
.form-note.error { color: #f87171; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: reveal 0.7s ease forwards; }
.hero-sub.reveal { animation-delay: 0.1s; }
.hero-actions.reveal { animation-delay: 0.2s; }
.hero-stats.reveal { animation-delay: 0.3s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero h1 { margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .stat { align-items: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 340px; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-desktop, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 72px; }
  section { padding: 72px 0; }
}
