/* Ecliptic Technology -- site styles
   Built to the ECL_BRAND_GUIDELINES v2.0 spec: Gotham type family,
   true black / white with the 00FFD2 mint accent. */

@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Thin.otf") format("opentype"); font-weight: 100; font-style: normal; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Light.otf") format("opentype"); font-weight: 300; font-style: normal; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Book.otf") format("opentype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-BookItalic.otf") format("opentype"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Medium.otf") format("opentype"); font-weight: 500; font-style: normal; }
@font-face { font-family: "Gotham"; src: url("../assets/fonts/Gotham-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; }
@font-face { font-family: "Gotham Condensed"; src: url("../assets/fonts/GothamCondensed-Light.otf") format("opentype"); font-weight: 300; font-style: normal; }
@font-face { font-family: "Gotham Condensed"; src: url("../assets/fonts/GothamCondensed-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; }

:root {
  --black: #000000;
  --white: #ffffff;
  --mint: #00ffd2;
  --mint-dark: #00c9a7;
  --mint-100: #e0fffa;
  --leo-accent: #8250be;
  --leo-accent-light: #ede4f7;
  --charcoal: #161616;
  --teal-dark: #0b332b;
  --bg: #f5f5f5;
  --text: #000000;
  --muted: #55585c;
  --border: #e4e4e4;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --max-width: 1180px;
  --font-display: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-stat: "Gotham Condensed", "Gotham", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1 { font-weight: 100; }
h2 { font-weight: 400; }
h3, h4 { font-weight: 500; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover { background: var(--mint-100); }

.main-nav a.active {
  color: var(--mint-dark);
}

.nav-cta {
  background: var(--black);
  color: #fff !important;
}
.nav-cta:hover { background: var(--charcoal) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--mint);
  color: var(--black);
}
.btn-primary:hover { background: var(--mint-dark); box-shadow: 0 6px 18px rgba(0, 255, 210, 0.35); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-dark {
  background: var(--black);
  color: #fff;
}
.btn-dark:hover { background: var(--charcoal); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1300px 650px at 75% -10%, rgba(0,255,210,0.45), transparent 65%),
              linear-gradient(160deg, var(--teal-dark), var(--black));
  color: #fff;
  padding: 96px 0 80px;
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(0, 255, 210, 0.16);
  color: var(--mint);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 780px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 0 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero {
  background: radial-gradient(1300px 650px at 75% -10%, rgba(0,255,210,0.45), transparent 65%),
              linear-gradient(160deg, var(--teal-dark), var(--black));
  color: #fff;
  padding: 72px 0 64px;
}
.page-hero .eyebrow {
  display: inline-block;
  background: rgba(0, 255, 210, 0.16);
  color: var(--mint);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 14px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 680px; font-size: 1.08rem; margin: 0; }

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat { text-align: center; }
.stat .value {
  font-family: var(--font-stat);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--black);
}
.stat .label {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow-dark {
  display: inline-block;
  color: var(--mint-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 0 0 14px;
  color: var(--black);
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.section-head .nowrap-heading {
  white-space: nowrap;
  font-size: clamp(0.85rem, 4.1vw, 2.1rem);
}

/* ---------- Cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--mint-100);
  color: var(--mint-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 10px; font-size: 1.12rem; color: var(--black); }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* Product cards on homepage */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card .tag {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tag-gemini { background: var(--mint-100); color: var(--mint-dark); }
.tag-leo { background: var(--leo-accent-light); color: var(--leo-accent); }

.product-card h3 { font-size: 1.4rem; margin: 0 0 12px; color: var(--black); }
.product-card p { color: var(--muted); margin: 0 0 20px; flex-grow: 1; }
.product-card .link-arrow { font-weight: 700; color: var(--mint-dark); }

/* News */
.news-list { display: flex; flex-direction: column; gap: 24px; max-width: 720px; margin: 0 auto 48px; }
.news-item { padding: 36px; }
.news-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.news-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--mint-100);
  color: var(--mint-dark);
}
.news-date { color: var(--muted); font-size: 0.9rem; }
.news-item h2 { margin: 0 0 12px; font-size: 1.35rem; color: var(--black); }
.news-item p { margin: 0 0 14px; color: var(--muted); }
.news-item p:last-child { margin-bottom: 0; }
.news-item ul.news-list-items { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.news-item ul.news-list-items li { margin-bottom: 8px; }
.news-item ul.news-list-items li:last-child { margin-bottom: 0; }
.news-item ul.news-list-items:last-child { margin-bottom: 0; }
.news-follow { max-width: 720px; margin: 0 auto; text-align: center; border-top: 1px solid var(--border); padding-top: 40px; }
.news-follow p { color: var(--muted); margin: 0 0 20px; }

/* Values */
.value-card { text-align: center; padding: 36px 28px; }
.value-card .num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mint-dark);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* Team */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow);
}
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--mint), var(--charcoal));
}
.team-card h3 { margin: 0 0 4px; font-size: 1.05rem; color: var(--black); }
.team-card .role { color: var(--muted); font-size: 0.9rem; }

.team-bio-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.team-bio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.team-bio-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.team-bio-head .avatar { margin: 0; flex-shrink: 0; }
.team-bio-head h3 { margin: 0 0 2px; font-size: 1.15rem; color: var(--black); }
.team-bio-head .role { color: var(--mint-dark); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.team-email { display: block; margin-top: 4px; font-size: 0.86rem; color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
.team-email:hover { color: var(--mint-dark); }
.team-bio-card p { color: var(--muted); margin: 0 0 14px; }
.team-bio-card p:last-child { margin-bottom: 0; }

/* Collapsible bio (native <details>/<summary>) */
.team-bio-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.team-bio-summary::-webkit-details-marker { display: none; }
.team-bio-summary::marker { content: ""; }
.bio-toggle {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mint-dark);
  border: 1px solid var(--mint-dark);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}
.bio-toggle .hide-label { display: none; }
details[open] .bio-toggle .show-label { display: none; }
details[open] .bio-toggle .hide-label { display: inline; }
.bio-body {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .team-bio-head { align-items: flex-start; }
  .team-bio-summary { align-items: flex-start; }
}

/* Process / flow list */
.flow-list { counter-reset: flow; list-style: none; padding: 0; margin: 0; }
.flow-list li {
  position: relative;
  padding: 0 0 28px 52px;
  border-left: 2px solid var(--border);
  margin-left: 18px;
}
.flow-list li:last-child { border-color: transparent; padding-bottom: 0; }
.flow-list li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.flow-list h4 { margin: 0 0 6px; color: var(--black); }
.flow-list p { margin: 0; color: var(--muted); }

/* Table-style agent breakdown */
.agent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.agent-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.agent-card .agent-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.agent-card h4 { margin: 0 0 8px; color: var(--black); }
.agent-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  background: radial-gradient(900px 500px at 70% -20%, rgba(0,255,210,0.4), transparent 65%),
              linear-gradient(135deg, var(--teal-dark), var(--black));
  color: #fff;
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0 0 28px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.contact-grid > div { height: 100%; }
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  box-shadow: var(--shadow);
}
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info-card .row:last-child { margin-bottom: 0; }
.contact-info-card .row .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.contact-info-card .row h4 { margin: 0 0 4px; color: var(--black); font-size: 0.98rem; }
.contact-info-card .row p, .contact-info-card .row a { margin: 0; color: var(--muted); font-size: 0.95rem; }
.contact-info-card .row a:hover { color: var(--mint-dark); }

.team-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.team-contact-card h3 { margin: 0 0 8px; color: var(--black); font-size: 1.1rem; }
.team-contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.team-contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.team-contact-row .avatar { margin: 0; flex-shrink: 0; width: 52px; height: 52px; font-size: 0.95rem; }
.team-contact-row h4 { margin: 0 0 2px; color: var(--black); font-size: 1rem; }
.team-contact-row .role { color: var(--mint-dark); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.team-contact-row a { color: var(--muted); font-size: 0.9rem; }
.team-contact-row a:hover { color: var(--mint-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--teal-dark), var(--black));
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid .logo { color: #fff; margin-bottom: 14px; }
.footer-grid p { color: rgba(255,255,255,0.55); font-size: 0.92rem; max-width: 340px; }
.footer-col h5 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.65); font-size: 0.94rem; }
.footer-col a:hover { color: var(--mint); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* Five-up "Who it's for" grid */
.grid-who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
@media (max-width: 1100px) { .grid-who { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .grid-who { grid-template-columns: 1fr; } }

/* Keep logos at their natural proportions */
.logo { flex-shrink: 0; }
.logo img { width: auto; max-width: none; object-fit: contain; }
