/* ============================================================
   Faze Industries — styles
   ============================================================ */

:root {
  --bg: #0a0b0f;
  --bg-soft: #11131b;
  --panel: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e9ecf3;
  --muted: #99a0b3;
  --accent: #7cc4ff;
  --accent-2: #b78cff;
  --accent-3: #6ef2c5;
  --radius: 16px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

/* ---------- animated background ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(124, 196, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(183, 140, 255, 0.10), transparent 60%),
    var(--bg);
}
.blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.blob-1 { background: var(--accent);   top: -10%; left: 55%; animation: drift1 22s var(--ease) infinite alternate; }
.blob-2 { background: var(--accent-2); top: 40%;  left: -15%; animation: drift2 26s var(--ease) infinite alternate; }
.blob-3 { background: var(--accent-3); top: 65%;  left: 60%; opacity: 0.35; animation: drift3 30s var(--ease) infinite alternate; }

@keyframes drift1 { to { transform: translate(-12%, 18%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(20%, -10%) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-18%, -14%) scale(1.2); } }

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 24px;
  backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(124, 196, 255, 0.18);
}
.brand-name { letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { background: var(--panel); }

/* ---------- layout ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 12vw, 140px) 0; }
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 96px); max-width: 820px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin: 0 0 24px; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0b0f;
  box-shadow: 0 10px 30px rgba(124, 196, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(124, 196, 255, 0.35); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--panel); }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(124, 196, 255, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.16); }
.card:hover::before { opacity: 1; }
.card-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.25rem; margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
.about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 18px; }
.about p { color: var(--muted); margin: 0 0 16px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.stats li {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}
.stat-k {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.stat-v { color: var(--muted); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(124, 196, 255, 0.15);
}
.field input.invalid, .field textarea.invalid { border-color: #ff8a8a; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 0.92rem; color: var(--muted); }
.form-status.ok { color: var(--accent-3); }
.form-status.err { color: #ff9a9a; }
.contact-alt { margin-top: 28px; color: var(--muted); }
.contact-alt a { color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact-alt a:hover { border-color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}
.to-top { color: var(--muted); transition: color 0.2s; }
.to-top:hover { color: var(--text); }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 16px; }
  .brand-name { display: none; }
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
