/* ============================================
   Domain Hunt - Landing Page
   Archetype: minimal_zen
   Maximum whitespace, thin lines, subtle animations,
   centered content, breathing room
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #18181b;
  --bg-subtle: #1c1c20;
  --surface: #1f1f23;
  --border: #27272a;
  --violet: #8b5cf6;
  --violet-dim: rgba(139, 92, 246, 0.12);
  --violet-glow: rgba(139, 92, 246, 0.08);
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.10);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --green: #22c55e;
  --red: #ef4444;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--violet);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* --- Accent Color Utility --- */
.accent {
  color: var(--violet);
}

.text-link {
  color: var(--violet);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.text-link:hover {
  border-bottom-color: var(--violet);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.nav-logo svg {
  color: var(--violet);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  color: var(--text);
  border-color: var(--violet);
}

/* --- Hero --- */
.hero {
  padding: 180px 24px 140px;
  text-align: center;
}

.hero-inner {
  max-width: 620px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 16px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-form input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hero-form input::placeholder {
  color: var(--text-muted);
}

.hero-form input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-dim);
}

.hero-form button {
  background: var(--violet);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.1s;
}

.hero-form button:hover {
  opacity: 0.9;
}

.hero-form button:active {
  transform: scale(0.97);
}

.hero-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.4s forwards;
}

/* Success/error state for forms */
.form-message {
  font-size: 0.875rem;
  margin-top: 8px;
  text-align: center;
}

.form-message--success {
  color: var(--green);
}

.form-message--error {
  color: var(--red);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  max-width: 720px;
  margin: 0 auto;
}

/* --- Sections --- */
.section {
  padding: 120px 24px;
}

.section-inner {
  max-width: 820px;
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 620px;
  margin: 0 auto;
}

.section-heading {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text);
}

/* --- Problem Section --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.problem-card {
  text-align: center;
}

.problem-number {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.problem-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- How It Works --- */
.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}

.step-line {
  width: 80px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 32px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--violet);
  transition: border-color 0.3s, background 0.3s;
}

.step:hover .step-icon {
  border-color: var(--violet);
  background: var(--violet-glow);
}

.step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 40px;
}

.feature {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.feature-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 12px;
}

.feature p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Social Proof / Comparison --- */
.proof-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.proof-card {
  flex: 1;
  max-width: 260px;
  padding: 40px 28px;
  border-radius: 12px;
  text-align: center;
}

.proof-card--them {
  background: var(--surface);
  border: 1px solid var(--border);
}

.proof-card--us {
  background: var(--violet-glow);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.proof-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.proof-card--them .proof-price {
  color: var(--text-muted);
}

.proof-card--us .proof-price {
  color: var(--violet);
}

.proof-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.proof-source {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.proof-list {
  list-style: none;
  text-align: left;
}

.proof-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.proof-card--them .proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--text-muted);
}

.proof-card--us .proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.6;
}

.proof-vs {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* --- Bottom CTA --- */
.cta-bottom {
  text-align: center;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-top: -40px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item[open] .faq-question::after {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--violet);
  display: inline-block;
}

.faq-question:hover {
  color: var(--violet);
}

.faq-answer {
  padding: 0 0 24px;
}

.faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-triggered fade-in via IntersectionObserver (added by JS) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: 140px 20px 100px;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-form {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-form input,
  .hero-form button {
    width: 100%;
  }

  .section {
    padding: 80px 20px;
  }

  .section-heading {
    margin-bottom: 48px;
    font-size: 1.5rem;
  }

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

  .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-line {
    width: 1px;
    height: 32px;
    margin-top: 0;
  }

  .step {
    padding: 0;
  }

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

  .proof-compare {
    flex-direction: column;
    gap: 16px;
  }

  .proof-card {
    max-width: 100%;
    width: 100%;
  }

  .proof-vs {
    display: none;
  }

  .cta-sub {
    margin-top: -32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 80px;
  }

  .hero h1 {
    font-size: 1.625rem;
  }

  .section {
    padding: 64px 16px;
  }

  .section-heading {
    margin-bottom: 40px;
    font-size: 1.375rem;
  }

  .nav-inner {
    padding: 12px 16px;
  }

  .features-grid {
    gap: 0;
  }

  .feature {
    padding: 24px 0;
  }
}
