/* ADVITEEYA PHARMA — design system. World: the batch line — the company's real equipment
   train (GLR/01 → SSR/02 → CF/01 → TD/01) as the connecting motif, executed premium.
   Palette roles: ink (deep navy fields from logo blue), flame (brand orange, accent+CTA),
   sky (logo blue, structural), paper (neutral ground), glass material over aurora glows. */

:root {
  --ink: #0b1929;
  --ink-2: #12253c;
  --flame: #d84800;
  --flame-bright: #ff7a33;
  --flame-deep: #c04000;
  --sky: #0060a8;
  --sky-bright: #4da3e0;
  --paper: #fafbfc;
  --stone: #eef1f4;
  --stone-line: #dde3e9;
  --text: #16232f;
  --text-soft: #46586a;
  --text-on-ink: #dce8f2;
  --text-on-ink-soft: #93aabf;
  --route-w: 2px;
  --radius: 12px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Archivo", "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "Consolas", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: var(--flame); color: #fff; }
:focus-visible { outline: 3px solid var(--flame-bright); outline-offset: 2px; border-radius: 4px; }
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--stone); }
body::-webkit-scrollbar-thumb { background: var(--sky); border-radius: 6px; border: 2px solid var(--stone); }
body { scrollbar-color: var(--sky) var(--stone); }
img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: var(--flame); }
a:hover { color: var(--ink); text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; text-wrap: balance; letter-spacing: -0.015em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid color-mix(in srgb, var(--stone-line) 80%, transparent);
  box-shadow: 0 8px 28px -20px rgba(11,25,41,0.35); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand-sub { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--sky); text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a { font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--flame); }
.nav a.active { color: var(--flame); text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; border: var(--route-w) solid transparent;
  transition: transform 160ms cubic-bezier(.2,.8,.3,1), box-shadow 160ms cubic-bezier(.2,.8,.3,1), background 160ms; }
.btn-solid { background: linear-gradient(180deg, var(--flame-bright), var(--flame) 35%); color: #fff;
  box-shadow: 0 4px 16px -4px rgba(216,72,0,0.5), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-solid:hover { background: var(--flame-deep); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px -6px rgba(192,64,0,0.6); }
.btn-line { border-color: var(--sky-bright); color: var(--text-on-ink); }
.btn-line:hover { background: rgba(77,163,224,0.14); color: #fff; }
.btn svg { flex: none; }
.nav .btn { padding: 9px 18px; }

/* ---------- Batch-line grammar ---------- */
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border: var(--route-w) solid currentColor; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Glass material ---------- */
.aurora { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.aurora::before, .aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.42; }
.aurora::before { width: 560px; height: 560px; left: -120px; top: -180px;
  background: radial-gradient(circle, rgba(0,96,168,0.6), transparent 65%);
  animation: drift1 16s ease-in-out infinite alternate; }
.aurora::after { width: 620px; height: 620px; right: -160px; bottom: -240px;
  background: radial-gradient(circle, rgba(216,72,0,0.38), transparent 65%);
  animation: drift2 20s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(70px, 40px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-80px, -50px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aurora::before, .aurora::after { animation: none; } }
.glass { background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.035));
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(77,163,224,0.3); border-radius: 16px;
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; padding-bottom: 56px !important; }
.hero-grid { position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background-image: linear-gradient(rgba(77,163,224,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(77,163,224,0.07) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(120% 90% at 30% 20%, #000 30%, transparent 75%); }
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 0; z-index: 1; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); color: #fff; max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--flame-bright); }
.hero-sub { margin-top: 22px; max-width: 58ch; font-size: 1.14rem; color: var(--text-on-ink-soft); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* Batch line diagram */
.route { margin: 56px 0 0; position: relative; padding: 26px 22px 14px; }
.route.glass { border-radius: 18px; }
.route svg { width: 100%; height: auto; display: block; }
.route-line { stroke: var(--sky-bright); stroke-width: 2.5; fill: none; }
.route-line.dashed { stroke-dasharray: 6 8; animation: routeflow 1.4s linear infinite; opacity: 0.9; }
@keyframes routeflow { to { stroke-dashoffset: -14; } }
.route-draw { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: routedraw 2.2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes routedraw { to { stroke-dashoffset: 0; } }
.route-station { opacity: 0; animation: stationon 0.5s cubic-bezier(.2,.8,.3,1) forwards; }
.route-station:nth-of-type(1) { animation-delay: 0.35s; }
.route-station:nth-of-type(2) { animation-delay: 0.85s; }
.route-station:nth-of-type(3) { animation-delay: 1.35s; }
.route-station:nth-of-type(4) { animation-delay: 1.85s; }
@keyframes stationon { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hero-facts { position: relative; display: flex; flex-wrap: nowrap; gap: 0; margin: 42px 0 0; transform: translateY(50%); }
.hero-facts.glass { border-radius: 18px; }
.hero-facts > div { padding: 20px 34px 22px 34px; border-right: 1px solid rgba(77,163,224,0.2); flex: 1 1 auto; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--flame-bright); font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 0.87rem; color: var(--text-on-ink-soft); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink-2); color: var(--sky-bright); overflow: hidden; padding: 13px 0; border-block: 1px solid rgba(77,163,224,0.45); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: tick 40s linear infinite; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; }
.ticker-track span { display: flex; align-items: center; gap: 48px; padding-right: 48px; white-space: nowrap; }
.ticker-track i { font-style: normal; font-weight: 400; color: var(--flame-bright); }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.sec-head { max-width: 62ch; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.sec-head h2 .tag { vertical-align: middle; margin-left: 14px; transform: translateY(-4px); color: var(--sky); }
.sec-head p { margin-top: 16px; color: var(--text-soft); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }
.split p { color: var(--text-soft); margin-bottom: 14px; max-width: 58ch; }
.split ul.plain { margin: 12px 0 0; padding-left: 0; list-style: none; }
.split ul.plain li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--stone-line); }
.split ul.plain li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 12px; border: var(--route-w) solid var(--flame); border-radius: 50%; }

.about-lede { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.95rem); line-height: 1.32; }
.about-lede em { font-style: normal; background: linear-gradient(transparent 62%, #ffd9c2 62%); }

.spec { border: var(--route-w) solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px -18px rgba(11,25,41,0.35); }
.spec-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: var(--route-w) solid var(--ink); background: var(--stone); border-radius: var(--radius) var(--radius) 0 0; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); }
.spec dl { padding: 8px 20px 14px; }
.spec .row { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--stone-line); }
.spec .row:last-child { border-bottom: 0; }
.spec dt { color: var(--text-soft); font-size: 0.95rem; }
.spec dd { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.num-band { background: var(--ink); color: var(--text-on-ink); border-block: 1px solid rgba(77,163,224,0.4); position: relative; overflow: hidden; }
.num-band .wrap { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; padding-top: 44px; padding-bottom: 48px; }
.num-band .wrap > div { background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(77,163,224,0.26); border-radius: 14px; padding: 20px 22px;
  box-shadow: 0 14px 32px -18px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
.num-band strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--flame-bright); font-variant-numeric: tabular-nums; }
.num-band span { font-size: 0.9rem; color: var(--text-on-ink-soft); }

.dark-band { background: var(--ink); color: var(--text-on-ink); position: relative; overflow: hidden; }
.dark-band .sec-head h2 { color: #fff; }
.dark-band .sec-head p { color: var(--text-on-ink-soft); }
.chip-list { display: flex; flex-wrap: wrap; gap: 12px; position: relative; }
.chip-list .tag { color: var(--sky-bright); font-size: 0.8rem; padding: 9px 18px; transition: background 140ms, color 140ms, border-color 140ms; }
.chip-list .tag:hover { background: var(--flame-deep); border-color: var(--flame-deep); color: #fff; }
.band-note { margin-top: 30px; font-size: 0.95rem; color: var(--text-on-ink-soft); max-width: 62ch; position: relative; }

/* Equipment table */
.equip-wrap { overflow-x: auto; border: var(--route-w) solid var(--ink); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px -18px rgba(11,25,41,0.3); }
table.equip { width: 100%; border-collapse: collapse; min-width: 620px; }
table.equip th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; padding: 13px 18px; background: var(--ink); color: var(--sky-bright); }
table.equip td { padding: 12px 18px; border-top: 1px solid var(--stone-line); font-size: 0.96rem; }
table.equip td.id { font-family: var(--font-mono); font-size: 0.84rem; color: var(--flame-deep); font-weight: 500; white-space: nowrap; }
table.equip td.cap { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.equip tr:hover td { background: var(--stone); }

/* Product cards (3 featured molecules) */
.mol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
.mol { border: var(--route-w) solid var(--ink); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 14px 34px -18px rgba(11,25,41,0.3); display: flex; flex-direction: column; transition: transform 160ms cubic-bezier(.2,.8,.3,1), box-shadow 160ms; }
.mol:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -20px rgba(11,25,41,0.4); }
.mol-head { padding: 14px 20px; background: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mol-head .cas { font-family: var(--font-mono); font-size: 0.8rem; color: var(--sky-bright); }
.mol-head .no { font-family: var(--font-mono); font-size: 0.8rem; color: var(--flame-bright); }
.mol-body { padding: 22px 20px 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.mol-body h3 { font-size: 1.3rem; }
.mol-body p { color: var(--text-soft); font-size: 0.96rem; flex: 1; }
.mol-body a { font-weight: 600; font-size: 0.93rem; }

/* Leadership / MD feature */
.md-card { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: start; border-top: var(--route-w) solid var(--ink); padding-top: 28px; max-width: 900px; }
.md-badge { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--ink)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; box-shadow: 0 10px 24px -10px rgba(0,96,168,0.5); }
.md-card h3 { font-size: 1.5rem; }
.md-card .tag { margin: 10px 0 12px; color: var(--sky); }
.md-card p { color: var(--text-soft); max-width: 60ch; }

/* ISO band */
.iso-band { background: var(--stone); border-block: var(--route-w) solid var(--stone-line); }
.iso-band .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.iso-seal { flex: none; width: 108px; height: 108px; border-radius: 50%; border: 3px solid var(--sky); color: var(--sky); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-align: center; background: #fff; box-shadow: 0 10px 26px -12px rgba(0,96,168,0.4); }
.iso-seal strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0; }
.iso-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); max-width: 24ch; }
.iso-band p { color: var(--text-soft); max-width: 56ch; margin-top: 8px; }

/* Contact */
.contact-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.contact-block h3 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; }
.contact-block + .contact-block { margin-top: 30px; }
.contact-block p { color: var(--text); font-size: 1.05rem; }
.contact-block a { color: var(--sky); }
.contact-block a:hover { color: var(--ink); }

/* Page hero */
.page-hero { background: var(--ink); color: var(--text-on-ink); padding: 76px 0 56px; position: relative; overflow: hidden; }
.page-hero .hero-grid { opacity: 0.4; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 22ch; position: relative; }
.page-hero p { margin-top: 16px; color: var(--text-on-ink-soft); max-width: 62ch; font-size: 1.12rem; position: relative; }
.crumbs { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-on-ink-soft); margin-bottom: 22px; position: relative; }
.crumbs a { color: var(--sky-bright); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* CTA + footer */
.cta-band { background: var(--ink); border-top: 1px solid rgba(77,163,224,0.4); padding: 56px 0; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.foot-main { background: var(--ink); color: var(--text-on-ink); padding: 64px 0 0; }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.foot-cols h4 { font-family: var(--font-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-bright); margin-bottom: 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 9px; }
.foot-cols a { color: var(--text-on-ink); text-decoration: none; font-size: 0.97rem; }
.foot-cols a:hover { color: var(--flame-bright); text-decoration: underline; text-decoration-color: var(--flame); }
.foot-cols p { color: var(--text-on-ink-soft); font-size: 0.95rem; max-width: 34ch; }
.foot-brand img { height: 40px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.foot-legal { border-top: 1px solid rgba(77,163,224,0.3); padding: 22px 0 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.84rem; color: var(--text-on-ink-soft); }
.foot-legal a { color: var(--text-on-ink-soft); }

/* Reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s cubic-bezier(.2,.8,.3,1), transform 0.6s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-cols { grid-template-columns: 1fr; gap: 40px; }
  section { padding: 68px 0; }
  .md-card { grid-template-columns: 1fr; gap: 18px; }
  .hero { padding-bottom: 40px !important; }
  .hero-facts { transform: none; margin: 36px 0 0; }
  .hero-facts > div { padding: 14px 20px 16px; border-right: 0; }
}
@media (max-width: 800px) {
  .brand-sub { display: none; }
  .site-head { position: static; }
  .site-head .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 12px; row-gap: 2px; }
  .nav { width: 100%; margin-left: 0; gap: 16px; flex-wrap: wrap; }
  html { scroll-padding-top: 20px; }
}
@media (max-width: 640px) {
  .hero .wrap { padding-top: 56px; }
  .aurora::before, .aurora::after { animation: none; }
}
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
