:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.78);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0, 0, 0, 0.08);
  --sage: #1ca3a8;
  --sage-soft: rgba(28, 163, 168, 0.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --shadow-card: 0 10px 34px rgba(0, 0, 0, 0.05);
  --shadow-phone: 0 28px 64px rgba(15, 23, 42, 0.16);
  --radius-card: 28px;
  --nav-height: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #111214;
    --surface: #1c1c1e;
    --surface-elevated: rgba(28, 28, 30, 0.78);
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --border: rgba(255, 255, 255, 0.11);
    --sage: #38d1c8;
    --sage-soft: rgba(56, 209, 200, 0.16);
    --amber: #fbbf24;
    --amber-soft: rgba(251, 191, 36, 0.16);
    --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.35);
    --shadow-phone: 0 28px 70px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "PingFang TC", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* Sticky Apple-style translucent glass navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: var(--surface-elevated);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

/* Hero Section */
.hero {
  padding: 72px 0 88px;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, var(--sage-soft), transparent 70%);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 23px;
  box-shadow: 0 16px 40px rgba(93, 134, 116, 0.28);
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 54px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s ease;
}

.btn-secondary:hover {
  background: var(--sage-soft);
}

/* Realistic iPhone bezel mockup wrapping authentic screenshots */
.hero-devices {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.phone-frame {
  background: #141416;
  padding: 10px;
  border-radius: 42px;
  box-shadow: var(--shadow-phone), inset 0 0 0 1.5px rgba(255, 255, 255, 0.16);
  width: 268px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.phone-frame.featured {
  width: 292px;
  transform: translateY(-12px);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 33px;
}

/* Section base */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 52px;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.16;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
  background: var(--sage-soft);
  color: var(--sage);
}

.bento-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Authentic Screenshot Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.showcase-item .phone-frame {
  width: 100%;
  max-width: 245px;
  padding: 8px;
  border-radius: 36px;
}

.showcase-item .phone-frame img {
  border-radius: 28px;
}

.showcase-item h4 {
  font-size: 16px;
  font-weight: 600;
}

.showcase-item p {
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 230px;
}

/* Pricing Comparison */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 34px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.price-card.pro {
  border: 1.5px solid var(--sage);
  background: linear-gradient(180deg, var(--sage-soft) 0%, var(--surface) 38%);
}

.price-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--sage);
}

.price-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
  font-size: 14.5px;
}

.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-list .check {
  color: var(--sage);
  font-weight: 700;
}

/* Legal Document Pages (Privacy & Terms) */
.legal-main {
  padding: 64px 0 96px;
}

.legal-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 44px 42px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.legal-meta {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.legal-section p,
.legal-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-link {
  color: var(--sage);
  font-weight: 500;
}

.legal-link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-devices .phone-frame.side {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .bento-grid,
  .pricing-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .legal-card {
    padding: 28px 22px;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .section {
    padding: 64px 0;
  }
}
