:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --text: #15201f;
  --muted: #5d6766;
  --border: #dde4e3;
  --brand: #0b7a75;
  --brand-dark: #075c58;
  --brand-soft: #e3f2f1;
  --on-brand: #ffffff;
  --accent: #f2a93b;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 60, 58, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1514;
    --surface: #182120;
    --text: #e6eceb;
    --muted: #9aa8a6;
    --border: #2a3735;
    --brand: #4fc3bc;
    --brand-dark: #0b7a75;
    --brand-soft: #1c3331;
    --on-brand: #0f1514;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.logo img { width: 36px; height: 36px; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; font-size: 0.95em; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.btn:hover { opacity: 0.9; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-weight: 400; font-size: 0.72em; opacity: 0.8; line-height: 1.1; }
.btn span { line-height: 1.2; }
.play-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.play-badge img { height: 56px; width: auto; }
.play-badge:hover { opacity: 0.88; }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #0d8f89 0%, #0b7a75 45%, #064e4b 100%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding-top: 56px; }
.hero-text { padding-bottom: 56px; }
.hero h1 { font-size: clamp(2em, 5vw, 3.1em); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero p { font-size: 1.15em; opacity: 0.92; margin: 0 0 28px; max-width: 34em; }
.hero .app-id { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 600; }
.hero .app-id img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
.hero .btn { background: #fff; color: #0b3c3a; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .actions .link { color: #fff; opacity: 0.9; }
.hero-shot { align-self: end; justify-self: center; }
.hero-shot .phone { width: min(300px, 70vw); margin-bottom: -60px; }

/* Phone frame */
.phone {
  border: 8px solid #101615;
  border-radius: 34px;
  overflow: hidden;
  background: #101615;
  box-shadow: var(--shadow);
}
.phone img { border-radius: 26px; }

/* Sections */
section { padding: 72px 0; }
.section-title { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-title h2 { font-size: clamp(1.6em, 3.5vw, 2.2em); line-height: 1.2; margin: 0 0 10px; }
.section-title p { color: var(--muted); margin: 0; font-size: 1.05em; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.alt .feature { background: var(--bg); }
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.1em; }
.feature p { margin: 0; color: var(--muted); }

/* Screenshot strip */
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 20px;
  overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory;
  justify-content: safe center;
}
.shots figure { margin: 0; scroll-snap-align: center; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 0.92em; margin-top: 12px; }
.shots .phone { border-width: 6px; border-radius: 28px; }
.shots .phone img { border-radius: 22px; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(1.5em, 3vw, 2em); line-height: 1.2; margin: 0 0 14px; }
.split p { color: var(--muted); }
.split ul { padding-left: 1.2em; color: var(--muted); }
.split li { margin: 6px 0; }
.watches { display: flex; gap: 4%; justify-content: center; padding-bottom: 24px; }
.watch {
  width: min(160px, 30%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 8px solid #101615; background: #000; box-shadow: var(--shadow);
}
.watch:nth-child(2) { transform: translateY(24px); }

/* Callout */
.callout {
  background: var(--brand-soft); border-radius: var(--radius); padding: 28px;
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.callout h3 { margin: 0 0 4px; }
.callout p { margin: 0; color: var(--muted); }
.callout .btn { background: var(--brand); color: var(--on-brand); }

/* Developer home */
.dev-hero { padding: 80px 0 56px; text-align: center; }
.dev-hero h1 { font-size: clamp(2em, 5vw, 3em); line-height: 1.15; margin: 0 0 14px; }
.dev-hero p { color: var(--muted); font-size: 1.15em; max-width: 36em; margin: 0 auto; }
.app-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; color: var(--text); text-decoration: none; max-width: 760px; margin: 0 auto;
}
.app-card:hover { border-color: var(--brand); }
.app-card img { width: 72px; height: 72px; border-radius: 16px; }
.app-card h3 { margin: 0 0 4px; font-size: 1.2em; }
.app-card p { margin: 0; color: var(--muted); }
.app-card .go { color: var(--brand); font-weight: 600; white-space: nowrap; }
.contact { text-align: center; }
.contact p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92em; padding: 28px 0 36px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-text { padding-bottom: 8px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero .app-id, .hero .actions { justify-content: center; }
  .hero-shot .phone { width: min(260px, 66vw); }
  .features { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .media { order: -1; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .site-header nav { gap: 12px; font-size: 0.9em; }
  .site-header nav .hide-sm { display: none; }
  .app-card { grid-template-columns: auto 1fr; }
  .app-card .go { grid-column: 1 / -1; }
  .watch { border-width: 5px; }
  .shots { grid-auto-columns: 180px; justify-content: start; }
}
