:root {
  --background: #2a2a2e;
  --surface: #36363b;
  --surface-variant: #42424a;
  --text: #e8e5dc;
  --muted: #a09d96;
  --separator: #4a4a50;
  --accent: #c8c2b0;
  --accent-strong: #d8b76a;
  --accent-content: #2a2a2e;
  --radius-card: 16px;
  --radius-button: 14px;
  --radius-sheet: 20px;
  --page-margin: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
  letter-spacing: -0.02em;
}

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

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

.brand-wordmark {
  width: 114px;
  height: auto;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--separator);
  border-radius: 999px;
  background: var(--surface);
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.topnav a:hover {
  color: var(--text);
  background: var(--surface-variant);
}

.hero,
.section {
  width: min(1120px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}

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

.label {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.lede,
.section-heading p,
.info-card p,
.row span,
.cta-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.lede {
  max-width: 610px;
  margin-bottom: 0;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--radius-button);
  font-size: 17px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border: 1px solid var(--separator);
  background: var(--surface-variant);
  color: var(--text);
}

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

.phone-card {
  border: 1px solid var(--separator);
  border-radius: 32px;
  background: var(--surface);
  padding: 20px;
}

.phone-header {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-size: 28px;
  font-weight: 800;
}

.phone-brand img {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

.refresh-symbol {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-variant);
  color: var(--accent);
  font-size: 30px;
}

.phone-title {
  margin-bottom: 18px;
}

.phone-title h2 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.2;
}

.phone-title p,
.app-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.item-list {
  display: grid;
  gap: 12px;
}

.app-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  background: var(--background);
}

.item-icon {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  background: var(--surface-variant);
  border: 1px solid var(--separator);
  position: relative;
}

.link-icon::after {
  content: "";
  position: absolute;
  inset: 27px 22px;
  border: 3px solid var(--accent);
  border-left-width: 0;
  border-right-width: 0;
  border-radius: 999px;
}

.doc-icon::after,
.archive-icon::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 30px;
  height: 40px;
  border: 3px solid var(--accent);
  border-radius: 4px;
}

.archive-icon::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 24px;
  width: 18px;
  height: 28px;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.app-item h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.action-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.action-row span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-variant);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--separator);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tabbar span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.tabbar .active {
  color: var(--accent-strong);
  border: 1px solid var(--accent-strong);
}

.tabbar .house::before {
  content: "";
  width: 16px;
  height: 14px;
  margin-bottom: 2px;
  display: block;
  border: 2px solid currentColor;
  border-top: 0;
  clip-path: polygon(0 45%, 50% 0, 100% 45%, 100% 100%, 0 100%);
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

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

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

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.grouped-panel,
.quote-card,
.cta-card {
  border: 1px solid var(--separator);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.info-card {
  min-height: 230px;
  padding: 20px;
}

.info-card.compact {
  min-height: 180px;
}

.card-index {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  gap: 32px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 0.92fr);
}

.grouped-panel {
  overflow: hidden;
}

.row {
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}

.row + .row {
  border-top: 1px solid var(--separator);
}

.row strong {
  font-size: 17px;
  line-height: 1.3;
}

.row span {
  font-size: 15px;
}

.quote-section {
  padding-top: 32px;
}

.quote-card {
  padding: 32px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.quote-card img {
  width: 78px;
  height: 54px;
  object-fit: contain;
}

blockquote {
  margin: 0;
  max-width: 820px;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.cta {
  padding-bottom: 96px;
}

.cta-card {
  padding: 28px;
}

.cta-card h2 {
  max-width: 760px;
}

.cta-card p:not(.label) {
  max-width: 700px;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .split.reverse,
  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 56px;
  }

  .phone-card {
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
  }

  .brand-wordmark {
    width: 102px;
  }

  .topnav {
    display: none;
  }

  h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .hero,
  .section {
    width: calc(100% - 24px);
  }

  .hero {
    padding-bottom: 48px;
  }

  .section {
    padding: 46px 0;
  }

  .phone-card {
    border-radius: 24px;
    padding: 14px;
  }

  .app-item {
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 14px;
  }

  .item-icon {
    width: 58px;
    height: 58px;
  }

  .link-icon::after {
    inset: 20px 16px;
  }

  .doc-icon::after,
  .archive-icon::after {
    left: 17px;
    top: 13px;
    width: 24px;
    height: 32px;
  }

  .archive-icon::before {
    left: 22px;
    top: 18px;
    width: 14px;
    height: 22px;
  }

  .action-row span {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .quote-card {
    grid-template-columns: 1fr;
  }
}
