/* ==========================================================================
   Hole Zero -- marketing site design system
   Colors ported 1:1 from the app's src/features/hole-zero/theme.ts (HZColors)
   so the site and the product feel like the same thing. Typography mirrors
   the app too: Barlow Condensed for big/display type (the app's "display*"
   fonts), Inter for body copy (the app's "body*" fonts).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Core palette -- exact hex/rgba values from HZColors */
  --hz-background: #0b0b0b;
  --hz-card: #161616;
  --hz-card-border: rgba(255, 255, 255, 0.08);
  --hz-black: #000000;
  --hz-lime: #a3e635;
  --hz-lime-soft: rgba(163, 230, 53, 0.1);
  --hz-lime-soft-border: rgba(163, 230, 53, 0.3);
  --hz-lime-softer: rgba(163, 230, 53, 0.12);
  --hz-gold: #fbbf24;
  --hz-gold-soft: rgba(251, 191, 36, 0.12);
  --hz-danger: #ff5a5a;
  --hz-white: #ffffff;
  --hz-text-muted-60: rgba(255, 255, 255, 0.6);
  --hz-text-muted-50: rgba(255, 255, 255, 0.5);
  --hz-text-muted-45: rgba(255, 255, 255, 0.45);
  --hz-text-muted-40: rgba(255, 255, 255, 0.4);
  --hz-text-muted-30: rgba(255, 255, 255, 0.3);
  --hz-text-muted-10: rgba(255, 255, 255, 0.1);
  --hz-text-muted-06: rgba(255, 255, 255, 0.06);
  --hz-field-border: rgba(255, 255, 255, 0.08);
  --hz-gradient-card-from: #1c2414;
  --hz-gradient-card-to: #161616;

  /* Type */
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius scale (matches HZRadius) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-xxl: 20px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1160px;
  --section-pad: clamp(64px, 10vw, 120px);
}

/* ---- Accessibility utilities -------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--hz-lime);
  color: #0b0b0b;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  transition: top 0.2s ease;
}

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

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hz-background);
  color: var(--hz-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hz-lime);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hz-lime);
  box-shadow: 0 0 12px var(--hz-lime);
}

.section-kicker {
  text-align: center;
  margin: 0 auto 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  text-align: center;
  margin: 0 auto;
  max-width: 780px;
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  color: var(--hz-text-muted-60);
  text-align: center;
  max-width: 560px;
  margin: 18px auto 0;
  line-height: 1.6;
}

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--hz-lime);
  color: #0b0b0b;
  box-shadow: 0 0 0 rgba(163, 230, 53, 0);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(163, 230, 53, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--hz-text-muted-06);
  color: var(--hz-white);
  border-color: var(--hz-card-border);
}

.btn-ghost:hover {
  background: var(--hz-text-muted-10);
  border-color: var(--hz-lime-soft-border);
}

.btn-block {
  width: 100%;
}

/* ---- Nav -------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--hz-text-muted-06);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--hz-text-muted-60);
}

.nav-links a:hover {
  color: var(--hz-white);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--hz-card-border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--hz-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
  border-bottom: 1px solid var(--hz-text-muted-06);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--hz-text-muted-60);
  border-bottom: 1px solid var(--hz-text-muted-06);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(163, 230, 53, 0.16) 0%, rgba(163, 230, 53, 0) 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(42px, 8vw, 84px);
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--hz-lime);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--hz-text-muted-60);
  max-width: 560px;
  margin: 22px auto 0;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--hz-text-muted-40);
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 56px auto 0;
}

.hero-stat {
  padding: 18px 12px;
  border: 1px solid var(--hz-card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--hz-gradient-card-from), var(--hz-gradient-card-to));
}

.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 32px);
  color: var(--hz-lime);
}

.hero-stat-label {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hz-text-muted-45);
  margin-top: 4px;
}

/* ---- App frame / hero mock ---------------------------------------------- */
.hero-frame-wrap {
  position: relative;
  z-index: 1;
  margin: 56px auto 0;
  max-width: 300px;
}

.phone-frame {
  position: relative;
  border-radius: 44px;
  border: 1px solid var(--hz-card-border);
  background: linear-gradient(165deg, #171b12, #0b0b0b 60%);
  padding: 14px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  background: radial-gradient(circle at 30% 0%, #1c2414 0%, #0b0b0b 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.phone-screen .placeholder-icon {
  width: 30%;
  opacity: 0.9;
}

.phone-screen .placeholder-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hz-text-muted-40);
}

/* ---- Feature cards -------------------------------------------------------------- */
.features {
  padding: var(--section-pad) 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border: 1px solid var(--hz-card-border);
  border-radius: var(--radius-xxl);
  background: linear-gradient(165deg, var(--hz-gradient-card-from), var(--hz-gradient-card-to));
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--hz-lime-soft-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--hz-lime-softer);
  border: 1px solid var(--hz-lime-soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--hz-text-muted-60);
  line-height: 1.6;
}

.feature-card.is-wide {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .feature-card.is-wide {
    grid-column: span 2;
  }
}

@media (min-width: 1000px) {
  .feature-card.is-wide {
    grid-column: span 1;
  }
}

/* ---- Screenshots -------------------------------------------------------------- */
.screens {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.04), transparent 40%);
}

.screens-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

@media (min-width: 640px) {
  .screens-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.screen-item {
  text-align: center;
}

.screen-item .phone-frame {
  max-width: 220px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
}

.screen-item .phone-screen {
  border-radius: 24px;
}

.screen-caption {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hz-text-muted-60);
}

/* ---- Social proof / how it works strip ---------------------------------- */
.how-it-works {
  padding: var(--section-pad) 0;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
  counter-reset: step;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  padding-left: 0;
}

.step-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--hz-background);
  background: var(--hz-lime);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14.5px;
  color: var(--hz-text-muted-60);
  line-height: 1.6;
}

/* ---- FAQ -------------------------------------------------------------- */
.faq {
  padding: var(--section-pad) 0;
}

.faq-list {
  max-width: 760px;
  margin: 56px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--hz-card-border);
  border-radius: var(--radius-lg);
  background: var(--hz-card);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  color: var(--hz-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  text-align: left;
  cursor: pointer;
}

.faq-question .faq-plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hz-card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--hz-lime);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-plus {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--hz-text-muted-60);
  line-height: 1.65;
}

/* ---- Email signup -------------------------------------------------------------- */
.signup {
  padding: var(--section-pad) 0;
}

.signup-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--hz-lime-soft-border);
  border-radius: var(--radius-xxl);
  background: linear-gradient(165deg, var(--hz-gradient-card-from), var(--hz-gradient-card-to));
  padding: clamp(32px, 6vw, 56px);
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 28px auto 0;
}

@media (min-width: 520px) {
  .signup-form {
    flex-direction: row;
  }
}

.signup-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hz-field-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--hz-white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.signup-input::placeholder {
  color: var(--hz-text-muted-40);
}

.signup-input:focus {
  border-color: var(--hz-lime-soft-border);
}

.signup-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--hz-text-muted-40);
}

.signup-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  min-height: 18px;
}

.signup-status.is-success {
  color: var(--hz-lime);
}

.signup-status.is-error {
  color: var(--hz-danger);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hz-text-muted-06);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-tagline {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--hz-text-muted-40);
  max-width: 280px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 480px) {
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hz-text-muted-40);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: var(--hz-text-muted-60);
}

.footer-col a:hover {
  color: var(--hz-white);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hz-text-muted-06);
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copyright {
  font-size: 12.5px;
  color: var(--hz-text-muted-30);
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  color: var(--hz-text-muted-40);
}

/* ---- Scroll reveal -------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Simple/legal pages -------------------------------------------------------------- */
.legal-page {
  padding: 64px 0 var(--section-pad);
}

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

.legal-header h1 {
  font-size: clamp(32px, 5vw, 46px);
}

.legal-updated {
  margin-top: 12px;
  font-size: 13px;
  color: var(--hz-text-muted-40);
}

.legal-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15.5px;
  color: var(--hz-text-muted-60);
  line-height: 1.75;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  color: var(--hz-white);
  margin: 40px 0 12px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--hz-lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body strong {
  color: var(--hz-white);
}

.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.support-card {
  border: 1px solid var(--hz-card-border);
  border-radius: var(--radius-xl);
  background: var(--hz-card);
  padding: 24px;
}

.support-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 8px;
}

.support-card p {
  font-size: 14px;
  color: var(--hz-text-muted-60);
  margin-bottom: 14px;
  line-height: 1.6;
}
