:root {
  color-scheme: light;
  --background: #f7f7f5;
  --foreground: #18181b;
  --muted-foreground: #52525b;
  --card: rgba(255, 255, 255, 0.88);
  --border: rgba(24, 24, 27, 0.08);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --primary: #111827;
  --primary-foreground: #fafafa;
  --secondary: #ffffff;
  --secondary-foreground: #18181b;
  --accent: #e7f7ef;
  --accent-strong: #36a26f;
  --ring: rgba(17, 24, 39, 0.16);
  --grid: rgba(17, 24, 39, 0.03);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--foreground);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(247, 247, 245, 0.98) 20%, rgba(247, 247, 245, 1) 100%),
    linear-gradient(90deg, transparent 0 63px, var(--grid) 63px 64px),
    linear-gradient(transparent 0 63px, var(--grid) 63px 64px);
  background-size: auto, 64px 64px, 64px 64px;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.topbar-simple {
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(160deg, #eefdf5 0%, #d9f3e3 55%, #dceefc 100%);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.brand-page {
  position: absolute;
  left: 11px;
  top: 8px;
  width: 18px;
  height: 24px;
  background: #fff;
  border: 1.5px solid rgba(17, 24, 39, 0.1);
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.08);
}

.brand-page::before,
.brand-page::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.15);
}

.brand-page::before {
  top: 8px;
}

.brand-page::after {
  top: 13px;
}

.brand-text {
  position: absolute;
  right: 8px;
  bottom: 10px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-copy span {
  font-size: 12px;
  color: var(--muted-foreground);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 14px;
  font-weight: 600;
}

.card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 26px;
  padding: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #166534;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1,
.legal-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lede,
.section-heading p,
.feature p,
.step p,
.faq-item p,
.stat p,
.legal-card p,
.legal-card li,
.footer p {
  color: var(--muted-foreground);
  line-height: 1.72;
  font-size: 15px;
}

.cta-row,
.badge-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin: 24px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  color: var(--primary-foreground);
  background: var(--primary);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.hero-panel {
  display: flex;
  align-items: stretch;
}

.panel-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.panel-topline {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.9);
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(113, 113, 122, 0.28);
}

.panel-body {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 430px;
}

.panel-sidebar {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--border);
  background: rgba(245, 245, 244, 0.74);
}

.mini-card {
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f5f5f4 0%, #e7e5e4 100%);
  border: 1px solid var(--border);
}

.mini-card.active {
  background: linear-gradient(180deg, #dbfce7 0%, #ecfdf5 100%);
  border-color: rgba(22, 163, 74, 0.2);
}

.panel-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.panel-sheet {
  position: relative;
  min-height: 244px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 250, 249, 0.94)),
    linear-gradient(120deg, rgba(52, 211, 153, 0.12), transparent 40%);
}

.sheet-art {
  width: 92px;
  height: 118px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dff8ee 0%, #eaf2ff 100%);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.sheet-line,
.sheet-highlight {
  height: 12px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
}

.sheet-line.wide {
  width: 88%;
}

.sheet-line.medium {
  width: 64%;
}

.sheet-line.narrow {
  width: 42%;
}

.sheet-highlight {
  width: 56%;
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.9), rgba(250, 204, 21, 0.38));
}

.panel-stack {
  display: grid;
  gap: 14px;
}

.stack-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.9);
}

.stack-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.stack-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-foreground);
}

.stack-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stats-grid,
.feature-grid,
.steps-grid,
.faq-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.stat,
.feature,
.step,
.faq-item {
  padding: 24px;
}

.stat span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 700;
}

.stat strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section {
  margin-top: 22px;
}

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

.section-heading h2,
.legal-card h2 {
  margin: 14px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

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

.feature h3,
.step h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

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

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #111827;
  color: #fafafa;
  font-weight: 800;
  font-size: 14px;
}

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

.faq {
  margin-bottom: 24px;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 4px 0;
}

.footer strong {
  display: block;
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.legal-layout {
  width: min(860px, 100%);
  margin: 0 auto;
}

.legal-card {
  padding: 30px;
}

.legal-card ul {
  padding-left: 20px;
}

@media (max-width: 1024px) {
  .hero,
  .stats-grid,
  .feature-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .panel-body {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 22px;
  }

  .hero h1,
  .legal-card h1 {
    font-size: 2.4rem;
  }

  .panel-content,
  .panel-sidebar {
    padding: 14px;
  }

  .legal-card {
    padding: 22px;
  }
}
