/* Hooky Landing — brand colors from HookyBrand.swift */

:root {
  --primary: #8b5cf6;
  --primary-dark: #6d28d9;
  --secondary: #ec4899;
  --teal: #14b8b8;
  --orange: #fa8c33;
  --gradient-top: #5eb8ff;
  --gradient-bottom: #2563eb;
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #1a1a24;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-small {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */

.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(139, 92, 246, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(236, 72, 153, 0.12), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(20, 184, 184, 0.12);
  border: 1px solid rgba(20, 184, 184, 0.25);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 700;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gradient-top), var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 32rem;
}

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

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone mockup */

.phone-mockup {
  position: relative;
  justify-self: center;
}

.phone-frame {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 12px;
  background: linear-gradient(145deg, #2a2a35, #0f0f14);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.phone-screen-shot {
  padding: 0;
  background: #000;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: #000;
  border-radius: 999px;
  margin: 0 auto 1rem;
  opacity: 0.6;
}

.phone-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 1rem;
  color: #18181b;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.phone-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.phone-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.phone-card p {
  margin: 0;
  font-size: 0.75rem;
  color: #52525b;
  line-height: 1.45;
}

.phone-steps {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
}

.phone-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e4e4e7;
}

.phone-step.active {
  background: var(--teal);
}

.phone-step.done {
  background: var(--primary);
}

/* Sections */

section {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 0 3rem;
}

/* Screenshots gallery */

.screenshots-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.screenshot-card {
  margin: 0;
}

.screenshot-frame {
  aspect-ratio: 9 / 19.5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.screenshot-card:hover .screenshot-frame {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(139, 92, 246, 0.15);
}

.screenshot-card figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-icon.purple { background: rgba(139, 92, 246, 0.15); }
.feature-icon.pink { background: rgba(236, 72, 153, 0.15); }
.feature-icon.teal { background: rgba(20, 184, 184, 0.15); }
.feature-icon.orange { background: rgba(250, 140, 51, 0.15); }

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding-top: 2.5rem;
}

.step-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 720px;
}

.pricing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.pricing-card.featured {
  border-color: rgba(139, 92, 246, 0.5);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.08), var(--bg-elevated));
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -10px;
  right: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

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

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.pricing-list li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.pricing-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* FAQ */

.faq-list {
  max-width: 640px;
}

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

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA */

.cta-band {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4 {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Legal pages */

.legal-page {
  padding: 7rem 0 4rem;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-page ul {
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--teal);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .phone-mockup {
    order: -1;
  }

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

  .screenshots-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .features-grid,
  .steps,
  .pricing-grid,
  .screenshots-showcase {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }
}
