/* ==========================================================================
   Northline — coming soon
   Layout, type scale and motion match the reference build:
   breakpoints at 1200px and 810px, card radius 50px, form pill radius 15px.
   ========================================================================== */

:root {
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Dynalight", "General Sans", cursive;

  --ink: #111111;
  --ink-soft: #666666;
  --ink-faint: #999999;
  --paper: #ffffff;
  --card: #000000;

  --card-inset: 12px;
  --card-radius: 50px;
  --card-pad: 48px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ==========================================================================
   Brand
   ========================================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffffff;
  flex: none;
}

.brand-mark {
  width: 19px;
  height: 19px;
  display: block;
  color: currentColor;
}

.brand-mark svg { width: 100%; height: 100%; display: block; }

.brand-word {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand--dark { color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: var(--card-inset);
}

.hero-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--card-pad);
  border-radius: var(--card-radius);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
}

/* Background photograph: sits under everything at 79% over black, and eases
   from scale 1.1 to 1 over 800ms on load. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
  transform: scale(1.1);
  animation: bg-settle 0.8s var(--ease) forwards;
}

@keyframes bg-settle {
  to { opacity: 0.79; transform: scale(1); }
}

.hero-body {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* --- Headline -------------------------------------------------------- */

.display {
  margin: 0;
  text-align: center;
  color: #ffffff;
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 500;
  line-height: 64.4px;
  letter-spacing: -0.03em;
}

.display .script,
h2 .script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
}

.display .script {
  font-size: 80px;
  line-height: 92px;
  margin-left: 0.06em;
  margin-right: 0.04em;
}

/* Words fade, unblur and lift into place, one after another. */
.display .w {
  display: inline-block;
  opacity: 0;
  filter: blur(7px);
  transform: translateY(14px);
  animation: word-in 0.7s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@keyframes word-in {
  to { opacity: 1; filter: blur(0); transform: none; }
}

.lede {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

/* --- Sign-up pill ---------------------------------------------------- */

.signup {
  display: flex;
  flex-direction: row;
  gap: 8px;
  width: 376px;
  max-width: 100%;
  border-radius: 15px;
  background: #ffffff;
}

.field {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-radius: 15px;
  background: rgba(227, 227, 227, 0.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.field input {
  width: 100%;
  height: 43px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 16.8px;
}

.field input::placeholder { color: rgba(0, 0, 0, 0.45); }
.field input:focus { outline: none; }
.field:focus-within { background: rgba(255, 255, 255, 0.45); }

.signup button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 43px;
  padding: 14px 26px;
  border: 0;
  border-radius: 15px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 16.8px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.signup button:hover { background: #ebebeb; }
.signup button:active { transform: scale(0.98); }

.form-note {
  margin: 0;
  min-height: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.form-note.is-shown { opacity: 1; }

/* ==========================================================================
   Reveal on load / on scroll
   ========================================================================== */

.reveal,
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

.reveal.is-in,
[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ==========================================================================
   Tablet — 810px to 1199px
   ========================================================================== */

@media (max-width: 1199.98px) {
}

/* ==========================================================================
   Mobile — up to 809px
   ========================================================================== */

@media (max-width: 809.98px) {
  .hero-card { padding: 20px; }

  .hero-body { gap: 32px; }

  .display { font-size: 56px; line-height: 64.4px; }
  .display .script { font-size: 80px; line-height: 92px; }

  .lede { font-size: 15px; line-height: 22.5px; }

  .signup {
    flex-direction: column;
    width: 100%;
    background: transparent;
  }

  .field { padding: 0 20px; }
  .field input { height: 54px; }
  .signup button { height: 45px; width: 100%; }



}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-bg img,
  .display .w {
    animation: none;
  }

  .hero-bg img { opacity: 1; transform: none; }
  .display .w { opacity: 1; filter: none; transform: none; }

  .reveal,
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   guardbook treatment
   Palette sampled straight from the logo artwork: navy #031053, cyan #00C3FE,
   blue #255EF5, violet #4F2DF3. The pastel sky needs dark type, so the
   headline runs navy rather than white. Delete this whole block to return to
   the plain white-on-dark version.
   ========================================================================== */

:root {
  --navy: #031053;
  --cyan: #00c3fe;
  --blue: #255ef5;
  --violet: #4f2df3;
  --brand: linear-gradient(118deg, var(--cyan) 0%, var(--blue) 52%, var(--violet) 100%);
}

/* --- The sky ---------------------------------------------------------- */

.hero-card {
  background: #cfd6f5;
  box-shadow: 0 40px 90px -45px rgba(3, 16, 83, 0.6);
}

.hero-bg {
  z-index: -2;
}

.hero-bg img {
  opacity: 1;
  filter: saturate(1.18) brightness(1.06);
}

@keyframes bg-settle {
  to { opacity: 1; transform: scale(1); }
}

/* Light blooming up behind the copy, and weight settling into the base */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(72% 55% at 50% 42%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(95% 65% at 50% 118%, rgba(3, 16, 83, 0.18) 0%, rgba(3, 16, 83, 0) 62%);
}

/* --- Logo lockup ------------------------------------------------------ */

.brand img {
  display: block;
  height: 46px;
  width: auto;
}

/* --- Type ------------------------------------------------------------- */

.display { color: var(--navy); }

.lede { color: rgba(3, 16, 83, 0.72); }

/* The accent word carries the brand gradient. Falls back to flat blue where
   background-clip: text is unsupported. */
.display .script {
  color: var(--blue);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .display .script {
    background: var(--brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* --- Sign-up pill: glass over the photograph -------------------------- */

.signup {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 18px 40px -18px rgba(3, 16, 83, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.field {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.field input { color: var(--navy); }
.field input::placeholder { color: rgba(3, 16, 83, 0.45); }
.field:focus-within { background: rgba(255, 255, 255, 0.4); }

.signup button {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 24px -10px rgba(37, 94, 245, 0.7);
}

.signup button:hover {
  background: var(--brand);
  filter: brightness(1.07);
}

.form-note { color: rgba(3, 16, 83, 0.82); }

/* --- Mobile ----------------------------------------------------------- */

@media (max-width: 809.98px) {
  .brand img { height: 38px; }

  /* Stacked, so the glass moves onto the field itself */
  .signup {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }

  .field {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  }
}

/* ==========================================================================
   Drifting cloud
   A WebGL layer of warped fractal noise sits over the photograph, so the
   cloud moves and slowly changes shape rather than the whole picture sliding.
   The photograph itself breathes on a much longer cycle, which gives the two
   layers a sense of depth.
   ========================================================================== */

.cloud-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}

.cloud-canvas.is-ready { opacity: 1; }

.hero-bg img {
  animation:
    bg-settle 0.8s var(--ease) forwards,
    bg-breathe 140s 0.8s ease-in-out infinite alternate;
}

@keyframes bg-breathe {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1.2%, 0.6%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-canvas { display: none; }
  .hero-bg img { animation: none; opacity: 1; transform: none; }
}

/* Honeypot: off-screen for people, irresistible to bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
