:root {
  --bg: #f5f0e6;
  --bg-deep: #e7dac3;
  --surface: rgba(255, 251, 245, 0.88);
  --surface-strong: #fffdf8;
  --surface-muted: rgba(244, 236, 222, 0.92);
  --text: #1e252b;
  --muted: #55636d;
  --line: rgba(103, 84, 59, 0.18);
  --accent: #b85c38;
  --accent-dark: #8f4327;
  --accent-soft: rgba(184, 92, 56, 0.12);
  --success: #225f4d;
  --shadow: 0 22px 48px rgba(39, 31, 20, 0.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(184, 92, 56, 0.18), transparent 24%),
    linear-gradient(180deg, #fcf8f1 0%, var(--bg) 48%, #ede3d2 100%);
  line-height: 1.6;
}

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

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(4px);
}

.page-shell::before {
  top: 90px;
  right: -90px;
  width: 280px;
  height: 280px;
  background: rgba(184, 92, 56, 0.1);
}

.page-shell::after {
  top: 520px;
  left: -120px;
  width: 260px;
  height: 260px;
  background: rgba(34, 95, 77, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(252, 248, 241, 0.75);
  border-bottom: 1px solid rgba(103, 84, 59, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c96a44, #9b472c);
  color: #fff8f3;
  font-size: 0.95rem;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.brand-name {
  font-size: 1.08rem;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(103, 84, 59, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.lang-button {
  min-width: 48px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.lang-button:hover,
.lang-button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.lang-button.is-active {
  background: var(--accent);
  color: #fff;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.overview-card,
.tool-card,
.principles-shell {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(248, 239, 225, 0.92)),
    var(--surface);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.hero-panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.lead {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary,
.button-inline {
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(103, 84, 59, 0.16);
}

.button-inline {
  width: fit-content;
  margin-top: auto;
}

.hero-notes,
.tool-meta {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-notes li,
.tool-meta li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
}

.hero-notes li::before,
.tool-meta li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-panel {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(242, 232, 218, 0.96));
}

.panel-label,
.stat {
  margin: 0 0 12px;
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.02;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 26px;
}

.feature-list div {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
}

.feature-list dt {
  font-weight: 800;
}

.feature-list dd {
  margin: 4px 0 0;
  color: var(--muted);
}

.text-link {
  font-weight: 800;
  color: var(--accent-dark);
}

.overview {
  padding: 14px 0 28px;
}

.overview-grid,
.tool-grid,
.principles-grid,
.footer-grid {
  display: grid;
  gap: 20px;
}

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

.overview-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.74);
}

.overview-card h2,
.tool-card h3,
.principles-grid h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.overview-card p:last-child,
.tool-card p,
.principles-grid p,
.section-heading p {
  color: var(--muted);
}

.tools-section,
.principles-section {
  padding: 36px 0 42px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading p:last-child {
  max-width: 62ch;
  margin-top: 10px;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.82);
}

.tool-card-live {
  grid-column: span 6;
  background:
    linear-gradient(160deg, rgba(255, 250, 242, 0.96), rgba(243, 234, 220, 0.96)),
    var(--surface-strong);
}

.tool-card:not(.tool-card-live) {
  grid-column: span 3;
}

.tool-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-status {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(85, 99, 109, 0.12);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tool-status-live {
  background: rgba(34, 95, 77, 0.12);
  color: var(--success);
}

.principles-shell {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(239, 229, 214, 0.94));
}

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

.principles-grid article {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
}

.site-footer {
  padding: 26px 0 36px;
  border-top: 1px solid rgba(103, 84, 59, 0.12);
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
}

.footer-brand,
.footer-meta {
  margin: 0;
  font-weight: 800;
}

.footer-copy {
  margin: 6px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 700;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .tool-card-live,
  .tool-card:not(.tool-card-live) {
    grid-column: span 12;
  }

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

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-actions,
  .header-bar,
  .site-nav,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-copy,
  .hero-panel,
  .principles-shell,
  .overview-card,
  .tool-card {
    padding: 22px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .button,
  .button-inline {
    width: 100%;
  }

  .footer-meta {
    margin-top: 8px;
  }
}
