@import url("tokens.css");

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

/* No CSS scroll-behavior:smooth here on purpose — it fights GSAP
   ScrollTrigger's scroll-linked (scrub) animations, causing jank. */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--hf-font);
  background: rgb(var(--hf-background));
  color: rgb(var(--hf-foreground));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.hf-container {
  width: 100%;
  max-width: var(--hf-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hf-section {
  padding: var(--hf-space-section) 0;
}

.hf-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hf-gold-deep);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  color: rgba(var(--hf-foreground), 0.75);
  font-size: 1.05rem;
}

.hf-lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 46ch;
}

/* Buttons */
.hf-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--hf-radius);
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hf-btn:hover {
  transform: translateY(-2px);
}

.hf-btn--primary {
  background: var(--hf-gold);
  color: rgb(23 24 28);
  box-shadow: 0 8px 24px -8px rgba(231, 169, 62, 0.6);
}

.hf-btn--ghost {
  background: transparent;
  border: 1px solid rgb(var(--hf-border));
  color: rgb(var(--hf-foreground));
}

/* Header */
.hf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(var(--hf-background), 0.85);
  border-bottom: 1px solid rgb(var(--hf-border));
}

.hf-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.hf-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: rgb(var(--hf-foreground));
}

.hf-brand__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.hf-brand__forms {
  font-weight: 500;
}

.hf-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hf-nav__links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hf-nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(var(--hf-foreground), 0.75);
}

.hf-nav__links a:hover {
  color: rgb(var(--hf-foreground));
}

/* Hero */
.hf-hero {
  position: relative;
  padding: clamp(3rem, 10vw, 7rem) 0 var(--hf-space-section);
  overflow: hidden;
}

.hf-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hf-hero__grid {
    grid-template-columns: 1fr;
  }
}

.hf-hero__ctas {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Interactive owl mark */
.hf-owl {
  position: relative;
  width: min(420px, 90%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 30px 60px rgba(17, 24, 28, 0.25));
}

.hf-owl svg {
  width: 100%;
  height: 100%;
}

.hf-owl__pupil-group {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform;
}

/* Feature grid */
.hf-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.hf-card {
  background: rgb(var(--hf-card));
  border: 1px solid rgb(var(--hf-border));
  border-radius: var(--hf-radius-lg);
  padding: 2rem;
}

.hf-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgb(var(--hf-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--hf-gold-deep);
}

.hf-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hf-card p {
  font-size: 0.98rem;
  margin: 0;
}

/* How it works */
.hf-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  counter-reset: hf-step;
}

.hf-step {
  position: relative;
  padding-left: 3.5rem;
}

.hf-step::before {
  counter-increment: hf-step;
  content: counter(hf-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hf-gold-deep);
}

.hf-step h3 {
  font-size: 1.1rem;
}

/* Testimonials */
.hf-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.hf-quote {
  background: rgb(var(--hf-muted));
  border-radius: var(--hf-radius-lg);
  padding: 2rem;
}

.hf-quote p {
  font-size: 1.05rem;
  color: rgb(var(--hf-foreground));
  font-style: italic;
}

.hf-quote__who {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(var(--hf-foreground), 0.65);
}

/* Pricing teaser */
.hf-pricing {
  text-align: center;
}

.hf-pricing__card {
  max-width: 640px;
  margin: 3rem auto 0;
  background: rgb(var(--hf-card));
  border: 1px solid rgb(var(--hf-border));
  border-radius: var(--hf-radius-lg);
  padding: 3rem;
}

/* CTA footer band */
.hf-cta {
  background: rgb(23 24 28);
  color: rgb(var(--hf-glint, 246 241 228));
  border-radius: var(--hf-radius-lg);
  margin: 0 1.5rem;
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
}

.hf-cta h2,
.hf-cta p {
  color: #f6f1e4;
}

/* Footer */
.hf-footer {
  padding: 3rem 0;
  border-top: 1px solid rgb(var(--hf-border));
  margin-top: var(--hf-space-section);
}

.hf-footer__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.hf-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.hf-footer__links a {
  text-decoration: none;
  color: rgba(var(--hf-foreground), 0.65);
}

/* Scroll-reveal state, driven by GSAP ScrollTrigger toggling this class.
   Elements are visible by default (progressive enhancement / no-JS fallback)
   and only hidden once JS confirms it can animate them in. */
.hf-reveal {
  opacity: 1;
  transform: none;
}

.js .hf-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.js .hf-reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* Collapse the nav's text links and secondary button on narrow viewports —
   placed last in the cascade on purpose so it wins over the base
   .hf-nav__links / .hf-btn--ghost rules above at equal specificity. */
@media (max-width: 760px) {
  .hf-nav__links,
  .hf-nav .hf-btn--ghost {
    display: none;
  }

  .hf-nav {
    gap: 0.75rem;
  }

  .hf-nav .hf-btn--primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}
