/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #2d6a4f;
  --green-mid:   #40916c;
  --green-light: #d8f3dc;
  --green-bg:    #f0fdf4;
  --dark:        #0d1f14;
  --text:        #1f2937;
  --muted:       #6b7280;
  --bg:          #ffffff;
  --bg-alt:      #f9fafb;
  --border:      #e5e7eb;
  --radius:      14px;
  --shadow:      0 2px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 48px rgba(0,0,0,.14);
}

html  { scroll-behavior: smooth; }
body  {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: 58px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -.2px;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  padding: 88px 0 72px;
  background: linear-gradient(150deg, var(--green-bg) 0%, #ffffff 55%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hero-text h1 {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 19px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 400px;
  margin-bottom: 32px;
}

.platform-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.hero-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* ── Features ─────────────────────────────────────────────────── */
.features {
  padding: 88px 0;
  background: var(--bg-alt);
}

.section-title {
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 52px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 30px;
  margin-bottom: 14px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Spotlight ────────────────────────────────────────────────── */
.spotlight {
  padding: 100px 0;
  background: var(--dark);
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}

.spotlight-image img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 16px 64px rgba(0,0,0,.5);
}

.spotlight-text .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 16px;
}

.spotlight-text h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
}

.spotlight-text p {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.75;
}

/* ── Screenshots ──────────────────────────────────────────────── */
.screenshots {
  padding: 88px 0;
  background: var(--bg);
}

.tab-bar {
  display: flex;
  justify-content: center;
  gap: 3px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 4px;
  width: fit-content;
  margin: 0 auto 48px;
}

.tab-btn {
  background: none;
  border: none;
  padding: 8px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  font-family: inherit;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--bg);
  color: var(--dark);
  font-weight: 600;
  box-shadow: 0 1px 5px rgba(0,0,0,.12);
}

.tab-panel.hidden { display: none; }

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

/* Mac: 2×2 */
.mac-grid {
  grid-template-columns: 1fr 1fr;
}

.mac-grid img {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* iPhone: 3 portrait screenshots in a row */
.phone-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: 660px;
  margin: 0 auto;
}

.phone-grid img {
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
}

/* iPad: 2+1 layout */
.ipad-grid {
  grid-template-columns: 1fr 1fr;
}

.ipad-grid img {
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ipad-grid img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 62%;
  margin: 0 auto;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-text h1 { font-size: 40px; }
  .hero-sub { max-width: none; }

  .spotlight-inner {
    grid-template-columns: 1fr;
  }
  .spotlight-text h2 { font-size: 30px; }

  .features-grid { grid-template-columns: 1fr 1fr; }

  .mac-grid { grid-template-columns: 1fr; }
  .ipad-grid { grid-template-columns: 1fr; }
  .ipad-grid img:last-child:nth-child(odd) { max-width: 100%; }
}

@media (max-width: 520px) {
  .hero-text h1 { font-size: 32px; letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr; }
  .phone-grid {
    grid-template-columns: 1fr;
    max-width: 260px;
  }
  .section-title { font-size: 26px; }
}
