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

:root {
  --green: #34C759;
  --green-soft: rgba(52, 199, 89, 0.12);
  --green-glow: rgba(52, 199, 89, 0.25);
  --bg: #0A0A0C;
  --bg-elevated: #141416;
  --bg-card: #1C1C1E;
  --surface: #2C2C2E;
  --text: #F5F5F7;
  --text-secondary: #8E8E93;
  --text-tertiary: #636366;
  --divider: rgba(255, 255, 255, 0.06);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 10, 12, 0.72);
  border-bottom: 1px solid var(--divider);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-logo span {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 14px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--green-glow);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--green-soft);
  border: 1px solid rgba(52, 199, 89, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -2px;
  max-width: 800px;
  animation: fadeUp 0.8s ease 0.1s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-top: 24px;
  font-weight: 400;
  animation: fadeUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--green);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--green-glow);
}

.btn-primary svg { width: 20px; height: 20px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, 0.12);
}

/* Hero visual */
.hero-visual {
  position: relative;
  margin-top: 80px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-screenshot {
  width: 280px;
  border-radius: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
}

/* Screenshot showcase */
.screenshots-section {
  padding: 80px 24px 120px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.screenshots-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.screenshot-item img {
  width: 260px;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.3s ease;
}

.screenshot-item img:hover {
  transform: translateY(-8px);
}

.screenshot-item .caption {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ─── How it works ─── */
.section {
  padding: 120px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green);
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 600px;
  margin-bottom: 64px;
}

.section h2 em {
  font-style: italic;
  color: var(--green);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 40px 32px;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}

.step:hover {
  border-color: rgba(52, 199, 89, 0.2);
  transform: translateY(-4px);
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.step:hover::before { opacity: 1; }

.step-number {
  font-family: var(--serif);
  font-size: 48px;
  font-style: italic;
  color: var(--green);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 24px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--green-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Features ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature {
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 48px 40px;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  border-color: rgba(52, 199, 89, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--green-soft);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.feature h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 400px;
}

.feature-highlight {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-highlight .feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.calorie-ring-demo {
  width: 180px;
  height: 180px;
  position: relative;
}

.calorie-ring-demo svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.calorie-ring-demo circle {
  fill: none;
  stroke-width: 10;
}

.ring-bg { stroke: var(--surface); }

.ring-fill {
  stroke: var(--green);
  stroke-dasharray: 440;
  stroke-dashoffset: 132;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease;
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-center strong {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--green);
}

.ring-center span {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ─── Instagram ─── */
.instagram-section { text-align: center; }

.instagram-section .section-label {
  justify-content: center;
}

.instagram-section .section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--green);
}

.instagram-section h2 {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 16px;
}

.ig-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--divider);
  border-radius: 24px;
  padding: 64px 40px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.ig-card:hover { border-color: rgba(214, 41, 118, 0.25); }

.ig-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(214, 41, 118, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ig-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ig-icon svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.ig-desc {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 460px;
  margin: 0 auto 40px;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s;
}

.ig-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(214, 41, 118, 0.35);
}

.ig-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  padding: 120px 24px;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--green);
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 40px;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--divider);
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }

  .hero { padding: 120px 20px 60px; }

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

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

  .feature-highlight {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .screenshots-row { gap: 24px; }
  .screenshot-item img { width: 200px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .ig-card { padding: 48px 24px; }

  .hero-actions { flex-direction: column; }
}

/* ─── Language switcher ─── */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-switch a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  padding: 2px 4px;
  transition: color 0.2s;
}

.lang-switch a:hover { color: var(--text); }

.lang-switch a[aria-current="true"] {
  color: var(--text-secondary);
  font-weight: 600;
}

.lang-switch span { color: var(--text-tertiary); }
