@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=IBM+Plex+Sans:wght@300;400;500&display=swap");

:root {
  --ink: #0c0a0f;
  --charcoal: #1c181f;
  --sage: #9cb5a0;
  --sand: #f8f3e9;
  --cream: #fcf9f3;
  --copper: #cf6a30;
  --amber: #f6d7a8;
  --muted: #615850;
  --shadow: rgba(12, 10, 15, 0.28);
  --panel: rgba(255, 255, 255, 0.82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(246, 215, 168, 0.45) 0%, transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(156, 181, 160, 0.28) 0%, transparent 24%),
    linear-gradient(180deg, #efe6d5 0%, #dfd3c2 48%, #d5c5b4 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
    radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.65;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 6vw;
  background: rgba(250, 245, 234, 0.92);
  border-bottom: 1px solid rgba(12, 10, 15, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
}

.brand {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.5rem;
  letter-spacing: 0.2rem;
}

.brand a {
  color: var(--ink);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(11, 9, 7, 0.4);
  border-radius: 12px;
  padding: 0.4rem 0.75rem;
  font-size: 1rem;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink);
}

.nav__cta {
  padding: 0.5rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.25rem;
}

.nav--open {
  display: flex;
}

.hero {
  position: relative;
  padding: 5rem 8vw 6rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  z-index: 2;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 28px;
  margin: 2rem 6vw 0;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  justify-items: center;
}

.hero__orb {
  position: absolute;
  inset: -120px auto auto 55%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 60%);
  filter: blur(2px);
  opacity: 0.8;
}

.hero__content {
  max-width: 560px;
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  margin: 0.2rem 0 1rem;
  line-height: 1.05;
}

.hero__lead {
  margin: 0 0 1.6rem;
  line-height: 1.7;
  color: var(--charcoal);
}

.hero__points {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.6rem;
}

.hero__points strong {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: linear-gradient(120deg, #fefefe, #f0e9dd);
  text-transform: uppercase;
  letter-spacing: 0.24rem;
  font-size: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 25px var(--shadow);
}

.cta--ghost {
  background: transparent;
  border-color: rgba(11, 9, 7, 0.4);
  color: var(--muted);
}

.section {
  padding: 4.5rem 8vw;
  position: relative;
}

.section__title h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.25rem;
  margin-bottom: 0.4rem;
}

.section__title p {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.18rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.section__title,
.section__body,
.features__grid,
.bindings__grid,
.formulas__grid,
.formulas .section__title,
.getting-started .section__title,
.gs__grid,
.notes__grid,
.formula-example,
.formula-inconsistencies {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section__body,
.features__grid,
.bindings__grid,
.formulas__grid {
  margin-top: 1.8rem;
  color: var(--charcoal);
}

.section__body p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.features {
  background: linear-gradient(140deg, rgba(248, 244, 235, 0.78), rgba(235, 225, 210, 0.8));
}

.features__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.features__grid article {
  padding: 1.3rem 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.features__grid h3 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  font-size: 0.85rem;
}

.bindings {
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(218, 205, 180, 0.82));
  border-radius: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bindings__grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.binding-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.binding-card img {
  max-height: 60px;
  display: block;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
}

.formulas {
  background: radial-gradient(circle at 30% 20%, rgba(246, 215, 168, 0.12) 0%, transparent 30%), linear-gradient(135deg, #2f2520, #3c2f27);
  color: #f9f4ea;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.formulas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.formula-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 1.4rem;
  border-radius: 16px;
  color: #fdf7ed;
}

.formula-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  margin-top: 0;
  font-size: 0.85rem;
}

.formula-example {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}

.formula-example__text h3 {
  margin-top: 0;
}

.formula-example pre {
  margin: 0;
  padding: 1.4rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.32);
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #fdf7ed;
}

.footer {
  padding: 2rem 8vw 3rem;
  font-size: 0.75rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.getting-started {
  background: linear-gradient(150deg, #f7f2e7, #efe3d3 60%, #e3d6c6);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.gs__grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gs__grid article {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

pre {
  background: #111013;
  color: #f3ede2;
  padding: 1rem;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gs__note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.8rem;
}

code {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f0e9dd;
  color: #0c0a0f;
  padding: 0.12em 0.4em;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: inline-block;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 6vw;
    flex-direction: column;
    background: rgba(248, 244, 235, 0.98);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }

  .topbar {
    justify-content: space-between;
  }

  .nav__toggle {
    display: inline-block;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 4rem 6vw;
  }

  .section {
    padding: 3.5rem 6vw;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
