/* ============================================================================
   Prachandam — public landing page. Standalone, light, enterprise SaaS.
   Palette: white ground, soft-gray sections, slate text, one blue accent.
   ========================================================================== */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f7f9fc;
  --bg-softer:   #eef2f7;
  --text:        #0e1726;
  --text-2:      #33415a;
  --muted:       #5b6b82;
  --faint:       #8a97ab;
  --border:      #e6ebf2;
  --border-2:    #d8e0ea;
  --accent:      #2563eb;
  --accent-700:  #1d4ed8;
  --accent-soft: #eef3ff;
  --ring:        rgba(37,99,235,0.30);

  --shadow-sm: 0 1px 2px rgba(16,23,38,0.06);
  --shadow-md: 0 8px 28px rgba(16,23,38,0.08);
  --shadow-lg: 0 24px 60px rgba(16,23,38,0.14);

  --radius:    16px;
  --radius-sm: 11px;
  --maxw:      1140px;
  --gutter:    24px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 104px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(37,99,235,0.35); }
.btn-primary:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37,99,235,0.28); }
.btn-ghost { background: #fff; color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ---- Navigation ---------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.brand-logo { width: 30px; height: 30px; display: inline-flex; }
.brand-logo svg { width: 100%; height: 100%; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 8px 13px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; padding: 92px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 60% at 82% 12%, rgba(37,99,235,0.09), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550;
  color: var(--text-2); background: #fff; border: 1px solid var(--border);
  padding: 6px 12px 6px 8px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.16); }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); letter-spacing: -0.04em; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; stroke: var(--faint); }

/* Hero product visual (a faithful, abstract product card — not a stock graphic) */
.hero-visual { position: relative; }
.mock {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8dee8; display: block; }
.mock-bar span { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.mock-body { padding: 20px; }
.mock-row1 { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-title { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.pill { font-size: 11.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.pill-run { color: #047857; background: #dcfce7; }
.mock-progress { height: 9px; border-radius: 6px; background: var(--bg-softer); overflow: hidden; margin-bottom: 18px; }
.mock-progress > span { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--accent), #4f86ff); border-radius: 6px; }
.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.mock-stat { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.mock-stat b { display: block; font-size: 20px; letter-spacing: -0.02em; }
.mock-stat small { color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-log { display: flex; flex-direction: column; gap: 9px; }
.mock-line { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text-2); }
.mock-line .ok { width: 16px; height: 16px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; flex: 0 0 auto; }
.mock-line .who { color: var(--faint); margin-left: auto; }
.hero-float {
  position: absolute; left: -22px; bottom: 26px; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 15px; display: flex; align-items: center; gap: 11px;
}
.hero-float .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.hero-float .ic svg { width: 18px; height: 18px; stroke: var(--accent); }
.hero-float b { font-size: 14px; }
.hero-float small { display: block; color: var(--faint); font-size: 12px; }

/* ---- Logos / trust strip ------------------------------------------------- */
.logos { padding: 40px 0; }
.logos p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 24px; }
.logos-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.logos-row span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: #aab4c2; }

/* ---- Feature / value grids ---------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-2); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card .ic svg { width: 23px; height: 23px; stroke: var(--accent); }
.card h3 { font-size: 18px; }
.card p { margin-top: 9px; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Services list-style card (accent rail on the top) */
.svc { position: relative; overflow: hidden; }
.svc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), #5b8cff); opacity: 0; transition: opacity .2s; }
.svc:hover::before { opacity: 1; }

/* ---- How it works -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.step .num { width: 40px; height: 40px; border-radius: 11px; background: var(--text); color: #fff; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 18px; }
.step p { margin-top: 9px; color: var(--muted); font-size: 15px; }

/* ---- Trust / stats ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-big { padding: 8px; }
.stat-big b { display: block; font-size: clamp(32px, 4.5vw, 46px); font-weight: 700; letter-spacing: -0.035em; background: linear-gradient(120deg, var(--text), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-big span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; font-weight: 500; }

/* ---- Testimonials -------------------------------------------------------- */
.quote { display: flex; flex-direction: column; }
.quote .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 14px; font-size: 15px; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #60a5fa); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; flex: 0 0 auto; }
.quote-by b { font-size: 14.5px; display: block; }
.quote-by small { color: var(--faint); font-size: 13px; }

/* ---- Final CTA ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; padding: 68px 40px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 50% -20%, #3b82f6 0%, #1d4ed8 55%, #1e40af 100%); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; }
.cta-band p { margin: 16px auto 30px; color: rgba(255,255,255,0.86); font-size: 18px; max-width: 520px; }
.cta-band .btn-primary { background: #fff; color: var(--accent-700); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.cta-band .btn-primary:hover { background: #f1f5ff; }

/* ---- Footer -------------------------------------------------------------- */
.footer { background: #0b1220; color: #aeb9cc; padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer-about { font-size: 14px; color: #8695ab; max-width: 30ch; line-height: 1.65; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer a { font-size: 14.5px; color: #aeb9cc; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13.5px; color: #74839b; }

/* ---- Scroll-reveal animation -------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero .lede { max-width: none; }
  .mock { transform: none; }
  .hero-float { left: 8px; }
  .grid-3, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; background: #fff; border-bottom: 1px solid var(--border); padding: 12px var(--gutter); box-shadow: var(--shadow-md); }
  .nav.open .nav-links a { padding: 12px 13px; }
  .grid-3, .grid-2, .steps, .stats, .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 52px 24px; }
  .footer-bottom { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
