/* ==========================================================================
   1. GLOBAL VARIABLES & SYSTEM RESET
   ========================================================================== */
:root {
  /* Color Palette */
  --bg-dark: #0b0518;
  --bg-gradient: radial-gradient(circle at 50% -20%, #1c0d3a 0%, #0b0518 70%);
  --text-main: #ffffff;
  --text-muted: #a39bb8;
  
  /* Brand Accents */
  --purple-primary: #8b5cf6;
  --purple-hover: #7c3aed;
  --accent-pink: #d946ef;
  --accent-orange: #ff7e5f;
  --font-primary:'Inter',-apple-system, BlinkMacSystemFont, sans-serif;
  
  /* UI Borders & Badges */
  --border-glow: rgba(139, 92, 246, 0.15);
  --border-muted: rgba(255, 255, 255, 0.08);
  --badge-bg: rgba(139, 92, 246, 0.1);
  
  /* Layout Sizing */
  --max-width: 640px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: greyscale;
}

body {
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 80px;
}

/* ==========================================================================
   2. REUSABLE UTILITIES & TYPOGRAPHY
   ========================================================================== */
/* ==========================================
   HERO GRADIENT SPAN TYPOGRAPHY
   ========================================== */

/* 1. Purple to Blue/Pink Gradient (High-Value) */
.gradient-purple {
  background: linear-gradient(135deg, #b066ff 0%, #e280ff 40%, #8be2ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 2. Orange to Pink/Coral Gradient (Creative Economy) */
.gradient-orange {
  background: linear-gradient(135deg, #e473ff 0%, #ff8668 60%, #ff7847 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Ensure the main header has the right weight and size to show off the gradient */
#hero h1 {
  font-size: 2.65rem;
  line-height: 1.15;
  font-weight: 800; /* Extra bold to mimic the screenshot look */
  letter-spacing: -0.03em;
  color: #ffffff; /* Base color for the standard text */
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

/* Text Gradient for Hero Hooks */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-pink) 30%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Base Layout Section Padding */
main section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section Title Metadata Labels */
main section > p:first-of-type {
  color: var(--purple-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

main section > h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

main section > p:nth-of-type(2) {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   3. HEADER / NAVIGATION
   ========================================================================== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-muted);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 5, 24, 0.75);
}

header > span {
  font-weight: 700;
  font-size: 1.15rem;
  margin-right: auto;
  margin-left: 0.6rem;
  letter-spacing: -0.01em;
}

header nav {
  display: flex;
  gap: 0.75rem;
}

header nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

/* Mobile Visibility Management matching reference UI */
header nav a[href="#creator-signup"] {
  display: none; 
}

header nav a[href="#brand-signup"] {
  background: var(--purple-primary);
  color: var(--text-main);
}

header nav a[href="#brand-signup"]:hover {
  background: var(--purple-hover);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 3.5rem 1.5rem;
}

#hero img {
  margin-bottom: 1.75rem;
  filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.25));
}

/* Pre-launch Pill Badge */
#hero p:first-of-type {
  background: var(--badge-bg);
  color: var(--purple-primary);
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}

#hero p:first-of-type::before {
  content: "🛡️";
  font-size: 0.8rem;
}

#hero h1 {
  font-size: 2.65rem;
  line-height: 1.12;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
}

#hero p:last-of-type {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 3rem;
  max-width: 92%;
}

/* CTA Interface Links */
#hero .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  padding: 1.1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.1s ease, background-color 0.2s ease, border-color 0.2s ease;
  margin-bottom: 1rem;
}

#hero .button:active {
  transform: scale(0.98);
}

#hero .button[href="#creator-signup"] {
  background: var(--purple-primary);
  color: var(--text-main);
}

#hero .button[href="#creator-signup"]:hover {
  background: var(--purple-hover);
}

#hero .button[href="#creator-signup"]::after {
  content: " →";
  margin-left: 0.4rem;
  font-weight: 400;
}

#hero .button[href="#brand-signup"] {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#hero .button[href="#brand-signup"]:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   5. HOW IT WORKS (REWORKED STEPPER TIMELINE)
   ========================================================================== */
#cards {
  display: flex;
  flex-direction: column;
}

/* Neutralizing standard header definitions for layout simplicity */
#cards header {
  background: transparent;
  border: none;
  padding: 0;
  position: relative;
  display: block;
}

#cards header p {
  color: var(--purple-primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Fluid Minimalist Row Items */
#cards div {
  background: transparent;
  border: none;
  padding: 0 0 1.5rem 1.5rem;
  border-left: 2px solid var(--border-muted);
  border-radius: 0;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#cards div:hover {
  border-left-color: var(--purple-primary);
}

#cards h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Step Badging Utilities via Sequential Pseudo Classes */
#cards div:nth-of-type(1) h3::before {
  content: "01";
  font-size: 0.75rem;
  color: var(--purple-primary);
  background: var(--badge-bg);
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
}

#cards div:nth-of-type(2) h3::before {
  content: "02";
  font-size: 0.75rem;
  color: var(--accent-pink);
  background: rgba(217, 70, 239, 0.1);
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
}

#cards div p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ==========================================================================
   6. INTERACTIVE CAPTURE FORMS
   ========================================================================== */
form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
  border: 1px solid var(--border-muted);
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

form div {
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
}

form input[type="text"],
form input[type="email"],
form input[type="url"],
form select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: #06030d;
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 1rem;
  transition: all 0.2s ease;
}

form input:focus,
form select:focus {
  outline: none;
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

form input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Checkbox Alignment Setup */
form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

form input[type="checkbox"] {
  accent-color: var(--purple-primary);
  margin-top: 0.25rem;
  transform: scale(1.15);
}

/* Submission Interfaces */
form button[type="submit"] {
  width: 100%;
  padding: 1.1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: var(--text-main);
  color: var(--bg-dark);
  transition: transform 0.1s ease, background-color 0.2s ease;
}

form button[type="submit"]:hover {
  background: #f3f2f5;
}

form button[type="submit"]:active {
  transform: scale(0.99);
}

/* Class override compatibility for Creator Button explicit attributes */
form button.bg-black {
  background: var(--purple-primary) !important;
  color: var(--text-main) !important;
}
form button.bg-black:hover {
  background: var(--purple-hover) !important;
}

/* ==========================================================================
   7. PRODUCT ROADMAP LAYOUT
   ========================================================================== */
#map {
  display: flex;
  flex-direction: column;
}

#map div {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px dashed var(--border-muted);
  padding-bottom: 2.5rem;
}

#map div:last-of-type {
  border-left: 2px solid transparent; /* Drops line attachment on last child */
  padding-bottom: 0;
}

#map div p:first-of-type {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

#map div p:first-of-type span {
  background: var(--badge-bg);
  color: var(--purple-primary);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  margin-left: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
}

#map h3 {
  font-size: 1.15rem;
  margin: 0.35rem 0 0.6rem 0;
  line-height: 1.3;
}

/* Node point decorations mimicking a live system build */
#map div::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #312152;
}

#map div:first-of-type::before {
  background: var(--purple-primary);
  box-shadow: 0 0 10px var(--purple-primary);
}

/* ==========================================================================
   8. FOOTER METRICS
   ========================================================================== */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid var(--border-muted);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer img {
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

footer span, footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--text-main);
}

/* ==========================================================================
   9. DEVICE VIEWPORT MEDIA RESPONSIVENESS (TABLETS/DESKTOP)
   ========================================================================== */
@media (min-width: 768px) {
  :root {
    --max-width: 1040px;
  }

  main section {
    padding: 6rem 2rem;
  }

  header nav a:first-child {
    display: inline-block; /* Returns Waitlist Link to navigation layout */
  }

  #hero h1 {
    font-size: 3.8rem;
    max-width: 850px;
  }

  #hero p:last-of-type {
    font-size: 1.15rem;
    max-width: 650px;
  }

  /* Structural side-by-side split execution for content groups */
  #cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  #cards header {
    grid-column: span 2;
  }

  #cards div {
    padding-left: 2rem;
    border-left-width: 3px;
  }
}
