/* ============================================================
   Etherealberries — Premium Dark Mode
   ============================================================ */

/* --- TOKENS --- */
:root {
  --bg:       #0B0F10;
  --bg2:      #0E1315;
  --s1:       #111718;   /* card surface */
  --s2:       #161C1E;   /* elevated surface */
  --s3:       #1C2326;

  --g:        #28E07A;   /* emerald green */
  --g-dim:    rgba(40, 224, 122, 0.09);
  --g-bdr:    rgba(40, 224, 122, 0.22);
  --g-hover:  rgba(40, 224, 122, 0.15);

  --w:        #F0F5F3;   /* white text */
  --w70:      rgba(240, 245, 243, 0.70);
  --m:        #617870;   /* muted text */
  --m2:       #3F5048;

  --bdr:      rgba(255, 255, 255, 0.058);
  --bdr2:     rgba(255, 255, 255, 0.10);

  --r:        12px;
  --r-sm:     8px;

  --nav-h:    66px;
  --max:      1160px;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--w);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* --- LAYOUT --- */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}
.section { padding-block: clamp(5rem, 10vw, 8rem); }

/* --- GLOBAL TYPE --- */
h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--w);
  margin-bottom: 1.5rem;
}
h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--w);
  margin-bottom: 0.45rem;
}
p { color: var(--m); font-size: 0.92rem; line-height: 1.7; }

/* --- UTILITIES --- */
.g        { color: var(--g); }
.sec-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 1.5rem;
}
.sec-sub {
  color: var(--m);
  font-size: 0.97rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* --- SCROLL REVEAL --- */
.aos {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.aos.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}

/* Nav "Get in touch" — outlined green glassmorphism */
.btn-nav {
  border-color: var(--g-bdr);
  color: var(--g);
  background: var(--g-dim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-nav:hover { background: var(--g-hover); border-color: var(--g); }

/* Hero primary — dark filled */
.btn-solid {
  background: var(--s3);
  color: var(--w);
  border-color: var(--bdr2);
}
.btn-solid:hover { background: var(--s2); border-color: rgba(255,255,255,0.14); }

/* Ghost — transparent border */
.btn-ghost {
  background: transparent;
  color: var(--w70);
  border-color: var(--bdr2);
}
.btn-ghost:hover { color: var(--w); border-color: rgba(255,255,255,0.16); background: rgba(255,255,255,0.04); }

/* Footer CTA — solid green */
.btn-green-filled {
  background: var(--g);
  color: #0B0F10;
  border-color: var(--g);
  font-weight: 700;
}
.btn-green-filled:hover { background: #35f08a; border-color: #35f08a; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(11, 15, 16, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--bdr);
}
.nav-inner {
  max-width: var(--max);
  height: 100%;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--m);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.nav-link:hover { color: var(--w); background: rgba(255,255,255,0.05); }
.btn-nav { margin-left: auto; flex-shrink: 0; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--w);
  border-radius: 2px;
  transition: all 0.22s ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 45% at 50% 8%, rgba(40,224,122,0.055) 0%, transparent 65%),
    var(--bg);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.021) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 35%, black 0%, transparent 80%);
}

.hero-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 760px;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.2rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.038em;
  color: var(--w);
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; }

.hero-sub {
  font-size: clamp(0.97rem, 2vw, 1.12rem);
  color: var(--m);
  margin-bottom: 2.5rem;
  line-height: 1.62;
}

.hero-btns { display: flex; gap: 0.7rem; flex-wrap: wrap; }

/* Metrics bar */
.metrics-bar {
  background: var(--s1);
  border-top: 1px solid var(--bdr);
}
.metrics-row {
  display: flex;
  align-items: stretch;
  min-height: 106px;
}
.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.32rem;
  padding: 1.6rem 2rem;
}
.metric-n {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--w);
}
.metric-l {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--m);
  letter-spacing: 0.02em;
}
.metric-sep {
  width: 1px;
  background: var(--bdr);
  align-self: stretch;
}

/* ============================================================
   OUR APPROACH
   ============================================================ */
.approach-section { background: var(--bg); }

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.approach-left h2 { margin-bottom: 1.6rem; }
.approach-left p  { margin-bottom: 1rem; }
.approach-left p:last-child { margin-bottom: 0; }

.closing {
  padding-left: 1rem;
  border-left: 2px solid var(--g-bdr);
  color: var(--w70) !important;
  font-size: 0.86rem !important;
  margin-top: 1.5rem;
}

.feature-stack { display: flex; flex-direction: column; gap: 0.7rem; }

.fc {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 1.15rem 1.25rem;
  transition: border-color 0.22s;
}
.fc:hover { border-color: var(--g-bdr); }

.fc-n {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--g);
  line-height: 1;
  min-width: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.fc h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--w);
  margin-bottom: 0.28rem;
  line-height: 1.3;
}
.fc p { font-size: 0.83rem; margin: 0; line-height: 1.62; }

/* ============================================================
   THE SYSTEM
   ============================================================ */
.system-section { background: var(--bg2); }

.sys-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--bdr);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}

.sys-card {
  background: var(--s1);
  padding: 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 268px;
  transition: background 0.2s;
}
.sys-card:hover { background: var(--s2); }

.sys-top { display: flex; flex-direction: column; gap: 0.55rem; }

.sys-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--m);
}

.sys-card h3 { font-size: 0.98rem; margin: 0; }
.sys-card p  { font-size: 0.83rem; margin: 0; line-height: 1.65; }

.badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--g);
  background: var(--g-dim);
  border: 1px solid var(--g-bdr);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ============================================================
   VARIETIES
   ============================================================ */
.var-section { background: var(--bg); }

.var-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.var-card {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.22s, background 0.22s;
}
.var-card:hover { border-color: var(--g-bdr); background: var(--s2); }

.var-name {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}

.var-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--m);
}

.var-card p { font-size: 0.88rem; }

/* ============================================================
   THE OPERATION
   ============================================================ */
.op-section { background: var(--bg2); }

.op-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

/* Specs table */
.specs-table {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  overflow: hidden;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 1.4rem;
  border-bottom: 1px solid var(--bdr);
  transition: background 0.15s;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:hover { background: var(--s2); }

.sk {
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--m);
  white-space: nowrap;
}
.sv {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--w);
  text-align: right;
}

/* Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(to bottom, var(--g-bdr) 0%, rgba(40,224,122,0.04) 100%);
}

.t-item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.4rem;
  position: relative;
}
.t-item:last-child { padding-bottom: 0; }

.t-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg2);
  border: 2px solid var(--g);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--g-dim);
}

.t-body {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-top: 1px;
}
.t-yr {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--g);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.t-body strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--w);
  line-height: 1.3;
}
.t-body p { font-size: 0.84rem; margin: 0; margin-top: 0.2rem; }

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who-section { background: var(--bg); }

.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.who-left h2 { margin-bottom: 1.5rem; }
.who-left p  { margin-bottom: 1rem; }
.who-left p:last-child { margin-bottom: 0; }

.team-card {
  background: var(--s1);
  border: 1px solid var(--bdr);
  border-radius: var(--r);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.team-members { display: flex; flex-direction: column; gap: 1.2rem; }

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

.initials {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--g-dim);
  border: 1px solid var(--g-bdr);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--g);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.tm-info { display: flex; flex-direction: column; gap: 2px; }
.tm-info strong { font-size: 0.94rem; font-weight: 700; color: var(--w); }
.tm-info span   { font-size: 0.77rem; color: var(--m); }

.team-bio {
  font-size: 0.84rem;
  border-top: 1px solid var(--bdr);
  padding-top: 1.5rem;
  margin: 0;
}

/* ============================================================
   FOOTER CTA
   ============================================================ */
.footer-cta {
  background:
    radial-gradient(ellipse 70% 55% at 50% 100%, rgba(40,224,122,0.07) 0%, transparent 70%),
    var(--s1);
  border-top: 1px solid var(--bdr);
  border-bottom: 1px solid var(--bdr);
  padding-block: clamp(5rem, 10vw, 8rem);
  text-align: center;
}

.footer-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.footer-cta > .container > p {
  font-size: 0.97rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.cta-btns {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-contacts {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-email {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.18s;
}
.footer-email:hover { opacity: 0.72; }

/* ============================================================
   FOOTER META
   ============================================================ */
.footer-meta {
  background: #070A0B;
  border-top: 1px solid var(--bdr);
  padding-block: 1.4rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.meta-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.meta-loc  { font-size: 0.8rem; color: var(--m); }
.meta-copy { font-size: 0.74rem; color: var(--m2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1024px — system grid 2-col */
@media (max-width: 1024px) {
  .sys-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 900px — collapse 2-col sections */
@media (max-width: 900px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11,15,16,0.97);
    border-bottom: 1px solid var(--bdr);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 0.65rem 0.8rem; }
  .nav-toggle { display: flex; }
  .btn-nav   { display: none; }

  /* Grids → single column */
  .approach-grid,
  .op-grid,
  .who-grid { grid-template-columns: 1fr; }

  /* Varieties → 2-col */
  .var-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 640px — full single column */
@media (max-width: 640px) {
  .sys-grid { grid-template-columns: 1fr; }
  .var-grid { grid-template-columns: 1fr; }

  .metrics-row { flex-direction: column; }
  .metric-sep  { width: 100%; height: 1px; }
  .metric      { padding: 1.2rem 1.5rem; }

  .hero h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
}

/* 400px */
@media (max-width: 400px) {
  .hero-btns   { flex-direction: column; }
  .cta-btns    { flex-direction: column; align-items: center; }
}
