/* TylkoDPP hub: dark hero field with generated background art.
   Palette is Data Framer's own (src/app/globals.css in the application):
   navy #152f70, blue #1d58ee, green #00b47f, sky #0ea5e9. */

/* Inter, self-hosted. Loading it from fonts.googleapis.com would send every
   visitor's IP to Google before any consent; this page makes no third-party
   requests. Variable font (weights 100 to 900), so the 550 and 650 weights
   used below come from the same two files. SIL Open Font License, which
   expressly permits self-hosting. The unicode-ranges are Google's own, so
   latin-ext is only fetched when a page actually needs those characters. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --navy-900: #0a1633;
  --navy-800: #152f70;
  --accent: #4d7ff5;
  --accent-deep: #1d58ee;
  --green: #00b47f;
  --sky: #0ea5e9;
  --gold: #f0b429;      /* the commercial tile */
  --live: #34d399;
  --pending: #fbbf24;

  --text: #eef3f9;
  --text-2: #a8b8d4;
  --text-3: #6f80a3;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-2: rgba(255, 255, 255, 0.18);
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);

  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Background art */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1e3f8f 0%, #10245a 42%, var(--navy-900) 100%);
}

/* Soft light blooms: the depth of the image. */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.bloom-a {
  width: 780px; height: 780px;
  top: -320px; left: 50%;
  transform: translateX(-58%);
  background: radial-gradient(circle, rgba(77, 127, 245, 0.55), transparent 68%);
}

.bloom-b {
  width: 620px; height: 620px;
  bottom: -300px; right: -140px;
  background: radial-gradient(circle, rgba(0, 180, 127, 0.28), transparent 70%);
}

/* Faint engineering grid: reads as structure without shouting. */
.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 55%, transparent 92%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.45) 55%, transparent 92%);
}

/* Layout */

.page {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}

.wordmark {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.wordmark-dot { color: var(--green); }

.top-nav { display: flex; gap: 18px; }

.top-nav a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 150ms ease;
}

.top-nav a:hover { color: #fff; }

/* Hero */

.hero { margin: 56px 0 34px; }

.hero h1 {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  font-size: 16.5px;
  color: var(--text-2);
}

/* Label above the tiles. The H1 describes the product, so this keeps the
   "what do I do here" instruction without spending a heading rank on it. */
.section-label {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Grid */

.grid-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 52px;
}

.noscript { grid-column: 1 / -1; color: var(--text-2); }
.noscript a { color: var(--accent); }

.tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 160ms ease, border-color 160ms ease,
              box-shadow 160ms ease, transform 160ms ease;
}

.tile:hover,
.tile:focus-visible {
  background: var(--card-hover);
  border-color: color-mix(in srgb, var(--team, var(--accent)) 55%, transparent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-3px);
}

.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
}

.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--team, var(--accent));
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 550;
  color: var(--text-2);
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--live);
}

.status-soon::before { background: var(--pending); }

.tile-main { display: flex; flex-direction: column; gap: 3px; }

.code {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.code::after {
  content: "";
  display: block;
  width: 24px; height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--team, var(--accent));
}

.name { margin-top: 9px; font-size: 14.5px; font-weight: 600; }
.name-lead { margin-top: 0; font-size: 19px; line-height: 1.25; color: #fff; }
.note { font-size: 12.5px; color: var(--text-2); }

.tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.host {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--team, var(--accent));
  font-size: 16px;
  line-height: 1;
  flex: none;
  transition: transform 160ms ease;
}

.tile:hover .arrow { transform: translate(2px, -2px); }

/* Pending tile: visible, plainly not a link */
.tile-pending {
  cursor: default;
  background: rgba(255, 255, 255, 0.02);
  border-style: dashed;
}

.tile-pending:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--hairline);
}

.tile-pending .code, .tile-pending .name { color: var(--text-2); }

/* Commercial tile */

.tile-offer {
  --team: var(--gold);
  background:
    linear-gradient(150deg, rgba(240, 180, 41, 0.16), rgba(240, 180, 41, 0.04) 55%),
    var(--card);
  border-color: rgba(240, 180, 41, 0.34);
}

.tile-offer:hover {
  border-color: rgba(240, 180, 41, 0.65);
  background:
    linear-gradient(150deg, rgba(240, 180, 41, 0.22), rgba(240, 180, 41, 0.06) 55%),
    var(--card-hover);
}

.offer-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-amount {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.price-period { font-size: 13px; color: var(--text-2); }

.offer-req {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.4;
}

.offer-cta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Empty slots */

.tile-empty {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.22);
}

.tile-empty .plus { font-size: 20px; font-weight: 300; line-height: 1; }
.tile-empty .empty-label { font-size: 11.5px; }

/* Footer */

.bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--text-3);
}

/* Demo page (/demo/): the same shell, plus a few content blocks. */

.demo-section { margin: 0 0 40px; }

.demo-section h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #fff;
}

.demo-section > p { margin: 0 0 16px; max-width: 66ch; color: var(--text-2); }

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.doc-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.doc-kind {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.doc-value {
  display: block;
  margin: 10px 0 4px;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}

.doc-value-b { color: var(--sky); }

.doc-unit { font-size: 12.5px; color: var(--text-2); }
.doc-cite { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

.review {
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}

.review-property {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.review-property strong { font-size: 15.5px; color: #fff; }
.review-property span { font-size: 12px; color: var(--pending); font-weight: 600; }

.candidates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.candidate {
  padding: 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.candidate-value { display: block; font-size: 24px; font-weight: 650; color: #fff; }
.candidate-source { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.candidate-quote {
  display: block;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  font-size: 12.5px;
  color: var(--text-2);
}

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.btn {
  padding: 6px 12px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}

.btn-primary { border-color: var(--green); color: var(--green); }

.review-note { margin: 14px 0 0; font-size: 13px; color: var(--text-2); }

.stages {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  counter-reset: stage;
}

.stages li {
  counter-increment: stage;
  padding: 10px 0 10px 40px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
}

.stages li::before {
  content: counter(stage);
  position: absolute;
  left: 0; top: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hairline-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  color: var(--text);
}

.stages li strong { display: block; color: #fff; font-weight: 600; }

.stage-human::before { border-color: var(--green); color: var(--green); }
.stage-human .who { color: var(--green); font-weight: 600; }

.outputs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }

.chip {
  padding: 8px 14px;
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.chip-draft { border-color: var(--pending); color: var(--pending); }

.plain-list { margin: 0; padding-left: 18px; color: var(--text-2); }
.plain-list li { margin-bottom: 6px; }

.cta-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 52px; }

.cta {
  display: block;
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.cta:hover { background: var(--card-hover); border-color: var(--hairline-2); transform: translateY(-2px); }
.cta strong { display: block; font-size: 16px; color: #fff; }
.cta span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.cta-gold { border-color: rgba(240, 180, 41, 0.34); }
.cta-gold strong { color: var(--gold); }

/* Responsive */

@media (max-width: 780px) {
  .hero { margin: 34px 0 26px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 15.5px; }

  .grid-apps { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .doc-cards, .candidates, .stages, .cta-row { grid-template-columns: 1fr; }

  .tile { padding: 14px; }
  .code, .price-amount { font-size: 29px; }
  .status { display: none; }
}

@media (max-width: 420px) {
  .page { padding: 0 16px; }
  .hero h1 { font-size: 26px; }
  .note, .offer-req { display: none; }
  .name { font-size: 13.5px; }
  .name-lead { font-size: 15px; }
  .host { font-size: 11px; }
  .bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
  .top-nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile, .arrow, .top-nav a, .cta { transition: none; }
  .tile:hover, .cta:hover { transform: none; }
}
