/* ==========================================================
   Anand Plastic Store — Engineering blueprint design system
   Font: Geist (UI) + Geist Mono (specs, data, drawing labels)
   Spacing: 2 4 8 12 16 24 32 40 48 64 80 96
   ========================================================== */

:root {
  --paper: #F6F7F4;
  --paper-2: #EDF0EB;
  --white: #FFFFFF;
  --ink: #0D1B2A;
  --ink-2: #33445A;
  --muted: #5E6B7D;
  --line: #D3D9E0;
  --line-2: #E3E7EB;
  --blue: #1D4ED8;
  --blue-soft: #E4EBFD;
  --orange: #E8590C;
  --orange-soft: #FDEBDF;
  --green: #15803D;
  --red: #B42318;
  --dark: #181818;
  --dark-2: #272727;
  --dark-3: #313131;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --grid-minor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%230D1B2A' stroke-opacity='0.045' stroke-width='1'/%3E%3C/svg%3E");
  --grid-major: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M160 0H0V160' fill='none' stroke='%230D1B2A' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grid-major), var(--grid-minor);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transition: top 400ms var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.mono { font-family: var(--mono); }

/* ---------- Type helpers (Tailwind scale) ---------- */
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; line-height: 16px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

.h-section { font-size: 36px; line-height: 40px; max-width: 680px; }
.lead { font-size: 18px; line-height: 28px; color: var(--ink-2); max-width: 640px; }
@media (max-width: 640px) {
  .h-section { font-size: 30px; line-height: 36px; }
  .lead { font-size: 16px; line-height: 24px; }
}
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
.section-head.center { justify-items: center; text-align: center; }
.section-head.center .lead, .section-head.center .h-section { margin-inline: auto; }

.section { padding: 96px 0; position: relative; }
@media (max-width: 640px) { .section { padding: 64px 0; } }
.section.tint { background: var(--white); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 8px; border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 500ms var(--ease), background-color 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.btn i { font-size: 18px; transition: transform 500ms var(--ease); }
.btn:hover i.ph-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-lg { padding: 12px 16px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(29, 78, 216, 0.55); }
.btn-primary:active { transform: translateY(1px) scale(0.98); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-soft); transform: translateY(-2px); }
.btn-sm { font-size: 14px; line-height: 20px; padding: 8px 12px; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: border-color 500ms var(--ease), color 500ms var(--ease);
}
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }
.link-arrow i { transition: transform 500ms var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Fluid island nav ---------- */
.nav-wrap { position: fixed; inset: 0 0 auto 0; z-index: 100; display: flex; justify-content: center; padding: 24px 16px 0; pointer-events: none; }
.nav {
  pointer-events: auto; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(13, 27, 42, 0.08);
  box-shadow: 0 8px 32px -12px rgba(13, 27, 42, 0.18);
  transition: box-shadow 700ms var(--ease), background-color 700ms var(--ease);
}
.nav.scrolled { background: rgba(255, 255, 255, 0.88); box-shadow: 0 12px 40px -12px rgba(13, 27, 42, 0.28); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 24px; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; transition: transform 900ms var(--ease); }
.brand:hover svg { transform: rotate(60deg); }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--muted); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; display: block; padding: 8px 12px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}
.nav-links a:hover { background: rgba(13, 27, 42, 0.06); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .btn { border-radius: 9999px; }

.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--ink); cursor: pointer; z-index: 2; }
.burger span { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform 700ms var(--ease), top 700ms var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center;
  padding: 96px 24px 48px; background: rgba(246, 247, 244, 0.8);
  -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px);
  opacity: 0; visibility: hidden; transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease), visibility 0s; }
.menu-overlay ul { display: grid; gap: 8px; }
.menu-overlay li { overflow: hidden; }
.menu-overlay a.m-link {
  display: flex; align-items: baseline; gap: 16px; text-decoration: none; font-size: 36px; line-height: 40px; font-weight: 600; padding: 8px 0;
  transform: translateY(48px); opacity: 0; transition: transform 900ms var(--ease), opacity 900ms var(--ease), color 500ms var(--ease);
}
.menu-overlay a.m-link span { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); font-weight: 400; }
.menu-overlay a.m-link[aria-current="page"] { color: var(--blue); }
.menu-open .menu-overlay a.m-link { transform: translateY(0); opacity: 1; }
.menu-overlay li:nth-child(1) a { transition-delay: 100ms; }
.menu-overlay li:nth-child(2) a { transition-delay: 150ms; }
.menu-overlay li:nth-child(3) a { transition-delay: 200ms; }
.menu-overlay li:nth-child(4) a { transition-delay: 250ms; }
.menu-overlay li:nth-child(5) a { transition-delay: 300ms; }
.menu-overlay .m-foot { margin-top: 48px; display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--ink-2);
  opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease) 350ms, transform 900ms var(--ease) 350ms; }
.menu-open .menu-overlay .m-foot { opacity: 1; transform: none; }
.menu-overlay .m-foot a { text-decoration: none; }

body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: 60px; line-height: 1; max-width: 680px; letter-spacing: -0.025em;
  background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.hero .eyebrow { margin-bottom: 24px; }
.proof { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 24px; }
.proof div { display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.proof b { font-family: var(--mono); font-size: 20px; line-height: 28px; font-weight: 500; }
.proof span { font-size: 12px; line-height: 16px; color: var(--muted); }
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 640px) {
  .hero { padding: 128px 0 64px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .hero .sub { font-size: 16px; line-height: 24px; }
  .hero h1 br { display: none; }
}

.page-hero { padding: 160px 0 64px; }
.page-hero h1 {
  font-size: 60px; line-height: 1; max-width: 680px; letter-spacing: -0.025em;
  background: linear-gradient(90deg, #000000, #666666); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .sub { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 28px; color: var(--ink-2); }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 1024px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero h1 { font-size: 48px; } }
@media (max-width: 640px) {
  .page-hero { padding: 128px 0 48px; }
  .page-hero h1 { font-size: 36px; line-height: 40px; }
  .page-hero .sub { font-size: 16px; line-height: 24px; }
  .page-hero h1 br { display: none; }
}

/* ---------- Drawing frame (blueprint sheet) ---------- */
.sheet {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  box-shadow: 0 24px 64px -32px rgba(13, 27, 42, 0.25);
}
.sheet::before, .sheet::after {
  content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--ink); pointer-events: none;
}
.sheet::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sheet::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.sheet-meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); padding: 0 8px 8px; }
.sheet svg { width: 100%; height: auto; }
.coords { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--blue); }

/* SVG drawing primitives */
.stroke { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stroke-thin { fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; }
.stroke-blue { fill: none; stroke: var(--blue); stroke-width: 1; stroke-linecap: round; }
.stroke-orange { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linecap: round; }
.hatch-line { stroke: var(--ink); stroke-opacity: 0.18; stroke-width: 1; }
.dim { fill: none; stroke: var(--blue); stroke-width: 1; }
.svg-label { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); letter-spacing: 0.04em; }
.svg-label.blue { fill: var(--blue); }
.svg-label.orange { fill: var(--orange); }
.svg-label.lg { font-size: 12px; }
.svg-title { font-family: var(--font); font-size: 12px; font-weight: 600; fill: var(--ink); }

/* Line drawing on view */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1800ms var(--ease); transition-delay: var(--d, 0ms); }
.in .draw, .draw.in { stroke-dashoffset: 0; }
.fade-svg { opacity: 0; transition: opacity 900ms var(--ease); transition-delay: var(--d, 0ms); }
.in .fade-svg { opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(64px); filter: blur(12px); transition: opacity 1000ms var(--ease), transform 1000ms var(--ease), filter 1000ms var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; }
  .draw { stroke-dashoffset: 0; }
  .fade-svg { opacity: 1; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Dimension stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.stat { position: relative; padding: 32px 24px 24px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat .dimline { position: relative; height: 12px; margin-bottom: 16px; }
.stat .dimline::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease) var(--d, 0ms); }
.stat .dimline::after { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.stat.in .dimline::before { transform: scaleX(1); }
.stat .num { font-family: var(--mono); font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.stat .num sup { font-size: 24px; color: var(--orange); vertical-align: top; }
.stat .lbl { margin-top: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 480px) { .stat .num { font-size: 36px; } .stat { padding: 24px 16px 16px; } }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 24px; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) { .cards.c4 { grid-template-columns: repeat(2, 1fr); } .cards.c3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.c4, .cards.c3, .cards.c2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 700ms var(--ease), border-color 700ms var(--ease), box-shadow 700ms var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 48px -24px rgba(13, 27, 42, 0.25); }
.card h3 { font-size: 20px; line-height: 28px; }
.card p { color: var(--muted); font-size: 14px; line-height: 20px; }
.card .tag { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.card .icon-box {
  width: 48px; height: 48px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2);
  font-size: 24px; color: var(--ink); transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.card:hover .icon-box { background: var(--ink); color: #fff; }
.card .mini-svg { height: 120px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line-2); overflow: hidden; }
.card .mini-svg svg { width: 100%; height: 100%; }
.card .card-link { margin-top: auto; padding-top: 8px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.flip > :first-child { order: 0; } }
.checklist { display: grid; gap: 12px; margin-top: 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 24px; }
.checklist li i { flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 4px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 14px; }
.checklist li b { font-weight: 600; }
.checklist li span { color: var(--muted); }

/* Annotated photo */
.annotated { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 4 / 3; }
.annotated img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05); transition: transform 1600ms var(--ease), filter 1000ms var(--ease); }
.annotated:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.05); }
.annotated .overlay { position: absolute; inset: 0; pointer-events: none; }
.annotated .overlay svg { width: 100%; height: 100%; }
.callout {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms);
}
.callout::before { content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--orange); box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.2); animation: ping 2.4s var(--ease) infinite; }
.in .callout { opacity: 1; transform: none; }
@keyframes ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(232, 89, 12, 0); } }

/* ---------- Material explorer ---------- */
.explorer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--white); overflow: hidden; }
.explorer-tabs { grid-column: 1 / -1; display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.explorer-tabs::-webkit-scrollbar { display: none; }
.explorer-tabs button {
  flex: none; border: 1px solid transparent; background: transparent; padding: 8px 12px; border-radius: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--muted);
  transition: background-color 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease);
}
.explorer-tabs button:hover { background: var(--paper); color: var(--ink); }
.explorer-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.explorer-stage { position: relative; padding: 24px; border-right: 1px solid var(--line-2); background: var(--paper); min-height: 320px; display: flex; flex-direction: column; }
.explorer-stage svg { width: 100%; height: auto; flex: 1; }
.explorer-stage .stage-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); }
.explorer-info { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.explorer-info h3 { font-size: 24px; line-height: 32px; }
.explorer-info .code { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--blue); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.spec th, .spec td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec th { font-weight: 500; color: var(--muted); width: 45%; }
.spec td { font-family: var(--mono); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 9999px; border: 1px solid var(--line); background: var(--paper); }
.explorer-info .note { font-size: 12px; line-height: 16px; color: var(--muted); margin-top: auto; }
.bond { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bond.side { stroke: var(--blue); }
.bond.hetero { stroke: var(--orange); }
.atom-label { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.atom-dot { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; }
@media (max-width: 900px) { .explorer { grid-template-columns: 1fr; } .explorer-stage { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 240px; } .explorer-info { padding: 24px; } }

/* ---------- Tagline reveal ---------- */
.tagline { padding: 128px 0; }
.tagline p { font-size: 60px; line-height: 1; font-weight: 600; letter-spacing: -0.025em; max-width: 900px; }
.tagline .w { color: rgba(13, 27, 42, 0.28); transition: color 700ms var(--ease); }
.tagline .w.on { color: var(--ink); }
.tagline .w.hl.on { color: var(--blue); }
.tagline .by { margin-top: 32px; font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--muted); }
@media (max-width: 1024px) { .tagline p { font-size: 48px; } }
@media (max-width: 640px) { .tagline { padding: 80px 0; } .tagline p { font-size: 36px; line-height: 40px; } }

/* ---------- Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps-line { position: absolute; left: 0; right: 0; top: 28px; height: 2px; pointer-events: none; }
.steps-line svg { width: 100%; height: 2px; overflow: visible; }
.step { position: relative; display: grid; gap: 12px; }
.step .no {
  width: 56px; height: 56px; border-radius: 9999px; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--white); border: 1px solid var(--ink); font-family: var(--mono); font-size: 18px; line-height: 28px;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.step:hover .no { background: var(--ink); color: #fff; }
.step h3 { font-size: 20px; line-height: 28px; margin-top: 8px; }
.step p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 40px; } .steps-line { display: none; } }

/* ---------- Network map ---------- */
.network { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.network .sheet svg { aspect-ratio: 1 / 1; }
.route { fill: none; stroke: var(--blue); stroke-width: 1.25; stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.city-dot { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; transition: fill 400ms var(--ease); }
.city:hover .city-dot { fill: var(--orange); }
.city text { font-family: var(--mono); font-size: 10px; fill: var(--ink-2); }
.hub-ring { fill: none; stroke: var(--orange); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: pulse 2.8s var(--ease) infinite; }
.hub-ring.r2 { animation-delay: 1.4s; }
@keyframes pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(3); opacity: 0; } }
@media (max-width: 960px) { .network { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */
.industry { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; border: 1px solid var(--line); background: var(--dark); color: #fff; }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; filter: grayscale(0.4); transition: transform 1600ms var(--ease), opacity 900ms var(--ease), filter 900ms var(--ease); }
.industry:hover img { transform: scale(1.06); opacity: 0.85; filter: grayscale(0); }
.industry .cap { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px; border-radius: 8px; background: rgba(24, 24, 24, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.industry .cap h3 { font-size: 18px; line-height: 28px; }
.industry .cap p { font-size: 14px; line-height: 20px; color: #C9CED6; margin-top: 4px; }
.industry .idx { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 8px; border-radius: 4px; background: rgba(24, 24, 24, 0.7); }
@media (max-width: 640px) { .industry { aspect-ratio: 4 / 3; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color 500ms var(--ease); }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-weight: 600; font-size: 16px; line-height: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; position: relative; width: 16px; height: 16px; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 600ms var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .ans { padding: 0 24px 24px; color: var(--ink-2); }
@media (max-width: 960px) { .faq { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; background: var(--dark); color: #fff; padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta-band .bg-grid { position: absolute; inset: 0; opacity: 0.12; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.cta-band h2 { position: relative; font-size: 48px; line-height: 1; letter-spacing: -0.02em; background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { position: relative; margin-top: 16px; color: #B8BEC7; font-size: 18px; line-height: 28px; }
.cta-band .cta-side { position: relative; display: grid; gap: 16px; justify-items: start; }
.cta-band .cta-contact { display: grid; gap: 8px; font-family: var(--mono); font-size: 14px; line-height: 20px; color: #C9CED6; }
.cta-band .cta-contact a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; transition: color 400ms var(--ease); }
.cta-band .cta-contact a:hover { color: #fff; }
.cta-band .risk { font-size: 14px; line-height: 20px; color: #9BA3AE; display: flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .cta-band { grid-template-columns: 1fr; padding: 40px 24px; } .cta-band h2 { font-size: 36px; line-height: 40px; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #C9CED6; margin-top: 96px; padding: 80px 0 32px; }
.footer.flush { margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px; }
.footer .brand { color: #fff; }
.footer .brand small { color: #8A929D; }
.footer h4 { color: #fff; font-size: 14px; line-height: 20px; margin-bottom: 16px; font-family: var(--mono); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.footer ul { display: grid; gap: 8px; }
.footer a { text-decoration: none; font-size: 14px; line-height: 20px; transition: color 400ms var(--ease); }
.footer a:hover { color: #fff; }
.footer .f-about { font-size: 14px; line-height: 20px; margin-top: 16px; max-width: 320px; }
.footer .reg { display: grid; gap: 4px; margin-top: 16px; font-family: var(--mono); font-size: 12px; line-height: 16px; color: #8A929D; }
.footer .f-contact li { display: flex; gap: 12px; font-size: 14px; line-height: 20px; }
.footer .f-contact i { flex: none; font-size: 18px; color: #fff; margin-top: 2px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--dark-3); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: #8A929D; font-family: var(--mono); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .footer { padding-top: 64px; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; line-height: 20px; font-weight: 500; }
.field label .opt { color: var(--muted); font-weight: 400; }
.input {
  width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-size: 16px; line-height: 24px; transition: border-color 500ms var(--ease), box-shadow 500ms var(--ease);
}
.input:hover { border-color: #AEB7C2; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
textarea.input { min-height: 136px; resize: vertical; }
select.input { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath d='M48 96l80 80 80-80' fill='none' stroke='%230D1B2A' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.field.invalid .input { border-color: var(--red); }
.field.invalid .input:focus { box-shadow: 0 0 0 4px #FDE4E2; }
.err { display: none; font-size: 12px; line-height: 16px; color: var(--red); align-items: center; gap: 4px; }
.field.invalid .err { display: flex; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; display: grid; place-items: center; font-size: 20px; color: var(--muted); transition: background-color 400ms var(--ease), color 400ms var(--ease); }
.pw-toggle:hover { background: var(--paper); color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.form-status { display: none; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 20px; }
.form-status.show { display: flex; }
.form-status.ok { background: #E7F5EC; color: #0F5A2B; border: 1px solid #BFE3CB; }
.form-status.info { background: var(--blue-soft); color: #1E3A8A; border: 1px solid #C6D4FA; }
.form-status i { font-size: 20px; flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
@media (max-width: 640px) { .panel { padding: 24px; } }
.panel h2 { font-size: 24px; line-height: 32px; }
.info-list { display: grid; gap: 24px; margin-top: 24px; }
.info-list li { display: flex; gap: 16px; }
.info-list .ib { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line-2); font-size: 20px; }
.info-list .k { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.info-list .v { font-size: 16px; line-height: 24px; margin-top: 2px; word-break: break-word; }
.info-list a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 400ms var(--ease), color 400ms var(--ease); }
.info-list a:hover { color: var(--blue); border-color: var(--blue); }
.map-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); aspect-ratio: 16 / 7; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); }
@media (max-width: 640px) { .map-frame { aspect-ratio: 4 / 3; } }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.hours td:last-child { text-align: right; font-family: var(--mono); }
.hours tr.today td { color: var(--blue); font-weight: 600; }

/* ---------- Legal ---------- */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; }
.legal nav { position: sticky; top: 112px; display: grid; gap: 4px; }
.legal nav a { font-size: 14px; line-height: 20px; text-decoration: none; color: var(--muted); padding: 4px 12px; border-radius: 6px; border: 1px solid transparent; transition: color 400ms var(--ease), background-color 400ms var(--ease); }
.legal nav a:hover { color: var(--ink); background: var(--white); }
.legal nav a.active { color: var(--ink); background: var(--white); border-color: var(--line); }
.legal article { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 48px; max-width: 760px; }
.legal article section { scroll-margin-top: 112px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.legal article section:last-child { border-bottom: 0; }
.legal article h2 { font-size: 20px; line-height: 28px; display: flex; gap: 12px; align-items: baseline; }
.legal article h2 span { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--blue); font-weight: 400; }
.legal article h3 { font-size: 16px; line-height: 24px; margin-top: 16px; }
.legal article p, .legal article li { color: var(--ink-2); margin-top: 12px; }
.legal article ul { padding-left: 16px; list-style: disc; }
.legal article li { margin-top: 8px; }
.legal .intro { font-size: 18px; line-height: 28px; color: var(--ink); padding-bottom: 24px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal nav { display: none; } .legal article { padding: 24px; } }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; background: var(--dark); color: #fff; padding: 128px 48px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden; }
.auth-art .bg-grid { position: absolute; inset: 0; opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M32 0H0V32' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.auth-art > * { position: relative; }
.auth-art h2 { font-size: 36px; line-height: 40px; max-width: 480px; background: linear-gradient(90deg, #FFFFFF, #9B9B9B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { color: #B8BEC7; max-width: 440px; margin-top: 16px; }
.auth-art svg { max-width: 420px; }
.auth-art .stroke, .auth-art .stroke-thin { stroke: #fff; }
.auth-art .svg-label { fill: #B8BEC7; }
.auth-main { padding: 128px 48px 64px; display: flex; align-items: center; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 30px; line-height: 36px; }
.auth-card .sub { color: var(--muted); margin-top: 8px; }
.auth-card form { margin-top: 32px; }
.auth-card .alt { margin-top: 24px; font-size: 14px; line-height: 20px; color: var(--muted); }
.auth-card .alt a { color: var(--ink); font-weight: 600; }
@media (max-width: 960px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-main { padding: 128px 16px 64px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 96px); opacity: 0; display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-radius: 9999px; background: var(--ink); color: #fff; font-size: 14px; line-height: 20px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.4); transition: transform 800ms var(--ease), opacity 800ms var(--ease); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Misc animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }
@keyframes drop { 0% { transform: translateY(-24px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(var(--fall, 110px)); opacity: 0; } }
@keyframes slide-x { to { transform: translateX(-24px); } }
@keyframes heat { 0%, 100% { fill-opacity: 0.15; } 50% { fill-opacity: 0.6; } }
@keyframes extrude { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -32; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 6s linear infinite; }
.spin-rev { transform-box: fill-box; transform-origin: center; animation: spin-rev 6s linear infinite; }
.pellet { animation: drop 2.6s var(--ease) infinite; }
.heater { fill: var(--orange); animation: heat 3s ease-in-out infinite; }
.screw-flights { animation: slide-x 0.9s linear infinite; }
.extrudate { stroke-dasharray: 10 6; animation: extrude 0.9s linear infinite; }
.blink { animation: blink 1.4s ease-in-out infinite; }

.hero-drawing { position: relative; }
.hero-drawing .crosshair { position: absolute; pointer-events: none; inset: 0; opacity: 0; transition: opacity 500ms var(--ease); }
.hero-drawing:hover .crosshair { opacity: 1; }
.hero-drawing .crosshair .h, .hero-drawing .crosshair .v { position: absolute; background: var(--blue); opacity: 0.35; }
.hero-drawing .crosshair .h { left: 0; right: 0; height: 1px; }
.hero-drawing .crosshair .v { top: 0; bottom: 0; width: 1px; }

.zone { cursor: help; }
.zone rect.hit { fill: transparent; }
.zone:hover .zone-fill { fill-opacity: 0.12; }
.zone-fill { fill: var(--blue); fill-opacity: 0; transition: fill-opacity 500ms var(--ease); }

/* 404 */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 128px 16px 64px; text-align: center; }
.nf h1 { font-size: 36px; line-height: 40px; margin-top: 32px; }
.nf p { color: var(--muted); margin: 16px auto 0; max-width: 480px; }
.nf .actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.nf svg { width: min(520px, 100%); margin: 0 auto; }

.grid-note { font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted); margin-top: 16px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill-list span { font-family: var(--mono); font-size: 12px; line-height: 16px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 9999px; background: var(--white); transition: background-color 500ms var(--ease), color 500ms var(--ease), border-color 500ms var(--ease); }
.pill-list span:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc.flip > :first-child { order: 2; }
.svc .num { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--blue); }
.svc h2 { font-size: 36px; line-height: 40px; margin-top: 12px; }
.svc p.lead { margin-top: 16px; }
@media (max-width: 960px) { .svc { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; } .svc.flip > :first-child { order: 0; } .svc h2 { font-size: 30px; line-height: 36px; } }

/* Ruler (about) */
.ruler .ruler-marker { transition: transform 2400ms var(--ease) 400ms; }
.ruler.in .ruler-marker { transform: translateX(714px); }
@media (max-width: 1024px) { .tagline p br { display: none; } }

/* Auth links in nav */
.nav-auth { display: flex; align-items: center; gap: 4px; }
.nav-auth .nav-login { padding: 8px 12px; border-radius: 9999px; font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; color: var(--ink-2); transition: background-color 500ms var(--ease), color 500ms var(--ease); }
.nav-auth .nav-login:hover { background: rgba(13, 27, 42, 0.06); color: var(--ink); }
.nav-auth .nav-login.is-current { background: var(--ink); color: #fff; }
.nav-auth .btn { border-radius: 9999px; }
.nav-welcome { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); padding: 0 8px; white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.m-auth { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.m-auth .nav-welcome { font-family: var(--font); font-size: 16px; line-height: 24px; padding: 0; }
.auth-card h1 { display: flex; flex-direction: column; gap: 16px; }
.auth-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 24px; }
@media (max-width: 1120px) {
  .nav-links, .nav .nav-cta, .nav .nav-auth { display: none; }
  .burger { display: block; }
  .nav { gap: 16px; }
}
@media (min-width: 1121px) { .menu-overlay { display: none; } }
.m-auth .btn { font-family: var(--font); }
