/* ============================================================
   CYBOCRON — Global Design System
   ============================================================ */

:root {
  /* Gradient Palette */
  --grad-1: #0f2035;
  --grad-2: #1a3a55;
  --grad-3: #2a5478;
  --grad-4: #3d7aab;
  --grad-5: #5a9fd4;

  /* Text */
  --text-primary: #ffffff;
  --text-body: rgba(255,255,255,0.85);
  --text-muted: rgba(255,255,255,0.5);

  /* Glassmorphism */
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --glass-blur: blur(20px) saturate(160%);
  --glass-shadow: 0 8px 32px rgba(0,0,0,0.18);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --nav-height: 50px;
  --section-pad: 80px;
  --container-width: 1380px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: #0f2035;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Live Animated Gradient ─── */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(130deg,
    var(--grad-1),
    var(--grad-2),
    var(--grad-3),
    var(--grad-4),
    var(--grad-5),
    var(--grad-2)
  );
  background-size: 500% 500%;
  animation: bgShift 18s ease infinite;
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.1;
}

p { line-height: 1.75; color: var(--text-body); }

.text-muted { color: var(--text-muted); }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

/* ─── Section Spacing ─── */
section { padding: var(--section-pad) 0; }

/* ─── Glassmorphic Card ─── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 36px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* ─── Buttons ─── */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-pill:hover {
  background: rgba(0,0,0,0.75);
  transform: translateY(-2px);
}

/* ─── Pulsing Dot ─── */
.dot-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: dotPulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.6); opacity: 0.5; }
}

/* ─── NAVBAR ─── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 990;
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: backdrop-filter 0.4s ease, background 0.4s ease;
}

header.scrolled {
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.4rem;
}

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-weight: 300;
  font-size: 0.92rem;
  transition: color 0.25s;
}

nav a:hover,
nav a.active {
  color: #ffffff;
}

/* ─── Hamburger ─── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1010;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  color: var(--text-primary);
  width: fit-content;
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.hero-bottom-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-description {
  max-width: 420px;
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 0;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* ─── Hero Visual Column ─── */
.hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── #hero-visual Container ─── */
#hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 480px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* Animated SVG dashed border */
#hero-visual-rect {
  animation: dashTravel 6s linear infinite;
}

@keyframes dashTravel {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}

/* ── Glass IDE Styles ── */
.glass-editor {
  background: rgba(10, 15, 25, 0.65) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  font-family: 'Courier New', monospace;
}

.code-chrome {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.chrome-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.chrome-filename {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-left: 12px;
  font-family: var(--font-body);
}

.c-kw { color: #7eb8d4; }
.c-pr { color: rgba(255,255,255,0.85); }
.c-st { color: #a8d4a0; }
.c-pn { color: rgba(255,255,255,0.35); }
.c-pl { color: rgba(255,255,255,0.7); }
.c-ky { color: #d4a0e8; }
.c-num { color: #febc2e; }
.c-cmd { color: rgba(255,255,255,0.4); font-style: italic; }

/* ── 3D ISOMETRIC ENGINE STACK ── */

.scene-3d {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(0deg) rotateZ(0deg) scale(0.8);
  display: flex;
  justify-content: center;
  align-items: center;
}

.iso-layer {
  position: absolute;
  width: 360px;
  height: 280px;
  border-radius: 16px;
  box-sizing: border-box;
  transform-style: preserve-3d;
}

/* Layer 1: Data Grid */
.layer-data {
  background: rgba(30, 45, 60, 0.6);
  border: 1px solid rgba(126,184,212,0.4);
  box-shadow: 0 0 20px rgba(126,184,212,0.15), inset 0 0 30px rgba(0,0,0,0.5);
  overflow: hidden;
}
.data-grid {
  position: absolute;
  width: 200%; height: 200%;
  top: -50%; left: -50%;
  background-image: linear-gradient(rgba(126,184,212,0.1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(126,184,212,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  transform: rotateZ(15deg);
  animation: gridSlide 10s linear infinite;
}
@keyframes gridSlide {
  0% { transform: translateY(0) rotateZ(15deg); }
  100% { transform: translateY(40px) rotateZ(15deg); }
}
.scan-laser {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #7eb8d4;
  box-shadow: 0 0 15px 3px #7eb8d4;
  top: -10%;
  opacity: 0;
  z-index: 2;
}
.ds-text {
  position: absolute;
  font-family: monospace;
  font-size: 0.6rem;
  color: #a8d4e8;
  opacity: 0;
  filter: blur(4px);
  text-shadow: 0 0 5px #7eb8d4;
}

/* Layer 2: Code Editor */
.layer-code {
  transform: translateZ(100px);
  opacity: 0;
}
.iso-line {
  opacity: 0;
  white-space: pre;
}

/* Tethers (Vertical Beams) */
.tether {
  position: absolute;
  width: 2px;
  background: linear-gradient(to top, rgba(126,184,212,0), #a8d4e8);
  transform-style: preserve-3d;
  transform: rotateX(-90deg);
  transform-origin: bottom center;
  height: 0px; 
  box-shadow: 0 0 10px #7eb8d4;
  z-index: 5;
}

/* Layer 3: UI Dashboard Build */
.layer-ui {
  transform: translateZ(200px);
  opacity: 0;
}
.ui-glass {
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.ui-header {
  display: flex;
  margin-bottom: 20px;
}
.ui-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ui-el {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  transform: translateZ(0px) scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s, background 0.5s;
}
.ui-bar {
  height: 12px;
  border-radius: 6px;
}
.ui-circle {
  width: 24px; height: 24px;
  border-radius: 50%;
}
.ui-block-lg {
  margin-top: 10px;
  height: 80px;
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.15);
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 10px;
}
.ui-graph-bar {
  width: 20px;
  border-radius: 4px 4px 0 0;
  background: rgba(126,184,212,0.4);
}
#ug-1 { height: 40%; }
#ug-2 { height: 80%; }
#ug-3 { height: 60%; }

.el-visible {
  opacity: 1 !important;
  transform: translateZ(20px) scale(1) !important; 
  background: rgba(255,255,255,0.2) !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
}
#ug-1.el-visible, #ug-2.el-visible, #ug-3.el-visible {
  background: linear-gradient(to top, rgba(126,184,212,0.2), #7eb8d4) !important;
}

/* ══ UPGRADE 1: Decipher Text ══ */
.decipher-target {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  color: #a8d4e8;
  text-shadow: 0 0 6px rgba(126,184,212,0.8), 0 0 12px rgba(126,184,212,0.4);
  transition: none;
}

/* ══ UPGRADE 2: Fiber Optic SVG Tethers ══ */
.tether-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.fiber-pulse {
  filter: drop-shadow(0 0 4px #7eb8d4) drop-shadow(0 0 8px #a8d4e8);
  transition: opacity 0.15s;
}

/* ══ UPGRADE 3: HUD Micro-Interface ══ */
.hud-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(126,184,212,0.2);
  z-index: 10;
}
.hud-tl { top: 8px; left: 8px; }
.hud-br { bottom: 8px; right: 8px; }

.hud-micro {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: rgba(126,184,212,0.8);
  white-space: nowrap;
  text-transform: uppercase;
}

.hud-ring {
  width: 18px; height: 18px;
  animation: hudSpin 4s linear infinite;
  flex-shrink: 0;
}
@keyframes hudSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.blink-slow {
  animation: blinkAnim 2s step-end infinite;
}
@keyframes blinkAnim {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Equalizer bars */
.hud-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 10px;
}
.eq-bar {
  display: block;
  width: 3px;
  height: var(--h, 50%);
  background: rgba(126,184,212,0.7);
  border-radius: 1px 1px 0 0;
  transition: height 0.15s ease;
}

/* ─── Section Heading ─── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.section-heading {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 45px;
  color: var(--text-primary);
}

/* ─── Grid Utilities ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

/* ─── Service / Feature Cards ─── */
.service-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.card-body {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: opacity 0.25s;
}

.card-link:hover { opacity: 0.65; }

/* ─── Tech Pills ─── */
.tech-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.8);
  margin: 3px 3px 3px 0;
}

/* ─── Category Badge ─── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* ─── Stats Row ─── */
.stats-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ─── Alternating Feature Row ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 100px;
}

.feature-row.reverse > .feature-visual { order: -1; }

.feature-visual {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.feature-stat {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-top: 20px;
}

/* ─── Process Timeline ─── */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 70px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -54px;
  top: 22px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

/* ─── Accordion FAQ ─── */
.accordion-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion-item:hover { border-color: rgba(255,255,255,0.22); }

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.97rem;
  user-select: none;
}

.accordion-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  color: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 28px;
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  line-height: 1.75;
}

.accordion-item.open .accordion-body {
  max-height: 300px;
  padding: 0 28px 22px;
}

/* ─── Filter Buttons ─── */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.filter-btn.active {
  background: rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

/* ─── Portfolio Card ─── */
.portfolio-card { transition: all 0.3s ease; }
.portfolio-card.hidden { display: none; }

.result-metric {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 10px 0 8px;
}

/* ─── Pricing Toggle ─── */
.pricing-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 36px;
}

.toggle-wrap {
  position: relative;
  width: 58px;
  height: 30px;
  background: rgba(255,255,255,0.12);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-knob {
  position: absolute;
  top: 4px; left: 4px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
}

.toggle-wrap.on .toggle-knob { transform: translateX(28px); }
.toggle-label { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.toggle-label.active { color: #fff; font-weight: 600; }

/* Pricing card heights match on desktop */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.pricing-card { position: relative; }

.pricing-card.featured {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-6px) scale(1.03);
  animation: featuredGlow 3.5s ease-in-out infinite;
}

.pricing-card.featured:hover {
  transform: translateY(-12px) scale(1.03);
}

@keyframes featuredGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.05), var(--glass-shadow); }
  50%       { box-shadow: 0 0 40px 6px rgba(255,255,255,0.1), var(--glass-shadow); }
}

.badge-pill-top {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 16px;
}

.price-display {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin: 10px 0 6px;
  line-height: 1;
}

.price-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.8);
  font-size: 0.87rem;
}

.feature-list li::before { content: "✓ "; color: #4ade80; font-weight: 700; }

/* ─── Blog Card ─── */
.post-date {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 12px 0 8px;
}

/* ─── Team Card ─── */
.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.18);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* ─── Contact Form ─── */
.form-field {
  width: 100%;
  padding: 14px 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.93rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-field::placeholder { color: rgba(255,255,255,0.3); }
.form-field:focus { border-color: rgba(255,255,255,0.4); }

select.form-field option { background: #1e3a5f; color: #fff; }

/* ─── Chat Sidebar ─── */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.chat-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.chat-sidebar {
  position: fixed;
  top: 0; right: 0;   /* Changed back to right side sliding */
  width: 380px;
  height: 100vh;
  z-index: 1999;
  display: flex;
  flex-direction: column;
  background: transparent;
  padding: 16px;
  box-sizing: border-box;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chat-sidebar.active { transform: translateX(0); }

/* Telegram Context Menu */
.chat-context-menu {
  position: fixed;
  background: rgba(15, 45, 85, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  z-index: 2000;
  min-width: 150px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.15s, transform 0.15s;
}

.chat-context-menu.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.chat-context-action {
  padding: 12px 18px;
  color: #fff;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-context-action:hover {
  background: rgba(255,255,255,0.08);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(15, 45, 85, 0.95);
  border-radius: 40px; /* Pill shape */
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-bottom: 12px; /* Gap between header and the rest */
}

.chat-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
}

.chat-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 0;
}

.chat-close-btn:hover { color: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(35, 80, 140, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 24px 24px 0 0; /* Rounded top corners */
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom: none;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.msg {
  max-width: 87%;
  padding: 12px 18px;
  font-size: 0.92rem;
  line-height: 1.55;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(12px);
  animation: msgEntrance 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: background-color 0.4s ease;
}

@keyframes msgEntrance {
  to { opacity: 1; transform: translateY(0); }
}

.msg-highlight {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.msg.user {
  align-self: flex-end;
  background: rgba(0, 100, 200, 0.6);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  border: 1px solid rgba(255,255,255,0.1);
}

.msg.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
  border-radius: 4px 18px 18px 18px;
  border: 1px solid rgba(255,255,255,0.15);
}

.quote-embed {
  border-left: 3px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.15);
  padding: 6px 10px;
  margin-bottom: 8px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-size: 0.82rem;
  transition: background 0.2s;
}

.quote-embed:hover { background: rgba(0,0,0,0.25); }

.quote-embed-title {
  font-weight: 600;
  color: #a8d4e8;
  margin-bottom: 2px;
}

.msg.user .quote-embed-title { color: #fff; } /* Override for user bubble */

.quote-embed-text {
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.typing-indicator {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 12px 17px;
  background: rgba(255,255,255,0.09);
  border-radius: 18px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.45);
  border-radius: 50%;
  animation: typingBounce 1.1s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 100% { transform: translateY(0); }
  40%       { transform: translateY(-6px); }
}

.chat-quote-bar {
  background: rgba(25, 60, 105, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border-top: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid #a8d4e8;
  padding: 0 18px; /* handled by transition */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-quote-bar.active {
  max-height: 80px;
  opacity: 1;
  padding: 10px 18px;
}

.quote-bar-content {
  display: flex;
  flex-direction: column;
}

.quote-bar-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a8d4e8;
  margin-bottom: 2px;
}

.quote-bar-text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}

.quote-bar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.quote-bar-close:hover { color: #fff; }

.chat-input-wrap {
  padding: 18px 18px 22px;
  display: flex;
  gap: 10px;
  background: rgba(35, 80, 140, 0.45);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 0 0 24px 24px; /* Rounded bottom corners */
  border: 1px solid rgba(255,255,255,0.15);
  border-top: 1px solid rgba(255,255,255,0.05); /* subtle divider */
}

.chat-input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 40px;
  padding: 11px 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s;
}

.chat-input::placeholder { color: rgba(255,255,255,0.32); }
.chat-input:focus { border-color: rgba(255,255,255,0.35); }

.chat-send-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s;
}

.chat-send-btn:hover { background: rgba(0,0,0,0.65); }

/* ─── CTA Section ─── */
.cta-section .glass-card {
  text-align: center;
  padding: 80px 60px;
}

.cta-email-row {
  display: flex;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

.cta-email-input {
  flex: 1;
  padding: 14px 22px;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.cta-email-input::placeholder { color: rgba(255,255,255,0.35); }
.cta-email-input:focus { border-color: rgba(255,255,255,0.35); }

/* ─── Footer ─── */
footer {
  background: rgba(10,20,40,0.5);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

.footer-col h4 {
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: color 0.25s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ─── Compact Page Header (inner pages) ─── */
.page-header {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: 36px;
}

.page-header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin: 14px 0 12px;
  max-width: 700px;
}

.page-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease-out, transform 0.75s ease-out;
}

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

.reveal-immediate {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse > .feature-visual { order: unset; }
  .feature-visual { height: 260px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .hamburger { display: flex; }

  nav ul {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    background: rgba(20,50,90,0.97);
    backdrop-filter: blur(20px);
    z-index: 1005;
  }

  nav ul.open { display: flex; }
  nav a { font-size: 1.4rem; }

  .hero { min-height: 100vh; }
  .hero-content { grid-template-columns: 1fr; }
  #hero-visual { display: none; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.6rem); }
  .hero-bottom-row { gap: 16px; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .chat-sidebar { 
    width: 100%;
    right: 0;
    bottom: 0;
    height: 80vh;
    border-radius: 24px 24px 0 0;
  }

  .cta-email-row { flex-direction: column; }
  .cta-email-row .btn-pill { justify-content: center; }
}

@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 8px; }
}
