:root {
  --ink-900: #2e2618;
  --ink-700: #59472f;
  --ink-500: #836c4d;
  --amber-600: #c88616;
  --amber-500: #e8a020;
  --amber-300: #f4cb80;
  --paper-50: #fffdf8;
  --paper-100: #f8f5ef;
  --sand-50: #f7f3ea;
  --sand-100: #ede4d3;
  --sand-300: #d7c5a8;
  --text: #2f2a22;
  --muted: #6b5e4b;
  --danger: #b53a2f;
  --success: #1f8f4a;
  --warn: #c08412;
  --shadow-soft: 0 16px 44px rgba(69, 50, 18, 0.08);
  --shadow-card: 0 10px 24px rgba(69, 50, 18, 0.11);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 9%, #ffffff 0%, transparent 40%),
    linear-gradient(160deg, var(--paper-50) 0%, var(--sand-50) 52%, #f3e7cf 100%);
  min-height: 100vh;
  line-height: 1.55;
  padding-top: 0;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.page-shell {
  padding-bottom: 72px;
}

.top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  background: rgba(255, 253, 249, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-100);
}

.top-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: fit-content;
}

.brand-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--sand-300);
  background: #fff;
  border-radius: 10px;
  min-width: 44px;
  min-height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink-900);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  border: 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cta-primary {
  background: linear-gradient(135deg, var(--amber-500), #f0b23f);
  color: #3d2904;
  box-shadow: 0 9px 20px rgba(232, 160, 32, 0.35);
}

.cta-secondary {
  background: #fff;
  border: 1px solid var(--sand-300);
  color: var(--ink-900);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 16px;
}

.hero-copy h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.hero-copy p {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 60ch;
}

.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 229, 0.85)),
    linear-gradient(135deg, var(--sand-100), #f1dfb9);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.kpi {
  border: 1px solid var(--sand-100);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.kpi strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-900);
  font-size: 1.14rem;
}

.kpi span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  margin-top: 56px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
  color: var(--ink-900);
}

.section-sub {
  margin: 0;
  color: var(--muted);
}

.cards-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--sand-100);
  box-shadow: var(--shadow-card);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: auto -20% -70% 10%;
  height: 120px;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.17), transparent 70%);
}

.card-icon {
  font-size: 1.4rem;
}

.card h3 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 12px 0 8px;
  color: var(--ink-900);
  font-size: 1.08rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.card a {
  margin-top: 14px;
  display: inline-flex;
  font-weight: 700;
  color: var(--ink-700);
}

.page-header {
  margin-bottom: 22px;
}

.page-header h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink-900);
}

.page-header p {
  margin-top: 10px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-card,
.result-card,
.report-card {
  background: #fff;
  border: 1px solid var(--sand-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.form-card h3,
.result-card h3,
.report-card h3 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink-900);
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.92rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--sand-300);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.result-card {
  min-height: 280px;
}

.result-card pre,
.report-card pre,
.text-block {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

.disclaimer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--sand-100);
  padding-top: 10px;
}

.toolbar {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.85rem;
}

.badge.hot {
  background: rgba(31, 143, 74, 0.14);
  color: var(--success);
}

.badge.warm {
  background: rgba(255, 195, 67, 0.2);
  color: var(--warn);
}

.badge.cold {
  background: rgba(181, 58, 47, 0.14);
  color: var(--danger);
}

.warning-banner {
  border: 1px solid #f1dbb4;
  background: #fff7ea;
  color: #8b5f15;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.92rem;
  margin: 14px 0;
}

.hidden {
  display: none;
}

.site-footer {
  margin-top: 54px;
  border-top: 1px solid var(--sand-100);
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .hero,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .kpi-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .top-nav .container {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 6px;
  }

  .nav-links.open {
    display: flex;
  }

  .top-nav .cta-primary {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
