:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --surface: rgba(18, 18, 21, 0.88);
  --surface-solid: #111114;
  --surface-2: #17171b;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.13);
  --fg: #ede6d6;
  --fg-muted: #999287;
  --fg-subtle: #656057;
  --gold: #d8b26a;
  --gold-strong: #efd9a8;
  --gold-soft: rgba(216, 178, 106, 0.13);
  --gold-faint: rgba(216, 178, 106, 0.055);
  --shadow: 0 32px 100px rgba(0, 0, 0, 0.46), 0 1px 0 rgba(255, 255, 255, 0.045) inset;
  --grid: rgba(255, 255, 255, 0.045);
}

:root.light {
  color-scheme: light;
  --bg: #f7f4ee;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --surface-2: #fbf8f2;
  --border: rgba(28, 25, 20, 0.09);
  --border-strong: rgba(28, 25, 20, 0.15);
  --fg: #1a1a1f;
  --fg-muted: #625c52;
  --fg-subtle: #928b7e;
  --gold: #b7913f;
  --gold-strong: #846521;
  --gold-soft: rgba(183, 145, 63, 0.15);
  --gold-faint: rgba(183, 145, 63, 0.07);
  --shadow: 0 32px 90px rgba(90, 70, 34, 0.13), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --grid: rgba(28, 25, 20, 0.055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01", "ss03", "tnum";
  -webkit-font-smoothing: antialiased;
  transition: background-color 300ms ease, color 300ms ease;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold-soft); color: var(--fg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.ambient { position: fixed; z-index: -2; border-radius: 999px; pointer-events: none; filter: blur(2px); }
.ambient-one { width: 720px; height: 720px; right: -240px; top: -280px; background: radial-gradient(circle, rgba(216,178,106,.105), transparent 68%); }
.ambient-two { width: 560px; height: 560px; left: -360px; bottom: -240px; background: radial-gradient(circle, rgba(154,125,71,.06), transparent 70%); }

.site-shell { width: min(100% - 64px, 1440px); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.topbar { height: 104px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 40px; height: 40px; flex: none; border-radius: 11px; object-fit: cover; box-shadow: 0 0 22px rgba(216,178,106,.12); }
.brand-type { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 14px; font-weight: 350; letter-spacing: .31em; }
.brand-product { margin-top: 6px; color: var(--fg-subtle); font-size: 8px; font-weight: 500; letter-spacing: .42em; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft), 0 0 16px var(--gold); animation: statusPulse 2.6s ease-in-out infinite; }
.theme-button { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--fg-muted); cursor: pointer; transition: border-color 160ms ease, color 160ms ease, background 300ms ease; }
.theme-button:hover { border-color: var(--border-strong); color: var(--fg); }
.moon-icon { display: none; }
.light .sun-icon { display: none; }
.light .moon-icon { display: block; }

.hero { min-width: 0; min-height: 690px; flex: 1; display: grid; grid-template-columns: minmax(0, .87fr) minmax(580px, 1.13fr); align-items: center; gap: clamp(48px, 7vw, 112px); padding: 72px 0 58px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; max-width: 610px; }
.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--fg-muted); font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow-line { width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
h1 { margin: 28px 0 0; font-size: clamp(54px, 5.55vw, 86px); line-height: .99; letter-spacing: -.052em; font-weight: 350; }
h1 em { color: var(--fg-muted); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 .gold { color: var(--gold-strong); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; }
.hero-description { max-width: 565px; margin: 30px 0 0; color: var(--fg-muted); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; letter-spacing: -.012em; }

.waitlist-form { margin-top: 38px; max-width: 520px; }
.form-control { padding: 5px; display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); box-shadow: 0 16px 40px rgba(0,0,0,.16); backdrop-filter: blur(18px); transition: border-color 160ms ease, box-shadow 160ms ease; }
.form-control:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft), 0 16px 40px rgba(0,0,0,.16); }
.form-control input { min-width: 0; flex: 1; height: 48px; padding: 0 15px; border: 0; outline: 0; background: transparent; color: var(--fg); font-size: 14px; }
.form-control input::placeholder { color: var(--fg-subtle); }
.form-control button { height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 10px; background: var(--gold); color: #111114; font-size: 13px; font-weight: 650; cursor: pointer; transition: transform 160ms ease, background 160ms ease, opacity 160ms ease; }
.form-control button:hover { transform: translateY(-1px); background: var(--gold-strong); }
.form-control button:disabled { cursor: wait; opacity: .68; transform: none; }
.form-note { min-height: 18px; margin: 10px 4px 0; color: var(--fg-subtle); font-size: 11px; }
.form-note.error { color: #d39488; }
.form-note.success { color: var(--gold-strong); }

.product-stage { position: relative; min-width: 0; width: 100%; max-width: 100%; perspective: 1600px; }
.stage-halo { position: absolute; inset: 2% -8% -12%; background: radial-gradient(ellipse at center, var(--gold-soft), transparent 68%); filter: blur(35px); opacity: .64; }
.planner-card { position: relative; min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(22px); transform: rotateY(-2.5deg) rotateX(1deg); transform-origin: center; transition: transform 500ms cubic-bezier(.2,.8,.2,1), background 300ms ease; }
.planner-card:hover { transform: rotateY(0) rotateX(0) translateY(-4px); }
.planner-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(239,217,168,.5), transparent); }
.planner-header { padding: 22px 23px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.micro-label { color: var(--fg-subtle); font-size: 8px; font-weight: 600; letter-spacing: .28em; }
.planner-title { margin-top: 5px; font-size: 18px; letter-spacing: -.02em; }
.plan-state { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--fg-muted); font-size: 10px; }
.plan-state span { width: 5px; height: 5px; border-radius: 50%; background: #8fa77e; box-shadow: 0 0 9px rgba(143,167,126,.65); }
.intent-card { margin: 16px 18px 0; padding: 13px 14px; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(216,178,106,.22); border-radius: 12px; background: var(--gold-faint); }
.mini-logo { width: 24px; height: 24px; flex: none; border-radius: 7px; object-fit: cover; box-shadow: 0 0 14px rgba(216,178,106,.12); }
.intent-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.intent-prompt { overflow: hidden; color: var(--fg); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.intent-meta { margin-top: 2px; color: var(--fg-subtle); font-size: 9px; }
.intent-check { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-strong); }

.week { height: 352px; margin: 16px 18px 0; padding-left: 27px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); border-radius: 13px; overflow: hidden; position: relative; background: color-mix(in srgb, var(--surface-solid) 38%, transparent); }
.time-axis { position: absolute; left: 0; top: 54px; bottom: 0; width: 27px; border-right: 1px solid var(--border); }
.time-axis span { position: absolute; right: 6px; color: var(--fg-subtle); font-size: 7px; transform: translateY(-50%); }
.day-column { min-width: 0; border-right: 1px solid var(--border); }
.day-column:last-child { border-right: 0; }
.day-column.active-day { background: var(--gold-faint); }
.day-head { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.day-head span { color: var(--fg-subtle); font-size: 7px; font-weight: 600; letter-spacing: .2em; }
.day-head strong { margin-top: 3px; font-size: 14px; font-weight: 450; }
.active-day .day-head strong { color: var(--gold-strong); }
.day-body { position: relative; height: calc(100% - 54px); }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--grid); }
.event { position: absolute; left: 5px; right: 5px; min-height: 34px; padding: 7px 7px 5px; overflow: hidden; border: 1px solid var(--border); border-radius: 7px; opacity: 0; animation: blockIn 700ms cubic-bezier(.2,.8,.2,1) forwards; }
.event span, .event small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.event span { font-size: 8px; font-weight: 580; }
.event small { margin-top: 2px; color: var(--fg-muted); font-size: 7px; }
.event-muted { background: rgba(86,101,119,.2); }
.event-lunch { background: var(--gold-soft); border-color: rgba(216,178,106,.22); }
.event-aevia { background: rgba(101,75,63,.5); border-color: rgba(216,178,106,.26); box-shadow: inset 2px 0 0 var(--gold); }
.light .event-aevia { background: rgba(230,211,202,.78); }
.block-one { animation-delay: 900ms; }.block-two { animation-delay: 1080ms; }.block-three { animation-delay: 1260ms; }.block-four { animation-delay: 1440ms; }.block-five { animation-delay: 1620ms; }
.deadline-line { position: absolute; left: 3px; right: 3px; height: 1px; border-top: 1px dashed rgba(216,178,106,.45); }
.deadline-line span { position: absolute; top: 4px; right: 0; color: var(--gold); font-size: 6px; white-space: nowrap; }
.planner-footer { min-height: 66px; padding: 14px 18px; display: flex; align-items: center; gap: 20px; }
.footer-stat { display: flex; flex-direction: column; }
.footer-stat span { font-size: 13px; }.footer-stat small { color: var(--fg-subtle); font-size: 8px; }
.replan-pill { margin-left: auto; padding: 8px 10px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; color: var(--fg-muted); font-size: 9px; }

.principle-strip { padding: 26px 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.principle { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; }
.principle span { color: var(--gold); font-size: 8px; font-weight: 600; letter-spacing: .16em; }
.principle strong { font-size: 12px; font-weight: 550; }
.principle small { grid-column: 2; margin-top: 2px; color: var(--fg-subtle); font-size: 9px; }
.principle-arrow { color: var(--fg-subtle); font-size: 11px; }
.site-footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--fg-subtle); font-size: 10px; }
.site-footer a { transition: color 160ms ease; }.site-footer a:hover { color: var(--gold); }
.footer-thesis { font-family: Georgia, "Times New Roman", serif; font-size: 12px; font-style: italic; }

.reveal { opacity: 0; transform: translateY(12px); animation: revealIn 800ms cubic-bezier(.2,.8,.2,1) forwards; }
.reveal-one { animation-delay: 80ms; }.reveal-two { animation-delay: 180ms; }.reveal-three { animation-delay: 300ms; }.reveal-four { animation-delay: 420ms; }.reveal-five { animation-delay: 260ms; }
@keyframes revealIn { to { opacity: 1; transform: translateY(0); } }
@keyframes blockIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes statusPulse { 0%,100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.05); opacity: 1; } }

@media (max-width: 1100px) {
  .site-shell { width: min(100% - 40px, 960px); }
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 760px; }
  h1 { max-width: 800px; }
  .product-stage { width: min(100%, 760px); margin: 0 auto; }
  .planner-card { transform: none; }
}
@media (max-width: 700px) {
  .site-shell { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .topbar { height: 82px; }
  .status { display: none; }
  .hero { width: 100%; max-width: 100%; min-height: auto; gap: 54px; padding: 56px 0 44px; }
  .hero-copy, .product-stage { width: 100%; max-width: 100%; }
  h1 { font-size: clamp(40px, 11vw, 50px); line-height: 1.01; }
  h1 em, h1 .gold { display: block; }
  .hero-description { margin-top: 24px; }
  .form-control { align-items: stretch; flex-direction: column; padding: 5px; }
  .form-control input { width: 100%; }
  .form-control button { width: 100%; }
  .planner-card { border-radius: 16px; }
  .planner-header { padding: 18px; }
  .intent-card { margin: 13px 12px 0; }
  .week { height: 315px; margin: 13px 12px 0; overflow-x: auto; grid-template-columns: repeat(5, minmax(88px, 1fr)); }
  .planner-footer { padding: 12px; gap: 12px; overflow-x: auto; }
  .footer-stat:nth-child(3) { display: none; }
  .replan-pill { white-space: nowrap; }
  .principle-strip { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .principle-arrow { display: none; }
  .site-footer { padding: 24px 0; align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-thesis { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
