:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #9aa2ad;
  --paper: #030405;
  --surface: #090b0f;
  --surface-strong: #10141a;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #d8ad56;
  --acid: #d8ff3e;
  --cyan: #72d7ff;
  --coral: #ff7a66;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  --soft-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: radial-gradient(circle at 72% 16%, rgba(216, 173, 86, 0.14), transparent 28%),
    radial-gradient(circle at 16% 20%, rgba(114, 215, 255, 0.08), transparent 24%),
    var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(3, 4, 5, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav-group,
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav a,
.text-link {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 720;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"],
.text-link:hover {
  background: rgba(216, 255, 62, 0.08);
  color: var(--ink);
}

.header-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 780;
  text-decoration: none;
}

.header-login {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.header-signup {
  color: #090b0f;
  background: var(--ink);
}

.hero {
  min-height: calc(100svh - 148px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.84fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(34px, 5vw, 58px) clamp(20px, 5vw, 72px) clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 790px;
}

.eyebrow,
.label,
.plan-kicker {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.7vw, 4.6rem);
  font-weight: 520;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.22;
}

.hero-lede,
.section-heading p,
.service-grid p,
.plan-card p:not(.price),
.flow-note,
.document p,
.document-lede,
.site-footer p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-lede {
  max-width: 650px;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.text-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font: inherit;
  font-weight: 780;
  text-decoration: none;
  cursor: pointer;
}

button.primary-action,
button.secondary-action {
  border: 0;
}

.primary-action {
  background: var(--acid);
  color: #090b0f;
  box-shadow: 0 0 34px rgba(216, 255, 62, 0.22);
}

.secondary-action,
.text-button {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary-action:hover,
.text-button:hover {
  border-color: rgba(216, 173, 86, 0.48);
  background: rgba(216, 173, 86, 0.1);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 680px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-facts > div {
  min-height: 78px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.label {
  display: block;
  margin-bottom: 8px;
}

.hero-facts strong,
.signal-card strong {
  color: var(--ink);
  font-size: clamp(1.03rem, 1.5vw, 1.26rem);
}

.hero-visual {
  min-width: 0;
}

.visual-shell {
  position: relative;
  min-height: clamp(360px, 38vw, 460px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  background: linear-gradient(145deg, #050506 0%, #0b0e12 55%, #030405 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    url("/assets/forecast-console.png");
  background-size: 42px 42px, 42px 42px, cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.visual-nav,
.glass-stack,
.signal-card {
  position: relative;
  z-index: 1;
}

.visual-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(247, 243, 232, 0.72);
  font-size: 0.82rem;
  font-weight: 760;
}

.glass-stack {
  height: 230px;
  margin-top: clamp(34px, 5vw, 56px);
  perspective: 1000px;
}

.glass-panel {
  position: absolute;
  top: 12%;
  width: clamp(118px, 15vw, 170px);
  height: clamp(168px, 20vw, 226px);
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 0 42px rgba(255, 255, 255, 0.06), 0 26px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  transform-style: preserve-3d;
}

.glass-panel span {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.glass-panel strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.glass-panel small {
  color: var(--muted);
  font-weight: 680;
}

.panel-left {
  left: 8%;
  transform: rotateY(-22deg) rotateZ(-2deg);
}

.panel-core {
  left: 36%;
  top: 2%;
  background: linear-gradient(145deg, rgba(216, 173, 86, 0.9), rgba(108, 70, 17, 0.48));
  border-color: rgba(255, 221, 142, 0.56);
  transform: translateZ(70px);
}

.panel-core span {
  background: rgba(0, 0, 0, 0.16);
  border-color: rgba(255, 247, 217, 0.32);
}

.panel-right {
  right: 7%;
  transform: rotateY(24deg) rotateZ(2deg);
}

.signal-card {
  position: absolute;
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 2;
  max-width: 340px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.signal-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.signal-queue {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.signal-queue span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(247, 243, 232, 0.76);
  font-size: 0.78rem;
  font-weight: 760;
  text-transform: uppercase;
}

.section {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 900px;
}

.service-grid,
.plan-grid {
  display: grid;
  gap: 16px;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.plan-card {
  min-height: 222px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.service-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
}

.plan-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent);
}

.plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-card .text-button {
  margin-top: auto;
}

.plan-card.featured {
  border-color: rgba(216, 173, 86, 0.52);
  background: linear-gradient(180deg, rgba(216, 173, 86, 0.14), rgba(255, 255, 255, 0.045));
}

.price {
  margin-bottom: 4px;
  color: var(--acid);
  font-size: clamp(1.42rem, 2vw, 1.8rem);
  font-weight: 860;
}

.action-section {
  background: radial-gradient(circle at 80% 20%, rgba(216, 173, 86, 0.1), transparent 28%), #060708;
}

.action-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
  padding: clamp(16px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.flow-tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flow-tab {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.flow-tab.is-active,
.flow-tab[aria-selected="true"] {
  background: var(--acid);
  color: #090b0f;
  border-color: var(--acid);
}

.flow-body {
  min-width: 0;
}

.flow-panel {
  display: grid;
  gap: 18px;
}

.flow-panel[hidden] {
  display: none;
}

.bot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 760;
}

.wide-field {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

select option {
  background: #080a0d;
  color: var(--ink);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.flow-tab:focus-visible,
.text-button:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(216, 255, 62, 0.26);
  outline-offset: 2px;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.action-result-panel {
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.action-result {
  color: var(--ink);
  font-weight: 720;
  line-height: 1.56;
}

.action-result[data-state="error"] {
  color: var(--coral);
}

.action-result[data-state="success"] {
  color: var(--acid);
}

.result-link {
  width: fit-content;
  align-items: center;
  align-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px clamp(20px, 5vw, 72px);
  background: #020203;
  color: var(--ink);
}

.site-footer p {
  margin: 0;
}

.document,
.simple-page {
  max-width: 980px;
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.document h1,
.simple-page h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

.document section {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.document section h2 {
  font-size: clamp(1.6rem, 3vw, 2.7rem);
}

@media (max-width: 1100px) {
  .hero,
  .service-grid,
  .action-console {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .visual-shell {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .site-bar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav-group {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions a {
    flex: 1;
  }

  .hero {
    min-height: unset;
    padding-top: 24px;
    padding-bottom: 22px;
    background-image: linear-gradient(180deg, rgba(3, 4, 5, 0.86), rgba(3, 4, 5, 0.96)),
      url("/assets/forecast-console.png");
    background-size: cover;
    background-position: center;
  }

  h1 {
    font-size: clamp(2.48rem, 12vw, 3.7rem);
  }

  .hero-facts,
  .plan-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-facts {
    margin-top: 24px;
  }

  .hero-facts > div {
    min-height: 54px;
    padding: 10px;
  }

  .hero-facts strong {
    font-size: 0.94rem;
  }

  .hero-visual {
    display: none;
  }

  .primary-action,
  .secondary-action,
  .text-button {
    width: 100%;
  }

  .wide-field {
    grid-column: auto;
  }

  .flow-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .visual-shell {
    min-height: 170px;
    padding: 14px;
  }

  .glass-stack {
    display: none;
  }

  .signal-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 34px 0 0;
    padding: 15px;
  }
}
