/* ==========================================================
   NEAT landing — styled after the Dia design system
   ========================================================== */

:root {
  --canvas: #FBFAF6;
  --ink: #000000;
  --ink-85: rgba(0, 0, 0, 0.85);
  --muted: #585856;
  --white: #FFFFFF;

  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;

  --radius-xs: 12px;
  --radius-full: 9999px;

  --shadow-sm: rgba(0, 0, 0, 0.06) 0 2px 8px 0, rgba(0, 0, 0, 0.04) 0 0 2px 0;
  --shadow-xl: rgba(0, 0, 0, 0.04) 0 1px 2px 0,
               rgba(0, 0, 0, 0.1) 0 10px 24px -12px,
               rgba(0, 0, 0, 0.12) 0 24px 48px -24px;

  --gutter: 10px;
}

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

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--white);
  background: #FF8A3D; /* fallback if WebGL / the gradient fails to load */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Gradient canvas ---------- */
#gradient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 var(--gutter);
  pointer-events: none;
}

.nav__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 20px 6px 6px;
  background: rgba(251, 250, 246, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.nav__logo {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav__link {
  padding: 0 8px 0 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-85);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nav__logo:hover,
.nav__link:hover { opacity: 0.4; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 104px var(--gutter) 0;
  overflow: hidden;
  text-align: center;
}

.hero__tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.12);
}

.hero__title {
  margin: clamp(8px, 2vw, 24px) 0 0;
  font-family: var(--hand);
  font-size: clamp(100px, 24vw, 360px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--white);
  user-select: none;
}

/* Preview overlaps the big word */
.hero__preview {
  position: relative;
  z-index: 2;
  width: min(1000px, 92vw);
  margin-top: clamp(-70px, -3.6vw, -20px);
  flex: 1;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  box-shadow: var(--shadow-xl);
}

/* The bottom of the preview is cropped by the screen edge. On very tall
   screens the image scales up (cover) instead of leaving an empty gap. */
.hero__preview img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Download pill */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  color: #F8F8F8;
  text-decoration: none;
  background: var(--ink);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s ease;
}

.btn:hover { opacity: 0.6; }

.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Floats over the bottom of the preview image */
.btn--float {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}

.btn__os {
  margin-left: 2px;
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero { padding-top: 96px; }
}

@media (max-width: 600px) {
  .nav { top: 14px; }
  .btn { height: 50px; padding: 0 20px; gap: 8px; font-size: 15px; }
  .hero__preview { min-height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
