/* Viveksha Innovations. Navy and gold from the Samvidha palette; dark mode is neutral grey/black. */
:root {
  --bg: #ffffff; --alt: #f5f7fa; --surface: #ffffff; --text: #0b1d35; --muted: #4b5563;
  --line: #e5e7eb; --accent: #8a5a00; --gold: #d6a343; --navy: #061327; --navy2: #0b1d35;
  --radius: 14px; --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px rgb(11 29 53 / .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0e10; --alt: #141416; --surface: #19191c; --text: #f2f2f3; --muted: #a8a8b0;
    --line: #2a2a2f; --accent: #e8c987; --shadow: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }

/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand .mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy2), #1d3a63); color: var(--gold); font-weight: 800; }
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: -3px; }
nav.main { display: flex; gap: .25rem; align-items: center; }
nav.main a { color: var(--text); text-decoration: none; padding: .45rem .8rem; border-radius: 8px; font-size: .95rem; font-weight: 500; }
nav.main a:hover { background: var(--alt); }
nav.main a[aria-current="page"] { color: var(--accent); }
nav.main a.cta { background: var(--navy2); color: #fff; margin-left: .5rem; }
nav.main a.cta:hover { background: var(--navy); }
@media (prefers-color-scheme: dark) { nav.main a.cta { background: #e8c987; color: #0e0e10; } nav.main a.cta:hover { background: var(--gold); } }
details.menu { display: none; }
@media (max-width: 820px) {
  nav.main { display: none; }
  details.menu { display: block; position: relative; }
  details.menu summary { list-style: none; cursor: pointer; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
  details.menu summary::-webkit-details-marker { display: none; }
  details.menu[open] nav.main { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: 2.9rem;
    min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .5rem; box-shadow: var(--shadow); }
  details.menu[open] nav.main a.cta { margin: .3rem 0 0; text-align: center; }
}

/* Sections */
section { padding: 5rem 0; }
section.alt { background: var(--alt); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .6rem; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 1.2rem; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin: 0 0 2rem; }
.head { max-width: 46rem; margin-bottom: 2.5rem; }
.head p { color: var(--muted); margin: 0; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgb(214 163 67 / .22), transparent 60%),
  linear-gradient(160deg, var(--navy) 0%, var(--navy2) 55%, #13294a 100%); color: #f8fafc; padding: 6.5rem 0 6rem; }
.hero .eyebrow { color: #e8c987; }
.hero .lead { color: #cbd5e1; }
.hero h1 span { color: #e8c987; }
.page-hero { padding: 4.5rem 0 3.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { display: inline-flex; align-items: center; gap: .4rem; padding: .8rem 1.4rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.gold { background: #e8c987; color: #0b1d35; }
.btn.gold:hover { background: var(--gold); }
.btn.ghost { border-color: rgb(248 250 252 / .35); color: #f8fafc; }
.btn.ghost:hover { background: rgb(248 250 252 / .08); }
.btn.dark { background: var(--navy2); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.dark { background: #e8c987; color: #0e0e10; } }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card ul { color: var(--muted); margin: .4rem 0 0; padding-left: 1.15rem; }
.product { display: flex; flex-direction: column; gap: .9rem; }
.product .top { display: flex; align-items: center; gap: .9rem; }
.logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--line); }
.mono { width: 56px; height: 56px; border-radius: 14px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
  color: #e8c987; background: linear-gradient(135deg, var(--navy2), #1d3a63); }
.product h3 { margin: 0; }
.product .kind { font-size: .88rem; color: var(--muted); }
.product .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.product .more:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .76rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--alt); color: var(--muted); border: 1px solid var(--line); }
.tag.live { background: #e7f6ec; color: #11633a; border-color: #bfe5cc; }
.tag.dev { background: #fff4e0; color: #7a4a00; border-color: #f3d9a4; }
@media (prefers-color-scheme: dark) { .tag.live { background: #12301f; color: #8be0ad; border-color: #1f4d33; } .tag.dev { background: #33270f; color: #f0c675; border-color: #574115; } }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--alt); color: var(--accent); margin-bottom: 1rem; }
.icon svg { width: 22px; height: 22px; }

/* Product detail rows */
.detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.detail:first-of-type { border-top: 0; }
.detail .top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.detail p { color: var(--muted); }
.detail ul { margin: 0; padding-left: 1.15rem; color: var(--muted); columns: 2; column-gap: 2rem; }
.detail li { break-inside: avoid; margin-bottom: .35rem; }
@media (max-width: 820px) { .detail { grid-template-columns: 1fr; gap: 1rem; } .detail ul { columns: 1; } }

/* Partner band */
.partner { display: grid; grid-template-columns: 160px 1fr; gap: 2rem; align-items: center; }
.partner img { width: 160px; height: 160px; border-radius: 20px; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: .6rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin: 1.2rem 0; }
.stats b { display: block; font-size: 1.7rem; color: var(--text); letter-spacing: -.02em; }
.stats span { font-size: .88rem; color: var(--muted); }
@media (max-width: 640px) { .partner { grid-template-columns: 1fr; } }

/* CTA band and footer */
.band { background: linear-gradient(135deg, var(--navy2), #1d3a63); color: #f8fafc; border-radius: 20px; padding: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { margin: 0 0 .4rem; }
.band p { margin: 0; color: #cbd5e1; }
footer.site { background: var(--navy); color: #cbd5e1; padding: 4rem 0 2rem; font-size: .95rem; }
footer.site a { color: #e2e8f0; text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .cols { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1fr 1fr; }
footer.site h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 .9rem; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
footer.site .legal { border-top: 1px solid rgb(255 255 255 / .1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; color: #94a3b8; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (prefers-color-scheme: dark) { footer.site { background: #08080a; border-top: 1px solid var(--line); } .hero { background: radial-gradient(1200px 500px at 85% -10%, rgb(214 163 67 / .16), transparent 60%), linear-gradient(160deg, #0b0b0d, #141417); } .band { background: linear-gradient(135deg, #1a1a1e, #232328); } }
