:root {
  color-scheme: light dark;
  --bg: #f3f6f7;
  --bg-deep: #dfe8ec;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --ink: #172126;
  --muted: #66747c;
  --line: rgba(23, 33, 38, 0.12);
  --blue: #2474dc;
  --yellow: #f4cf28;
  --red: #e2352f;
  --teal: #1b8f8a;
  --shadow-lg: 0 28px 70px rgba(23, 33, 38, 0.14);
  --shadow-md: 0 18px 42px rgba(23, 33, 38, 0.1);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1140px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(36, 116, 220, 0.13), transparent 34rem),
    linear-gradient(225deg, rgba(226, 53, 47, 0.1), transparent 30rem),
    linear-gradient(180deg, #fbfdfe 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

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

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

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

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

.site-shell,
.info-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-shell {
  padding: 24px 0 42px;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(23, 33, 38, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  box-shadow: 0 12px 26px rgba(23, 33, 38, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 72vh, 720px);
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  background: #11181c;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 13, 16, 0.92), rgba(9, 13, 16, 0.74) 44%, rgba(9, 13, 16, 0.22) 76%),
    linear-gradient(0deg, rgba(9, 13, 16, 0.78), transparent 52%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.16);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 660px;
  padding: clamp(28px, 6vw, 64px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .summary {
  color: rgba(255, 255, 255, 0.76);
}

h1 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.lede {
  max-width: 620px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

.summary {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 16px 34px rgba(36, 116, 220, 0.24);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.section {
  padding: 58px 0 0;
}

.intro-band {
  max-width: 780px;
}

.intro-band p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 700;
}

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

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

.screenshot-card,
.feature-card,
.info-card,
.policy-card {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
}

.phone-card {
  grid-column: span 2;
}

.mac-card {
  grid-column: span 4;
}

.watch-card {
  grid-column: span 4;
}

.watch-card img {
  background: #323031;
  object-position: center center;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card,
.info-card,
.policy-card {
  padding: 24px;
}

.feature-card p,
.info-card p,
.policy-card p,
.info-card li,
.policy-card li {
  margin-bottom: 0;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.split-section article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.site-footer {
  padding: 36px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.info-page {
  padding: 24px 0 44px;
}

.info-shell {
  display: grid;
  gap: 24px;
}

.info-header {
  padding: 42px 4px 14px;
}

.info-header h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.info-header p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--teal);
  font-weight: 750;
}

.policy-shell {
  display: grid;
  gap: 18px;
}

.info-card ul,
.policy-card ul {
  margin: 14px 0 0 18px;
  padding: 0;
}

.info-card h2,
.policy-card h2 {
  font-size: clamp(1.75rem, 1.25rem + 1.2vw, 2.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.stack-list,
.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.stack-item,
.faq-item,
.callout {
  padding: 16px 18px;
  border: 1px solid rgba(23, 33, 38, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.stack-item strong,
.faq-item h3 {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.callout {
  margin-top: 16px;
  border-left: 4px solid var(--teal);
  color: var(--ink);
}

.meta-note {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 960px) {
  .screenshot-grid,
  .feature-grid,
  .info-grid,
  .split-section {
    grid-template-columns: 1fr 1fr;
  }

  .phone-card,
  .watch-card {
    grid-column: span 1;
  }

  .mac-card {
    grid-column: 1 / -1;
  }

}

@media (max-width: 680px) {
  .site-shell,
  .info-shell {
    width: min(calc(100% - 20px), var(--content-width));
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .hero {
    min-height: 560px;
    border-radius: 24px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(9, 13, 16, 0.82), rgba(9, 13, 16, 0.28)),
      linear-gradient(90deg, rgba(9, 13, 16, 0.76), transparent);
  }

  .hero-copy {
    padding: 26px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .screenshot-grid,
  .feature-grid,
  .info-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .phone-card,
  .mac-card,
  .watch-card {
    grid-column: 1 / -1;
  }

  .section {
    padding-top: 42px;
  }

  .feature-card,
  .info-card,
  .policy-card {
    padding: 20px;
    border-radius: 20px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101417;
    --bg-deep: #090c0e;
    --surface: rgba(25, 33, 38, 0.82);
    --surface-strong: #192126;
    --ink: #f5f8fa;
    --muted: #a8b5bc;
    --line: rgba(245, 248, 250, 0.12);
    --teal: #60d1ca;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.3);
  }

  body {
    background:
      linear-gradient(135deg, rgba(36, 116, 220, 0.12), transparent 34rem),
      linear-gradient(225deg, rgba(226, 53, 47, 0.12), transparent 30rem),
      linear-gradient(180deg, #151b20 0%, var(--bg) 48%, var(--bg-deep) 100%);
  }

  .topbar {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(245, 248, 250, 0.86);
  }

  .brand,
  .nav-links,
  .topbar a,
  .button-secondary {
    color: #172126;
  }

  .screenshot-card,
  .feature-card,
  .info-card,
  .policy-card {
    border-color: rgba(255, 255, 255, 0.12);
  }

  .stack-item,
  .faq-item,
  .callout {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
  }

}
