:root {
  color-scheme: dark;
  --page: #0b0c0e;
  --page-soft: #111316;
  --surface: rgba(25, 27, 30, 0.82);
  --surface-strong: rgba(32, 35, 39, 0.92);
  --surface-quiet: rgba(255, 255, 255, 0.035);
  --line: rgba(232, 235, 238, 0.12);
  --line-strong: rgba(232, 235, 238, 0.20);
  --text: #f3f1ed;
  --muted: #aaa8a4;
  --quiet: #777a7d;
  --accent: #d3a75f;
  --accent-strong: #e5bd78;
  --accent-soft: rgba(211, 167, 95, 0.12);
  --danger: #d97872;
  --radius-large: 32px;
  --radius: 20px;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -8%, rgba(211, 167, 95, 0.14), transparent 34rem),
    radial-gradient(circle at -8% 88%, rgba(143, 151, 160, 0.10), transparent 32rem),
    linear-gradient(180deg, #101216 0, var(--page) 34rem);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a {
  color: var(--accent-strong);
  text-decoration-color: rgba(229, 189, 120, 0.4);
  text-underline-offset: 0.22em;
}

a:hover {
  color: #f2d8a8;
  text-decoration-color: currentColor;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 58px;
}

.shell.article-shell {
  width: min(880px, calc(100% - 48px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  margin-bottom: 54px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.03rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.topbar-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-nav,
.languages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a,
.languages a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  text-decoration: none;
}

.site-nav a:hover,
.languages a:hover {
  color: var(--text);
  background: var(--surface-quiet);
}

.languages a[aria-current="page"] {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

main {
  display: grid;
  gap: 22px;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(240px, 0.58fr);
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
  min-height: 540px;
  padding: clamp(34px, 7vw, 76px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(39, 42, 46, 0.88), rgba(15, 17, 19, 0.95) 62%),
    var(--page-soft);
  box-shadow: var(--shadow);
}

.home-hero::after {
  position: absolute;
  right: -10%;
  bottom: -48%;
  width: 52%;
  aspect-ratio: 1;
  border: 1px solid rgba(211, 167, 95, 0.11);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 54px rgba(211, 167, 95, 0.025),
    0 0 0 108px rgba(211, 167, 95, 0.018);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.hero-app-icon {
  width: min(100%, 286px);
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24%;
  box-shadow:
    0 44px 100px rgba(0, 0, 0, 0.48),
    0 0 72px rgba(211, 167, 95, 0.07);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  font-weight: 690;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 650;
}

h3 {
  font-size: 1.05rem;
  font-weight: 640;
}

p,
ul {
  margin: 0;
}

p + p,
p + ul,
ul + p {
  margin-top: 14px;
}

ul {
  padding-left: 1.25em;
}

li + li {
  margin-top: 8px;
}

.lede {
  max-width: 62ch;
  margin-top: 24px;
  color: #bdbab5;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}

.promise {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  color: #d7d3cc;
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid rgba(229, 189, 120, 0.46);
  border-radius: 12px;
  color: #17130c;
  background: var(--accent-strong);
  box-shadow: 0 10px 28px rgba(211, 167, 95, 0.12);
  font-size: 0.88rem;
  font-weight: 680;
  text-decoration: none;
}

.button:hover {
  color: #0f0d09;
  background: #efd39d;
}

.button.secondary {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 22, 0.72);
  overflow: hidden;
}

.principle {
  min-height: 210px;
  padding: clamp(24px, 4vw, 36px);
}

.principle + .principle {
  border-left: 1px solid var(--line);
}

.principle-index {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.principle p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.91rem;
}

.quiet-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(211, 167, 95, 0.08), rgba(255, 255, 255, 0.025));
}

.quiet-panel p {
  max-width: 62ch;
  color: var(--muted);
}

.article-hero {
  padding: clamp(30px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: linear-gradient(145deg, rgba(35, 38, 42, 0.91), rgba(15, 17, 20, 0.96));
  box-shadow: var(--shadow);
}

.article-hero h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
}

.article-hero .lede {
  max-width: 58ch;
}

.scope-note {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(211, 167, 95, 0.24);
  border-radius: 12px;
  color: #d5cab7;
  background: rgba(211, 167, 95, 0.07);
  font-size: 0.88rem;
}

.meta,
.muted {
  color: var(--muted);
}

.meta {
  margin-top: 18px;
  font-size: 0.82rem;
}

.section-label {
  margin: 26px 0 2px;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card {
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 54px rgba(0, 0, 0, 0.18);
}

.card h2 {
  margin-bottom: 14px;
}

.card p,
.card li {
  color: #c0bdb8;
}

.support-address {
  display: inline-block;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(1.05rem, 4vw, 1.55rem);
  font-weight: 620;
  letter-spacing: -0.02em;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.76rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

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

@media (max-width: 800px) {
  .topbar-tools {
    gap: 6px;
  }

  .site-nav {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    grid-row: 1;
    justify-content: start;
  }

  .hero-app-icon {
    width: 112px;
    border-radius: 25px;
  }

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

  .principle {
    min-height: auto;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principle-index {
    margin-bottom: 22px;
  }

  .quiet-panel,
  .support-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell,
  .shell.article-shell {
    width: min(100% - 28px, 1120px);
    padding-top: 16px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 30px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .languages {
    max-width: 168px;
  }

  .languages a {
    padding: 5px 7px;
  }

  .home-hero,
  .article-hero {
    border-radius: 24px;
  }

  .home-hero {
    padding: 28px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }

  footer {
    display: grid;
  }

  footer nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero,
  .article-hero,
  .principles,
  .card,
  .quiet-panel {
    animation: reveal 520ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  main > :nth-child(2) {
    animation-delay: 70ms;
  }

  main > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero-app-icon {
    animation: icon-arrive 680ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes icon-arrive {
    from {
      opacity: 0;
      transform: translateY(12px) scale(0.96);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
