:root {
  color-scheme: light;
  --ink: #102a43;
  --muted: #52677a;
  --primary: #1d4ed8;
  --primary-dark: #123c9c;
  --accent: #15b8a6;
  --paper: #ffffff;
  --soft: #f2f7fb;
  --line: rgba(29, 78, 216, 0.14);
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.16);
  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;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(21, 184, 166, 0.18), transparent 34rem),
    linear-gradient(180deg, #eef7ff 0%, #ffffff 38%, #f7fbff 100%);
}

a { color: inherit; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(244, 250, 255, 0.78);
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.2);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  font-weight: 650;
}

.top-nav a:hover { color: var(--primary); }

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.76);
  border-radius: 999px;
}

.language-button {
  border: 0;
  padding: 8px 11px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

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

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
}

.hero { padding: clamp(42px, 9vw, 92px) 0 70px; }

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

h1, h2, h3 { margin-top: 0; line-height: 1.05; }
h1 { font-size: clamp(2.55rem, 7vw, 5.5rem); letter-spacing: -0.055em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.045em; margin-bottom: 14px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
p { color: var(--muted); line-height: 1.7; }

.hero-lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 650px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 850;
}
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 14px 30px rgba(29,78,216,0.26); }
.button-primary:hover { background: var(--primary-dark); }
.button-secondary { background: #fff; border: 1px solid var(--line); color: var(--primary); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
}
.hero-stats div {
  padding: 16px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.hero-stats dt { font-size: 1.35rem; font-weight: 900; color: var(--primary); }
.hero-stats dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-shell {
  display: block;
  margin: 0;
  padding: 12px;
  border-radius: 38px;
  background: linear-gradient(145deg, #152238, #284f7d);
  box-shadow: var(--shadow);
}
.phone-shell img {
  display: block;
  width: 100%;
  border-radius: 27px;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
}
.hero-phone { width: min(360px, 78vw); transform: rotate(2.5deg); }
.floating-mark {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 18px 42px rgba(16,42,67,0.2);
}

.features-section,
.screens-section,
.legal-hero,
.legal-card {
  margin: 34px 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(16, 42, 67, 0.08);
}

.section-heading { max-width: 720px; margin-bottom: 30px; }
.feature-grid,
.screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article {
  padding: 24px;
  border-radius: 24px;
  background: var(--soft);
  border: 1px solid rgba(21,184,166,0.18);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e2f7f5;
  margin-bottom: 18px;
}

.screen-grid .phone-shell { padding: 9px; border-radius: 28px; }
.screen-grid img { border-radius: 20px; }
figcaption { color: var(--muted); padding: 16px 4px 6px; line-height: 1.55; }
.screen-grid .phone-shell figcaption { color: #dbeafe; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding: 32px 0 46px;
}
.site-footer a { font-weight: 800; text-decoration: none; color: var(--primary); }

.legal-shell { max-width: 920px; }
.legal-hero { margin-top: 56px; }
.review-note {
  border-left: 5px solid #f59e0b;
  background: #fff8e6;
  color: #77530a;
  padding: 14px 16px;
  border-radius: 12px;
}
.legal-card h2 { font-size: 1.35rem; margin-top: 34px; }
.legal-card h3 { font-size: 1.08rem; margin-top: 24px; }
.legal-card p { font-size: 1rem; }

.definition-list {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) 1fr;
  gap: 10px 18px;
  color: var(--muted);
}
.definition-list dt { font-weight: 850; color: var(--ink); }
.definition-list dd { margin: 0; line-height: 1.65; }
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  vertical-align: top;
  text-align: left;
}
.legal-table th {
  width: 24%;
  color: var(--ink);
  background: var(--soft);
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; position: static; }
  .top-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
  .section-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .feature-grid, .screen-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; }
  .top-nav { justify-content: flex-start; }
  h1 { font-size: 2.55rem; }
  .features-section, .screens-section, .legal-hero, .legal-card { padding: 24px; border-radius: 24px; }
  .definition-list { grid-template-columns: 1fr; }
  .legal-table { display: block; overflow-x: auto; }
}
