/* === FONTS === */
@font-face {
  font-family: 'Bricolage';
  src: url('/static/fonts/bricolage-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/static/fonts/bricolage-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage';
  src: url('/static/fonts/bricolage-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/static/fonts/jetbrains-mono-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* === TOKENS === */
:root {
  --font-display: 'Bricolage', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Bricolage', system-ui, sans-serif;

  /* Fire/forge palette — dark with amber/orange accents */
  --bg-deep: #0a0a0c;
  --bg-surface: #111115;
  --bg-raised: #1a1a20;
  --bg-hover: #222230;
  --text-primary: #e8e4df;
  --text-secondary: #8a8690;
  --text-muted: #5a5660;
  --accent: #e8742a;
  --accent-bright: #f59e3f;
  --accent-glow: rgba(232, 116, 42, 0.15);
  --accent-hot: #ff4d2a;
  --ember: #c4501a;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(232, 116, 42, 0.3);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: clamp(15px, 1.1vw, 18px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === REVEAL ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.8; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  animation: fadeUp 0.8s ease-out both;
}
.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.35s; }
.reveal-4 { animation-delay: 0.5s; }
.reveal-5 { animation-delay: 0.65s; }
.reveal-6 { animation-delay: 0.8s; }

/* === LAYOUT === */
.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 12, 0.8);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.6s ease-out both;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(232, 116, 42, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(196, 80, 26, 0.05), transparent),
    radial-gradient(circle at 20% 80%, rgba(255, 77, 42, 0.03), transparent),
    var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-conic-gradient(
    rgba(255, 255, 255, 0.01) 0deg,
    transparent 1deg,
    transparent 30deg
  );
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
h1 .accent { color: var(--accent); }
h1 .accent-hot {
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--ember));
  color: #fff;
  box-shadow: 0 0 24px rgba(232, 116, 42, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(232, 116, 42, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* === SECTION HEADERS === */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.1;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 40rem;
  line-height: 1.7;
}

/* === PRODUCT SUITE SECTION === */
.suite {
  background:
    radial-gradient(ellipse at 0% 50%, rgba(232, 116, 42, 0.04), transparent 60%),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.suite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.suite-card {
  background: var(--bg-surface);
  padding: 2rem;
  transition: background 0.3s ease;
}
.suite-card:hover {
  background: var(--bg-raised);
}
.suite-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.suite-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.suite-card .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: inline-block;
}
.suite-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* === LIVE PRODUCTS === */
.live {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255, 77, 42, 0.04), transparent 50%),
    var(--bg-deep);
}
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.live-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  text-decoration: none;
  display: block;
}
.live-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.live-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.live-card:hover::after { opacity: 1; }

.live-card .status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.live-card .status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
.live-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.live-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.live-card .url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

/* === TECH SECTION === */
.tech {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(232, 116, 42, 0.04), transparent 50%),
    var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.tech-pill:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* === WAITLIST === */
.waitlist {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 116, 42, 0.06), transparent 50%),
    var(--bg-deep);
  text-align: center;
}
.waitlist .section-desc {
  margin: 0 auto 2.5rem;
}
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input::placeholder {
  color: var(--text-muted);
}
.waitlist-form input:focus {
  border-color: var(--border-accent);
}

/* === FOOTER === */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
}
footer a:hover { color: var(--accent); }
.footer-links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .hero-cta { flex-direction: column; }
  .waitlist-form { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
}
