/* =============================================================
   Reset + base typography
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(168,85,247,.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(0,229,255,.10), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { max-width: 100%; display: block; height: auto; }

a { color: var(--cyan); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--violet); }

h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { color: var(--text-muted); }
small { color: var(--text-dim); font-size: .875rem; }

::selection { background: var(--cyan); color: var(--bg); }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

/* Utilities */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-6); }
.narrow    { max-width: var(--container-narrow); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-weight: 700;
  display: inline-block;
  margin-bottom: var(--space-4);
  padding-bottom: .6rem;
  background: linear-gradient(92deg, #00E5FF 0%, #60A5FA 45%, #A855F7 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  position: relative;
  animation: eyebrowHue 7s linear infinite;
  filter: drop-shadow(0 0 10px rgba(0,229,255,.25));
}
.eyebrow::after {
  /* Animated gradient underline bar */
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 2.2rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #00E5FF 0%, #A855F7 100%);
  box-shadow: 0 0 10px rgba(0,229,255,.6);
  animation: eyebrowBar 3.2s ease-in-out infinite;
}
.eyebrow::before { content: none; display: none; }
.section-title .eyebrow,
[style*="text-align:center"] .eyebrow,
[style*="text-align: center"] .eyebrow { padding-bottom: .75rem; }
.section-title .eyebrow::after,
[style*="text-align:center"] .eyebrow::after,
[style*="text-align: center"] .eyebrow::after {
  left: 50%; transform: translateX(-50%);
  animation: eyebrowBarCenter 3.2s ease-in-out infinite;
}
@keyframes eyebrowHue {
  to { background-position: 220% center; }
}
@keyframes eyebrowBar {
  0%, 100% { width: 1.6rem; opacity: .75; }
  50%      { width: 3rem;   opacity: 1; }
}
@keyframes eyebrowBarCenter {
  0%, 100% { width: 1.6rem; opacity: .75; }
  50%      { width: 3rem;   opacity: 1; }
}

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

.section { padding-block: clamp(3rem, 8vw, 6rem); position: relative; }
.section--alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: var(--space-12); }
.section-title p { max-width: 640px; margin: var(--space-3) auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.4rem; border-radius: var(--radius-md);
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; transition: all var(--dur-med) var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn--primary { background: var(--grad-primary); color: #0A0F1C; box-shadow: var(--glow-cyan); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,229,255,.6); color: #0A0F1C; }
.btn--ghost   { color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,229,255,.06); }
.btn--small   { padding: .55rem .9rem; font-size: .875rem; }
.btn--block   { width: 100%; }

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-6);
  transition: transform var(--dur-med) var(--ease), border-color var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,.4); box-shadow: var(--glow-cyan); }

/* Grid helpers */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Forms */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .875rem; color: var(--text); font-weight: 500; }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: .8rem 1rem; color: var(--text); transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,229,255,.15);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: var(--radius-full);
  background: rgba(0,229,255,.1); color: var(--cyan);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em;
}
.badge--violet { background: rgba(168,85,247,.1); color: var(--violet); }
.badge--green  { background: rgba(16,245,165,.1); color: var(--green); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35; mix-blend-mode: overlay;
}
main, header, footer, section { position: relative; z-index: 1; }
