/* =========================================================================
   Gegee — Web design system
   Mirrors the Flutter app: lavender accent, Playfair Display + Inter,
   soft surfaces, generous radius, very subtle shadows.
   ========================================================================= */

:root {
  /* Brand / accent */
  --accent:        #8B7FD4;
  --accent-strong: #6F61BE;
  --accent-soft:   #E8E4F7;
  --accent-wash:   rgba(139, 127, 212, 0.10);

  /* Surfaces */
  --bg:            #F7F5FC;
  --surface:       #FFFFFF;
  --surface-muted: #EEEBF8;

  /* Text */
  --text:          #1F1B29;
  --text-soft:     #8B8699;
  --on-accent:     #FFFFFF;

  /* Status */
  --warning:       #D79A2B;
  --warning-wash:  #F8EFDC;
  --positive:      #4FA585;

  /* Radius */
  --r-card: 24px;
  --r-field: 18px;
  --r-pill: 100px;

  /* Shadows (cool lavender-grey tint, never hard) */
  --shadow-sm: 0 6px 18px rgba(107, 100, 144, 0.08);
  --shadow:    0 16px 40px rgba(107, 100, 144, 0.12);
  --shadow-lg: 0 30px 80px rgba(107, 100, 144, 0.18);

  /* Layout */
  --maxw: 1120px;
  --pad: 24px;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient lavender glows in the background */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  pointer-events: none;
}
body::before {
  width: 520px; height: 520px;
  top: -180px; right: -140px;
  background: radial-gradient(circle, #c9c1f2 0%, rgba(201,193,242,0) 70%);
}
body::after {
  width: 480px; height: 480px;
  bottom: -160px; left: -160px;
  background: radial-gradient(circle, #d8e4f7 0%, rgba(216,228,247,0) 70%);
}

/* ----------------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { position: relative; }

.section-pad { padding: 96px 0; }

/* ---------------------------------------------------------------- Type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.3px; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.3; }
p  { margin: 0 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-wash);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}

.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 60ch; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent-strong), var(--accent) 60%, #b6a9ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.muted { color: var(--text-soft); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--on-accent);
  box-shadow: 0 14px 30px rgba(111, 97, 190, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(111, 97, 190, 0.45); }
.btn-ghost {
  background: var(--surface);
  color: var(--accent-strong);
  border: 1.4px solid var(--surface-muted);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent-soft); }

/* ---------------------------------------------------------------- Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(247, 245, 252, 0.72);
  border-bottom: 1px solid rgba(139, 127, 212, 0.10);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow-sm); }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: 0.97rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent-strong); }
.nav-cta { padding: 11px 22px; font-size: 0.95rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------------------------------------------------------------- Hero */
.hero { padding: 80px 0 60px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: var(--text-soft); }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 9 / 19;
  background: var(--surface);
  border-radius: 46px;
  box-shadow: var(--shadow-lg);
  border: 10px solid #fff;
  padding: 22px 20px;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 26px;
  background: #1F1B29;
  border-radius: 0 0 16px 16px;
}
.phone-logo { width: 76px; height: 76px; border-radius: 22px; margin: 40px auto 18px; display: block; box-shadow: var(--shadow); }
.phone-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.phone-sub { text-align: center; color: var(--text-soft); font-size: 0.85rem; margin-bottom: 22px; }
.score-ring {
  width: 150px; height: 150px; margin: 0 auto 22px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 80% 100%),
    conic-gradient(var(--accent) 0 78%, var(--accent-soft) 78% 100%);
  display: grid; place-items: center;
}
.score-ring .val { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--accent-strong); line-height: 1; }
.score-ring .lbl { font-size: 0.7rem; color: var(--text-soft); letter-spacing: 1px; text-transform: uppercase; }
.metric-bars { display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.metric-bar { }
.metric-bar .row { display: flex; justify-content: space-between; font-size: 0.78rem; margin-bottom: 5px; }
.metric-bar .track { height: 7px; border-radius: 100px; background: var(--surface-muted); overflow: hidden; }
.metric-bar .fill { height: 100%; border-radius: 100px; }

/* ---------------------------------------------------------------- Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: center;
  padding: 26px 0;
}
.trust .item { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-weight: 500; font-size: 0.95rem; }
.trust .item b { color: var(--text); }

/* ---------------------------------------------------------------- Features */
.features-head { max-width: 620px; margin: 0 auto 56px; text-align: center; }
.features-head p { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 127, 212, 0.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .ico {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 18px;
  background: var(--accent-wash);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.97rem; margin: 0; }
.card .chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.card .chips li {
  font-size: 0.82rem; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--surface-muted); color: var(--text);
}
.card.span-2 { grid-column: span 2; }

/* ---------------------------------------------------------------- Showcase (alternating) */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 40px; }
.showcase.flip .showcase-text { order: 2; }
.showcase-text .eyebrow { margin-bottom: 18px; }
.showcase-media {
  background: linear-gradient(160deg, var(--accent-soft), #fff);
  border-radius: var(--r-card);
  padding: 40px;
  box-shadow: var(--shadow);
  min-height: 280px;
  display: grid;
  place-items: center;
}
.bullet-list { list-style: none; padding: 0; margin: 20px 0 0; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text); }
.bullet-list li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent-strong);
  display: grid; place-items: center; font-size: 0.8rem; font-weight: 700;
  margin-top: 2px;
}

/* ---------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(130deg, var(--accent-strong), var(--accent));
  border-radius: 36px;
  padding: 72px 40px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,.12), transparent 40%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 48ch; margin: 0 auto 30px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-strong); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { box-shadow: 0 20px 44px rgba(0,0,0,.25); }

/* ---------------------------------------------------------------- Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid rgba(139,127,212,.12); margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer .brand .name { font-size: 1.25rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-soft); margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text); text-decoration: none; margin-bottom: 10px; font-size: 0.95rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-about { max-width: 280px; }
.footer-about p { color: var(--text-soft); font-size: 0.92rem; margin-top: 14px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-soft); font-size: 0.88rem; padding-top: 24px; border-top: 1px solid rgba(139,127,212,.10); }

/* ---------------------------------------------------------------- Legal / content pages */
.page-hero { padding: 70px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .updated { color: var(--text-soft); margin-top: 12px; font-size: 0.92rem; }
.content {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
  max-width: 820px;
  margin: 0 auto 80px;
}
.content h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.content p, .content li { color: #3a3546; font-size: 1rem; }
.content ul { padding-left: 22px; margin: 0 0 16px; }
.content li { margin-bottom: 8px; }
.content a { color: var(--accent-strong); }
.content .note {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 22px 0;
  color: var(--text);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.contact-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(139,127,212,.05);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.contact-card .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--accent-wash); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 18px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card .val { color: var(--accent-strong); font-weight: 600; word-break: break-word; }
.contact-card .sub { color: var(--text-soft); font-size: 0.9rem; margin-top: 4px; }

/* ---------------------------------------------------------------- Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card.span-2 { grid-column: span 2; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; gap: 28px; }
  .showcase.flip .showcase-text { order: 0; }
}
@media (max-width: 680px) {
  .section-pad { padding: 64px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px var(--pad) 30px;
    background: rgba(247,245,252,.97); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(139,127,212,.12);
  }
  .feature-grid { grid-template-columns: 1fr; }
  .card.span-2 { grid-column: span 1; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .phone { width: 260px; }
}
