/* =========================================================
   EZERIX TECHNOLOGIES — Design Tokens
========================================================= */
:root {
  --navy: #121A3D;
  --navy2: #1B2554;
  --navy3: #232E5E;
  --ink: #1A2140;
  --sub: #5B6482;
  --bg: #FFFFFF;
  --tint: #F3F5FB;
  --tint2: #E9ECF8;
  --mint: #2FD9A6;
  --mint-dark: #1CB88A;
  --mint-tint: #E4FBF3;
  --line: #DCE1F0;
  --white: #FFFFFF;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow-sm: 0 4px 16px rgba(18, 26, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 26, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(5, 7, 15, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.section { padding: 100px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); position: relative; overflow: hidden; }

/* =========================================================
   TYPE
========================================================= */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin: 0 0 16px;
}
.eyebrow-light { color: var(--mint); }
.eyebrow.center, .h2.center, .section-sub.center { text-align: center; }

.h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 20px;
}
.h2-light { color: var(--white); }

.body-lg {
  font-size: 17px;
  color: var(--sub);
  line-height: 1.65;
  margin: 0 0 24px;
  max-width: 46ch;
}

.section-sub {
  font-size: 16px;
  color: var(--sub);
  max-width: 640px;
  margin: 0 auto 48px;
  font-style: italic;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: var(--mint-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 217, 166, 0.35); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 15.5px; }

/* =========================================================
   NAV
========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 26, 61, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
  isolation: isolate;
}
.nav.scrolled {
  background: rgba(18, 26, 61, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(5,7,15,0.25);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1.1;
}
.nav-logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; color: var(--white); }
.nav-logo-text span {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--mint);
  margin-top: 2px;
}
.nav-links { display: flex; gap: 30px; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #C7CEEC;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--mint); }
.nav-cta { white-space: nowrap; padding: 10px 20px; font-size: 13.5px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* =========================================================
   HERO
========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../assets/bg_constellation.png');
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}
.hero-bg-static {
  position: absolute; inset: 0;
  background-image: url('../assets/bg_constellation.png');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  background: var(--navy2);
  filter: blur(0px);
  z-index: 1;
}
.hero-glow-1 { width: 620px; height: 620px; top: -220px; right: -140px; }
.hero-glow-2 { width: 380px; height: 380px; bottom: -180px; left: -100px; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 32px 80px;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 28px;
  max-width: 900px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #C7CEEC;
  max-width: 620px;
  line-height: 1.6;
  margin: 0 0 40px;
}
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 14px;
  z-index: 2;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--mint);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* =========================================================
   PROOF STRIP
========================================================= */
.proof { background: var(--navy2); padding: 48px 0; }
.proof-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proof-item { text-align: center; }
.proof-num, .proof-num-static {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 46px);
  color: var(--mint);
  line-height: 1;
  margin-bottom: 10px;
}
.proof-label { font-size: 12.5px; color: #AEB6DE; line-height: 1.4; }

/* =========================================================
   PROBLEM / SOLUTION
========================================================= */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--sub);
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.capability-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.cap-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--tint);
  border-radius: 100px;
  padding: 8px 16px 8px 8px;
}
.cap-chip img { width: 28px; height: 28px; }
.cap-chip span { font-size: 13.5px; font-weight: 700; color: var(--navy); }

/* =========================================================
   CORE PLAYS
========================================================= */
.plays-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.play-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.play-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.play-num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--tint2);
}
.play-icon { width: 56px; height: 56px; margin-bottom: 20px; }
.play-card h3 { font-family: var(--font-head); font-size: 19px; margin: 0 0 12px; color: var(--navy); }
.play-card p { font-size: 14px; color: var(--sub); line-height: 1.6; margin: 0; }
.supporting-caps {
  text-align: center;
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: 100px;
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 600;
}

/* =========================================================
   COMPARISON TABLE
========================================================= */
.table-wrap { overflow-x: auto; margin-top: 40px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare-table thead th.ezerix-col { background: var(--mint); color: var(--navy); }
.compare-table td.row-label, .compare-table th.row-label { text-align: left; font-weight: 700; color: var(--navy); background: var(--tint); }
.compare-table td.ezerix-col { background: var(--mint-tint); font-weight: 700; color: var(--navy); }
.compare-table td { color: var(--sub); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.table-caption { text-align: center; margin-top: 24px; font-style: italic; font-weight: 700; color: var(--mint-dark); font-size: 14.5px; }

/* =========================================================
   SELECTED EXPERIENCE
========================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-tag {
  display: inline-block;
  background: var(--mint-tint);
  color: var(--mint-dark);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.case-card h3 { font-family: var(--font-head); font-size: 18px; color: var(--navy); margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-row { margin-bottom: 14px; }
.case-row:last-child { margin-bottom: 0; }
.case-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--mint-dark); margin-bottom: 4px; }
.case-row p { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.55; }

/* =========================================================
   TECHNOLOGY
========================================================= */
.tech-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 48px; }
.tech-card {
  background: #F1F4FA;
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
}
.tech-card img { width: 60px; height: 60px; margin: 0 auto 16px; }
.tech-card h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.tech-desc { font-size: 10.5px; font-style: italic; color: var(--sub); margin: 0 0 14px; min-height: 26px; }
.tech-card ul { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #D7DCE8; }
.tech-card li { font-size: 12.5px; color: var(--sub); }
.tech-card-ai { background: var(--navy2); border: 1px solid var(--mint); position: relative; box-shadow: 0 0 0 6px rgba(47,217,166,0.08); }
.tech-card-ai h4 { color: var(--white); }
.tech-card-ai .tech-desc { color: #AEB6DE; }
.tech-card-ai ul { border-top-color: #3B4576; }
.tech-card-ai li { color: #C7CEEC; }
.ai-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--mint); color: var(--navy);
  font-size: 9px; font-weight: 800; letter-spacing: 0.08em;
  padding: 5px 14px; border-radius: 100px;
}

/* =========================================================
   TEAM
========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.team-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--mint);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.team-card h4 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.team-role { font-size: 12px; font-weight: 700; color: var(--mint-dark); margin: 0 0 14px; min-height: 30px; }
.team-bio { font-size: 12.5px; color: var(--sub); line-height: 1.55; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }

/* =========================================================
   ENGAGEMENT
========================================================= */
.primary-offer {
  background: var(--navy);
  border-radius: 18px;
  padding: 40px 44px;
  position: relative;
  margin-top: 48px;
  overflow: hidden;
}
.offer-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--navy);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.offer-content { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.offer-content h3 { font-family: var(--font-head); font-size: 26px; color: var(--white); margin: 0 0 14px; }
.offer-content p { font-size: 14.5px; color: #C7CEEC; line-height: 1.6; margin: 0; max-width: 560px; }
.offer-icon { width: 100px; height: 100px; flex-shrink: 0; }
.also-available {
  text-align: center; margin: 40px 0 20px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--mint-dark); text-transform: uppercase;
}
.also-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.also-chip {
  background: var(--white);
  border-radius: 12px;
  padding: 22px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.also-chip img { width: 40px; height: 40px; margin: 0 auto 10px; }
.also-chip span { font-size: 11.5px; font-weight: 700; color: var(--navy); }

/* =========================================================
   30 DAYS
========================================================= */
.weeks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.week-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.week-badge {
  display: inline-block;
  background: var(--mint);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.week-card h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.week-card p { font-size: 12.5px; color: var(--sub); line-height: 1.55; margin: 0; }

/* =========================================================
   FINAL CTA
========================================================= */
.cta-final {
  background: var(--navy);
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-line { font-family: var(--font-head); font-style: italic; font-size: 19px; color: #AEB6DE; margin: 0 0 6px; }
.cta-headline {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 54px);
  color: var(--white);
  margin: 20px 0 24px;
}
.cta-body { font-size: 16px; color: #C7CEEC; max-width: 560px; margin: 0 auto 40px; line-height: 1.6; }

/* =========================================================
   FOOTER
========================================================= */
.footer { background: #0C1230; padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--white); display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.1; }
.footer-logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.footer-logo-text { display: flex; flex-direction: column; color: var(--white); }
.footer-logo-text span { font-family: var(--font-body); font-size: 7.5px; font-weight: 700; letter-spacing: 0.2em; color: var(--mint); margin-top: 2px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: #8A93BE; font-weight: 600; }
.footer-links a:hover { color: var(--mint); }
.footer-copy { font-size: 12px; color: #5B6482; margin: 0; }

/* =========================================================
   SCROLL REVEAL
========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px) {
  .ps-grid { grid-template-columns: 1fr; gap: 48px; }
  .plays-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .also-grid { grid-template-columns: repeat(3, 1fr); }
  .weeks-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-content { flex-direction: column; align-items: flex-start; }
  .offer-icon { width: 72px; height: 72px; }
  .proof-inner { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 72px 0; }
  .hero-inner { padding: 120px 24px 64px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .also-grid { grid-template-columns: repeat(2, 1fr); }
  .weeks-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
}

.mobile-menu { display: none; }

.nav.nav-open .mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0A0E24;
  padding: 110px 32px 40px;
  gap: 28px;
  z-index: 999;
  overflow-y: auto;
  box-sizing: border-box;
  transform: translateZ(0);
  will-change: transform;
  isolation: isolate;
}
.mobile-links { display: flex; flex-direction: column; gap: 22px; }
.mobile-links a {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.mobile-links a:active,
.mobile-links a:hover { color: var(--mint); }
.mobile-menu-cta { align-self: flex-start; margin-top: 8px; }
