/*
 * dhivi.in — the company site of Dhivi iTechnologies (owner, 2026-10-31). Plain HTML and this one stylesheet, served as
 * static files by Cloudflare Pages: nothing to build.
 *
 * The colours are the logo's: a deep navy, a bright blue, and the teal-to-green of its "d". Light only, on purpose: the
 * logo is drawn on white, and the product site (dhivi.app) is light as well, so the two read as one family.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans-latin.woff2") format("woff2-variations"), url("/assets/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B1433;
  --ink2: #3A4566;
  --muted: #5E6888;
  --line: #E2E8F4;
  --soft: #F4F7FD;
  --navy: #0A2C82;
  --blue: #1462E6;
  --sky: #1E8CFF;
  --teal: #16BFB4;
  --green: #3FD48A;
  --tint: #E9F1FF;
  --brand: linear-gradient(135deg, #16BFB4 0%, #1E8CFF 52%, #0A3BAE 100%);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* height: auto, because every img carries width and height attributes (so the page does not jump as they load), and
   without it the attribute's height stays while CSS narrows the width. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--brand); }
.section { padding: 96px 0; }
.section.soft { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: 40px; line-height: 1.1; }
.section-head p { font-size: 18px; color: var(--ink2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; font: inherit; font-weight: 800; font-size: 15.5px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn.p { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -14px rgba(20, 98, 230, .8); }
.btn.p:hover { background: var(--navy); color: #fff; }
.btn.s { background: #fff; color: var(--ink); border: 1px solid #CDD7EA; }
.btn.s:hover { border-color: var(--ink2); color: var(--ink); }
.btn.sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 88px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 64px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink2); font-weight: 700; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--ink); }
.grow { flex: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 140, 255, .16), rgba(22, 191, 180, .08) 60%, transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -.035em; margin-top: 18px; }
.hero h1 .grad { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { margin-top: 22px; font-size: 19px; line-height: 1.65; color: var(--ink2); max-width: 56ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts svg { color: var(--teal); flex: 0 0 auto; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%; }
.hero-art .disc { position: absolute; inset: 8%; border-radius: 36%; background: #fff; box-shadow: 0 40px 80px -40px rgba(10, 44, 130, .45), inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.hero-art .disc img { width: 58%; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 16px 34px -18px rgba(11, 20, 51, .35), inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.chip.c1 { top: 4%; left: -2%; }
.chip.c2 { top: 46%; right: -4%; }
.chip.c2 i { background: var(--sky); }
.chip.c3 { bottom: 4%; left: 6%; }
.chip.c3 i { background: var(--teal); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about-text { display: flex; flex-direction: column; gap: 16px; font-size: 17.5px; color: var(--ink2); line-height: 1.7; }
.values { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.values li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.values b { display: block; font-size: 16.5px; margin-bottom: 2px; }
.values span { color: var(--muted); font-size: 15px; }
.ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }

/* What we do */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill { padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.skill:hover { border-color: #BFD3F7; transform: translateY(-2px); }
.skill h3 { font-size: 17px; letter-spacing: -.01em; }
.skill p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.product.lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; padding: 32px; background: linear-gradient(180deg, #fff, var(--soft)); border-color: #C9DAF8; }
.product-top { display: flex; align-items: center; gap: 12px; }
.product-top .ic { background: var(--brand); color: #fff; }
.product h3 { font-size: 22px; }
.product.lead h3 { font-size: 30px; }
.tag { margin-left: auto; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.tag.live { background: #E3F8EE; color: #0E7A45; }
.tag.soon { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.product p { color: var(--ink2); font-size: 16px; line-height: 1.65; }
.product ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.product li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; color: var(--ink2); font-size: 15px; }
.product li svg { color: var(--teal); margin-top: 3px; }
.product .go { margin-top: auto; align-self: flex-start; }
.product.lead .go { margin-top: 8px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding: 44px; border-radius: 28px; background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(22, 191, 180, .45), transparent); }
.contact h2 { font-size: 36px; }
.contact p { margin-top: 12px; color: #C6D2F0; font-size: 17px; }
.contact-card { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.contact-card a.mail { color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; word-break: break-all; }
.contact-card a.mail:hover { text-decoration: underline; }
.contact-card span { color: #C6D2F0; font-size: 14.5px; }
.contact-card .btn { background: #fff; color: var(--navy); }
.contact-card .btn:hover { background: var(--tint); color: var(--navy); }

/* Footer */
.ftr { padding: 44px 0 36px; border-top: 1px solid var(--line); }
.ftr-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.ftr-in img { height: 52px; width: auto; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ftr nav a { color: var(--ink2); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ftr nav a:hover { color: var(--ink); }
.ftr-base { margin-top: 22px; color: var(--muted); font-size: 13.5px; }

/* Not found */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.notfound h1 { font-size: 40px; margin: 12px 0; }
.notfound p { color: var(--ink2); font-size: 17px; }

@media (max-width: 1020px) {
  .hero-in, .about, .contact, .product.lead { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 360px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hdr-in { height: 72px; gap: 12px; }
  .logo img { height: 50px; }
  .hero { padding: 48px 0 64px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 17px; }
  .hero-art { max-width: 300px; }
  .chip { font-size: 12.5px; padding: 8px 11px; }
  .chip.c2 { right: 0; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 30px; }
  .skills, .products { grid-template-columns: 1fr; }
  .product, .product.lead { padding: 22px; }
  .product.lead h3 { font-size: 24px; }
  .contact { padding: 28px 22px; border-radius: 22px; }
  .contact h2 { font-size: 28px; }
  .ctas .btn { flex: 1 1 auto; }
}

/* AI, built in (owner, 2026-10-31: "AI enabled … is our key feature"). The one dark band on the page, so it reads as the
   headline feature; each card says honestly whether it is rolling out or coming soon. */
.section.ai { background: radial-gradient(900px 420px at 85% 0%, rgba(22, 191, 180, .22), transparent 60%), radial-gradient(700px 380px at 0% 100%, rgba(30, 140, 255, .25), transparent 60%), #071A55; color: #fff; }
.section.ai .eyebrow { color: #9FE6D9; }
.section.ai .section-head p { color: #C3CEEE; }
.ai-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.ai-card.lead { grid-column: 1 / -1; background: linear-gradient(160deg, rgba(22, 191, 180, .22), rgba(30, 140, 255, .14) 55%, rgba(255, 255, 255, .05)); border-color: rgba(159, 230, 217, .4); }
.ai-card h3 { font-size: 19px; }
.ai-card.lead h3 { font-size: 26px; }
.ai-card p { color: #C9D4F2; font-size: 15.5px; line-height: 1.65; }
.ai-card.lead p { font-size: 17px; max-width: 78ch; }
.ai-top { display: flex; align-items: center; justify-content: space-between; }
.ai-card .ic { background: rgba(255, 255, 255, .12); color: #9FE6D9; }
.ai-card .tag.soon { background: rgba(255, 255, 255, .08); color: #C9D4F2; border-color: rgba(255, 255, 255, .18); }
.tag.roll { background: rgba(63, 212, 138, .18); color: #7DF0B4; border: 1px solid rgba(63, 212, 138, .35); }
@media (max-width: 1020px) {
  .ai-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card.lead h3 { font-size: 22px; }
}
