/* ========================================================================
   DeepAstra — design tokens
   ======================================================================== */
:root {
  --navy-950: #080b15;
  --navy-900: #0a0e1a;
  --navy-800: #131a2e;
  --navy-700: #1c2748;
  --ink: #10141f;
  --ink-soft: #4a5169;
  --mist: #f5f6fa;
  --mist-dim: #e7e9f2;
  --white: #ffffff;

  --astra-blue: #5b79ff;
  --astra-blue-dim: #3e56c4;
  --pharma-teal: #22c7b5;
  --gro-green: #7ec13f;
  --exp-gold: #f2a93c;

  --line-dark: rgba(255, 255, 255, 0.1);
  --line-light: rgba(16, 20, 31, 0.1);

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ========================================================================
   Reset
   ======================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
@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;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--astra-blue);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--astra-blue);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ========================================================================
   Buttons
   ======================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--astra-blue);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(91, 121, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(91, 121, 255, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-light);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-on-dark {
  color: var(--white);
  border-color: var(--line-dark);
}
.btn-on-dark:hover { border-color: var(--white); }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.85rem; }

/* ========================================================================
   Header / Nav
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.site-nav ul { display: flex; gap: 1.9rem; }
.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease);
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--astra-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--white);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
    overflow-y: auto;
  }
  .site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem; }
  .site-nav li { border-bottom: 1px solid var(--line-light); }
  .site-nav a { display: block; padding: 1.1rem 0; font-size: 1.05rem; }
  .header-actions .btn-primary.btn-sm { display: none; }
  .nav-toggle { display: flex; }
}

/* ========================================================================
   Hero + constellation canvas
   ======================================================================== */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% -10%, #17204a 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(4.5rem, 10vw, 8rem) clamp(4rem, 9vw, 7rem);
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--astra-blue);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--astra-blue);
  box-shadow: 0 0 0 4px rgba(91, 121, 255, 0.25);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--astra-blue), var(--pharma-teal) 60%, var(--gro-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.2rem; }
.hero-meta {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}
.hero-meta strong { display: block; color: var(--white); font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 0.15rem; }

/* Secondary (non-home) page hero — quieter, no canvas */
.page-hero {
  background: radial-gradient(120% 160% at 85% -20%, #182450 0%, var(--navy-900) 60%, var(--navy-950) 100%);
  color: var(--white);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(3rem, 7vw, 4.5rem);
}
.page-hero .eyebrow { margin-bottom: 1.1rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-bottom: 1rem; }
.page-hero p.lede { color: rgba(255, 255, 255, 0.72); max-width: 60ch; font-size: 1.08rem; }
.page-hero.accent-pharma .eyebrow { color: var(--pharma-teal); }
.page-hero.accent-pharma .eyebrow::before { background: var(--pharma-teal); box-shadow: 0 0 0 4px rgba(34, 199, 181, 0.25); }
.page-hero.accent-gro .eyebrow { color: var(--gro-green); }
.page-hero.accent-gro .eyebrow::before { background: var(--gro-green); box-shadow: 0 0 0 4px rgba(126, 193, 63, 0.25); }
.page-hero.accent-exp .eyebrow { color: var(--exp-gold); }
.page-hero.accent-exp .eyebrow::before { background: var(--exp-gold); box-shadow: 0 0 0 4px rgba(242, 169, 60, 0.25); }

/* Product screenshot, overlapping the bottom of a page-hero */
.product-shot-wrap {
  margin-top: clamp(-4rem, -7vw, -5.5rem);
  position: relative;
  z-index: 2;
  text-align: center;
}
.product-shot {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -24px rgba(8, 11, 21, 0.45);
}
.product-shot.wide { width: 760px; }
.product-shot.narrow { width: 400px; }
@media (max-width: 700px) {
  .product-shot.wide { width: 100%; }
  .product-shot.narrow { width: 76%; }
}

/* ========================================================================
   Sections / layout
   ======================================================================== */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .eyebrow { color: var(--astra-blue-dim); }
.section-head .eyebrow::before { background: var(--astra-blue-dim); box-shadow: 0 0 0 4px rgba(91, 121, 255, 0.15); }
.section-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); color: var(--ink); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 0.9rem; }
.section-alt { background: var(--mist); }

/* ---- product intro cards (home) ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  position: relative;
  padding: 2.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(16, 20, 31, 0.18); }
.product-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}
.product-card.pharma .tag { background: rgba(34, 199, 181, 0.12); color: #128c7e; }
.product-card.gro .tag { background: rgba(126, 193, 63, 0.14); color: #5a8f28; }
.product-card.exp .tag { background: rgba(242, 169, 60, 0.16); color: #a86c14; }
.product-card h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.product-card p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.product-card .card-link {
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.product-card.pharma .card-link { color: #128c7e; }
.product-card.gro .card-link { color: #5a8f28; }
.product-card.exp .card-link { color: #a86c14; }
.product-card .card-link .arrow { transition: transform 0.25s var(--ease); }
.product-card:hover .card-link .arrow { transform: translateX(4px); }

/* ---- feature grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.2rem;
}
.feature-item .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--astra-blue);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-item p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---- generic content grid (about/products) ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.split p { color: var(--ink-soft); margin-bottom: 1rem; }
.split ul { margin-top: 1.3rem; display: grid; gap: 0.7rem; }
.split ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
}
.split ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--astra-blue);
  margin-top: 0.55rem;
  flex-shrink: 0;
}
.panel {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  color: var(--white);
  box-shadow: inset 0 3px 0 var(--astra-blue);
}
.panel.accent-pharma { box-shadow: inset 0 3px 0 var(--pharma-teal); }
.panel.accent-gro { box-shadow: inset 0 3px 0 var(--gro-green); }
.panel.accent-exp { box-shadow: inset 0 3px 0 var(--exp-gold); }
.panel-stat { display: flex; justify-content: space-between; padding-block: 0.9rem; border-bottom: 1px solid var(--line-dark); font-family: var(--font-mono); font-size: 0.9rem; }
.panel-stat:last-child { border-bottom: none; }
.panel-stat strong { font-family: var(--font-display); font-size: 1.4rem; display: block; color: var(--white); }
.panel-stat span { color: rgba(255,255,255,0.55); }

/* ---- process / timeline (ordered content only) ---- */
.steps { display: grid; gap: 1.4rem; }
.step { display: flex; gap: 1.3rem; padding: 1.5rem 0; border-top: 1px solid var(--line-light); }
.step:first-child { border-top: none; }
.step .num { font-family: var(--font-mono); color: var(--astra-blue); font-weight: 500; min-width: 2.4rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  border-radius: 20px;
  padding: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-inline: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 90% 20%, rgba(91,121,255,0.25), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 30ch; }
.cta-band .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ========================================================================
   Contact page
   ======================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
}
.contact-info h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.contact-info .info-block { margin-bottom: 1.8rem; }
.contact-info .info-block p, .contact-info .info-block a { color: var(--ink-soft); }
.contact-info .info-block a:hover { color: var(--astra-blue); }

.form-field { margin-bottom: 1.3rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line-light);
  border-radius: var(--radius-sm);
  background: var(--mist);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--astra-blue);
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 130px; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.alert-success { background: rgba(126, 193, 63, 0.14); color: #4c7a1c; border: 1px solid rgba(126, 193, 63, 0.3); }
.alert-error { background: rgba(220, 80, 80, 0.1); color: #a13636; border: 1px solid rgba(220, 80, 80, 0.28); }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 3rem;
}
.footer-brand p { margin-top: 0.8rem; color: rgba(255,255,255,0.5); max-width: 30ch; }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--astra-blue); color: var(--astra-blue); }
.footer-col h4 { font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.95rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ========================================================================
   Scroll reveal
   ======================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 1rem; }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.5rem; }
}
