:root {
  --bg: #09121d;
  --bg-strong: #0d1825;
  --panel: rgba(12, 24, 37, 0.88);
  --panel-strong: #111f2f;
  --panel-soft: rgba(17, 31, 47, 0.72);
  --line: rgba(166, 191, 218, 0.12);
  --line-strong: rgba(166, 191, 218, 0.24);
  --text: #edf4fb;
  --muted: #8ca0b7;
  --brand: #f0b429;
  --brand-soft: rgba(240, 180, 41, 0.14);
  --teal: #2dd4bf;
  --rose: #fb7185;
  --sky: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(240, 180, 41, 0.2), transparent 24%),
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, auto, 72px 72px, 72px 72px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 18, 29, 0.08), rgba(9, 18, 29, 0.42)),
    radial-gradient(circle at center, transparent 45%, rgba(9, 18, 29, 0.6));
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(9, 18, 29, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Sora", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(240, 180, 41, 1), rgba(224, 156, 22, 1));
  color: #0b1621;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
  padding: 34px 0 8px;
}

.hero-home .hero-copy,
.hero-panel,
.tool-surface,
.result-card,
.cluster-card,
.workflow-card,
.guide-card,
.guide-grid article,
.insight-card,
.faq-list details,
.cta-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-home .hero-copy {
  padding: 30px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.panel-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    rgba(255, 255, 255, 0.02);
}

.panel-accent {
  border-color: rgba(240, 180, 41, 0.18);
}

.panel-muted {
  border-color: rgba(96, 165, 250, 0.16);
}

.eyebrow,
.panel-label,
.tool-kicker,
.guide-status {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.tool-copy h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  line-height: 0.98;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.tool-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
}

.hero-text,
.section-heading p,
.panel-note,
.cluster-card p,
.workflow-card p,
.guide-card p,
.surface-lead,
.result-summary,
.section-copy,
.faq-list p,
.cta-card p,
.insight-card p,
.insight-card li,
.guide-grid li,
.guide-grid p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-text {
  max-width: 60ch;
  margin: 20px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), #d69411);
  color: #09121d;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.launch-steps span,
.tool-meta li {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: #ced9e6;
  font-size: 0.93rem;
}

.panel-card h2,
.cluster-card h3,
.workflow-card h3,
.guide-card h3,
.guide-grid h3,
.insight-card h3,
.tool-surface-heading h2,
.result-card h2 {
  margin: 0 0 14px;
  font-family: "Sora", sans-serif;
}

.panel-card h2,
.cluster-card h3,
.workflow-card h3,
.guide-card h3,
.insight-card h3 {
  font-size: 1.45rem;
}

.panel-metric-list {
  display: grid;
  gap: 4px;
}

.metric-row,
.result-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-row strong,
.result-row strong {
  max-width: 18ch;
  text-align: right;
  color: var(--text);
}

.panel-note {
  margin: 18px 0 0;
}

.section {
  padding: 64px 0 0;
}

.section-heading {
  max-width: 64ch;
  margin-bottom: 24px;
}

.section h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.cluster-grid,
.workflow-grid,
.guide-grid,
.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cluster-card,
.workflow-card,
.guide-card,
.guide-grid article,
.insight-card,
.cta-card {
  padding: 24px;
}

.cluster-card,
.workflow-card,
.guide-card {
  position: relative;
  overflow: hidden;
}

.cluster-card::before,
.workflow-card::before,
.guide-card::before,
.guide-grid article::before,
.insight-card::before,
.cta-card::before,
.tool-surface::before,
.result-card::before,
.faq-list details::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 35%);
}

.cluster-lead,
.workflow-card p,
.guide-card p {
  margin: 0;
}

.cluster-links,
.launch-steps,
.preset-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.cluster-links a,
.preset-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.cluster-links a:hover,
.preset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.1);
}

.preset-button {
  cursor: pointer;
}

.preset-button.is-active {
  border-color: rgba(240, 180, 41, 0.4);
  background: linear-gradient(135deg, var(--brand), #d69411);
  color: #09121d;
}

.guide-card a,
.tool-card a {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
  color: var(--brand);
}

.guide-grid article,
.insight-card {
  position: relative;
}

.guide-grid ul,
.insight-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  position: relative;
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-family: "Sora", sans-serif;
  font-size: 1.06rem;
  font-weight: 700;
}

.faq-list p {
  margin: 14px 0 0;
}

.cta-section {
  padding-top: 72px;
}

.cta-card {
  position: relative;
  border-color: rgba(240, 180, 41, 0.22);
  background:
    radial-gradient(circle at top right, rgba(240, 180, 41, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(17, 31, 47, 1), rgba(11, 22, 33, 1));
}

.cta-card .eyebrow,
.cta-card p {
  color: #d2dbe7;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 58px 0 12px;
  color: var(--muted);
}

.footer p {
  margin: 8px 0 0;
}

.tool-page {
  padding-top: 26px;
}

.tool-hero {
  padding: 10px 0 12px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 20px;
  align-items: start;
}

.tool-surface,
.result-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.tool-surface-heading {
  display: grid;
  gap: 8px;
}

.surface-lead,
.result-summary {
  margin: 0;
}

.calculator-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.calculator-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.calculator-form input,
.calculator-form select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.calculator-form input:focus,
.calculator-form select:focus {
  outline: 2px solid rgba(240, 180, 41, 0.28);
  outline-offset: 2px;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.preset-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.preset-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.result-card {
  border-color: rgba(240, 180, 41, 0.2);
  background:
    radial-gradient(circle at top right, rgba(240, 180, 41, 0.14), transparent 38%),
    rgba(12, 24, 37, 0.94);
  position: sticky;
  top: 96px;
}

.result-eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-card h2 {
  font-size: clamp(2.35rem, 5vw, 3.3rem);
}

.formula {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(240, 180, 41, 0.18);
  border-radius: 18px;
  background: rgba(240, 180, 41, 0.09);
  color: #ffd98c;
  font-family: "Sora", sans-serif;
  font-weight: 700;
}

.section-copy {
  max-width: 62ch;
}

@media (max-width: 1120px) {
  .hero,
  .tool-layout,
  .cluster-grid,
  .workflow-grid,
  .guide-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    order: -1;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 100%);
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .hero-home .hero-copy,
  .hero-panel,
  .tool-surface,
  .result-card,
  .cluster-card,
  .workflow-card,
  .guide-card,
  .guide-grid article,
  .insight-card,
  .faq-list details,
  .cta-card {
    border-radius: 22px;
  }

  .hero h1,
  .tool-copy h1 {
    max-width: none;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

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

  .result-card {
    position: static;
  }

  .footer {
    flex-direction: column;
  }
}
