:root {
  --paper: #faf7f1;
  --paper-2: #f1ebe0;
  --surface: #fffdf8;
  --ink: #13151b;
  --ink-2: #3a3c45;
  --muted: #6b6e78;
  --rule: #e6ddcb;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-soft: #dcfce7;
  --amber: #facc15;
  --amber-soft: #fef3c7;
  --rose-soft: #ffe4e6;
  --shadow: 0 24px 70px rgba(19, 21, 27, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 9% 9%, rgba(22, 163, 74, 0.09), transparent 25rem),
    radial-gradient(circle at 92% 4%, rgba(250, 204, 21, 0.18), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 221, 203, 0.75);
  background: rgba(250, 247, 241, 0.88);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

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

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--green-dark);
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.button {
  background: var(--green);
  color: white;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.24);
}

.button-secondary {
  border: 1px solid var(--rule);
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 7vw, 80px);
}

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

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 8vw, 86px);
  font-weight: 900;
  line-height: 0.94;
}

.hero p,
.page-hero p {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.52;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.phone-stage {
  position: relative;
  min-height: 610px;
}

.phone {
  position: absolute;
  overflow: hidden;
  width: min(255px, 44vw);
  border: 10px solid #141414;
  border-radius: 38px;
  background: #111;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: auto;
}

.phone-main {
  right: 78px;
  top: 0;
  z-index: 2;
}

.phone-side {
  right: 0;
  top: 172px;
  z-index: 1;
  transform: rotate(4deg);
}

.phone-back {
  left: 0;
  top: 96px;
  z-index: 0;
  transform: rotate(-5deg);
  opacity: 0.92;
}

.section {
  padding: clamp(58px, 9vw, 104px) 0;
  border-top: 1px solid rgba(230, 221, 203, 0.72);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 32px;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

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

.card {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 12px 40px rgba(19, 21, 27, 0.06);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
}

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

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.screen-card {
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(19, 21, 27, 0.1);
}

.screen-card img {
  border-radius: 22px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  padding: clamp(42px, 7vw, 76px) 0 clamp(70px, 9vw, 110px);
}

.page-hero {
  padding: clamp(52px, 8vw, 92px) 0 34px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 72px);
}

.side-nav {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.side-nav a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(230, 221, 203, 0.78);
}

.legal-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
}

.legal-content section + section {
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

.legal-content h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.legal-content h3 {
  margin: 22px 0 8px;
  font-size: 19px;
}

.legal-content p,
.legal-content li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.68;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 18px;
  background: rgba(220, 252, 231, 0.62);
}

.warning {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(254, 243, 199, 0.72);
}

.footer {
  border-top: 1px solid var(--rule);
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .hero,
  .section-header,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .phone-stage {
    min-height: 520px;
  }

  .phone-main {
    right: 25%;
  }

  .phone-side {
    right: 8%;
  }

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

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

  .side-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .nav-links {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .phone-stage {
    min-height: 560px;
    overflow: hidden;
  }

  .phone {
    width: 220px;
    border-width: 8px;
    border-radius: 34px;
  }

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

  .phone-side {
    right: -26px;
    top: 190px;
  }

  .phone-back {
    left: -28px;
    top: 182px;
  }

  .benefit-grid,
  .showcase {
    grid-template-columns: 1fr;
  }

  .screen-card {
    max-width: 330px;
    margin: 0 auto;
  }

  .legal-content {
    padding: 22px;
  }

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