/* Kuruvu — www.kuruvu.com
   Petrol brand system. Source of truth: tokens/design-tokens.json (locked, KUR-96).
   Brand gradient #36a6c6 -> #2a7c9e -> #13375b. Type: Inter. */

:root {
  --brand-1: #36a6c6;
  --brand-2: #2a7c9e;
  --brand-3: #13375b;
  --primary: #1e6e86;
  --primary-deep: #185a6e;

  --ink: #14313f;          /* neutral foreground (deep petrol) */
  --ink-soft: #2c4d5c;
  --muted: #5e7a86;        /* secondary text */
  --border: #e2ecef;
  --bg: #ffffff;
  --bg-soft: #f4f9fa;
  --bg-tint: #eef6f8;
  --card: #ffffff;

  --grad: linear-gradient(135deg, #36a6c6 0%, #2a7c9e 55%, #13375b 100%);
  --grad-soft: linear-gradient(160deg, #eef7f9 0%, #e3f0f3 100%);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 28px;

  --shadow-sm: 0 1px 2px rgba(20, 49, 63, .06), 0 1px 3px rgba(20, 49, 63, .08);
  --shadow-md: 0 4px 12px rgba(20, 49, 63, .08), 0 12px 28px rgba(20, 49, 63, .07);
  --shadow-lg: 0 18px 50px rgba(19, 55, 91, .18);

  --maxw: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-deep); }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 20px;
  border-radius: var(--r-full, 999px);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 110, 134, .28);
}
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(30, 110, 134, .34); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--ink); border-color: #c8dbe1; background: var(--bg-soft); }
.btn-lg { padding: 15px 26px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(54, 166, 198, .16), transparent 60%),
    radial-gradient(900px 480px at 10% 0%, rgba(19, 55, 91, .10), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  /* vertical only — keep .wrap's horizontal padding so content never hits the edge */
  padding-block: 84px 92px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero .lede { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 34ch; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap; }
.hero-meta .stat { }
.hero-meta .stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.hero-meta .stat span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 60px 64px; }
  .hero .lede { max-width: none; }
}

/* hero visual — elevation / route card */
.hero-visual {
  position: relative;
  border-radius: var(--r-2xl);
  background: var(--grad);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.hero-visual .panel {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-lg);
  padding: 18px 18px 8px;
  backdrop-filter: blur(6px);
}
.hero-visual .panel h4 { color: #fff; font-size: 14px; font-weight: 600; opacity: .92; }
.hero-visual .panel .sub { font-size: 12px; opacity: .72; margin-top: 2px; }
.hero-visual svg { margin-top: 6px; }
.hero-chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.hero-chips .chip {
  font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 6px 11px; border-radius: 999px;
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.soft { background: var(--bg-soft); }

/* feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 880px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfe1e6; }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--bg-tint); color: var(--primary);
  margin-bottom: 18px;
}
.card h3 { font-size: 19px; font-weight: 700; }
.card p { margin-top: 9px; color: var(--muted); font-size: 15px; }

/* split feature band */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 15.5px; }
.split li svg { flex: none; margin-top: 2px; color: var(--primary); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* CTA band */
.cta-band {
  background: var(--grad);
  border-radius: var(--r-2xl);
  padding: 56px;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-top: 14px; font-size: 18px; }
.cta-band .btn-ghost { background: rgba(255,255,255,.14); color:#fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.22); color:#fff; }
.cta-band .btn-light { background:#fff; color: var(--primary-deep); }
.cta-band .btn-light:hover { color: var(--primary-deep); transform: translateY(-1px); }
.cta-actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 40px 26px; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #c4d6dd; padding: 56px 0 40px; }
.footer a { color: #c4d6dd; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer .brand:hover { color: #fff; }
.footer h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer .tagline { margin-top: 16px; font-size: 14.5px; max-width: 36ch; color: #9fb8c1; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #8aa6af; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- docs layout ---------- */
.docs-shell { display: grid; grid-template-columns: 248px 1fr; gap: 48px; padding-block: 48px 96px; align-items: start; }
.docs-side { position: sticky; top: 92px; }
.docs-side h6 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.docs-side nav { display: grid; gap: 4px; margin-bottom: 26px; }
.docs-side nav a {
  display: block; padding: 8px 12px; border-radius: 9px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 500;
}
.docs-side nav a:hover { background: var(--bg-soft); color: var(--primary); }
.docs-side nav a.active { background: var(--bg-tint); color: var(--primary-deep); font-weight: 600; }
.docs-main { max-width: 760px; min-width: 0; }
.docs-main h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.docs-main h2 { font-size: 24px; font-weight: 700; margin: 48px 0 0; padding-top: 8px; scroll-margin-top: 90px; }
.docs-main h3 { font-size: 18px; font-weight: 700; margin: 30px 0 0; }
.docs-main p, .docs-main li { color: var(--ink-soft); font-size: 16.5px; }
.docs-main p { margin-top: 16px; }
.docs-main ul, .docs-main ol { margin-top: 16px; padding-left: 22px; display: grid; gap: 8px; }
.docs-lede { font-size: 19px !important; color: var(--muted) !important; margin-top: 14px !important; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
@media (max-width: 880px) { .docs-shell { grid-template-columns: 1fr; gap: 8px; } .docs-side { position: static; } }

kbd {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; color: var(--ink);
}
code:not(pre code) {
  font-family: var(--font-mono); font-size: .9em;
  background: var(--bg-tint); padding: 2px 6px; border-radius: 6px; color: var(--primary-deep);
}

/* platform / step cards */
.platform-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
@media (max-width: 820px) { .platform-grid { grid-template-columns: 1fr; } }
.platform {
  border: 1px solid var(--border); border-radius: var(--r-xl);
  background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden;
}
.platform-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; background: var(--grad-soft); border-bottom: 1px solid var(--border);
}
.platform-head .pico { width: 38px; height: 38px; display: grid; place-items: center; color: var(--primary-deep); }
.platform-head h3 { margin: 0; font-size: 18px; }
.platform-head .pmeta { font-size: 13px; color: var(--muted); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 20px 22px 24px; display: grid; gap: 18px; }
.steps li { position: relative; padding-left: 44px; color: var(--ink-soft); font-size: 15.5px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; box-shadow: 0 3px 8px rgba(30,110,134,.3);
}
.steps li strong { color: var(--ink); }

/* callout */
.callout {
  margin-top: 24px; display: flex; gap: 14px;
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  background: var(--bg-tint); border-radius: var(--r-md); padding: 16px 18px;
}
.callout svg { flex: none; color: var(--primary); margin-top: 2px; }
.callout p { margin: 0 !important; font-size: 15px !important; color: var(--ink-soft) !important; }
.callout.warn { border-left-color: #b8730f; background: #fdf6ec; }
.callout.warn svg { color: #b8730f; }

/* phone frame for app screenshots */
.phone {
  position: relative;
  width: 268px;
  border-radius: 40px;
  background: #0e2430;
  padding: 24px 10px 14px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
  flex: none;
}
/* earpiece speaker sits in the top bezel — never over the screen content */
.phone::before {
  content: "";
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.16);
}
.phone img { width: 100%; border-radius: 26px; display: block; }

/* figure: phone + caption side by side */
.shotrow { display: flex; gap: 34px; align-items: center; margin-top: 26px; }
.shotrow.rev { flex-direction: row-reverse; }
.shotrow .shotbody { flex: 1; min-width: 0; }
.shotrow .shotbody h3 { margin-top: 0; }
.shotrow .shotbody p { margin-top: 12px; }
.shotrow figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 720px) {
  .shotrow, .shotrow.rev { flex-direction: column; align-items: stretch; gap: 18px; }
  .phone { align-self: center; }
}

/* gallery strip */
.gallery { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; justify-content: center; }
.gallery figure { margin: 0; }

/* doc card links */
.doc-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
@media (max-width: 700px) { .doc-cards { grid-template-columns: 1fr; } }
.doc-card {
  display: block; border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; background: var(--card); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cfe1e6; }
.doc-card h3 { font-size: 17px; margin: 0; color: var(--ink); }
.doc-card p { margin-top: 8px !important; font-size: 14.5px !important; color: var(--muted) !important; }
