/* styles.css */

@font-face {
  font-family: 'AvenirBlack';
  src: url('./fonts/Avenir-Black.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'AvenirLight';
  src: url('./fonts/Avenir-Light.ttf') format('truetype');
  font-display: swap;
}

/* =========================
   ROOT VARIABLES
========================= */

:root {

  --bg: #F7F5F2;
  --text: #111111;
  --muted: #6B6B6B;
  --accent: #F05A28;

  --max-width: 1280px;
  --content-width: 760px;

  --radius-pill: 999px;

  --transition:
    0.7s cubic-bezier(0.22, 1, 0.36, 1);

}

/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {

  scroll-behavior: smooth;

  /* Prevent iOS text auto-inflation on rotate */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {

  background:
    radial-gradient(
      circle at top,
      rgba(255, 255, 255, 0.8),
      transparent 45%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  overflow-x: hidden;

  /* Remove iOS tap flash on interactive elements */
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   GLOBAL FOCUS
========================= */

/* Visible keyboard focus ring — accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================
   LAYOUT
========================= */

.page-wrapper {
  width: 100%;
}

/* ── HERO: full-viewport image, no text ── */
.hero {

  width: 100%;

  /* svh fallback for older browsers */
  height: 100vh;
  height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.hero-image {

  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
  object-position: center center;

  /* Dissolves the image's white bg into the cream page bg seamlessly */
  mix-blend-mode: multiply;
}

/* ── CONTENT SECTION: headline · subtitle · CTA ── */
.content-section {

  width: 100%;
  max-width: 1100px;

  margin: 0 auto;

  padding:
    8rem 1.5rem
    3rem;

  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================
   TYPOGRAPHY
========================= */

.hero-title {

  font-family: 'AvenirBlack', sans-serif;

  font-size:
    clamp(2.7rem, 6vw, 5.6rem);

  line-height: 1.1;

  letter-spacing: -0.035em;

  margin-bottom: 2rem;
}

.hero-subtitle {

  font-family: 'AvenirLight', sans-serif;

  font-size:
    clamp(1rem, 2vw, 1.45rem);

  line-height: 1.6;

  color: var(--muted);

  max-width: 640px;

  margin:
    0 auto
    3rem;
}

/* =========================
   CTA BUTTON
========================= */

.cta-button {

  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.18rem;

  min-width: 300px;

  padding:
    1.1rem
    2.6rem
    1.25rem;

  background: var(--accent);

  color: white;

  text-decoration: none;

  border-radius: var(--radius-pill);

  cursor: pointer;

  transition:
    opacity var(--transition),
    transform var(--transition),
    box-shadow var(--transition);

  margin-bottom: 4rem;
}

.cta-button:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240, 90, 40, 0.18);
}

.cta-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

/* Top micro label: "APPLY FOR" */
.cta-label {

  font-family: 'AvenirLight', sans-serif;

  font-size: 0.6rem;

  letter-spacing: 0.22em;
  text-transform: uppercase;

  opacity: 0.82;
}

/* Main text: "Early Access" */
.cta-main {

  font-family: 'AvenirBlack', sans-serif;

  font-size: 1.15rem;

  letter-spacing: 0.01em;
}

/* =========================
   BRANDING
========================= */

.branding-section {

  text-align: center;

  padding:
    0 1.5rem
    1.5rem;
}

.fable-title {

  display: flex;
  align-items: baseline;
  justify-content: center;

  gap: 0;

  font-family: 'AvenirBlack', sans-serif;

  font-size:
    clamp(3rem, 7vw, 6rem);

  letter-spacing: 0.04em;

  line-height: 1;
}

.logo-o {

  width:
    clamp(2.1rem, 4.6vw, 4.2rem);

  height:
    clamp(2.1rem, 4.6vw, 4.2rem);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Pull "ne" closer to compensate for positive letter-spacing on parent */
  margin:
    0 0.04em 0 0.01em;

  transform:
    translateY(-0.03em);
}

.logo-o img {

  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.fable-tagline {

  font-weight: 400;

  margin-top: 0.8rem;

  font-family: 'AvenirLight', sans-serif;

  color: var(--accent);

  font-size:
    clamp(1rem, 2vw, 1.5rem);
}

/* =========================
   ZYRA SECTION
========================= */

.zyra-section {

  text-align: center;

  padding:
    0.5rem 1.5rem
    2.5rem;
}

.designed-by {

  font-size: 0.7rem;

  letter-spacing: 0.35em;

  color: #888;

  margin-bottom: 0.6rem;
}

.zyra-name {

  font-family: 'AvenirBlack', sans-serif;

  font-size:
    clamp(1rem, 2.5vw, 1.8rem);

  letter-spacing: 0.45em;

  margin-bottom: 0.6rem;
}

.zyra-tagline {

  font-size: 0.75rem;

  letter-spacing: 0.35em;

  color: var(--text);
}

/* =========================
   FOOTER
========================= */

.footer {

  padding:
    0 1.5rem
    2.5rem;

  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

/* Single-row footer: links · socials · copyright */
.footer-bottom {

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 2rem;

  max-width: var(--max-width);

  margin: 0 auto;

  flex-wrap: wrap;
}

.footer-links {

  display: flex;
  gap: 1.5rem;

  flex-wrap: wrap;
}

.footer-links a,
.copyright {

  color: #777;

  font-size: 0.82rem;

  text-decoration: none;

  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.7;
}

/* Socials inline — tap target 44×44px, icon 22px */
.socials {

  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.socials a {

  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  opacity: 0.75;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.socials a:hover {

  opacity: 1;

  transform: translateY(-1px);
}

.socials img {

  width: 25px;
  height: 25px;

  /* Force identical bounding box regardless of SVG viewBox */
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

/* =========================
   FADE ANIMATIONS
========================= */

.fade-element {

  opacity: 0;

  transform: translateY(24px);

  transition:
    opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-element.visible {

  opacity: 1;

  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  /* Fill the mobile frame — child centered, no wasted sky */
  .hero-image {
    object-fit: cover;
    object-position: center 20%;
    mix-blend-mode: multiply;
  }

  .content-section {
    padding-top: 3.5rem;
  }

  .hero-title {
    margin-bottom: 1.5rem;
  }

  .hero-subtitle {

    line-height: 1.55;

    margin-bottom: 2.5rem;
  }

  .cta-button {

    min-width: 100%;

    margin-bottom: 3rem;
  }

  .footer-bottom {
    justify-content: center;
    gap: 1rem;
  }

  .footer-links {
    justify-content: center;
    order: 1;
  }

  .socials {
    order: 2;
  }

  .copyright {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .zyra-name {
    letter-spacing: 0.28em;
  }

}

@media (prefers-reduced-motion: reduce) {

  * {
    scroll-behavior: auto !important;
  }

  .fade-element {

    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

}
