/* =====================================
   HOME PAGE
   Denarya — Institutional Finance System
===================================== */

:root {
  --home-light-bg: #f1ebdf;
  --home-light-bg-2: #e5ddcf;
  --home-light-ink: #14100b;
  --home-light-muted: rgba(20, 16, 11, 0.66);
  --home-light-faint: rgba(20, 16, 11, 0.42);
  --home-light-line: rgba(111, 75, 34, 0.18);
  --home-light-line-strong: rgba(111, 75, 34, 0.32);
  --home-light-panel: rgba(255, 252, 244, 0.58);

  --home-dark-bg: #050403;
  --home-dark-bg-2: #0b0805;
  --home-dark-panel: rgba(15, 12, 8, 0.92);
  --home-dark-line: rgba(216, 177, 111, 0.18);
  --home-dark-line-strong: rgba(216, 177, 111, 0.34);
  --home-dark-text: #f4ead8;
  --home-dark-muted: rgba(244, 234, 216, 0.68);
  --home-dark-faint: rgba(244, 234, 216, 0.44);

  --home-gold: #b88b4f;
  --home-gold-bright: #d8b16f;
  --home-gold-deep: #76522c;

  --home-mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;

  --home-sans:
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =====================================
   BASE
===================================== */

html {
  scroll-behavior: smooth;
  background: #f1ebdf;
}

body {
  overflow-x: hidden;
  color: var(--home-light-ink);

  background:
    radial-gradient(
      circle at 84% 10%,
      rgba(184, 139, 79, 0.055),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(143, 102, 50, 0.032),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #f6f0e5 0%,
      var(--home-light-bg) 48%,
      var(--home-light-bg-2) 100%
    );
}

body::before {
  content: none;
}

body.dark-mode {
  color: var(--home-dark-text);

  background:
    radial-gradient(
      circle at 84% 10%,
      rgba(216, 177, 111, 0.058),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(184, 139, 79, 0.035),
      transparent 40%
    ),
    linear-gradient(
      180deg,
      #080705 0%,
      var(--home-dark-bg) 52%,
      #000000 100%
    );
}

body.dark-mode::before {
  content: none;
}

.home-shell {
  width: min(1680px, calc(100% - 64px));
  margin-inline: auto;
}

.home-section {
  position: relative;
  padding: clamp(82px, 7vw, 118px) 0;
  border-top: 1px solid rgba(111, 75, 34, 0.22);
}

body.dark-mode .home-section {
  border-top-color: rgba(216, 177, 111, 0.22);
}

/* =====================================
   SHARED TYPE
===================================== */

.home-kicker {
  display: inline-flex;
  margin-bottom: 18px;

  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

body.dark-mode .home-kicker {
  color: var(--home-gold-bright);
}

.home-section-heading {
  max-width: 940px;
  margin: 0 auto 48px;
  text-align: center;
}

.home-section-heading h2,
.principles-copy h2,
.close-card h2 {
  margin: 0;

  color: var(--home-light-ink);
  font-family: var(--home-sans);
  font-size: clamp(2.5rem, 4.3vw, 5.1rem);
  font-weight: 820;
  line-height: 0.96;
  letter-spacing: -0.058em;
}

body.dark-mode .home-section-heading h2,
body.dark-mode .principles-copy h2,
body.dark-mode .close-card h2 {
  color: var(--home-dark-text);
}

.home-section-heading p,
.principles-copy p,
.close-card p {
  max-width: 760px;
  margin: 18px auto 0;

  color: var(--home-light-muted);
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  font-weight: 560;
  line-height: 1.68;
}

body.dark-mode .home-section-heading p,
body.dark-mode .principles-copy p,
body.dark-mode .close-card p {
  color: var(--home-dark-muted);
}

/* =====================================
   BUTTONS
===================================== */

.home-btn {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 0 24px;

  border: 1px solid rgba(111, 75, 34, 0.26);
  border-radius: 0;

  color: var(--home-gold-deep);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 244, 0.46),
      rgba(255, 248, 236, 0.22)
    );

  font-family: var(--home-mono);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 26px rgba(111, 75, 34, 0.045);

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.home-btn:hover {
  transform: translateY(-1px);

  color: #4f3518;
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 244, 0.62),
      rgba(216, 177, 111, 0.16)
    );

  border-color: rgba(111, 75, 34, 0.44);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 12px 30px rgba(111, 75, 34, 0.075);
}

.home-btn:focus-visible {
  outline: 2px solid rgba(184, 139, 79, 0.48);
  outline-offset: 4px;
}

.home-btn-primary {
  color: #120d06;
  background:
    linear-gradient(
      135deg,
      #dfb96f 0%,
      #b88b4f 48%,
      #8a5f2d 100%
    );

  border-color: rgba(118, 82, 44, 0.54);

  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.42),
    0 12px 28px rgba(111, 75, 34, 0.12);
}

.home-btn-primary:hover {
  color: #100b05;
  background:
    linear-gradient(
      135deg,
      #e3bd76 0%,
      #bd9052 48%,
      #805829 100%
    );

  border-color: rgba(111, 75, 34, 0.64);

  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.5),
    0 14px 32px rgba(111, 75, 34, 0.16);
}

.home-btn-secondary {
  color: var(--home-gold-deep);
  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 244, 0.42),
      rgba(255, 248, 236, 0.18)
    );
}

/* DARK MODE */

body.dark-mode .home-btn {
  color: var(--home-gold-bright);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035),
      rgba(216, 177, 111, 0.018)
    );

  border-color: rgba(216, 177, 111, 0.28);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 12px 28px rgba(0, 0, 0, 0.18);
}

body.dark-mode .home-btn:hover {
  color: #f2d79d;
  background:
    linear-gradient(
      180deg,
      rgba(216, 177, 111, 0.105),
      rgba(216, 177, 111, 0.038)
    );

  border-color: rgba(216, 177, 111, 0.48);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.065),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body.dark-mode .home-btn:focus-visible {
  outline-color: rgba(216, 177, 111, 0.56);
}

body.dark-mode .home-btn-primary {
  color: #100c06;
  background:
    linear-gradient(
      135deg,
      #e2bd78 0%,
      #bd8d4d 48%,
      #8b5d2b 100%
    );

  border-color: rgba(216, 177, 111, 0.58);

  box-shadow:
    inset 0 1px 0 rgba(255, 238, 196, 0.42),
    0 14px 34px rgba(0, 0, 0, 0.24);
}

body.dark-mode .home-btn-primary:hover {
  color: #0f0a04;
  background:
    linear-gradient(
      135deg,
      #e8c783 0%,
      #c99655 48%,
      #936431 100%
    );

  border-color: rgba(216, 177, 111, 0.72);

  box-shadow:
    inset 0 1px 0 rgba(255, 238, 196, 0.52),
    0 16px 38px rgba(0, 0, 0, 0.3);
}

body.dark-mode .home-btn-secondary {
  color: var(--home-gold-bright);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.026),
      rgba(216, 177, 111, 0.014)
    );
}

/* =====================================
   HERO
===================================== */

.home-hero {
  position: relative;
  min-height: auto;

  display: flex;
  align-items: center;

  isolation: isolate;
  overflow: hidden;

  padding:
    clamp(54px, 4.4vw, 76px)
    0
    clamp(48px, 4.2vw, 68px);

  border-bottom: none;

  background:
    linear-gradient(
      180deg,
      #f6f0e5 0%,
      #f1ebdf 48%,
      #e8dfd1 100%
    );
}

body.dark-mode .home-hero {
  background:
    radial-gradient(
      circle at 72% 50%,
      rgba(216, 177, 111, 0.025),
      transparent 42%
    ),
    linear-gradient(
      180deg,
      #030201 0%,
      #010101 58%,
      #000000 100%
    );
}

.home-bg-system,
.home-bg-grid,
.home-bg-orb,
.home-bg-orb-one,
.home-bg-orb-two,
.home-bg-arc {
  display: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns:
    minmax(560px, 0.62fr)
    minmax(680px, 1.38fr);

  gap: clamp(18px, 2vw, 42px);
  align-items: center;
}

.home-hero-copy {
  position: relative;
  z-index: 4;

  width: 100%;
  max-width: 720px;
  margin-left: clamp(42px, 4.2vw, 76px);

  transform: translateX(8px);
}

.home-hero-rule {
  display: block;

  width: min(100%, 520px);
  height: 1px;

  margin: 0 0 28px;

  background:
    linear-gradient(
      90deg,
      rgba(111, 75, 34, 0.64),
      rgba(184, 139, 79, 0.24),
      transparent
    );
}

body.dark-mode .home-hero-rule {
  background:
    linear-gradient(
      90deg,
      rgba(216, 177, 111, 0.68),
      rgba(216, 177, 111, 0.22),
      transparent
    );
}

.home-hero-copy h1 {
  margin: 0 0 24px;

  color: var(--home-light-ink);

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.55rem, 5.55vw, 7rem);
  font-weight: 500;
  line-height: 0.90;
  letter-spacing: -0.075em;
}

.home-hero-copy h1 span {
  color: var(--home-gold-deep);
}

body.dark-mode .home-hero-copy h1 {
  color: var(--home-dark-text);
}

body.dark-mode .home-hero-copy h1 span {
  color: var(--home-gold-bright);
}

.home-hero-copy p {
  max-width: 590px;

  margin: 0 0 30px;

  color: var(--home-light-muted);

  font-size: clamp(1.02rem, 0.98vw, 1.14rem);
  font-weight: 500;
  line-height: 1.66;
}

body.dark-mode .home-hero-copy p {
  color: var(--home-dark-muted);
}

.home-hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
}

.home-hero-actions .home-btn {
  width: auto;
  min-width: 0;
  gap: 18px;
  padding-inline: 22px;
  justify-content: center;
  white-space: nowrap;
}

.home-hero-proof {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;

  width: 100%;
  max-width: none;

  margin-top: 30px;
  padding-top: 18px;

  border-top: 1px solid rgba(111, 75, 34, 0.08);
}

body.dark-mode .home-hero-proof {
  border-top-color: rgba(216, 177, 111, 0.08);
}

.home-hero-proof span {
  color: var(--home-light-muted);

  font-family: var(--home-mono);
  font-size: 0.64rem;
  font-weight: 760;

  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-hero-proof span:not(:last-child)::after {
  content: "/";

  margin-left: 18px;

  color: rgba(111, 75, 34, 0.34);
}

body.dark-mode .home-hero-proof span {
  color: var(--home-dark-muted);
}

body.dark-mode .home-hero-proof span:not(:last-child)::after {
  color: rgba(216, 177, 111, 0.34);
}

/* =====================================
   SYSTEM VISUAL
===================================== */

.home-system-visual {
  position: relative;

  width: min(122%, 1120px);
  aspect-ratio: 1536 / 1024;

  justify-self: start;
  align-self: center;

  isolation: isolate;
  overflow: visible;

  transform: translateX(20%) translateY(-1%) scale(1.02);
  transform-origin: center center;
}

.home-system-visual::after {
  content: none;
}

.home-system-frame {
  position: relative;
  inset: auto;

  width: 100%;
  height: 100%;

  isolation: isolate;
  overflow: visible;
}

.home-system-map {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center center;

  opacity: 1;

  pointer-events: none;
  user-select: none;
}

.home-system-map-light {
  display: block;
  mix-blend-mode: normal;

  filter:
    saturate(0.78)
    hue-rotate(-5deg)
    brightness(0.98)
    contrast(0.96);
}

.home-system-map-dark {
  display: none;
}

body.dark-mode .home-system-map-light {
  display: none;
}

body.dark-mode .home-system-map-dark {
  display: block;
  mix-blend-mode: normal;

  filter:
    saturate(0.82)
    hue-rotate(-4deg)
    brightness(0.96)
    contrast(0.98);
}

/* Hero system labels removed — labels are now part of the visual asset */

.home-system-labels,
.home-system-label,
.home-system-label::before,
.home-system-label-eyebrow,
.home-system-label h2,
.home-system-label p {
  display: none;
}

@media (max-width: 1180px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .home-hero-copy {
    max-width: 740px;
    margin-left: 0;
    transform: none;
  }

  .home-system-visual {
    justify-self: center;

    width: min(100%, 900px);
    aspect-ratio: 1536 / 1024;

    transform: none;
    transform-origin: center center;
  }

  .home-system-frame {
    position: relative;
    inset: auto;

    width: 100%;
    height: 100%;

    left: auto;
    transform: none;
  }
}

@media (max-width: 820px) {
  .home-system-visual {
    display: none;
  }
}

/* =====================================
   TRUST
===================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--home-light-line);
  border-left: 1px solid var(--home-light-line);
}

body.dark-mode .trust-grid {
  border-color: var(--home-dark-line);
}

.trust-card {
  padding: 30px;
  border-right: 1px solid var(--home-light-line);
  border-bottom: 1px solid var(--home-light-line);
  background: rgba(255, 255, 255, 0.18);
}

body.dark-mode .trust-card {
  border-color: var(--home-dark-line);
  background: rgba(255, 255, 255, 0.015);
}

.trust-card span {
  display: block;
  margin-bottom: 20px;

  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 0.72rem;
  font-weight: 800;
}

body.dark-mode .trust-card span {
  color: var(--home-gold-bright);
}

.trust-card h3 {
  margin: 0 0 10px;

  color: var(--home-light-ink);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.dark-mode .trust-card h3 {
  color: var(--home-dark-text);
}

.trust-card p {
  margin: 0;
  color: var(--home-light-muted);
  font-size: 0.96rem;
  line-height: 1.62;
}

body.dark-mode .trust-card p {
  color: var(--home-dark-muted);
}

/* =====================================
   ENGINES
===================================== */

.home-engines {
  background:
    linear-gradient(rgba(111, 75, 34, 0.035), rgba(111, 75, 34, 0.035)) center top / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(255, 252, 246, 0.10), transparent 100%);
}

.home-engines .home-section-heading {
  max-width: 980px;
  margin-bottom: clamp(52px, 6vw, 78px);
}

.home-engines .home-section-heading h2 {
  max-width: 900px;
  margin-inline: auto;

  font-family: var(--home-sans);
  font-weight: 820;
  letter-spacing: -0.056em;
  line-height: 0.98;
}

.engine-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;

  border-top: 1px solid rgba(111, 75, 34, 0.22);
  border-left: 1px solid rgba(111, 75, 34, 0.22);
}

.engine-tile,
.engine-tile-wide {
  min-height: 320px;
  padding: 30px 26px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  color: inherit;
  text-decoration: none;

  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.32),
      rgba(255, 248, 236, 0.14)
    );

  border-right: 1px solid rgba(111, 75, 34, 0.22);
  border-bottom: 1px solid rgba(111, 75, 34, 0.22);
  border-radius: 0;

  box-shadow: none;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.engine-tile:hover,
.engine-tile-wide:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      180deg,
      rgba(255, 252, 246, 0.48),
      rgba(255, 248, 236, 0.22)
    );
}

.engine-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.engine-tile-top span,
.engine-tile-top strong {
  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.engine-tile-top strong {
  color: rgba(111, 75, 34, 0.36);
}

.engine-tile h3,
.engine-tile-wide h3 {
  max-width: 12ch;
  margin: 0 0 14px;

  color: var(--home-light-ink);
  font-family: var(--home-sans);
  font-size: clamp(1.62rem, 1.8vw, 2.25rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.engine-tile p,
.engine-tile-wide p {
  max-width: 19ch;
  margin: 0;

  color: var(--home-light-muted);
  font-size: 0.96rem;
  font-weight: 560;
  line-height: 1.55;
}

.engine-tile::after,
.engine-tile-wide::after {
  content: "→";
  margin-top: 28px;

  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 1rem;
  line-height: 1;
}

/* DARK MODE */

body.dark-mode .home-engines {
  background:
    linear-gradient(rgba(216, 177, 111, 0.038), rgba(216, 177, 111, 0.038)) center top / 1px 100% no-repeat,
    linear-gradient(180deg, rgba(216, 177, 111, 0.018), transparent 100%);
}

body.dark-mode .engine-board {
  border-top-color: rgba(216, 177, 111, 0.22);
  border-left-color: rgba(216, 177, 111, 0.22);
}

body.dark-mode .engine-tile,
body.dark-mode .engine-tile-wide {
  background: rgba(255, 255, 255, 0.01);
  border-right-color: rgba(216, 177, 111, 0.22);
  border-bottom-color: rgba(216, 177, 111, 0.22);
}

body.dark-mode .engine-tile:hover,
body.dark-mode .engine-tile-wide:hover {
  background: rgba(216, 177, 111, 0.04);
}

body.dark-mode .engine-tile-top span,
body.dark-mode .engine-tile::after,
body.dark-mode .engine-tile-wide::after {
  color: var(--home-gold-bright);
}

body.dark-mode .engine-tile-top strong {
  color: rgba(216, 177, 111, 0.34);
}

body.dark-mode .engine-tile h3,
body.dark-mode .engine-tile-wide h3 {
  color: var(--home-dark-text);
}

body.dark-mode .engine-tile p,
body.dark-mode .engine-tile-wide p {
  color: var(--home-dark-muted);
}

/* RESPONSIVE */

@media (max-width: 1180px) {
  .engine-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-engines .home-section-heading {
    margin-bottom: 34px;
  }

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

  .engine-tile,
  .engine-tile-wide {
    min-height: 150px;
    padding: 18px 16px;
  }

  .engine-tile-top {
    gap: 10px;
  }

  .engine-tile-top span,
  .engine-tile-top strong {
    font-size: 0.56rem;
    letter-spacing: 0.11em;
  }

  .engine-tile h3,
  .engine-tile-wide h3 {
    max-width: 11ch;
    margin-bottom: 8px;

    font-size: clamp(1.35rem, 6vw, 1.75rem);
    line-height: 1.03;
    letter-spacing: -0.042em;
  }

  .engine-tile p,
  .engine-tile-wide p {
    max-width: 18ch;

    font-size: 0.86rem;
    line-height: 1.42;
  }

  .engine-tile::after,
  .engine-tile-wide::after {
    margin-top: 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .engine-board {
    grid-template-columns: 1fr;
  }

  .engine-tile,
  .engine-tile-wide {
    min-height: 142px;
    padding: 17px 16px;
  }

  .engine-tile h3,
  .engine-tile-wide h3 {
    max-width: 14ch;
    font-size: 1.58rem;
  }

  .engine-tile p,
  .engine-tile-wide p {
    max-width: 24ch;
    font-size: 0.86rem;
  }
}

/* =====================================
   PRINCIPLES
===================================== */

.principles-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: clamp(52px, 6vw, 96px);
  align-items: start;
}

.principles-copy {
  max-width: 660px;
}

.principles-mission {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--home-light-line);
}

body.dark-mode .principles-mission {
  border-color: var(--home-dark-line);
}

.principles-mission > span {
  display: block;
  margin-bottom: 12px;

  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.dark-mode .principles-mission > span {
  color: var(--home-gold-bright);
}

.principles-list {
  display: grid;
  border-top: 1px solid var(--home-light-line);
}

body.dark-mode .principles-list {
  border-color: var(--home-dark-line);
}

.principles-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--home-light-line);
}

body.dark-mode .principles-item {
  border-color: var(--home-dark-line);
}

.principles-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.principles-card-head strong,
.principles-card-head span {
  color: var(--home-gold-deep);
  font-family: var(--home-mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.dark-mode .principles-card-head strong,
body.dark-mode .principles-card-head span {
  color: var(--home-gold-bright);
}

.principles-list h3 {
  margin: 0 0 10px;

  color: var(--home-light-ink);
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  font-weight: 820;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

body.dark-mode .principles-list h3 {
  color: var(--home-dark-text);
}

.principles-list p {
  margin: 0;
  color: var(--home-light-muted);
  font-size: 0.98rem;
  line-height: 1.62;
}

body.dark-mode .principles-list p {
  color: var(--home-dark-muted);
}

/* =====================================
   FINAL CTA
===================================== */

.home-close {
  padding-bottom: clamp(92px, 8vw, 140px);
}

.close-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 38px;
  align-items: end;

  padding-top: 36px;
  border-top: 1px solid var(--home-light-line);
}

body.dark-mode .close-card {
  border-color: var(--home-dark-line);
}

.close-card p {
  margin-left: 0;
}

.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =====================================
   ANIMATION
===================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================
   MOBILE HERO CATEGORIES
===================================== */

.home-mobile-category-grid {
  display: none;
}

@media (max-width: 820px) {
  .home-mobile-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    row-gap: 16px;

    margin: 26px 0 30px;
    padding: 20px 0;

    border-top: 1px solid rgba(111, 75, 34, 0.14);
    border-bottom: 1px solid rgba(111, 75, 34, 0.14);
  }

  .home-mobile-category-item {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;

    color: #6f543a;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.98rem;
    font-weight: 520;
    line-height: 1.12;
    letter-spacing: -0.034em;
    text-align: center;
    text-decoration: none;
    text-transform: none;

    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .home-mobile-category-item[href] {
    cursor: pointer;
  }

  .home-mobile-category-item[aria-disabled="true"] {
    opacity: 0.82;
  }

  body.dark-mode .home-mobile-category-grid {
    border-top-color: rgba(216, 177, 111, 0.16);
    border-bottom-color: rgba(216, 177, 111, 0.16);
  }

  body.dark-mode .home-mobile-category-item {
    color: rgba(244, 234, 216, 0.78);
  }
}

@media (max-width: 420px) {
  .home-mobile-category-grid {
    column-gap: 18px;
    row-gap: 15px;

    margin: 24px 0 28px;
    padding: 18px 0;
  }

  .home-mobile-category-item {
    font-size: 0.92rem;
    letter-spacing: -0.03em;
  }
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1180px) {
  .home-hero-grid,
  .principles-layout,
  .close-card {
    grid-template-columns: 1fr;
  }

  .home-hero-grid {
    gap: 58px;
  }

  .home-hero-copy {
    max-width: 740px;
  }

  .home-system-visual {
    justify-self: start;
    width: min(100%, 900px);
    transform: none;
  }

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

@media (max-width: 820px) {
  .home-shell {
    width: min(100% - 34px, 1680px);
  }

  .home-hero {
    min-height: auto;
    padding: 76px 0 72px;
  }

  .home-section {
    padding: 68px 0;
  }

  .home-hero-copy {
    max-width: 620px;
  }

  .home-hero-copy h1 {
    font-size: clamp(3.25rem, 12.5vw, 4.85rem);
    line-height: 0.96;
    letter-spacing: -0.058em;
  }

  .home-hero-copy p {
    max-width: 540px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .home-hero-actions,
  .close-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-btn {
    width: 100%;
  }

  .home-hero-proof {
    display: none;
  }

  .home-system-visual {
    display: none;
  }

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

@media (max-width: 560px) {
  .home-shell {
    width: min(100% - 28px, 1680px);
  }

  .home-kicker {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
  }

  .home-hero-copy h1 {
    font-size: clamp(2.75rem, 13.8vw, 4rem);
  }
}