/* ===== KundaliLabs website ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-dark: #0b1120;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6e9ef;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef2ff;
  --radius: 14px;
  --max: 1120px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 12.5px; font-weight: 700; color: var(--brand);
  margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.lead { color: var(--muted); font-size: 19px; max-width: 640px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; padding: 11px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(79, 70, 229, 0.36); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: #cbd5e1; background: var(--bg-soft); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(124, 58, 237, 0.10), transparent 60%),
    radial-gradient(50% 50% at 8% 90%, rgba(79, 70, 229, 0.10), transparent 60%);
}
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; max-width: 860px; }
.hero .lead { margin-top: 22px; font-size: 21px; }
.hero__actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { margin-top: 56px; display: flex; gap: 48px; flex-wrap: wrap; }
.stat__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 14px; }

/* ===== Domain / feature cards ===== */
.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(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); border-color: #dbe0ea; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

.section-head { max-width: 620px; margin-bottom: 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ===== Approach list ===== */
.approach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.approach__item h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.approach__num { color: var(--brand); font-weight: 800; }
.approach__item p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===== Products ===== */
.product {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow 0.18s, border-color 0.18s;
}
.product:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07); border-color: #dbe0ea; }
.product__tag {
  align-self: start; justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.product h3 { font-size: 23px; margin-bottom: 8px; }
.product p { color: var(--muted); margin: 0 0 18px; font-size: 16px; }
.product__link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--brand); }
.product__status { color: var(--muted); font-weight: 600; font-size: 14px; }
.product--link { text-decoration: none; color: var(--ink); }
.product--link h3 { color: var(--ink); }
.product--link:hover { border-color: #c7ccf5; }

/* ===== Product detail (PeriVision) ===== */
.pd-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.pd-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 85% 0%, rgba(124, 58, 237, 0.10), transparent 60%);
}
.pd-hero h1 { font-size: clamp(38px, 6vw, 58px); font-weight: 800; margin-top: 12px; }
.pd-hero .lead { margin-top: 18px; font-size: 20px; }
.pd-hero__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: 15.5px; }
.feature-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand); margin-top: 1px; }

/* ===== Downloads ===== */
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}
.dl-card:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08); border-color: #dbe0ea; transform: translateY(-2px); }
.dl-card__os-icon { width: 44px; height: 44px; margin: 0 auto 14px; color: var(--ink); }
.dl-card__os { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.dl-card__meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 10px; border: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.26); transition: transform 0.18s, box-shadow 0.18s;
}
.dl-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(79, 70, 229, 0.34); color: #fff; }
.dl-btn svg { width: 17px; height: 17px; }
.dl-btn.is-soon {
  background: #eef2ff; color: var(--brand); box-shadow: none; cursor: default;
  border: 1px solid #dfe3f7; pointer-events: none;
}
.dl-note { color: var(--muted); font-size: 14px; margin-top: 22px; text-align: center; }
.dl-note a { font-weight: 600; }
@media (max-width: 860px) { .download-grid { grid-template-columns: 1fr; } }

/* ===== Contact ===== */
.contact-card {
  background: var(--bg-dark); color: #e2e8f0; border-radius: 20px; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.contact-card h2 { color: #fff; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.contact-card p { color: #94a3b8; margin-top: 10px; font-size: 17px; }
.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-details a { color: #a5b4fc; font-weight: 600; }
.contact-details .muted { color: #64748b; font-size: 14px; }

/* ===== WhatsApp ===== */
.contact-details .wa-link { color: #4ade80; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.contact-details .wa-link svg { width: 18px; height: 18px; }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
}
.wa-float:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 860px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.footer__meta { color: var(--muted); font-size: 14px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--muted); font-size: 14px; }
.footer__links a:hover { color: var(--ink); }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .grid--3, .grid--2, .approach { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 20px 24px;
  }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
  .hero__stats { gap: 32px; }
  .contact-card { padding: 40px 28px; }
}
