/* ==========================================================================
   AISERI LAB — Stylesheet
   Design language: dark, precision-industrial, botanical-tech.
   Palette runs from deep bottle green to a live-signal parrot-green accent.
   Typeface: IBM Plex — built for technical, engineering-grade interfaces.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  /* --- surfaces --- */
  --bg:            #060a08;
  --bg-alt:        #0a120d;
  --surface:       #0f1c15;
  --surface-alt:   #142619;
  --line:          rgba(232,245,236,0.09);
  --line-strong:   rgba(232,245,236,0.17);

  /* --- greens: bottle -> live-signal parrot --- */
  --bottle:        #0e3324;
  --bottle-deep:   #081f16;
  --forest:        #1c6244;
  --mid-green:     #2fae72;
  --parrot:        #5ff2a0;
  --parrot-bright: #a9ffce;
  --glow:          0 0 22px rgba(95,242,160,0.35);

  /* --- ink --- */
  --ink:           #eaf3ec;
  --ink-dim:       #a7c2b2;
  --ink-faint:     #64806f;

  /* --- type --- */
  --display: 'IBM Plex Sans', sans-serif;
  --body: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --container: 1180px;
  --radius: 3px;
  --ease: cubic-bezier(.16,.8,.28,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; }

h1,h2,h3,h4{
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
em{
  font-style: normal;
  color: var(--parrot-bright);
  text-shadow: var(--glow);
}

p{ margin: 0; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--parrot);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--parrot);
  box-shadow: 0 0 8px 1px rgba(130,217,158,0.7);
  flex-shrink: 0;
}

/* ---- node dot: recurring structural marker used instead of numbering ---- */
.node-dot{
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--parrot);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  top: 6px;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(7,12,9,0.86);
  backdrop-filter: blur(10px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.brand img{
  height: 30px;
  width: auto;
}
.brand-fallback{
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 14px;
  color: var(--parrot-bright);
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav-links a:hover, .nav-links a.active{ color: var(--ink); }
.nav-links a.active::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-4px;
  height:1px; background: var(--parrot);
}
.nav-links a.nav-cta{
  color: var(--bg);
  background: var(--parrot);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-links a.nav-cta:hover{ background: var(--parrot-bright); }

.nav-toggle{
  display: none;
  background: none; border: none;
  color: var(--ink);
  cursor: pointer;
  width: 32px; height: 22px;
  position: relative;
}
.nav-toggle span{
  position: absolute; left: 0; right: 0; height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle span:nth-child(1){ top: 0; }
.nav-toggle span:nth-child(2){ top: 10px; }
.nav-toggle span:nth-child(3){ top: 20px; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 90px;
  padding-top: 160px;
  border-bottom: 1px solid var(--line);
}
.hero-canvas-wrap{
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 78% 18%, rgba(58,143,102,0.22), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 60%, var(--bg) 100%);
}
#heroCanvas{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.9;
}
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-content .eyebrow{ margin-bottom: 26px; }
.hero-title{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 26px;
}
.hero-lede{
  font-size: 18px;
  color: var(--ink-dim);
  max-width: 560px;
  margin-bottom: 40px;
}
.hero-actions{
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* page hero (non-home pages): shorter, with its own ambient network canvas */
.page-hero{
  padding-top: 170px;
  padding-bottom: 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-alt), var(--bg));
  position: relative;
  overflow: hidden;
}
.page-hero-canvas-wrap{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero-canvas-wrap canvas{
  width: 100%; height: 100%;
  opacity: 0.5;
}
.page-hero .container{ position: relative; z-index: 2; }
.page-hero .eyebrow{ margin-bottom: 22px; }
.page-hero h1{ font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 780px; }
.page-hero .page-lede{
  margin-top: 20px;
  max-width: 620px;
  color: var(--ink-dim);
  font-size: 17px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 13.5px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.btn-primary{
  background: var(--parrot);
  color: var(--bg-alt);
}
.btn-primary:hover{ background: var(--parrot-bright); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover{ border-color: var(--parrot); color: var(--parrot-bright); }
.btn-ghost .arrow, .btn-primary .arrow{ transition: transform .3s var(--ease); }
.btn:hover .arrow{ transform: translateX(3px); }

/* ==========================================================================
   SECTIONS / GENERIC LAYOUT
   ========================================================================== */
section{ position: relative; }
.section{ padding: 110px 0; }
.section-tight{ padding: 70px 0; }
.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 620px; }
.section-head .section-note{
  max-width: 340px;
  color: var(--ink-dim);
  font-size: 15px;
}

.divider{
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.bg-alt{ background: var(--bg-alt); }
.bg-surface{ background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- generic asymmetric grid used for capability / domain lists ---- */
.grid-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-item{
  background: var(--bg);
  padding: 44px;
  display: flex;
  gap: 18px;
  transition: background .3s var(--ease);
}
.grid-item:hover{ background: var(--bg-alt); }
.grid-item-body h3{
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.grid-item-body p{
  color: var(--ink-dim);
  font-size: 14.5px;
}
.grid-item-tag{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px;
  display: block;
}
.grid-item-tag.tag-link{
  color: var(--parrot);
  transition: color .25s var(--ease), gap .25s var(--ease);
}
.grid-item:hover .tag-link{ color: var(--parrot-bright); }

/* ---- icon wrap: custom line-art SVGs used instead of stock imagery ---- */
.icon-wrap{
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(95,242,160,0.14), transparent 70%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.grid-item:hover .icon-wrap{ border-color: var(--parrot); box-shadow: var(--glow); }
.icon-wrap svg{ width: 24px; height: 24px; }
.icon-wrap svg *{ stroke: var(--parrot); }

/* ---- stat chip: metric pairs used on the Domains page ---- */
.stat-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--parrot-bright);
  background: rgba(95,242,160,0.08);
  border: 1px solid rgba(95,242,160,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  margin-top: 16px;
}
.domain-badge{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: 4px;
}

/* ---- pull quote (About page) ---- */
.pull-quote{
  border-left: 2px solid var(--parrot);
  padding-left: 28px;
  margin: 40px 0;
}
.pull-quote p{
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--parrot-bright);
  text-shadow: var(--glow);
}

/* ---- vitals monitor visual (Products page) ---- */
.vitals-card{
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 28px 20px;
  position: relative;
  overflow: hidden;
}
.vitals-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.vitals-live{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--parrot);
}
.vitals-live::before{
  content:'';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--parrot);
  box-shadow: 0 0 8px 2px rgba(95,242,160,0.7);
  animation: pulse-dot 1.4s infinite;
}
@keyframes pulse-dot{
  0%, 100%{ opacity: 1; }
  50%{ opacity: 0.3; }
}
#vitalsCanvas{
  width: 100%;
  height: 130px;
  display: block;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 18px;
}
.vitals-readouts{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.vitals-readout{ text-align: left; }
.vitals-readout .v-num{
  font-family: var(--display);
  font-size: 1.7rem;
  color: var(--parrot-bright);
}
.vitals-readout .v-label{
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ---- leadership layout (Team page): founders + advisors ---- */
.leader-group-label{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--parrot);
  margin-bottom: 30px;
  display: block;
}
.leader-row{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 44px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.leader-row:last-child{ padding-bottom: 0; }
.leader-id{ display: flex; flex-direction: column; gap: 14px; }
.leader-id .avatar-ring{ width: 68px; height: 68px; font-size: 22px; margin-bottom: 0; }
.leader-id h3{ font-size: 1.2rem; }
.leader-role{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.leader-bio{ color: var(--ink-dim); font-size: 15px; max-width: 660px; }
.leader-section + .leader-section{ margin-top: 70px; }

/* ---- product feature rows ---- */
.product-row{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.product-row:last-child{ border-bottom: none; }
.product-row.reverse{ direction: rtl; }
.product-row.reverse > *{ direction: ltr; }
.product-visual{
  aspect-ratio: 4/3;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 20%, rgba(130,217,158,0.16), transparent 55%),
    var(--surface);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.product-visual canvas{ width: 100%; height: 100%; }
.product-visual.is-plain{
  aspect-ratio: auto;
  background: none;
  border: none;
  padding: 0;
  display: block;
}
.product-index{
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.product-name{ font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: 18px; }
.product-desc{ color: var(--ink-dim); font-size: 15.5px; margin-bottom: 26px; max-width: 480px; }
.feature-list{ display: flex; flex-direction: column; gap: 14px; }
.feature-list li{
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

/* ---- values / about grid ---- */
.value-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.value-card{ padding-top: 22px; border-top: 1px solid var(--line-strong); }
.value-card h3{ font-size: 1.1rem; margin-bottom: 12px; }
.value-card p{ color: var(--ink-dim); font-size: 14.5px; }

/* ---- team grid ---- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.team-card{
  background: var(--bg);
  padding: 40px 34px;
  transition: background .3s var(--ease);
}
.team-card:hover{ background: var(--bg-alt); }
.avatar-ring{
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 18px;
  color: var(--parrot-bright);
  margin-bottom: 22px;
}
.team-card h3{ font-size: 1.1rem; margin-bottom: 4px; }
.team-role{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parrot);
  display: block;
  margin-bottom: 16px;
}
.team-card p{ color: var(--ink-dim); font-size: 14px; }
.team-note{
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: 13.5px;
  font-family: var(--mono);
}

/* ---- stat strip ---- */
.stat-strip{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat{
  padding: 40px 0;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat:last-child{ border-right: none; }
.stat-num{
  font-family: var(--display);
  font-size: 2.4rem;
  color: var(--parrot-bright);
}
.stat-label{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ---- CTA band ---- */
.cta-band{
  padding: 100px 0;
  text-align: center;
  background: var(--bottle-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2{
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 700px;
  margin: 0 auto 34px;
}
.cta-band .hero-actions{ justify-content: center; }

/* ==========================================================================
   FORM (Engage page)
   ========================================================================== */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-form{ display: flex; flex-direction: column; gap: 22px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field{ display: flex; flex-direction: column; gap: 8px; }
.field label{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.field input, .field select, .field textarea{
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14.5px;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--parrot);
}
.field textarea{ resize: vertical; min-height: 120px; }
.field.has-error input, .field.has-error textarea, .field.has-error select{
  border-color: #c96a5b;
}
.field-error{
  font-size: 12px;
  color: #e39184;
  min-height: 14px;
}
.form-status{
  font-family: var(--mono);
  font-size: 13px;
  color: var(--parrot-bright);
  min-height: 20px;
}
.contact-side{ display: flex; flex-direction: column; gap: 32px; }
.contact-block h3{ font-size: 1rem; margin-bottom: 10px; }
.contact-block p, .contact-block a{ color: var(--ink-dim); font-size: 14.5px; }
.contact-block a:hover{ color: var(--parrot-bright); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--bg-alt);
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 40px;
  padding-bottom: 60px;
}
.footer-brand .brand{ margin-bottom: 18px; }
.footer-brand p{
  color: var(--ink-dim);
  font-size: 14px;
  max-width: 300px;
}
.footer-col h4{
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ color: var(--ink-dim); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover{ color: var(--parrot-bright); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px){
  .leader-row{ grid-template-columns: 1fr; gap: 20px; }
  .grid-list{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .product-row{ grid-template-columns: 1fr; gap: 34px; }
  .product-row.reverse{ direction: ltr; }
  .form-grid{ grid-template-columns: 1fr; }
  .value-grid{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .stat-strip{ grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2){ border-right: none; }
}

@media (max-width: 720px){
  .nav-links{
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px 32px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-toggle{ display: block; }
  .team-grid{ grid-template-columns: 1fr; }
  .form-row{ grid-template-columns: 1fr; }
  .footer-top{ grid-template-columns: 1fr; gap: 32px; }
  .stat-strip{ grid-template-columns: 1fr 1fr; }
  .hero{ padding-top: 130px; }
}
