/* Landing page of the platform host. Hand-written and self-contained: no
   framework, no third-party request. It is a sibling of createcode.ai: the same
   night palette, Outfit for headings, Inter for text, mono labels, glass cards
   and pill buttons, warmed with the gold and autumn orange of the demo
   invitation. Fonts are self-hosted from ./fonts (SIL Open Font License). */

@font-face {
  font-family: "Outfit Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/outfit-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #04060d;
  --bg-tint: #070b17;
  --ink: #f2f4fa;
  --ink-2: #cdd2df;
  --muted: #a3abbd;
  --violet: #b8a8f6;
  --gold: #ffcf8a;
  --gold-deep: #ffc277;
  --on-gold: #1c1208;
  --accent: #7aa2ff;
  --line: rgba(160, 180, 255, 0.16);
  --edge: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.045);

  --font-brand: "Outfit Variable", "Avenir Next", Avenir, Sora, "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 0.72, 0.18, 1);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.lp {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1rem/1.6 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(255, 207, 138, 0.35); color: #fff; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.lp-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.lp-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.lp-skip {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 30;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: var(--gold); color: var(--on-gold);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.lp-skip:focus { top: 0.75rem; }

.lp-icon { flex: none; width: 1.5rem; height: 1.5rem; }

/* ---------- header ---------- */

.lp-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 6, 13, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}

.lp-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem;
  max-width: 76rem; margin: 0 auto; padding: 0.7rem clamp(1rem, 4vw, 2rem);
}

.lp-brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--ink); text-decoration: none;
  font: 600 1.05rem/1.15 var(--font-brand); letter-spacing: -0.005em;
}
.lp-brand__mark { flex: none; width: 1.4rem; height: 1.75rem; color: var(--gold); }

.lp-nav { display: none; gap: 0.25rem; font-size: 0.9rem; }
.lp-nav a {
  padding: 0.45rem 0.8rem; border-radius: 999px;
  color: var(--ink-2); text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-nav a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }

.lp-header__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }

.lp-lang { display: inline-flex; border: 1px solid var(--edge); border-radius: 999px; padding: 2px; }
.lp-lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; min-height: 2.1rem; padding: 0 0.5rem; border-radius: 999px;
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.1em;
  color: var(--muted); text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.lp-lang a:hover { color: var(--ink); }
.lp-lang a[aria-current="true"] { background: rgba(255, 207, 138, 0.16); color: var(--gold); }

@media (min-width: 62rem) {
  .lp-nav { display: flex; }
  .lp-header__actions { margin-left: 0; }
}

/* ---------- buttons ---------- */

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap;
  min-height: 3rem; padding: 0.6rem 1.6rem;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(180deg, #ffdca6, var(--gold-deep));
  color: var(--on-gold);
  font: 600 0.95rem/1.2 var(--font-sans); text-decoration: none; text-align: center;
  box-shadow: 0 8px 28px -8px rgba(255, 160, 70, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(255, 160, 70, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.lp-btn:active { transform: none; }

.lp-btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--ink);
  border-color: rgba(255, 255, 255, 0.24); box-shadow: none;
}
.lp-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }

.lp-btn--small { min-height: 2.5rem; padding: 0.4rem 1.1rem; font-size: 0.85rem; }
.lp-demo-slug { font-weight: 400; opacity: 0.75; font-size: 0.8rem; }

/* ---------- layout primitives ---------- */

.lp-wrap { max-width: 76rem; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.lp-wrap--narrow { max-width: 50rem; }

.lp-section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.lp-section--tint {
  background: linear-gradient(180deg, var(--bg-tint), var(--bg));
  border-block: 1px solid var(--line);
}

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet);
}
.lp-eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: 0.6; }

.lp-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.lp-head .lp-eyebrow { margin-bottom: 1rem; }

.lp-h2 {
  font: 600 clamp(1.9rem, 4.2vw, 3rem)/1.08 var(--font-brand);
  letter-spacing: -0.022em; color: var(--ink); text-wrap: balance;
}

.lp-lead { max-width: 40rem; margin-top: 1rem; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.lp-muted { color: var(--muted); }

.lp-step, .lp-feature, .lp-design, .lp-faq details {
  border: 1px solid var(--edge); border-radius: 20px; background: var(--glass);
  box-shadow: 0 14px 36px -18px rgba(0, 0, 0, 0.7);
}

/* ---------- hero ---------- */

.lp-hero {
  position: relative; overflow: clip;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(55% 70% at 78% 42%, rgba(255, 130, 50, 0.17), transparent 70%),
    radial-gradient(45% 55% at 6% 0%, rgba(122, 162, 255, 0.13), transparent 70%),
    var(--bg);
}
/* a few fixed stars, the night sky of the brand site */
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff, transparent),
    radial-gradient(1px 1px at 17% 64%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 31% 12%, #ffe2b5, transparent),
    radial-gradient(1px 1px at 44% 82%, #fff, transparent),
    radial-gradient(1px 1px at 52% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 63% 36%, #ffe2b5, transparent),
    radial-gradient(1px 1px at 71% 90%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 88% 14%, #fff, transparent),
    radial-gradient(1px 1px at 93% 58%, #ffe2b5, transparent),
    radial-gradient(1px 1px at 4% 88%, #fff, transparent);
}

.lp-hero__grid { position: relative; display: grid; gap: 3rem; align-items: center; }

.lp-hero h1 {
  margin-top: 1.25rem;
  font: 600 clamp(2.35rem, 5.4vw, 4.1rem)/1.04 var(--font-brand);
  letter-spacing: -0.028em; color: var(--ink); text-wrap: balance;
}

.lp-hero__lead { max-width: 34rem; margin-top: 1.5rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); text-wrap: pretty; }

.lp-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.lp-points { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; margin-top: 2rem; font-size: 0.9rem; color: var(--muted); }
.lp-points li { display: inline-flex; align-items: center; gap: 0.5rem; }
.lp-points .lp-icon { width: 1.1rem; height: 1.1rem; color: var(--gold); }

.lp-stage { position: relative; width: 100%; max-width: 31rem; margin: 0 auto; aspect-ratio: 1 / 1.02; }

.lp-sun {
  position: absolute; left: 50%; top: 9%; width: 74%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #f2a566 0%, #dc5624 52%, #92290f 100%);
  box-shadow: 0 0 110px 36px rgba(255, 120, 50, 0.3);
  opacity: 0.92;
}

/* a phone: bezel, rounded screen and island scale with the element's width */
.lp-phone {
  position: relative; display: block;
  padding: 2.6%; border-radius: 12% / 5.5%;
  background: linear-gradient(160deg, #3a4262, #141a2e 40%, #0a0d1a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 34px 60px -22px rgba(0, 0, 0, 0.85),
    0 0 70px -18px rgba(255, 140, 60, 0.28);
}
.lp-phone::after {
  content: ""; position: absolute; left: 50%; top: 3.8%; width: 22%; height: 1.3%;
  translate: -50% 0; border-radius: 999px; background: #04060d;
}
.lp-phone img { width: 100%; border-radius: 9.6% / 4.4%; background: #e9d6b0; }

.lp-stage .lp-phone { position: absolute; }
.lp-phone--c { left: 27%; top: 0; width: 46%; z-index: 3; }
.lp-phone--l { left: 3%; top: 17%; width: 35%; z-index: 2; rotate: -7deg; }
.lp-phone--r { right: 3%; top: 19%; width: 35%; z-index: 2; rotate: 7deg; }

@media (min-width: 62rem) {
  .lp-hero__grid { grid-template-columns: 1.05fr 1fr; gap: 2rem; }
  .lp-stage { max-width: 34rem; margin-right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-hero__copy > * { animation: lp-rise 0.9s var(--ease) both; }
  .lp-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
  .lp-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
  .lp-hero__copy > :nth-child(4) { animation-delay: 0.24s; }
  .lp-hero__copy > :nth-child(5) { animation-delay: 0.32s; }
  .lp-stage .lp-phone { animation: lp-rise 1s var(--ease) 0.2s both, lp-float 7s ease-in-out 1.2s infinite; }
  .lp-phone--l { animation-delay: 0.4s, 1.6s !important; }
  .lp-phone--r { animation-delay: 0.55s, 2.4s !important; }
  .lp-sun { animation: lp-glow 6s ease-in-out infinite; }
}

@keyframes lp-rise { from { opacity: 0; translate: 0 18px; } }
@keyframes lp-float { 50% { translate: 0 -9px; } }
@keyframes lp-glow { 50% { box-shadow: 0 0 140px 52px rgba(255, 120, 50, 0.4); } }

/* ---------- how it works ---------- */

.lp-steps { display: grid; gap: 1rem; }

.lp-step { padding: 1.75rem; }
.lp-step__top { display: flex; align-items: center; justify-content: space-between; }
.lp-step__icon, .lp-feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 14px;
  background: rgba(255, 207, 138, 0.1); border: 1px solid rgba(255, 207, 138, 0.26); color: var(--gold);
}
.lp-step__num { font: 500 2.6rem/1 var(--font-brand); color: rgba(242, 244, 250, 0.16); letter-spacing: -0.03em; }
.lp-step h3 { margin-top: 1.5rem; font: 600 1.35rem/1.2 var(--font-brand); letter-spacing: -0.012em; color: var(--ink); }
.lp-step p { margin-top: 0.6rem; color: var(--ink-2); }

@media (min-width: 48rem) {
  .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}

/* ---------- designs ---------- */

.lp-gallery { display: grid; gap: 2rem; }

.lp-design {
  overflow: hidden; padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(255, 130, 50, 0.16), transparent 70%),
    var(--glass);
}

.lp-design__head { max-width: 40rem; }
.lp-design__head h3 { font: 600 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--font-brand); letter-spacing: -0.02em; color: var(--ink); }
.lp-design__head p { margin-top: 0.9rem; color: var(--ink-2); }
.lp-design__head .lp-muted { margin-top: 1.25rem; }
.lp-design__demos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

.lp-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1.25rem; margin-top: clamp(2rem, 5vw, 3.25rem); }
.lp-shots .lp-phone { width: min(100%, 15rem); margin-inline: auto; }
.lp-shots figcaption {
  margin-top: 1.1rem; text-align: center;
  font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

@media (min-width: 48rem) {
  .lp-shots { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .lp-shots li:nth-child(even) { margin-top: 2.5rem; }
  .lp-shots--3 { grid-template-columns: repeat(3, 1fr); max-width: 48rem; margin-inline: auto; }
  .lp-shots--3 li:nth-child(even) { margin-top: 0; }
  .lp-shots--3 li:nth-child(2) { margin-top: 2.5rem; }
}

/* ---------- features ---------- */

.lp-features { display: grid; gap: 1rem; }
.lp-feature { padding: 1.75rem; }
.lp-feature h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.25rem;
  font: 600 1.2rem/1.25 var(--font-brand); letter-spacing: -0.01em; color: var(--ink);
}
.lp-feature p { margin-top: 0.5rem; color: var(--ink-2); }

.lp-badge {
  display: inline-block; padding: 0.1rem 0.65rem;
  border: 1px solid rgba(184, 168, 246, 0.55); border-radius: 999px; color: var(--violet);
  font: 500 0.68rem/1.6 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase;
}

@media (min-width: 40rem) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .lp-features { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* ---------- pricing ---------- */

.lp-pricing {
  text-align: center; padding: clamp(2.25rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid rgba(255, 207, 138, 0.32); border-radius: 28px;
  background:
    radial-gradient(75% 60% at 50% 0%, rgba(255, 150, 70, 0.2), transparent 70%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 90px -34px rgba(255, 150, 60, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.lp-pricing .lp-eyebrow { margin-bottom: 1rem; }
.lp-pricing .lp-h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--ink-2); font-weight: 500; }
.lp-pricing__price {
  margin-top: 1rem; font: 600 clamp(2.1rem, 6vw, 3.6rem)/1.08 var(--font-brand); letter-spacing: -0.025em; text-wrap: balance;
  color: var(--gold);
}
.lp-pricing__body { max-width: 30rem; margin: 1.25rem auto 0; font-size: 1.1rem; color: var(--ink); }
.lp-pricing__list { display: inline-grid; gap: 0.7rem; margin-top: 1.75rem; text-align: left; color: var(--ink-2); }
.lp-pricing__list li { display: flex; align-items: center; gap: 0.7rem; }
.lp-pricing__list .lp-icon { width: 1.25rem; height: 1.25rem; color: var(--gold); }

/* ---------- faq ---------- */

.lp-faq { display: grid; gap: 0.75rem; }
.lp-faq details { box-shadow: none; }
.lp-faq details[open] { border-color: rgba(255, 207, 138, 0.3); background: rgba(255, 255, 255, 0.06); }
.lp-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.5rem; padding: 1rem 1.4rem; cursor: pointer; list-style: none; border-radius: 20px;
  font: 500 1.1rem/1.3 var(--font-brand); color: var(--ink);
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: ""; flex: none; width: 0.6rem; height: 0.6rem; margin-right: 0.2rem;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  rotate: 45deg; translate: 0 -0.1rem; transition: rotate 0.25s var(--ease);
}
.lp-faq details[open] summary::after { rotate: -135deg; translate: 0 0.1rem; }
.lp-faq summary:hover { color: var(--gold); }
.lp-faq details p { padding: 0 1.4rem 1.3rem; max-width: 40rem; color: var(--ink-2); }

/* ---------- closing call to action ---------- */

.lp-cta {
  text-align: center; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(5rem, 11vw, 9rem);
  background: radial-gradient(60% 70% at 50% 100%, rgba(255, 120, 50, 0.2), transparent 70%);
}
.lp-cta .lp-lead { margin-inline: auto; }
.lp-cta .lp-hero__actions { justify-content: center; }

/* ---------- footer ---------- */

.lp-footer { border-top: 1px solid var(--line); background: var(--bg); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.lp-footer__inner { display: grid; gap: 2rem; }
.lp-footer__name { display: flex; align-items: center; gap: 0.7rem; font: 600 1.05rem/1.2 var(--font-brand); color: var(--ink); }
.lp-footer__tagline { margin-top: 0.75rem; max-width: 24rem; font-size: 0.9rem; color: var(--muted); }
.lp-footer__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.9rem; }
.lp-footer__nav a { padding: 0.35rem 0; color: var(--ink-2); text-decoration: none; }
.lp-footer__nav a:hover { color: var(--gold); }
.lp-footer__side { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; }

.lp-by { display: inline-flex; align-items: baseline; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); }
.lp-wordmark {
  display: inline-block; padding: 0.2rem 0; text-decoration: none;
  font: 400 1.3rem/1 var(--font-brand); letter-spacing: 0.01em; white-space: nowrap;
  color: rgba(255, 232, 200, 0.95); text-shadow: 0 0 10px rgba(255, 170, 80, 0.45);
}
.lp-wordmark__lig {
  display: inline-block; width: 1.4em; height: 0.7em; margin: 0 0.03em; vertical-align: -0.09em;
  color: var(--gold); overflow: visible; filter: drop-shadow(0 0 3px rgba(255, 205, 130, 0.85));
}
.lp-wordmark:hover { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .lp-wordmark { animation: lp-neon 3.4s ease-in-out infinite; }
}
@keyframes lp-neon { 50% { text-shadow: 0 0 18px rgba(255, 150, 60, 0.75); } }

@media (min-width: 62rem) {
  .lp-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .lp-footer__side { flex-direction: column; align-items: flex-end; }
}

@media (max-width: 30rem) {
  .lp-brand span { font-size: 0.95rem; max-width: 8.5rem; }
  .lp-header__actions { gap: 0.4rem; }
}

/* ---------- scroll reveals (progressive: no script, no hidden content without support) ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .lp-reveal {
      animation: lp-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 34%;
    }
  }
}
@keyframes lp-in { from { opacity: 0; translate: 0 26px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-btn, .lp-nav a, .lp-lang a, .lp-faq summary::after { transition: none; }
}
