:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --paper: #fffdf8;
  --ink: #101820;
  --muted: #5c6470;
  --line: #ded8ce;
  --accent: #0e7c66;
  --accent-2: #e45d3a;
  --accent-3: #2d5bff;
  --soft: #eaf7ef;
  --warning: #fff1d6;
  --shadow: 0 24px 80px rgba(16, 24, 32, 0.12);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell,
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 24, 32, 0.1);
  background: rgba(247, 244, 237, 0.9);
  backdrop-filter: blur(18px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--radius);
  background: var(--ink);
  color: #8ef0c9;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.menu-toggle,
.button {
  border-radius: var(--radius);
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav a:hover,
.nav a.active {
  background: rgba(16, 24, 32, 0.06);
  color: var(--ink);
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 253, 248, 0.98);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 15px 0;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--muted);
  font-weight: 750;
}

.main {
  flex: 1;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 116px) 0 clamp(48px, 7vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: var(--ink);
  z-index: -2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1,
.page-hero h1 {
  max-width: 820px;
  margin: 22px 0 18px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffdf8;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.16);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: rgba(16, 24, 32, 0.06);
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--line);
}

.stat {
  padding: 18px;
  background: rgba(255, 253, 248, 0.9);
}

.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.phone-scene {
  position: relative;
  min-height: 620px;
}

.developer-hero::before {
  height: 28%;
}

.developer-board {
  align-self: stretch;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(234, 247, 239, 0.88)),
    var(--paper);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.board-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.board-header strong,
.board-header span {
  display: block;
}

.board-header strong {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.board-header span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 750;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: rgba(16, 24, 32, 0.12);
}

.board-grid div {
  min-height: 150px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.88);
}

.board-grid b,
.board-grid span {
  display: block;
}

.board-grid b {
  font-size: 20px;
  line-height: 1.15;
}

.board-grid span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.phone {
  position: absolute;
  right: 6%;
  top: 0;
  z-index: 1;
  width: min(360px, 82vw);
  min-height: 640px;
  padding: 18px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 36px;
  background: #131d27;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  animation: rise 700ms ease both;
}

.phone-screen {
  min-height: 604px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffdf8, #edf7ef);
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.phone-top b {
  display: block;
  font-size: 18px;
}

.phone-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.balance {
  padding: 28px 22px;
  background: var(--ink);
  color: #fffdf8;
}

.balance span {
  color: rgba(255, 253, 248, 0.65);
  font-size: 13px;
  font-weight: 750;
}

.balance strong {
  display: block;
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
}

.payment-list {
  padding: 20px 22px 24px;
}

.payment-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.payment-row:last-child {
  border-bottom: 0;
}

.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--warning);
}

.payment-row b,
.payment-row span {
  display: block;
}

.payment-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.payment-row em {
  font-style: normal;
  font-weight: 850;
}

.float-panel {
  position: absolute;
  left: -118px;
  bottom: 112px;
  z-index: 2;
  width: min(290px, 70vw);
  padding: 20px;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow);
  animation: rise 700ms 120ms ease both;
}

.float-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.float-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.progress {
  height: 8px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.08);
}

.progress i {
  display: block;
  width: 68%;
  height: 100%;
  background: var(--accent);
}

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section.dark {
  background: var(--ink);
  color: #fffdf8;
}

.section.dark .section-lead,
.section.dark .card p,
.section.dark .muted {
  color: rgba(255, 253, 248, 0.68);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.section-head.center {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-lead {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 24, 32, 0.22);
  box-shadow: 0 20px 48px rgba(16, 24, 32, 0.08);
}

.card-body {
  padding: clamp(20px, 3vw, 30px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card.featured {
  grid-column: span 2;
  background: #fffdf8;
}

.app-card {
  background: #fffdf8;
}

.app-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.app-card h3 {
  margin-top: 14px;
  font-size: clamp(28px, 4vw, 44px);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.section.dark .card {
  border-color: rgba(255, 253, 248, 0.12);
  background: rgba(255, 253, 248, 0.055);
}

.section.dark .tag {
  border-color: rgba(255, 253, 248, 0.18);
  color: rgba(255, 253, 248, 0.7);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--line);
  gap: 1px;
}

.stack-item {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(255, 253, 248, 0.92);
  text-align: center;
  font-weight: 850;
}

.section.dark .stack-grid {
  border-color: rgba(255, 253, 248, 0.16);
  background: rgba(255, 253, 248, 0.16);
}

.section.dark .stack-item {
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
}

.cta {
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: #fffdf8;
}

.cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.cta h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.cta p {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.footer {
  border-top: 1px solid rgba(16, 24, 32, 0.1);
  background: #fffdf8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 36px;
  padding: 48px 0 26px;
}

.footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
}

.footer-nav {
  display: grid;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.page-hero {
  padding: clamp(44px, 7vw, 86px) 0 36px;
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 6vw, 78px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 36px;
  padding: 42px 0 82px;
}

.page-content {
  display: grid;
  gap: 18px;
}

.page-section {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
}

.page-section h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
}

.page-section h3 {
  margin: 18px 0 8px;
}

.page-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.page-section ul,
.page-section ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.page-section li + li {
  margin-top: 8px;
}

.side-panel {
  position: sticky;
  top: 96px;
  height: fit-content;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.side-panel h3 {
  margin: 0 0 12px;
}

.side-panel a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(16, 24, 32, 0.08);
  color: var(--muted);
  font-weight: 750;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.lang-switch button {
  min-width: 48px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 850;
}

.lang-switch button.active {
  background: var(--ink);
  color: #fffdf8;
}

[data-lang-panel] {
  display: none;
}

[data-lang-panel].active {
  display: grid;
  gap: 18px;
}

.support-hero {
  padding: clamp(48px, 8vw, 96px) 0;
  color: #fffdf8;
  background:
    linear-gradient(130deg, rgba(16, 24, 32, 0.95), rgba(16, 24, 32, 0.82)),
    radial-gradient(circle at 82% 20%, rgba(142, 240, 201, 0.34), transparent 36%),
    var(--ink);
}

.support-hero h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
}

.support-hero p {
  max-width: 660px;
  color: rgba(255, 253, 248, 0.72);
  font-size: 20px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-box {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgba(16, 24, 32, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.62);
  color: var(--muted);
  text-align: center;
}

.not-found {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(76px, 14vw, 160px);
  line-height: 0.8;
}

.reveal {
  animation: rise 640ms ease both;
}

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

@media (max-width: 900px) {
  .nav,
  .header-actions .button {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-layout,
  .page-layout,
  .cta-box,
  .footer-inner,
  .app-card-body {
    grid-template-columns: 1fr;
  }

  .developer-board {
    min-height: auto;
  }

  .board-grid {
    margin-top: 28px;
  }

  .phone-scene {
    min-height: 560px;
  }

  .phone {
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(0);
  }

  .float-panel {
    left: 0;
    bottom: 12px;
  }

  .grid.three,
  .grid.two,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .card.featured {
    grid-column: auto;
  }

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

  .side-panel {
    position: static;
  }
}

@media (max-width: 620px) {
  .header-inner,
  .container {
    width: min(100% - 24px, 1120px);
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1,
  .page-hero h1,
  .support-hero h1 {
    font-size: 43px;
  }

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

  .phone-scene {
    min-height: 500px;
  }

  .phone {
    width: min(320px, 92vw);
    min-height: 560px;
  }

  .phone-screen {
    min-height: 524px;
  }

  .balance strong {
    font-size: 31px;
  }

  .float-panel {
    width: 240px;
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }

  .page-section {
    padding: 22px;
  }
}
