/* ====================
   DESIGN TOKENS
   ===================== */
:root {
  --bg: #0b0c10;
  --surface: #16181f;
  --card: #1c1e28;
  --gold: #d4a843;
  --gold-pale: rgba(212, 168, 67, 0.12);
  --gold-line: rgba(212, 168, 67, 0.28);
  --cream: #e8e4dc;
  --muted: #8a8a9a;
  --border: rgba(255, 255, 255, 0.08);
  --border2: rgba(255, 255, 255, 0.14);
  --rust: #c0392b;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Grid background */
.grid-bg {
  background-image:
    linear-gradient(rgba(212, 168, 67, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Fade-up animation (scroll-triggered) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero load animations */
@keyframes fadeUpLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpCenter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-anim {
  opacity: 0;
  animation: fadeUpLoad 0.7s ease forwards;
}

/* Scroll indicator */
@keyframes bounceDownSmall {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* =====================
   NAVIGATION
   ===================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: var(--gold);
  text-decoration: none;
}

.nav-cta {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease;
}

.nav-cta:hover {
  background: var(--gold-pale);
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, rgba(212, 168, 67, 0.06), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 160px 0 120px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.eyebrow-center {
  justify-content: center;
}

.hero-headline {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  font-weight: 400;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 28px;
  background: var(--gold);
  color: #0b0c10;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.scroll-wrapper {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUpCenter 0.5s ease 1.2s forwards;
  z-index: 10;
}

.scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: bounceDownSmall 1.8s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.scroll-chevron {
  width: 22px;
  height: 22px;
  stroke: #0b0c10;
}

/* =====================
   PROBLEM SECTION
   ===================== */
.problem {
  background: var(--surface);
  padding: 96px 0;
}

.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 16px;
}

.section-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.72;
  max-width: 520px;
}

.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.tool-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-pill {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
}

.pill-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.pill-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--cream);
  display: block;
}

.pill-use {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  display: block;
  margin-top: 2px;
}

/* =====================
   WEDGE — CLIENT PORTAL
   ===================== */
.wedge {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.wedge::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.05), transparent 65%);
}

.wedge-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.wedge-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 24px;
}

.wedge-body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.wedge-supporting {
  font-size: 14px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 52px;
  opacity: 0.85;
}

/* Portal Mockup */
.portal-mockup {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 168, 67, 0.05);
}

.mockup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.mockup-project-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.mockup-project-name {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 18px;
  color: var(--cream);
  display: block;
}

.mockup-client {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.mockup-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.18);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mockup-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-gold {
  background: var(--gold);
}

.dot-green {
  background: #4ade80;
}

.dot-muted {
  background: var(--muted);
  opacity: 0.4;
}

.tl-content {
  flex: 1;
}

.tl-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--cream);
}

.tl-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.status-pill {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-gold {
  background: rgba(212, 168, 67, 0.14);
  color: var(--gold);
  border: 1px solid rgba(212, 168, 67, 0.25);
}

.pill-green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.pill-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

.mockup-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.mockup-link-icon {
  font-size: 14px;
  opacity: 0.55;
}

.mockup-link-text {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mockup-link-text span {
  color: var(--gold);
}

/* =====================
   FEATURES
   ===================== */
.features {
  background: var(--surface);
  padding: 96px 0;
}

.features-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 48px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 1px solid var(--gold-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
}

.feature-headline {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 12px;
}

.feature-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.features-cta-wrap {
  text-align: center;
}

.features-cta-q {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.btn-outlined {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  background: transparent;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease;
}

.btn-outlined:hover {
  background: var(--gold-pale);
}

/* =====================
   EARLY ACCESS FORM
   ===================== */
.form-section {
  background: var(--surface);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 168, 67, 0.07), transparent 65%);
}

.form-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}

.form-intro {
  text-align: center;
  margin-bottom: 32px;
}

.form-headline {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
}

.form-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
}

.form-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 36px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.55;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.15);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gold);
  color: #0b0c10;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.18s ease;
  margin-top: 6px;
}

.btn-submit:hover {
  opacity: 0.9;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#form-error {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: var(--rust);
  line-height: 1.5;
}

#form-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.success-headline {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.success-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.form-microcopy {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  opacity: 0.65;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-row:last-child {
  margin-bottom: 0;
}

.footer-brand {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted);
}

.footer-legal {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
  opacity: 0.55;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  nav {
    padding: 0 20px;
  }

  .problem-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-body {
    max-width: 100%;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .portal-mockup {
    padding: 20px 18px;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 375px) {
  .hero-content {
    padding: 140px 0 100px;
  }

  .form-box {
    padding: 24px 20px;
  }
}