/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --navy:        #1a1f4b;
  --green:       #6ec96f;
  --green-light: #a8e6a3;
  --cream:       #f8f6f1;
  --white:       #ffffff;
  --gray:        #8a8f9e;
  --card-bg:     #f0eee9;

  --radius-card:  20px;
  --radius-pill:  50px;
  --shadow-card:  0 8px 40px rgba(26,31,75,0.12);
  --shadow-phone: 0 40px 80px rgba(26,31,75,0.35), 0 8px 20px rgba(26,31,75,0.15);

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── Typography helpers ────────────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .78rem; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 540px;
  margin-bottom: 4rem;
}
.section-title em { font-style: italic; color: var(--green); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-pill); padding: .9rem 2rem;
  font-size: .95rem; font-weight: 500;
  text-decoration: none; font-family: var(--font-body);
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(26,31,75,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,31,75,0.3); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--navy); font-size: .95rem; font-weight: 500;
  text-decoration: none; opacity: .7; transition: opacity .2s;
}
.btn-secondary:hover { opacity: 1; }

/* ── Language switcher ─────────────────────────────────────────────────────── */
.lang-switch {
  display: flex; gap: .3rem;
  background: rgba(26,31,75,0.07);
  border-radius: var(--radius-pill);
  padding: .25rem;
}
.lang-btn {
  border: none; cursor: pointer;
  background: transparent;
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 500;
  color: var(--navy); opacity: .5;
  transition: opacity .2s, background .2s;
  font-family: var(--font-body);
}
.lang-btn:hover { opacity: .8; }
.lang-btn.active {
  background: var(--white);
  opacity: 1;
  box-shadow: 0 1px 6px rgba(26,31,75,0.1);
}

/* ── Nav ───────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(248,246,241,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,31,75,0.08);
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 900;
  color: var(--navy); letter-spacing: -0.5px;
  flex-shrink: 0;
}
.nav-logo span { color: var(--green); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-size: .9rem; font-weight: 500;
  opacity: .7; transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  background: var(--navy); color: var(--white);
  border: none; border-radius: var(--radius-pill);
  padding: .6rem 1.4rem; font-size: .85rem; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  transition: background .2s, transform .15s;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { background: var(--green); color: var(--navy); transform: translateY(-1px); }

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 10rem 5vw 6rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,201,111,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: 10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,31,75,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--green); }

.hero-sub {
  font-size: 1.1rem; font-weight: 300; line-height: 1.7;
  color: rgba(26,31,75,0.65); max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeUp .6s .2s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  animation: fadeUp .6s .3s ease both;
}
.stores-note { 
  font-size: .78rem; color: var(--gray); margin-top: .2rem; margin-left: -0.1rem; 
}

/* ── Phone mockup ──────────────────────────────────────────────────────────── */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
  animation: floatIn .8s .2s ease both;
}
.phone-wrap {
  position: relative;
  animation: float 5s ease-in-out infinite;
}
.phone {
  width: 260px;
  border-radius: 38px;
  box-shadow: 0 0 0 10px var(--navy), var(--shadow-phone);
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  background: var(--navy); border-radius: 20px; z-index: 10;
}
.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
}
.blob1 {
  position: absolute; width: 200px; height: 200px;
  background: var(--green-light); border-radius: 50%;
  top: -40px; right: -40px; opacity: .5; z-index: -1;
}
.blob2 {
  position: absolute; width: 150px; height: 150px;
  background: var(--navy); border-radius: 50%;
  bottom: -20px; left: -30px; opacity: .1; z-index: -1;
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features {
  padding: 8rem 5vw;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.features::before {
  content: '';
  position: absolute; top: -100px; left: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110,201,111,0.12) 0%, transparent 70%);
}
.features .section-tag { color: var(--green); }
.features .section-title { color: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: transform .25s, background .25s;
}
.feat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.feat-icon { font-size: 2.2rem; margin-bottom: 1.2rem; display: block; }
.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--white);
  margin-bottom: .6rem;
}
.feat-card p { font-size: .9rem; line-height: 1.65; color: rgba(255,255,255,0.55); }

/* ── How it works ──────────────────────────────────────────────────────────── */
.how {
  padding: 8rem 5vw;
  background: var(--cream);
}
.how .section-tag { color: var(--navy); opacity: .5; }
.how .section-title { color: var(--navy); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute; top: 2rem; left: 10%; right: 10%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--navy) 0, var(--navy) 6px, transparent 6px, transparent 14px);
  opacity: .15;
}
.step { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 6px;
  margin: 0 auto 1.2rem;
  box-shadow: 0 8px 24px rgba(26,31,75,0.2);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
  margin-bottom: .5rem;
}
.step p { font-size: .88rem; line-height: 1.6; color: rgba(26,31,75,0.6); }

/* ── AI section ────────────────────────────────────────────────────────────── */
.ai-section {
  padding: 8rem 5vw;
  background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
  position: relative; overflow: hidden;
}
.ai-section::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  background: linear-gradient(135deg, rgba(110,201,111,0.08) 0%, transparent 60%);
}
@media (max-width: 768px) {
  .ai-section::before {
    right: 0; left: 0; top: auto; bottom: 0;
    width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(110,201,111,0.08) 0%, transparent 100%);
  }
}
.ai-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1.5px solid var(--green); color: var(--navy);
  border-radius: var(--radius-pill); padding: .35rem 1rem;
  font-size: .78rem; font-weight: 500; margin-bottom: 1.5rem;
}
.ai-chip::before { content: '✨'; }
.ai-section .section-tag { color: var(--navy); opacity: .5; }
.ai-section .section-title { color: var(--navy); margin-bottom: 1.2rem; }
.ai-desc { font-size: 1rem; line-height: 1.75; color: rgba(26,31,75,0.6); margin-bottom: 2rem; }
.ai-pills { display: flex; flex-wrap: wrap; gap: .7rem; }
.ai-pill {
  background: var(--card-bg); border-radius: var(--radius-pill);
  padding: .4rem 1rem; font-size: .82rem; font-weight: 500; color: var(--navy);
}

.ai-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  border: 1px solid rgba(26,31,75,0.07);
  position: relative; z-index: 1;
}
.ai-card-header {
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.2rem;
}
.ai-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #3a4080);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.ai-card-header div small { font-size: .75rem; color: var(--gray); }
.ai-card-header div b { font-size: .9rem; font-weight: 500; color: var(--navy); display: block; }
.ai-bubble {
  background: var(--card-bg); border-radius: 14px; padding: .9rem 1.1rem;
  font-size: .85rem; line-height: 1.6; color: var(--navy);
  margin-bottom: .7rem;
}
.ai-bubble.green { background: rgba(110,201,111,0.15); }
.ai-suggestion {
  display: flex; align-items: center; gap: .6rem;
  background: var(--white); border: 1px solid rgba(26,31,75,0.1);
  border-radius: 10px; padding: .6rem .9rem; margin-top: .5rem;
  font-size: .82rem; font-weight: 500; color: var(--navy);
}
.ai-suggestion::before { content: '＋'; color: var(--green); font-weight: 700; }

/* ── CTA section ───────────────────────────────────────────────────────────── */
.cta-section {
  background: var(--navy);
  padding: 8rem 5vw;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section .section-tag { color: var(--green); }
.cta-section .section-title {
  color: var(--white); max-width: 600px; margin: 0 auto 1.5rem; text-align: center;
}
.cta-sub { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 3rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-store {
  display: inline-flex; align-items: center; gap: .8rem;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn-store:hover { transform: translateY(-3px); }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
footer .nav-logo { color: var(--white); }
footer p { font-size: .82rem; color: rgba(255,255,255,0.35); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-links a:hover { color: var(--green); }

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding: 8rem 5vw 5rem; }
  .hero-visual { order: -1; }
  .phone { width: 220px; }
  .phone-screen { min-height: 480px; }
  .nav-links { display: none; }
  .ai-section { grid-template-columns: 1fr; gap: 3rem; }
  .steps::before { display: none; }
  .nav-right { gap: .6rem; }
}
