/* ─────────────────────────────────────────────
   Visha Polymers — brand tokens (from logo)
   ───────────────────────────────────────────── */
:root {
  --navy: #0A2A5C;
  --navy-900: #061a3a;
  --navy-800: #0c2450;
  --sky: #1BA0E2;
  --sky-soft: #e6f5fd;
  --ink: #0B1424;
  --text: #3a4559;
  --muted: #8a94a6;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-tint: #f4f7fb;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 42, 92, .04), 0 12px 40px -12px rgba(10, 42, 92, .18);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); margin: 0; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.accent { color: var(--sky); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); margin-bottom: 20px;
}
.eyebrow--light { color: #7cc8f0; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 4px var(--sky-soft); }

.lead { font-size: 1.15rem; max-width: 34em; margin-top: 24px; }
.lead--light { color: rgba(255,255,255,.72); }
.lead strong { color: var(--ink); font-weight: 600; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 24px -8px rgba(10,42,92,.55); }
.btn--primary:hover { background: var(--sky); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(27,160,226,.6); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ───────── Nav ───────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand img { height: 31px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) { font-size: .95rem; font-weight: 500; color: var(--text); position: relative; }
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */
.hero {
  position: relative; padding: 72px 0 40px;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(27,160,226,.12), transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.hero::before { /* subtle engineering grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 30% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000 10%, transparent 75%);
  opacity: .55;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__visual { position: relative; aspect-ratio: 1 / 1.05; }
.pellets {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 80% 0%, rgba(27,160,226,.55), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  box-shadow: var(--shadow);
}
.pellets__mark {
  position: absolute; width: 62%; left: 19%; top: 24%;
  filter: brightness(0) invert(1); opacity: .1;
}
.pellets i {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: calc(var(--s) * .82);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff 0%, #cfeaf9 18%, var(--sky) 60%, #0e6fa6 100%);
  box-shadow: inset -4px -6px 12px rgba(0,0,0,.25), 0 10px 24px rgba(0,0,0,.25);
  animation: float 7s ease-in-out infinite; animation-delay: var(--d);
}
.pellets i:nth-child(3n) { background: radial-gradient(circle at 32% 28%, #fff 0%, #e8edf5 30%, #a9b6cb 100%); }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(14deg); } }

.chip {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.6);
}
.chip b { font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.chip span { font-size: .82rem; color: var(--muted); }
.chip--a { left: -28px; bottom: 18%; }
.chip--b { right: -20px; top: 10%; }

.ticker {
  position: relative; list-style: none; padding: 26px 0 0; margin: 64px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 500; color: var(--muted); font-size: .95rem;
}
.ticker li { display: flex; align-items: center; gap: 28px; }
.ticker li:not(:last-child)::after { content: ""; width: 5px; height: 5px; background: var(--sky); transform: rotate(45deg); }

/* ───────── Sections ───────── */
.section { padding: 120px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; position: relative; overflow: hidden; }
.section--dark h2 { color: #fff; }
.section--dark::after {
  content: ""; position: absolute; right: -10%; bottom: -40%; width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(27,160,226,.35), transparent 65%); pointer-events: none;
}
.section__head { margin-bottom: 56px; max-width: 760px; }

/* Bento material cards */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.code {
  font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--navy) 30%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tag { font-size: .75rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--sky-soft); color: #0b6ea3; white-space: nowrap; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: .98rem; }
.uses { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { font-size: .8rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }

/* Split (reprocessed) */
.split { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li {
  display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .3s, border-color .3s;
}
.points li:hover { background: rgba(27,160,226,.12); border-color: rgba(27,160,226,.4); }
.points b { font-family: var(--font-display); font-size: 1.1rem; color: #fff; }
.points span { color: rgba(255,255,255,.65); font-size: .95rem; }

/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 4px 0; border-top: 2px solid var(--ink); }
.feature__n { font-family: var(--font-display); font-weight: 600; color: var(--sky); font-size: .9rem; display: block; margin-bottom: 28px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: .96rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; }
.steps li span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; margin-bottom: 28px;
}
.steps li:last-child span { background: var(--sky); }
.steps h3 { margin-bottom: 8px; }
.steps p { font-size: .95rem; }

/* Industries */
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.pills li {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 2vw, 1.35rem); color: var(--ink);
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--line);
  transition: background .25s, color .25s, border-color .25s;
}
.pills li:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px;
  border-radius: 32px; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 0% 100%, rgba(27,160,226,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.contact h2 { color: #fff; }
.contact__info { position: relative; }
.contact__mark { position: absolute; right: 0; top: -10px; width: 120px; filter: brightness(0) invert(1); opacity: .08; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.contact__list li { display: grid; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__list .label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #7cc8f0; font-weight: 600; }
.contact__list a { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: #fff; word-break: break-word; }
.contact__list a:hover { color: var(--sky); }

.quote { background: #fff; color: var(--text); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; align-content: start; }
.quote h3 { font-size: 1.5rem; margin-bottom: 4px; }
.quote .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote label { display: grid; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.quote input, .quote select, .quote textarea {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-tint);
  transition: border-color .2s, box-shadow .2s, background .2s; width: 100%;
}
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--sky); background: #fff; box-shadow: 0 0 0 4px var(--sky-soft); }
.quote textarea { resize: vertical; }
.fine { font-size: .78rem; color: var(--muted); text-align: center; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; font-size: .9rem; color: var(--muted); }
.footer__inner img { height: 28px; width: auto; }
.footer__copy { text-align: right; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pellets i { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  .hero__grid, .split, .contact { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; width: 100%; margin: 0 auto; }
  .bento { grid-template-columns: 1fr 1fr; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .split { gap: 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }
  .nav__brand img { height: 26px; }
  .hero { padding-top: 48px; }
  .chip--a { left: 8px; bottom: 8%; }
  .chip--b { right: 8px; top: 6%; }
  .bento, .features, .steps, .quote .row { grid-template-columns: 1fr; }
  .contact { padding: 28px 20px; border-radius: 24px; }
  .quote { padding: 24px 18px; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__copy { text-align: left; }
}
