:root {
  color-scheme: dark;
  --bg: #07060b;
  --surface: #0e0c13;
  --surface-soft: #131018;
  --text: #f4f0f5;
  --muted: #a69da8;
  --line: rgba(255, 255, 255, .13);
  --accent: #ce64c9;
  --accent-blue: #75bfff;
  --max: 1240px;
  --pad: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; }
.skip-link:focus { top: 16px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  padding: 0 var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, height .35s ease;
}
.site-header.scrolled { height: 68px; background: rgba(7, 6, 11, .86); border-color: var(--line); backdrop-filter: blur(18px); }
.logo { display: inline-flex; align-items: center; justify-self: start; font-size: 15px; font-weight: 600; letter-spacing: .25em; }
.logo strong { margin-left: .16em; color: var(--accent); font-size: 1.25em; font-weight: 400; }
nav { display: flex; gap: clamp(20px, 3vw, 45px); }
nav a { color: rgba(255,255,255,.68); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; transition: color .2s; }
nav a:hover, nav a:focus-visible { color: #fff; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: clamp(15px, 2vw, 30px); }
.language-switcher { display: inline-flex; align-items: center; gap: 6px; color: #68616a; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.language-switcher button { padding: 4px 1px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; transition: color .2s; }
.language-switcher button[aria-pressed="true"] { color: #fff; }
.language-switcher button:hover, .language-switcher button:focus-visible { color: #d68bd2; }
.header-cta { padding: 0 0 4px; border: 0; border-bottom: 1px solid rgba(255,255,255,.48); background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  padding: 150px var(--pad) clamp(82px, 11vh, 124px);
  background: #050408 url("flowerx-2027-hero.png") center center / cover no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,3,8,.94) 0%, rgba(4,3,8,.68) 32%, rgba(4,3,8,.08) 67%),
    linear-gradient(0deg, rgba(4,3,8,.83) 0%, transparent 42%, rgba(4,3,8,.35) 100%);
}
.hero-content { width: min(680px, 100%); }
.eyebrow { display: flex; align-items: center; gap: 13px; margin: 0 0 26px; color: #c4bac6; font-size: 11px; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.eyebrow > span:first-child { flex: 0 0 30px; width: 30px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-blue)); }
.hero h1, .section h2, .manifesto h2, .closing h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.045em;
}
.hero h1 { font-size: clamp(54px, 7.4vw, 108px); }
.hero-lead { max-width: 610px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: clamp(18px, 2vw, 23px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 54px; padding: 0 25px; border: 1px solid transparent; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; transition: transform .25s, background .25s, border-color .25s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: #09070c; }
.button-primary:hover { background: #e6dce8; }
.button-ghost { border-color: rgba(255,255,255,.3); background: rgba(8,6,12,.32); backdrop-filter: blur(8px); }
.button-ghost:hover { border-color: rgba(255,255,255,.7); }
.scroll-cue { position: absolute; right: var(--pad); bottom: 48px; display: flex; align-items: center; gap: 14px; color: rgba(255,255,255,.55); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 50px; height: 1px; overflow: hidden; background: rgba(255,255,255,.28); }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: #fff; animation: cue 2.4s ease-in-out infinite; transform-origin: left; }
@keyframes cue { 0% { transform: translateX(-100%); } 50%,100% { transform: translateX(100%); } }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(100px, 14vw, 190px) var(--pad); }
.section-label { margin-bottom: clamp(60px, 8vw, 110px); color: #807781; font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; }
.intro-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr); gap: clamp(60px, 10vw, 150px); }
.section h2 { font-size: clamp(48px, 6vw, 86px); }
.intro-copy { padding-top: 10px; color: var(--muted); }
.intro-copy p { margin: 0 0 22px; }
.intro-copy .large-copy { margin-bottom: 32px; color: var(--text); font-size: clamp(21px, 2.2vw, 29px); line-height: 1.45; }

.origin { display: grid; grid-template-columns: 1.1fr .9fr; align-items: stretch; max-width: none; padding: 0; border-block: 1px solid var(--line); background: var(--surface); }
.origin-card { padding: clamp(70px, 10vw, 150px) var(--pad); }
.card-kicker { margin: 0 0 32px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.origin-card h2 { margin-bottom: 40px; font-size: clamp(48px, 6vw, 82px); }
.origin-card > p:not(.card-kicker) { max-width: 630px; color: var(--muted); }
.text-link { display: inline-block; margin-top: 26px; padding-bottom: 7px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.origin-visual { position: relative; min-height: 620px; overflow: hidden; border-left: 1px solid var(--line); background: radial-gradient(circle at 68% 34%, rgba(108,172,245,.18), transparent 33%), radial-gradient(circle at 35% 67%, rgba(204,72,179,.25), transparent 38%), #09070d; }
.origin-visual::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(255,255,255,.08); transform: rotate(12deg); }
.ghost-year { position: absolute; left: 50%; top: 50%; color: transparent; font-family: Georgia, serif; font-size: clamp(100px, 14vw, 220px); line-height: 1; -webkit-text-stroke: 1px rgba(255,255,255,.2); transform: translate(-50%,-72%) rotate(-90deg); }
.to-year { position: absolute; left: 50%; top: 50%; font-family: Georgia, serif; font-size: clamp(88px, 12vw, 190px); line-height: 1; text-shadow: -12px 0 30px rgba(211,79,189,.25), 12px 0 30px rgba(96,168,255,.25); transform: translate(-50%,-25%); }

.next { max-width: var(--max); }
.next-heading { margin-bottom: clamp(65px, 10vw, 120px); }
.next-heading h2 { max-width: 1000px; }
.scale-card { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; min-height: 400px; margin-bottom: 28px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(202,72,190,.1), rgba(86,161,244,.08)); }
.scale-number { padding: clamp(35px, 6vw, 80px); font-family: Georgia, serif; font-size: clamp(140px, 20vw, 270px); line-height: .8; letter-spacing: -.1em; background: linear-gradient(135deg, #fff, #b89db8 55%, #71b6ed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.scale-number span { font-size: .38em; vertical-align: top; }
.scale-copy { padding: 50px clamp(40px, 6vw, 90px); border-left: 1px solid var(--line); }
.scale-copy h3 { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 54px); font-weight: 400; line-height: 1.08; letter-spacing: -.035em; }
.scale-copy p { max-width: 470px; margin: 0; color: var(--muted); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar { min-height: 280px; padding: 35px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s, transform .3s; }
.pillar:hover { z-index: 1; background: var(--surface-soft); transform: translateY(-5px); }
.pillar span { color: #716a73; font-size: 10px; letter-spacing: .2em; }
.pillar h3 { margin: 65px 0 13px; font-family: Georgia, serif; font-size: 28px; font-weight: 400; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; }

.manifesto { padding: clamp(110px, 16vw, 220px) var(--pad); background: linear-gradient(rgba(7,5,10,.69), rgba(7,5,10,.88)), url("flowerx-2027-hero.png") center 47% / cover fixed; }
.manifesto-inner { max-width: 1080px; margin: auto; text-align: center; }
.manifesto p { margin: 0 0 28px; color: #d497cf; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.manifesto h2 { font-size: clamp(42px, 6vw, 82px); line-height: 1.08; }

.closing { display: grid; place-items: center; min-height: 760px; text-align: center; }
.closing-content { max-width: 900px; }
.closing .eyebrow { justify-content: center; }
.closing h2 { font-size: clamp(48px, 6vw, 82px); }
.closing-content > p:not(.eyebrow) { max-width: 620px; margin: 36px auto 40px; color: var(--muted); font-size: 18px; }
.closing small { display: block; margin-top: 18px; color: #756d77; font-size: 11px; letter-spacing: .08em; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; min-height: 120px; padding: 30px var(--pad); border-top: 1px solid var(--line); color: #777079; font-size: 11px; letter-spacing: .08em; }
footer p { margin: 0; }
footer p:last-child { justify-self: end; }
footer p a { color: #aaa1ac; }

.waitlist-dialog {
  width: min(620px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.14);
  background: #0d0a11;
  color: var(--text);
  box-shadow: 0 35px 120px rgba(0,0,0,.72), 0 0 80px rgba(177,73,181,.13);
}
.waitlist-dialog::backdrop { background: rgba(3,2,5,.82); backdrop-filter: blur(12px); }
.waitlist-panel { position: relative; padding: clamp(36px, 6vw, 70px); }
.dialog-close { position: absolute; right: 22px; top: 17px; width: 42px; height: 42px; border: 0; background: transparent; color: #8e858f; cursor: pointer; font: 300 30px/1 sans-serif; transition: color .2s, transform .2s; }
.dialog-close:hover { color: #fff; transform: rotate(8deg); }
.dialog-kicker { margin: 0 0 22px; color: #d18acb; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.waitlist-panel > h2 { max-width: 470px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(45px, 7vw, 68px); font-weight: 400; line-height: 1; letter-spacing: -.045em; }
.dialog-intro { max-width: 470px; margin: 24px 0 34px; color: var(--muted); font-size: 16px; }
.waitlist-form > label:first-child { display: block; margin-bottom: 9px; color: #cfc7d0; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.email-row { display: grid; grid-template-columns: 1fr auto; }
.email-row input { min-width: 0; height: 58px; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-right: 0; outline: 0; background: rgba(255,255,255,.035); color: #fff; font: inherit; }
.email-row input::placeholder { color: #6f6871; }
.email-row input:focus { border-color: rgba(206,100,201,.82); box-shadow: inset 0 0 0 1px rgba(206,100,201,.25); }
.email-row button { height: 58px; padding: 0 23px; border: 1px solid #fff; background: #fff; color: #09070c; cursor: pointer; font-family: inherit; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.email-row button:disabled { cursor: wait; opacity: .6; }
.consent-row { display: grid; grid-template-columns: 18px 1fr; gap: 11px; align-items: start; margin-top: 18px; color: #827a84; cursor: pointer; font-size: 11px; line-height: 1.5; }
.consent-row input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--accent); }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { min-height: 24px; margin: 14px 0 0; color: #eea9c8; font-size: 12px; }
.waitlist-success { padding: 10px 0 0; text-align: left; }
.waitlist-success[hidden] { display: none; }
.waitlist-success > span { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 25px; border: 1px solid rgba(206,100,201,.5); border-radius: 50%; color: #da86d4; font-size: 22px; }
.waitlist-success h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 46px; font-weight: 400; }
.waitlist-success p { margin: 0 0 28px; color: var(--muted); }
.text-button { padding: 0 0 5px; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; cursor: pointer; font: 700 10px/1.4 inherit; letter-spacing: .15em; text-transform: uppercase; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { background-position: 58% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,3,8,.92), rgba(4,3,8,.35)), linear-gradient(0deg, rgba(4,3,8,.9), transparent 55%); }
  .intro-grid, .origin, .scale-card { grid-template-columns: 1fr; }
  .origin-visual { min-height: 430px; border-left: 0; border-top: 1px solid var(--line); }
  .scale-copy { border-left: 0; border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
  footer p:nth-child(2) { display: none; }
}

@media (max-width: 560px) {
  .site-header { height: 70px; }
  .header-actions { gap: 11px; }
  .language-switcher { gap: 4px; font-size: 9px; }
  .header-cta { font-size: 9px; }
  .hero { min-height: 820px; padding-top: 115px; background-position: 55% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(4,3,8,.86), rgba(4,3,8,.26)), linear-gradient(0deg, rgba(4,3,8,.95) 0%, rgba(4,3,8,.4) 65%, rgba(4,3,8,.25)); }
  .hero h1 { font-size: clamp(48px, 14vw, 68px); }
  .hero-actions .button { width: 100%; }
  .scroll-cue { display: none; }
  .intro-grid { gap: 45px; }
  .origin-visual { min-height: 340px; }
  .scale-card { min-height: auto; }
  .scale-number { padding-bottom: 55px; }
  .scale-copy { padding: 42px 28px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 220px; }
  .pillar h3 { margin-top: 45px; }
  .manifesto { background-attachment: scroll; }
  .closing { min-height: 680px; }
  footer { min-height: 100px; }
  .waitlist-panel { padding: 48px 22px 34px; }
  .email-row { grid-template-columns: 1fr; gap: 10px; }
  .email-row input { border-right: 1px solid rgba(255,255,255,.22); }
  .email-row button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
