/**
 * Coming-soon page for demand.theads.io.
 *
 * Self-contained on purpose: one stylesheet, two self-hosted subsets of
 * Urbanist and no third-party requests. The palette is the brand token set
 * from theads.io (warm page surface, near-black ink, one hot accent) so the
 * holding page already looks like the product it precedes.
 */

/* Urbanist — variable 400–800, self-hosted. Turkish needs ğ ş ı İ from
   latin-ext, so both subsets are required; dropping the second silently
   falls back for every Turkish headline. */
@font-face {
  font-family: 'Urbanist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/urbanist-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: 'Urbanist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/urbanist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, 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 {
  color-scheme: light;

  --brand: #fd3a25;
  --brand-strong: #ea2b16;

  --ink: #09090b;
  --ink-soft: #3f3f46;
  --muted: #56565e;
  --subtle: #68686f;

  --page: #edecec;
  --line: rgba(9, 9, 11, 0.1);

  --gutter: clamp(20px, 4.5vw, 72px);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--page);
  background-image:
    radial-gradient(1100px 640px at 88% -14%, rgba(253, 58, 37, 0.12), transparent 62%),
    radial-gradient(900px 560px at -12% 112%, rgba(1, 132, 191, 0.07), transparent 60%);
  color: var(--ink);
  font-family: 'Urbanist', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--brand);
  color: #fff;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(20px, 3.2vh, 38px) var(--gutter) clamp(22px, 3vh, 34px);
}

/* ---------------------------------------------------------------- Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: clamp(24px, 2.1vw, 32px);
}

.tag {
  padding: 8px 14px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------------- Stage */

.stage {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(44px, 7vh, 96px);
}

.copy {
  min-width: 0;
  max-width: 62rem;
}

.rule {
  display: flex;
  gap: 6px;
  margin-bottom: clamp(20px, 3vh, 30px);
}

.rule span {
  height: 4px;
  border-radius: 2px;
}

.rule span:nth-child(1) {
  width: 44px;
  background: #fdd300;
}

.rule span:nth-child(2) {
  width: 28px;
  background: #009f4f;
}

.rule span:nth-child(3) {
  width: 14px;
  background: #0184bf;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(11px, 0.95vw, 12px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 58, 37, 0.4);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(253, 58, 37, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 58, 37, 0);
  }
}

h1 {
  margin: 0;
  font-size: clamp(60px, 10.6vw, 168px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

h1 .dot {
  color: var(--brand);
}

.lead {
  max-width: 44ch;
  margin: clamp(24px, 3.2vh, 36px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 500;
  line-height: 1.5;
}

.lead-en {
  margin: 14px 0 0;
  color: var(--subtle);
  font-size: clamp(13px, 1vw, 15px);
  letter-spacing: 0.01em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(28px, 4vh, 44px);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow:
    0 1px 2px rgba(9, 9, 11, 0.3),
    0 12px 24px -12px rgba(9, 9, 11, 0.5);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.cta:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.arrow {
  transition: transform 0.2s ease;
}

.cta:hover .arrow {
  transform: translateX(3px);
}

.quiet {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ------------------------------------------------------------------ Tile */

.tile {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  width: min(360px, 28vw);
  aspect-ratio: 1;
  border-radius: clamp(28px, 3vw, 40px);
  background: #09090b;
  box-shadow:
    0 40px 80px -32px rgba(9, 9, 11, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  animation: float 9s ease-in-out infinite alternate;
}

.tile svg {
  width: 58%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.35));
}

.tile-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

@keyframes float {
  from {
    transform: rotate(2deg) translateY(0);
  }
  to {
    transform: rotate(1deg) translateY(-12px);
  }
}

/* ---------------------------------------------------------------- Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: clamp(18px, 2.5vh, 26px);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.foot-end {
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .stage {
    grid-template-columns: 1fr;
    align-content: start;
    gap: clamp(20px, 3vh, 28px);
    padding-block: clamp(28px, 5vh, 44px) clamp(32px, 5vh, 48px);
  }

  .tile {
    order: -1;
    justify-self: start;
    width: clamp(96px, 22vw, 140px);
    border-radius: 24px;
    gap: 10px;
  }

  .tile-label {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(52px, 15vw, 104px);
  }
}

@media (max-width: 560px) {
  .foot-mid {
    display: none;
  }

  .lead {
    font-size: 16px;
  }

  .cta {
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile,
  .pulse {
    animation: none;
  }

  .cta,
  .arrow,
  .quiet {
    transition: none;
  }
}
