/* ============================================================================
   Guru Maytri — marketing site styles
   Brand palette mirrors the mobile app (indigo + emerald, Plus Jakarta Sans).
   Pure static CSS: no build step, no framework.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #5B6AF0;
  --primary-light: #8B97FF;
  --primary-dark: #3B4AD4;
  --accent: #06C896;
  --accent-light: #34DEB4;
  --gold: #F59E0B;

  /* Surfaces */
  --bg: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-tint: #EEF2FF;

  /* Text */
  --text: #1A1D3A;
  --text-2: #5A6072;
  --text-muted: #9aa1b2;

  /* Lines */
  --border: #E8EAF6;

  /* Effects */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 10px rgba(27, 31, 70, 0.05);
  --shadow: 0 14px 40px rgba(91, 106, 240, 0.10);
  --shadow-lg: 0 30px 70px rgba(59, 74, 212, 0.18);
  --grad: linear-gradient(135deg, #5B6AF0, #8B97FF);
  --grad-hero: linear-gradient(135deg, #3B4FD8, #6366F1 55%, #818CF8);

  --maxw: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.2px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn .ico { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(91,106,240,0.35); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(91,106,240,0.42); }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost { background: #fff; color: var(--text); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--primary-light); color: var(--primary-dark); }

.ico--accent { stroke: var(--accent); }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(27,31,70,0.05);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.4px; font-size: 18px; }
.brand__mark { border-radius: 10px; box-shadow: 0 6px 16px rgba(91,106,240,0.3); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { font-weight: 600; font-size: 15px; color: var(--text-2); transition: color 0.2s; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); border-radius: 2px; transition: width 0.25s var(--ease); }
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; }
.nav__toggle span { width: 22px; height: 2.4px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.4px) rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; }
.blob--1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(91,106,240,0.45), transparent 70%); animation: float 14s ease-in-out infinite; }
.blob--2 { width: 460px; height: 460px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(6,200,150,0.35), transparent 70%); animation: float 18s ease-in-out infinite reverse; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 72%); opacity: 0.5; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 600; color: var(--text-2); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6,200,150,0.18); }
.hero__title { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; font-weight: 800; letter-spacing: -1.6px; margin: 22px 0 18px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { font-size: clamp(16px, 2vw, 18px); color: var(--text-2); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 22px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.hero__trust .ico { width: 17px; height: 17px; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Phone mockup */
.hero__device { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 44px;
  background: linear-gradient(160deg, #2a2f55, #1a1d3a); padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.06);
  animation: rise 1s var(--ease) both;
}
.phone__notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 24px; background: #14172e; border-radius: 0 0 16px 16px; z-index: 3; }
.phone__screen { width: 100%; height: 100%; border-radius: 33px; background: var(--bg); overflow: hidden; }
.appbar { background: var(--grad-hero); color: #fff; padding: 46px 18px 22px; border-radius: 0 0 26px 26px; display: flex; justify-content: space-between; align-items: flex-start; box-shadow: 0 12px 26px rgba(99,102,241,0.32); }
.appbar__pill { display: inline-block; background: rgba(255,255,255,0.2); padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.appbar__name { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; margin-top: 8px; }
.appbar__school { font-size: 11px; color: rgba(255,255,255,0.8); }
.appbar__avatar { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,0.18); display: grid; place-items: center; font-size: 22px; border: 1.5px solid rgba(255,255,255,0.3); }
.app-section { font-size: 14px; font-weight: 800; padding: 16px 18px 8px; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
.app-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 12px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 3px; }
.app-card__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 16px; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 38%, transparent); margin-bottom: 6px; }
.app-card__tag { align-self: flex-start; font-size: 9px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 7px; border-radius: 100px; }
.app-card strong { font-size: 13px; font-weight: 800; }
.app-card small { font-size: 9.5px; color: var(--text-2); line-height: 1.35; }

.device-float { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.device-float--1 { top: 88px; left: -22px; animation: floatY 5s ease-in-out infinite; }
.device-float--2 { bottom: 70px; right: -18px; animation: floatY 6s ease-in-out infinite reverse; }
.device-float strong { color: var(--accent); font-weight: 800; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--green { background: var(--accent); box-shadow: 0 0 0 4px rgba(6,200,150,0.18); }

/* ── Stats ─────────────────────────────────────────────────────────────── */
.stats { padding: 8px 0 20px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -1px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 92px 0; }
.section--alt { background: linear-gradient(180deg, #fff, #fafbff); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { max-width: 660px; margin: 0 auto 50px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.eyebrow--light { color: rgba(255,255,255,0.85); }
.section__title { font-size: clamp(27px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.section__title--light { color: #fff; }
.section__lead { color: var(--text-2); font-size: 17px; margin-top: 14px; }

/* ── Features ──────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.feature__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--c) 12%, #fff); }
.feature__icon svg { width: 26px; height: 26px; stroke: var(--c); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* ── About ─────────────────────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.about__card { background: var(--grad-hero); color: #fff; border-radius: 26px; padding: 38px 32px; box-shadow: var(--shadow-lg); }
.about__emoji { font-size: 44px; display: block; margin-bottom: 16px; }
.about__card h4 { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; }
.about__card p { color: rgba(255,255,255,0.85); margin-top: 8px; font-size: 15px; }
.about__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.about__copy p { color: var(--text-2); font-size: 16px; margin-top: 16px; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.ticks .ico { width: 20px; height: 20px; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ── Steps ─────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px rgba(91,106,240,0.32); margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14px; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.section--contact { background: var(--grad-hero); position: relative; overflow: hidden; }
.section--contact::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%); top: -200px; right: -120px; }
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.9fr; gap: 50px; align-items: center; }
.contact__lead { color: rgba(255,255,255,0.86); font-size: 17px; margin-top: 14px; max-width: 480px; }
.contact__cards { display: grid; gap: 14px; margin-top: 28px; max-width: 440px; }
.contact-card { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-sm); padding: 14px 16px; color: #fff; transition: background 0.25s, transform 0.2s; backdrop-filter: blur(6px); }
.contact-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.16); display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.contact-card small { display: block; font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 600; }
.contact-card strong { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }

.contact-form { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--shadow-lg); }
.contact-form__title { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.field .optional { color: var(--text-muted); font-weight: 500; }
.field input, .field textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,106,240,0.12); }
.field textarea { resize: vertical; min-height: 84px; }
.field input.invalid, .field textarea.invalid { border-color: #EF4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.10); }
.contact-form .btn { margin-top: 6px; }
.contact-form__note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.contact-form__note.is-success { color: var(--accent); font-weight: 700; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 50px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer__brand p { color: var(--text-2); font-size: 14px; margin-top: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a, .footer__contact a { color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: color 0.2s; width: fit-content; }
.footer__links a:hover, .footer__contact a:hover { color: var(--primary); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }

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

/* ── Keyframes ─────────────────────────────────────────────────────────── */
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(20px,-24px) scale(1.06); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
    padding: 18px 24px 26px; border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(27,31,70,0.10);
    transform: translateY(-130%); transition: transform 0.35s var(--ease);
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__link { padding: 12px 6px; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
}

@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 70px 0; }
  .contact-form { padding: 24px; }
}

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
