:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #06b6d4;
  --border: #e5e9f2;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.logo .accent { color: var(--primary); }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--primary); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d5dfc);
  color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(79, 70, 229, 0.4); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-small { padding: 0.55rem 1.3rem; background: var(--ink); color: #fff; }
.btn-small:hover { background: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9rem 0 6rem;
  background: linear-gradient(180deg, #eef0ff 0%, #ffffff 100%);
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; z-index: 0; }
.blob-1 { width: 380px; height: 380px; background: #a5b4fc; top: -80px; left: -80px; }
.blob-2 { width: 320px; height: 320px; background: #67e8f9; right: -60px; top: 120px; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79, 70, 229, 0.1);
  margin-bottom: 1.2rem;
}
.pill-light { background: #eceeff; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.8rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.hero-badges li { color: var(--text); }

/* Phone mockup */
.hero-visual { position: relative; display: grid; place-items: center; }
.phone {
  width: 270px;
  height: 540px;
  background: var(--ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  position: relative;
  animation: float 6s ease-in-out infinite;
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #f8f9ff, #eef1ff);
  padding: 2.8rem 1.1rem 1.2rem;
}
.screen-title { font-weight: 800; font-size: 1.2rem; color: var(--ink); margin-bottom: 1rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-bottom: 1rem; }
.tool {
  border-radius: 16px;
  padding: 1rem 0.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.tool i { font-style: normal; font-size: 1.5rem; }
.t1 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.t2 { background: linear-gradient(135deg, #f97316, #fbbf24); }
.t3 { background: linear-gradient(135deg, #10b981, #34d399); }
.t4 { background: linear-gradient(135deg, #a855f7, #d946ef); }
.screen-card { background: #fff; border-radius: 16px; padding: 0.9rem; box-shadow: var(--shadow); }
.screen-card small { color: var(--muted); font-weight: 600; }
.screen-card strong { display: block; font-size: 1.6rem; color: var(--ink); }
.bar { height: 8px; background: #e8ebf5; border-radius: 99px; margin-top: 0.5rem; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 99px; animation: fill 2.5s ease-out 0.5s forwards; }

.float-chip {
  position: absolute;
  background: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 18%; left: 2%; animation-delay: -1s; }
.chip-2 { bottom: 16%; right: 0; animation-delay: -3s; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes fill { to { width: 72%; } }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 600px; margin: 0 auto 3.2rem; }
.section-head.left { text-align: left; margin: 0 0 2rem; }
.section-head h2, .about-text h2, .cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.section-head p { color: var(--muted); }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; }
.app-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.app-icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 1.6rem;
  margin-bottom: 1.1rem;
}
.grad-blue { background: linear-gradient(135deg, #c7d2fe, #a5b4fc); }
.grad-orange { background: linear-gradient(135deg, #fed7aa, #fdba74); }
.grad-green { background: linear-gradient(135deg, #bbf7d0, #86efac); }
.grad-purple { background: linear-gradient(135deg, #e9d5ff, #d8b4fe); }
.app-card h3 { color: var(--ink); margin-bottom: 0.4rem; }
.app-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.link { color: var(--primary); font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.link:hover { text-decoration: underline; }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; }
.feature { background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--border); }
.f-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 1.3rem;
  background: #eceeff;
  margin-bottom: 1rem;
}
.feature h3 { color: var(--ink); margin-bottom: 0.4rem; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* About */
.about { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 1.6rem; }
.stats { list-style: none; display: grid; gap: 1rem; }
.stats li {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.stats strong {
  font-size: 2.2rem;
  min-width: 5.5ch;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { color: var(--muted); font-weight: 600; }

/* CTA */
.cta { padding: 0 0 6rem; }
.cta-inner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 130%);
  position: relative;
  overflow: hidden;
}
.cta-inner::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  right: -90px; top: -120px;
}
.cta h2 { color: #fff; }
.cta p { opacity: 0.9; margin-bottom: 2rem; }
.store-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; position: relative; z-index: 1; }
.store {
  display: flex; flex-direction: column; text-align: left;
  min-width: 170px;
  padding: 0.7rem 1.5rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}
.store:hover { transform: translateY(-3px); background: #000; }
.store small { font-size: 0.7rem; opacity: 0.75; }
.store strong { font-size: 1.1rem; }

/* Contact */
.contact { max-width: 680px; }
form { display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
input, textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
form .btn { justify-self: start; }
.form-status { min-height: 1.5rem; font-size: 0.95rem; font-weight: 600; }
.form-status.error { color: #dc2626; }
.form-status.success { color: #059669; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 3rem 0 2rem; font-size: 0.9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; text-align: center; }
.logo-light { color: #fff; }
.logo-light .accent { color: #818cf8; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer-links a { color: #cbd5e1; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #fff; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 7.5rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.2rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 0.8rem; text-align: center; }
  .row { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 0; }
  .cta-inner { padding: 3rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar-fill { width: 72%; }
}
