/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --border: #1e1e2e;
  --text: #e8e8ee;
  --text-muted: #8888aa;
  --accent: #4f8ef7;
  --accent-hover: #6aa3ff;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1100px;
  --section-pad: 6rem 1.5rem;
}

/* ===== RESET ===== */
*, *::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: 1rem;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== UTILITIES ===== */
.hidden { display: none !important; }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  transition: background 0.3s ease, border-bottom 0.3s ease;
}
#nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.aurora-b1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79, 142, 247, 0.22) 0%, transparent 70%);
  top: -180px; left: -120px;
  animation: aurora1 28s ease-in-out infinite;
}
.aurora-b2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  top: 60px; right: -100px;
  animation: aurora2 34s ease-in-out infinite;
}
.aurora-b3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.16) 0%, transparent 70%);
  bottom: -80px; left: 35%;
  animation: aurora3 24s ease-in-out infinite;
}
.aurora-b4 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  bottom: 40px; left: -60px;
  animation: aurora4 30s ease-in-out infinite;
}
@keyframes aurora1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(90px, 70px) scale(1.08); }
  66%       { transform: translate(-40px, 110px) scale(0.95); }
}
@keyframes aurora2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-70px, 60px) scale(1.06); }
  66%       { transform: translate(50px, -90px) scale(0.92); }
}
@keyframes aurora3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-110px, -70px) scale(1.12); }
}
@keyframes aurora4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(130px, -50px) scale(1.1); }
  80%       { transform: translate(70px, 90px) scale(0.88); }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none; }
}
.hero-logo {
  max-width: min(500px, 88vw);
  height: auto;
  display: block;
  margin: 0 auto 2.5rem;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* ===== SECTIONS (shared) ===== */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}
section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

/* ===== SERVICES ===== */
#services { border-top: 1px solid var(--border); }
#services .section-inner { max-width: 1240px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ===== ABOUT ===== */
#about { border-top: 1px solid var(--border); }
.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 1.25rem;
}
.about-text:last-child { margin-bottom: 0; }

/* ===== CONTACT ===== */
#contact { border-top: 1px solid var(--border); }
#contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; }
#form-success p {
  color: var(--accent);
  font-size: 1rem;
  padding: 1.5rem 0;
}

/* ===== FOOTER ===== */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
footer span { color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
}
