:root {
  --bg-base: #f4eee3;
  --bg-top: rgba(224, 113, 84, 0.2);
  --bg-right: rgba(33, 123, 114, 0.2);
  --ink: #1f2824;
  --muted: #4e5f56;
  --surface: #fffdf8;
  --surface-soft: #f7f1e6;
  --line: #d8c8ad;
  --teal: #1c7b72;
  --teal-deep: #115f58;
  --sand: #efe1c8;
  --danger-soft: #e07d63;
  --focus: #2d8a80;
  --shadow-soft: 0 18px 36px rgba(17, 29, 25, 0.11);
  --shadow-strong: 0 24px 52px rgba(17, 29, 25, 0.17);
}

:root[data-theme="dark"] {
  --bg-base: #151b18;
  --bg-top: rgba(183, 99, 74, 0.25);
  --bg-right: rgba(70, 148, 138, 0.22);
  --ink: #e5eee9;
  --muted: #b4c4bc;
  --surface: #1e2622;
  --surface-soft: #222c27;
  --line: rgba(177, 196, 187, 0.28);
  --teal: #64b9ad;
  --teal-deep: #4aa094;
  --sand: #2a312d;
  --danger-soft: #d98d77;
  --focus: #7cc6bc;
  --shadow-soft: 0 20px 42px rgba(0, 0, 0, 0.36);
  --shadow-strong: 0 26px 56px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Sora", sans-serif;
  background:
    radial-gradient(circle at 10% 9%, var(--bg-top), transparent 33%),
    radial-gradient(circle at 92% 20%, var(--bg-right), transparent 32%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-base) 88%, #ffffff 12%) 0%, var(--bg-base) 100%);
  transition: background 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3,
legend {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0.012em;
  font-family: "Fraunces", serif;
}

p {
  margin: 0;
  line-height: 1.7;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3rem;
}

.ambient {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.ambient-one {
  width: 280px;
  height: 280px;
  top: 120px;
  right: -110px;
  border-radius: 48% 52% 44% 56% / 36% 59% 41% 64%;
  background: linear-gradient(150deg, rgba(18, 119, 109, 0.28), rgba(222, 127, 95, 0.25));
  animation: floatShape 12s ease-in-out infinite;
}

.ambient-two {
  width: 215px;
  height: 215px;
  top: 760px;
  left: -85px;
  border-radius: 60% 40% 56% 44% / 52% 45% 55% 48%;
  background: linear-gradient(140deg, rgba(218, 163, 84, 0.28), rgba(24, 109, 102, 0.2));
  animation: floatShape 14s ease-in-out infinite reverse;
}

.site-header {
  position: sticky;
  top: 0.8rem;
  z-index: 8;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 84%, transparent 16%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.brand {
  text-decoration: none;
  font-size: 1.32rem;
  font-weight: 700;
  font-family: "Fraunces", serif;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--teal) 16%, transparent 84%);
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.theme-toggle:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.section {
  margin-top: 3rem;
}

.surface {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.hero-copy,
.hero-panel {
  padding: clamp(1.3rem, 3.8vw, 2.4rem);
}

.kicker,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.73rem;
  color: var(--teal-deep);
  font-weight: 700;
}

.hero-copy h1 {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 4.8vw, 3.75rem);
}

.lead {
  margin-top: 0.95rem;
  color: var(--muted);
  max-width: 54ch;
}

.trust-line {
  margin-top: 0.45rem;
  color: color-mix(in srgb, var(--teal) 72%, var(--ink) 28%);
  font-weight: 600;
}

.hero-actions {
  margin-top: 1.15rem;
}

.micro {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  color: #f8fffe;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface-soft);
}

.hero-panel {
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--teal) 12%, transparent 88%), transparent 56%),
    var(--surface);
}

.hero-panel h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.hero-panel p {
  margin-top: 0.7rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.5rem;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 4vw, 2.45rem);
}

.list-card {
  list-style: none;
  margin: 0;
  padding: 1rem 1.4rem;
}

.list-card li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.list-card li:last-child {
  border-bottom: 0;
}

.prose {
  padding: 1.2rem 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.prose p {
  color: var(--muted);
}

.split-grid,
.step-grid,
.about-grid,
.model-grid {
  display: grid;
  gap: 1rem;
}

.split-grid,
.model-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-grid .surface,
.about-grid .surface,
.model-grid .surface {
  padding: 1.15rem;
}

.surface h3 {
  font-size: 1.35rem;
}

.bullet-list,
.stack-list {
  margin: 0.7rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.58rem;
}

.step-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  padding: 1.2rem;
}

.step-number {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--danger-soft);
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.cta-band {
  text-align: center;
  padding: clamp(1.2rem, 4vw, 2.1rem);
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--danger-soft) 12%, transparent 88%), color-mix(in srgb, var(--teal) 10%, transparent 90%));
}

.cta-band h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cta-band p {
  margin: 0.7rem auto 0;
  color: var(--muted);
  max-width: 60ch;
}

.cta-band .btn {
  margin-top: 1rem;
}

.page-intro {
  margin-top: 2rem;
}

.page-intro .surface {
  padding: clamp(1.2rem, 3.5vw, 2rem);
}

.page-intro h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  margin-top: 0.55rem;
}

.page-intro p {
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 64ch;
}

.form-shell {
  margin-top: 1.2rem;
  width: min(760px, 100%);
}

.confidential-form {
  padding: 1.5rem;
  background: #ffffff;
}

:root[data-theme="dark"] .confidential-form {
  background: #f6f6f3;
  color: #1f2522;
  border-color: rgba(212, 221, 216, 0.4);
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 1.65rem;
  display: grid;
  gap: 1rem;
}

.form-section:last-of-type {
  margin-bottom: 1.1rem;
}

.form-section legend {
  margin-bottom: 0.3rem;
  color: #243129;
  font-size: 1.22rem;
}

.field {
  display: grid;
  gap: 0.52rem;
}

.field label,
.field-hint {
  font-weight: 600;
  color: #223028;
  font-size: 0.95rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #c9cec9;
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1d2420;
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 125px;
}

.choice-list {
  display: grid;
  gap: 0.68rem;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  color: #25342c;
}

.choice input {
  margin-top: 0.18rem;
  inline-size: 1rem;
  block-size: 1rem;
}

.consent-row {
  margin-bottom: 0.75rem;
}

.form-actions {
  display: grid;
  justify-items: start;
}

.form-confirmation {
  margin-top: 1rem;
  display: none;
  padding: 1.2rem;
}

.form-error {
  margin-top: 1rem;
  display: none;
  padding: 1rem 1.2rem;
  border-color: color-mix(in srgb, var(--danger-soft) 52%, var(--line) 48%);
  background: color-mix(in srgb, var(--danger-soft) 10%, var(--surface) 90%);
  color: var(--ink);
  font-weight: 600;
}

.form-error.visible {
  display: block;
}

.form-confirmation.visible {
  display: grid;
  gap: 0.25rem;
}

.form-confirmation p {
  color: var(--muted);
}

.form-confirmation .confirm-line {
  color: var(--ink);
  font-weight: 700;
}

.about-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

/* Roomier About-page cards so dense copy does not feel cramped. */
.page-about .surface {
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
}

.page-about .about-grid .surface,
.page-about .model-grid .surface,
.page-about .split-grid .surface {
  min-height: 210px;
}

.page-about .stack-list,
.page-about .bullet-list {
  gap: 0.7rem;
}

.page-about .stack-list li,
.page-about .bullet-list li {
  font-size: 1.02rem;
  line-height: 1.6;
}

.page-about .pill-list {
  gap: 0.7rem;
}

.value-prop {
  margin-top: 0.95rem;
  padding: 0.82rem 0.95rem;
  border-left: 4px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 11%, transparent 89%);
  border-radius: 9px;
  font-weight: 600;
  color: var(--ink);
}

.pill-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 999px;
  padding: 0.44rem 0.72rem;
  font-size: 0.83rem;
  font-weight: 600;
}

.page-about .pill-list li {
  padding: 0.58rem 0.9rem;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2.3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-ready [data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatShape {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(0, -11px) rotate(5deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
  }

  .hero,
  .split-grid,
  .step-grid,
  .about-grid,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .page-about .about-grid .surface,
  .page-about .model-grid .surface,
  .page-about .split-grid .surface {
    min-height: unset;
  }

  .ambient-one {
    right: -140px;
  }

  .ambient-two {
    left: -120px;
    top: 1180px;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(1100px, calc(100% - 1.2rem));
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    padding: 0.42rem 0.65rem;
  }

  .surface,
  .hero-copy,
  .hero-panel,
  .confidential-form {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
