/* Cymora landing — direct port of Ceven's hero (siftcost/portal/components/site/HeroSection.tsx).
   Same dark navy radial base, same animated pixel-field overlay, same
   bottom-right sub + backdrop-blur CTA. Background recolored to a healthy
   mint/teal palette instead of Ceven's blue. Wordmark only — no logo icon. */

:root {
  /* Geist Sans is Vercel's web font; loaded via Google Fonts. */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;

  --color-white: #fff;
  --color-black: #000;

  /* Letter-spacing matches Ceven's t-* utilities (-0.05em) and brand mark
     (-0.04em). Small negative tracking pulls the Geist glyphs together for
     a tighter, more confident feel. */
  --tracking-tight: -0.05em;
  --tracking-brand: -0.04em;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-rendering: geometricPrecision;
  font-feature-settings: "kern" on, "liga" on, "calt" on, "ss01" on;
  font-variation-settings: "opsz" auto;
}

body {
  font-family: var(--font-sans);
  color: var(--color-white);
  background: #050a1c;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

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

/* === HEADER ============================================================== */

/* Mirrors Ceven's `<header className="fixed top-0 z-20 w-full ... text-white">`
   wrapper, but no announcement bar, no nav links — wordmark only. */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--color-white);
}

.header-inner {
  width: 100%;
  max-width: min(1512px, 100vw - 6rem);
  margin-inline: auto;
  height: 3.5rem; /* h-14 = 3.5rem on Tailwind */
  display: flex;
  align-items: center;
}

@media (max-width: 1024px) {
  .header-inner {
    max-width: min(1512px, 100vw - 3rem);
  }
}

/* Wordmark — same Geist sans, 21px, weight 600, letter-spacing -0.04em as
   Ceven's "ceven" wordmark. No SVG, no glyph. */
.brand {
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: var(--tracking-brand);
  line-height: 1;
  color: var(--color-white);
  transition: opacity 0.2s ease-out;
}

.brand:hover {
  opacity: 0.78;
}

/* === HERO ================================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: var(--color-white);
}

/* Dark navy radial base — matches Ceven HeroSection.tsx exactly:
   "radial-gradient(ellipse at 35% 55%, #0f2655 0%, #08153a 45%, #050a1c 90%)"
   Acts as the no-flash baseline before the canvas wakes up + as the floor
   beneath the animation. */
.hero-base {
  position: absolute;
  inset: 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: radial-gradient(
    ellipse at 35% 55%,
    #0f2655 0%,
    #08153a 45%,
    #050a1c 90%
  );
}

/* Animated pixel-field canvas overlay.
   Crisp nearest-neighbor upscaling — the field reads as a high-resolution
   color grid instead of a soft bilinear blur. Health-tech aesthetic. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Black gradient overlay for text contrast (Ceven uses
   `bg-gradient-to-b from-black/40 via-black/20 to-black/60`). */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* Content container (Ceven inline styles):
   max-width: min(1512px, 100vw - 6rem); padding-top: 9rem; padding-bottom: 2rem;
   flex column min-h-lvh — h1 at top, sub+CTA pushed to bottom-right via mt-auto. */
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(1512px, 100vw - 6rem);
  margin-inline: auto;
  padding-top: calc(0.25rem * 36); /* 9rem */
  padding-bottom: calc(0.25rem * 8); /* 2rem */
  min-height: 100vh;
  min-height: 100dvh;
}

@media (max-width: 1024px) {
  .hero-content {
    max-width: min(1512px, 100vw - 3rem);
    padding-top: 6rem;
  }
}

/* h1: t-32 on mobile → t-80 on desktop, max-w-[1000px], text-balance, mb-6 */
.hero-headline {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  line-height: 1.1;
  /* t-32 → 2rem; lg breakpoint @1024 → t-80 = 5rem. Use clamp for fluid. */
  font-size: clamp(2rem, 6vw, 5rem);
  max-width: 1000px;
  margin-bottom: 1.5rem; /* mb-6 */
  color: var(--color-white);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-headline {
    line-height: 1;
  }
}

/* Bottom row — mt-auto pushes to floor; lg:flex items-end aligns sub+CTA right */
.hero-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
}

/* Inner: max-w-[680px], pushed to right via ml-auto */
.hero-bottom-inner {
  margin-left: auto;
  max-width: 680px;
  width: 100%;
}

/* Sub copy — t-16 mobile, t-24 desktop, text-balance */
.hero-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: var(--tracking-tight);
  font-size: 1rem; /* t-16 */
  line-height: 1.4;
  color: var(--color-white);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .hero-sub {
    font-size: 1.5rem; /* t-24 */
    line-height: 1.3;
  }
}

.hero-cta-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.125rem; /* mt-[1.125rem] */
}

/* CTA — Ceven hero "Try it now" button, exact spec:
   inline-flex justify-center items-center px-5 font-medium rounded
   transition-opacity hover:opacity-70 backdrop-blur-xl bg-white/15 t-16
   height: 44px */
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  padding-inline: 1.25rem; /* px-5 */
  border-radius: 0.25rem; /* rounded */
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(24px); /* backdrop-blur-xl */
  backdrop-filter: blur(24px);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1rem; /* t-16 */
  font-weight: 500; /* font-medium */
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease-out;
}

.cta:hover {
  opacity: 0.7;
}

.cta:active {
  opacity: 0.55;
}

.cta:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

/* === MOBILE — bottom-right stack collapses to vertical block ============= */

@media (max-width: 1023px) {
  .hero-bottom {
    flex-direction: column;
  }

  .hero-bottom-inner {
    margin-left: 0;
    max-width: 100%;
  }
}

/* === MOTION REDUCTION ==================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-canvas {
    filter: saturate(0.7);
  }
}
