/* ============================================================
   style.css — BoilesLab Website
   ============================================================ */

/* ------------------------------------------------------------
   ROOT & RESET
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #07080b;
  --bg2:         #0d0f14;
  --bg3:         #12151c;
  --bg4:         #161920;
  --border:      rgba(57, 255, 143, 0.18);
  --border2:     rgba(255, 255, 255, 0.07);
  --green:       #39ff8f;
  --green2:      #1adb70;
  --green-dim:   rgba(57, 255, 143, 0.08);
  --green-glow:  rgba(57, 255, 143, 0.22);
  --white:       #f0f2f0;
  --gray:        #8a9099;
  --gray2:       #5a6070;
  --blue-accent: #39aaff;
  --warn:        rgba(255, 200, 0, 0.12);
  --warn-border: rgba(255, 200, 0, 0.2);
  --warn-text:   #c8ad60;
  --font-head:   'Syne', sans-serif;
  --font-mono:   'IBM Plex Mono', monospace;
  --font-body:   'Outfit', sans-serif;
  --max:         1200px;
  --r:           6px;
  --r2:          10px;
  --r3:          12px;
  --transition:  0.25s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: var(--bg);
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 143, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 143, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--white);
}

h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { color: #9aa3ad; }
p strong { color: var(--white); font-weight: 600; }
em { color: #b0bac4; font-style: italic; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--green);
  background: var(--green-dim);
  padding: 2px 6px;
  border-radius: 3px;
}

.mono { font-family: var(--font-mono); }

/* Section label */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
}

section:nth-of-type(even) {
  background: var(--bg2);
}

/* Section head */
.section-head {
  margin-bottom: 0;
}

.section-head h2 {
  margin-bottom: 18px;
}

.section-head .lead {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 540px;
  line-height: 1.75;
}

.text-center {
  text-align: center;
}

.text-center .lead {
  margin: 0 auto;
}

.separator {
  width: 36px;
  height: 2px;
  background: var(--green);
  margin: 18px 0;
}

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding: 13px 26px;
  border-radius: var(--r);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--green);
  color: var(--bg);
}

.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--green-glow);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--green);
  background: var(--green-dim);
  transform: translateY(-2px);
}

.btn-lg {
  font-size: 1rem;
  padding: 16px 32px;
}

/* ------------------------------------------------------------
   NAVBAR
   ------------------------------------------------------------ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border2);
  transition: border-color var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  max-width: var(--max);
  margin: 0 auto;
  height: 66px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.nav-logo span {
  color: var(--green);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 2.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.75); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 6px;
  border-radius: 4px;
  transition: background var(--transition);
}

.nav-menu-btn:hover {
  background: var(--border2);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.mobile-menu.open {
  display: flex;
  max-height: 400px;
  padding: 8px 0 16px;
}

.mobile-menu a {
  padding: 12px 28px;
  font-size: 0.9rem;
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.mobile-menu a:hover {
  color: var(--white);
  background: var(--border2);
}

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 650px;
  background: radial-gradient(ellipse, rgba(57, 255, 143, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 40px;
  margin-bottom: 26px;
}

.hero-title {
  margin-bottom: 22px;
  line-height: 1.05;
}

.hero-title-accent {
  color: var(--green);
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.45;
}

.hero-p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 470px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-quote {
  border-left: 2px solid var(--green);
  padding: 14px 20px;
  background: var(--green-dim);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.87rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 460px;
}

/* Hero card (mock UI) */
.hero-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r3);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray2);
}

.card-header span {
  margin-left: 6px;
}

.card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.card-dot.r { background: #ff5f57; }
.card-dot.y { background: #febc2e; }
.card-dot.g { background: #28c840; }

.mix-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 18px;
}

.ingredient-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 0.83rem;
}

.ingredient-label {
  color: var(--gray);
  min-width: 130px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w, 0%);
  border-radius: 3px;
  background: var(--green);
  animation: barGrow 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: left;
}

@keyframes barGrow {
  from { width: 0 !important; }
}

.bar-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  min-width: 32px;
  text-align: right;
}

.card-score {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.score-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray2);
  margin-top: 3px;
}

.score-val {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--green);
  line-height: 1;
}

.score-max {
  font-size: 0.95rem;
  color: var(--gray2);
}

/* ------------------------------------------------------------
   STEPS
   ------------------------------------------------------------ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 52px;
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
  gap: 1px;
  background: var(--border2);
}

.step-item {
  background: var(--bg3);
  padding: 32px 22px;
  transition: background var(--transition);
}

.step-item:hover {
  background: var(--bg4);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--green);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.step-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-item p {
  font-size: 0.84rem;
  line-height: 1.65;
}

/* ------------------------------------------------------------
   FEATURE CARDS
   ------------------------------------------------------------ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.feature-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 30px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.87rem;
  line-height: 1.7;
}

.feature-detail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--gray2);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   CHARTS SECTION
   ------------------------------------------------------------ */
.charts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 52px;
}

.chart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chart-item {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 20px 22px;
  transition: border-color var(--transition);
}

.chart-item:hover {
  border-color: var(--border);
}

.chart-item-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--white);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.chart-item-title::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

.chart-item p {
  font-size: 0.84rem;
  padding-left: 15px;
}

/* Tech box */
.tech-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 30px;
  position: sticky;
  top: 88px;
}

.tech-box-header {
  margin-bottom: 16px;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--green);
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 500;
}

.tech-box h3 {
  font-size: 1.05rem;
  color: var(--white);
}

.tech-box p {
  font-size: 0.82rem;
  line-height: 1.72;
  margin-bottom: 12px;
}

.tech-box p:last-of-type {
  margin-bottom: 0;
}

.tech-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
}

/* ------------------------------------------------------------
   SCIENCE
   ------------------------------------------------------------ */
.science-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.science-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 28px;
  transition: border-color var(--transition);
}

.science-card:hover {
  border-color: var(--border);
}

.science-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--white);
}

.science-card p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.science-quote {
  margin-top: 48px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 44px 52px;
  text-align: center;
}

.science-quote blockquote {
  font-family: var(--font-head);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 18px;
  font-style: normal;
}

.science-quote cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  letter-spacing: 0.08em;
  font-style: normal;
}

/* ------------------------------------------------------------
   PROFILES
   ------------------------------------------------------------ */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.profile-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.profile-card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
}

.profile-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile-card:hover::after {
  transform: scaleX(1);
}

.profile-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.profile-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.profile-card > p {
  font-size: 0.86rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.profile-change {
  padding-top: 14px;
  border-top: 1px solid var(--border2);
  font-size: 0.82rem;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   TOUR / SCREENSHOTS
   ------------------------------------------------------------ */
.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 52px;
}

.tour-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color var(--transition);
}

.tour-card:hover {
  border-color: var(--border);
}

/* Screen preview area */
.tour-screen {
  background: var(--bg);
  border-bottom: 1px solid var(--border2);
  padding: 20px;
  min-height: 170px;
}

.screen-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.screen-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.screen-bar span:nth-child(1) { background: #ff5f57; }
.screen-bar span:nth-child(2) { background: #febc2e; }
.screen-bar span:nth-child(3) { background: #28c840; }

.screen-title-bar {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray2);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

/* If using real screenshots */
.tour-screen img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Mock elements */
.mock-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-list-row {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gray2);
  padding: 6px 10px;
  background: var(--border2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-list-row::before {
  content: '';
  width: 16px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  flex-shrink: 0;
  opacity: 0.7;
}

.mock-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--gray2);
}

.mock-bar-row > span:first-child {
  min-width: 80px;
  color: var(--gray2);
}

.mock-bar-row > span:last-child {
  min-width: 30px;
  text-align: right;
  color: var(--green);
}

.mock-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.mock-bar-fill {
  height: 100%;
  width: var(--w, 0%);
  background: var(--green);
  border-radius: 2px;
  animation: barGrow 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding-top: 10px;
}

.mock-chart-bar {
  flex: 1;
  height: var(--h, 50%);
  background: var(--green);
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  animation: mockBarUp 0.8s ease both;
}

.mock-chart-bar:nth-child(2) { animation-delay: 0.05s; opacity: 0.85; }
.mock-chart-bar:nth-child(3) { animation-delay: 0.1s; opacity: 1; }
.mock-chart-bar:nth-child(4) { animation-delay: 0.15s; opacity: 0.75; }
.mock-chart-bar:nth-child(5) { animation-delay: 0.2s; opacity: 0.65; }
.mock-chart-bar:nth-child(6) { animation-delay: 0.25s; opacity: 0.9; }

@keyframes mockBarUp {
  from { height: 0 !important; }
}

.mock-shimmer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 8px;
}

.mock-shimmer-row {
  height: 7px;
  width: var(--w, 100%);
  background: var(--border2);
  border-radius: 4px;
  animation: shimmer 2s ease-in-out infinite;
}

.mock-shimmer-row:nth-child(2) { animation-delay: 0.2s; }
.mock-shimmer-row:nth-child(3) { animation-delay: 0.4s; }
.mock-shimmer-row:nth-child(4) { animation-delay: 0.6s; }
.mock-shimmer-row:nth-child(5) { animation-delay: 0.8s; }

@keyframes shimmer {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.6; }
}

.mock-compare {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 80px;
  padding-top: 10px;
}

.mock-compare-col {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 100%;
}

.mock-compare-col > div {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 3px 3px 0 0;
}

.mock-compare-col.green > div { background: var(--green); opacity: 0.75; }
.mock-compare-col.blue > div  { background: var(--blue-accent); opacity: 0.45; }

.mock-dl-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-dl-item {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 10px;
}

/* Tour info */
.tour-info {
  padding: 22px;
}

.tour-num {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  color: var(--green);
  letter-spacing: 0.14em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.tour-card-title {
  font-size: 1.02rem;
  color: var(--white);
  margin-bottom: 8px;
}

.tour-info p {
  font-size: 0.83rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.tour-next {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tour-next::after {
  content: '→';
  color: var(--green);
}

.tour-next-end {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
}

.tour-note {
  margin-top: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border2);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: 0.8rem;
  color: var(--gray2);
  font-family: var(--font-mono);
}

.tour-note code {
  background: none;
  padding: 0;
  font-size: 0.8em;
  color: var(--green);
}

/* ------------------------------------------------------------
   DOWNLOAD
   ------------------------------------------------------------ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.dl-card {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r3);
  padding: 34px 26px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dl-card:hover {
  border-color: var(--border);
  transform: translateY(-5px);
}

.dl-featured {
  border-color: var(--border) !important;
  background: var(--green-dim);
}

.dl-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  display: block;
}

.dl-title {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 7px;
}

.dl-sub {
  font-size: 0.83rem;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.5;
}

.dl-steps {
  list-style: none;
  counter-reset: step-counter;
  text-align: left;
  width: 100%;
  margin-bottom: 18px;
}

.dl-steps li {
  font-size: 0.79rem;
  color: var(--gray);
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid var(--border2);
  counter-increment: step-counter;
}

.dl-steps li:last-child {
  border-bottom: none;
}

.dl-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--green);
  line-height: 1;
}

.dl-req {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--gray2);
  margin-bottom: 22px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.dl-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.dl-note {
  margin-top: 36px;
  background: var(--warn);
  border: 1px solid var(--warn-border);
  border-radius: var(--r);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--warn-text);
  line-height: 1.65;
}

.dl-note strong {
  color: #d4b060;
}

/* ------------------------------------------------------------
   WEBAPP
   ------------------------------------------------------------ */
.webapp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 52px;
}

.webapp-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.webapp-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.webapp-feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 2px;
}

.webapp-feature h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--white);
}

.webapp-feature p {
  font-size: 0.84rem;
  line-height: 1.65;
}

.webapp-cta-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.webapp-cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.webapp-cta-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.webapp-cta-box h3 {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.webapp-cta-box p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 26px;
  line-height: 1.65;
}

.webapp-cta-box .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.98rem;
  padding: 15px;
}

.webapp-compat {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray2);
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   FAQ
   ------------------------------------------------------------ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 52px;
  background: var(--border2);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  overflow: hidden;
}

.faq-item {
  background: var(--bg3);
  padding: 26px 28px;
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}

.faq-item:hover {
  background: var(--bg4);
}

.faq-item.open {
  background: var(--green-dim);
}

.faq-q {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  line-height: 1.4;
}

.faq-q::after {
  content: '+';
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  margin-top: -2px;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 0.83rem;
  color: var(--gray);
  line-height: 1.72;
  margin-top: 14px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ------------------------------------------------------------
   CTA FINAL
   ------------------------------------------------------------ */
#cta-final {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(57, 255, 143, 0.055) 0%, transparent 68%);
  pointer-events: none;
}

.cta-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
}

#cta-final h2 {
  margin-bottom: 18px;
}

#cta-final > .container > p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 520px;
  margin: 0 auto 38px;
  line-height: 1.78;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.cta-tagline {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gray2);
  letter-spacing: 0.14em;
}

.cta-tagline span {
  color: var(--green);
}

/* ------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border2);
  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: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.footer-logo span {
  color: var(--green);
}

.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--gray2);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--green);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray2);
}

/* ------------------------------------------------------------
   SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ------------------------------------------------------------
   RESPONSIVE — TABLET
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .charts-layout {
    grid-template-columns: 1fr;
  }

  .tech-box {
    position: static;
  }
}

/* ------------------------------------------------------------
   RESPONSIVE — MOBILE
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .nav-links  { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-menu-btn { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-p {
    max-width: 100%;
  }

  .hero-quote {
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .science-grid {
    grid-template-columns: 1fr;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .tour-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .webapp-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .science-quote {
    padding: 28px 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .cta-btns {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   COUNTERS
   ============================================================ */

/* Hero stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 28px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 460px;
}

.stat-item {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  transition: background var(--transition);
}

.stat-item:hover {
  background: var(--bg4);
}

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-num.loading {
  animation: statPulse 1.4s ease-in-out infinite;
}

@keyframes statPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.8; }
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray2);
  display: block;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border2);
  flex-shrink: 0;
}

/* Download counter badge */
.dl-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gray2);
  letter-spacing: 0.06em;
}

.dl-counter-num {
  color: var(--green);
  font-weight: 500;
  animation: statPulse 1.4s ease-in-out infinite;
}

.dl-counter-num.loaded {
  animation: none;
}

/* Webapp counter inline */
.webapp-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gray2);
  margin-top: 14px;
  letter-spacing: 0.06em;
}

.webapp-counter-num {
  color: var(--green);
  font-weight: 500;
  font-family: var(--font-head);
  font-size: 0.9rem;
}

.webapp-counter-dot {
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

/* Counter config warning banner (shown when DB not configured) */
.counter-warning {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 200;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.3);
  border-radius: var(--r);
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #c8a840;
  max-width: 320px;
  line-height: 1.6;
}

.counter-warning.visible {
  display: block;
}
