/* ==========================================================================
   DeZignkart — Launching Soon
   One screen, one message. Brand tokens are taken from the main site
   (Geist, ink #110d27, violet #653eed, the yellow full stop, the inset frame).
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #110d27;
  --text-muted: #5f5b73;
  --text-subtle: #77738a;
  --bg: #ffffff;
  --line: rgba(17, 13, 39, 0.09);
  --accent: #653eed;
  --highlight: #ffda24;

  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* The inset frame, as on the main site's hero (clamp values match) */
  --frame-x: clamp(10px, 2.4vw, 40px);
  --frame-y: clamp(8px, 1.1vw, 16px);
  --frame-r: clamp(14px, 1.5vw, 24px);

  /* Spacing scales with whichever is tighter: width or height */
  --space: clamp(0.75rem, min(2.4vw, 3.2dvh), 2.25rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
p {
  margin: 0;
}

/* ---------- Stage: exactly one screen; grows (and scrolls) only if the content can't fit ---------- */

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(calc(var(--frame-y) + var(--space)), env(safe-area-inset-top))
    max(calc(var(--frame-x) + var(--space)), env(safe-area-inset-right))
    max(calc(var(--frame-y) + var(--space)), env(safe-area-inset-bottom))
    max(calc(var(--frame-x) + var(--space)), env(safe-area-inset-left));
}

/* A quiet hairline frame — the main site's photo frame, waiting for what comes next */
.frame {
  position: absolute;
  inset: var(--frame-y) var(--frame-x);
  border: 1px solid var(--line);
  border-radius: var(--frame-r);
  pointer-events: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  margin: auto 0;
}

/* The logo is the largest brand element: sized by width and by height, whichever is tighter */
.hero__logo {
  width: clamp(150px, min(58vw, 34dvh * 2.52), 440px);
  line-height: 0;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__label {
  margin-top: calc(var(--space) * 1.5);
  font-size: clamp(0.6875rem, 0.6rem + 0.25vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__headline {
  margin-top: calc(var(--space) * 0.85);
  font-size: clamp(1.625rem, min(4.4vw, 5.6dvh), 3.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__headline .line {
  display: block;
}

.hero__headline .line + .line {
  color: var(--text-muted);
}

.dot {
  color: var(--highlight);
}

.hero__lead {
  max-width: 34rem;
  margin-top: calc(var(--space) * 0.8);
  font-size: clamp(0.9375rem, min(0.85rem + 0.45vw, 2.3dvh), 1.1875rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------- Countdown: type, not widgets ---------- */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 44rem);
  margin-top: calc(var(--space) * 1.6);
  padding-top: calc(var(--space) * 1.2);
  padding-bottom: calc(var(--space) * 0.5);
  border-top: 1px solid var(--line);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* hairline dividers between the units instead of colons */
.countdown__unit + .countdown__unit {
  border-left: 1px solid var(--line);
}

.countdown__value {
  font-size: clamp(2.25rem, min(8.4vw, 10dvh), 6rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; /* digits keep their width as they change */
  font-feature-settings: 'tnum' 1;
}

.countdown__label {
  font-size: clamp(0.625rem, 0.55rem + 0.2vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ---------- Launched ---------- */

.launched {
  margin-top: calc(var(--space) * 1.6);
  padding-top: calc(var(--space) * 1.2);
  width: min(100%, 44rem);
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, min(5vw, 6dvh), 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.launched__sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(0.9375rem, 0.85rem + 0.45vw, 1.1875rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text-muted);
}

.launched[hidden] {
  display: none;
}

/* At launch only the logo and the launch message remain (the coming-soon copy would be stale) */
.is-launched .hero__label,
.is-launched .hero__headline,
.is-launched .hero__lead,
.is-launched .countdown {
  display: none;
}

.is-launched .launched {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Footer: contact & copyright at the bottom ---------- */

.stage__footer,
.hero__footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: calc(var(--space) * 1.5);
  padding-bottom: calc(var(--space) * 0.25);
  font-size: clamp(0.8125rem, 0.72rem + 0.2vw, 0.875rem);
  line-height: 1.5;
  color: var(--text-subtle);
  text-align: center;
}

.stage__contact,
.hero__contact {
  margin: 0;
}

.stage__email,
.hero__contact-link {
  color: var(--text-muted) !important;
  text-decoration: none !important;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}

.stage__email:hover,
.stage__email:focus-visible,
.hero__contact-link:hover,
.hero__contact-link:focus-visible {
  color: var(--accent) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.stage__copyright,
.hero__copyright {
  margin: 0;
  color: var(--text-subtle);
  font-size: clamp(0.75rem, 0.68rem + 0.15vw, 0.8125rem);
  letter-spacing: -0.01em;
}

/* ---------- Phones (portrait): use the height — larger logo, type and countdown ---------- */

@media (max-width: 600px) and (orientation: portrait) {
  :root {
    --space: clamp(0.875rem, 2.6dvh, 1.75rem);
  }

  .hero__logo {
    width: min(72vw, 30dvh * 2.52);
  }

  .hero__headline {
    font-size: clamp(1.625rem, min(8vw, 4.4dvh), 2.5rem);
  }

  .hero__lead {
    font-size: clamp(0.9375rem, min(4.2vw, 2.3dvh), 1.0625rem);
  }

  .countdown__value {
    font-size: clamp(2.25rem, min(11.5vw, 7dvh), 3.5rem);
  }
}

/* ---------- Tablets (portrait): the same idea, one step larger ---------- */

@media (min-width: 601px) and (max-width: 1100px) and (orientation: portrait) {
  .hero__logo {
    width: min(58vw, 26dvh * 2.52, 480px);
  }

  .hero__label {
    font-size: 0.8125rem;
  }

  .hero__headline {
    font-size: clamp(2rem, min(6vw, 4.6dvh), 3.5rem);
  }

  .hero__lead {
    font-size: 1.125rem;
  }

  .countdown__value {
    font-size: clamp(3rem, min(11vw, 8dvh), 6rem);
  }
}

@media (max-width: 420px) {
  .countdown__unit {
    gap: 0.375rem;
  }

  .countdown__label {
    letter-spacing: 0.14em;
  }
}

/* Short landscape screens (phones turned sideways): a smaller logo leaves room for the rest;
   if it still doesn't fit, the page scrolls rather than hiding anything */
@media (max-height: 480px) and (orientation: landscape) {
  :root {
    --space: clamp(0.5rem, 2.2dvh, 1rem);
  }

  .hero__logo {
    width: clamp(130px, 26dvh * 2.52, 300px);
  }
}

/* ---------- Entrance: logo, then headline, then text, then countdown ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    animation: reveal 1.1s var(--ease-out) both;
  }

  .js .hero__logo { animation-delay: 0.1s; }
  .js .hero__label { animation-delay: 0.45s; }
  .js .hero__headline { animation-delay: 0.6s; }
  .js .hero__lead { animation-delay: 0.78s; }
  .js .countdown { animation-delay: 0.95s; }
  .js .stage__footer,
  .js .hero__footer { animation-delay: 1.1s; }

  .js .frame {
    animation: frame-in 1.6s var(--ease-out) both;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    filter: blur(10px);
    translate: 0 14px;
  }
}

@keyframes frame-in {
  from {
    opacity: 0;
    scale: 0.985;
  }
}
