:root {
  color-scheme: light dark;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #eef5f8;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0f766e;
  --brand-strong: #0f172a;
  --accent: #2563eb;
  --line: #dce5ed;
  --shadow: 0 18px 60px rgb(15 23 42 / 10%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --panel: #111827;
    --panel-soft: #132235;
    --text: #f8fafc;
    --muted: #a7b4c8;
    --brand: #5eead4;
    --brand-strong: #f8fafc;
    --accent: #93c5fd;
    --line: #243244;
    --shadow: 0 18px 60px rgb(0 0 0 / 28%);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgb(15 118 110 / 12%), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--panel-soft));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
}

main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.hero,
.page-hero,
.support-band,
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.hero {
  min-height: min(760px, calc(100vh - 88px));
  padding-bottom: 28px;
}

.page-hero {
  min-height: 320px;
  padding: 20px 0 36px;
}

.page-hero.compact {
  min-height: 220px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 46px;
  height: 29px;
  background: url('/assets/earta-logo-mark.png') center / contain no-repeat;
  filter: drop-shadow(0 8px 18px rgb(15 23 42 / 10%));
  flex: 0 0 auto;
}

h1 {
  max-width: 760px;
  margin: 18px 0 12px;
  color: var(--brand-strong);
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
}

h2 {
  margin: 0;
  color: var(--brand-strong);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.22;
  letter-spacing: 0;
}

.panel > h2 {
  margin-top: 30px;
}

.panel > h2:first-child {
  margin-top: 0;
}

p,
li,
span {
  color: var(--muted);
}

a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero-copy > p,
.page-hero p,
.support-band p,
.split-panel p {
  max-width: 680px;
  margin: 0;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--brand-strong);
  background: var(--brand-strong);
  color: #ffffff;
}

.button.secondary {
  background: rgb(255 255 255 / 64%);
  color: var(--brand-strong);
}

.phone-preview,
.mini-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.phone-preview {
  width: min(360px, 34vw);
  border-radius: 36px;
  aspect-ratio: 554 / 1200;
}

.mini-preview {
  width: min(240px, 28vw);
  border-radius: 28px;
  aspect-ratio: 554 / 1200;
}

.phone-preview img,
.mini-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.metrics div,
.panel,
.support-band,
.split-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgb(255 255 255 / 82%);
  box-shadow: var(--shadow);
}

.metrics div {
  padding: 18px;
}

.metrics strong,
.metrics span,
.tile strong,
.tile p {
  display: block;
}

.metrics strong {
  color: var(--brand-strong);
  font-size: 20px;
}

.panel,
.support-band,
.split-panel {
  margin-top: 22px;
  padding: 28px;
}

.section-title {
  margin-bottom: 20px;
}

.section-title span {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

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

.tile {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
}

.tile strong {
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 19px;
}

.tile p {
  margin: 0;
}

.contact-line {
  margin-top: 18px;
  font-size: 20px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-top: 34px;
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: inline-flex;
  gap: 16px;
}

ul {
  padding-left: 22px;
}

@media (prefers-color-scheme: dark) {
  .metrics div,
  .panel,
  .support-band,
  .split-panel,
  .button.secondary {
    background: rgb(17 24 39 / 82%);
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 1080px);
    padding: 30px 0 54px;
  }

  .hero,
  .page-hero,
  .support-band,
  .split-panel,
  .metrics,
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  .page-hero {
    min-height: auto;
  }

  .phone-preview,
  .mini-preview {
    width: min(72vw, 340px);
    justify-self: center;
  }

  .panel,
  .support-band,
  .split-panel {
    padding: 22px;
  }

  .button {
    width: 100%;
  }
}
