@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

:root {
  /* Core Palette */
  --color-base: #0e0e0e;
  --color-surface: #0e0e0e;
  --color-surface-low: #131313;
  --color-surface-container: #1a1919;
  --color-surface-high: #262626;
  --color-surface-bright: #2c2c2c;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hr: rgba(255, 255, 255, 0.05);
  --color-border-subtle: rgba(255, 255, 255, 0.04);

  --color-accent: #7FFF00;
  /* Chartreuse */
  --color-accent-glow: rgba(127, 255, 0, 0.15);
  --color-accent-fixed: #7efc00;

  --text-main: #FFFFFF;
  --text-muted: #adaaaa;

  --font-main: 'Inter', sans-serif;

  --section-spacing: 80px;
  --container-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
}

ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

html {
  overflow-x: hidden;
  background-color: var(--color-base);
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-base);
  color: var(--text-main);
  line-height: 1.6;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* =============================================
   GLOBAL LINKS
   ============================================= */
a,
a:visited {
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.mono-label {
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
  text-align: center;
}

/* =============================================
   LAYOUT MODULES
   ============================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  text-align: center;
}

.section {
  padding: var(--section-spacing) 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

main > .section:first-child {
  padding-top: 176px;
}

/* =============================================
   SECTION BACKGROUND VARIANTS
   ============================================= */
.section-surface {
  background: var(--color-surface-low);
}

.section-surface-border {
  background: var(--color-surface-low);
  border-top: none;
}

.section-black {
  background: var(--color-base);
}

/* =============================================
   BUTTONS
   ============================================= */
.cta-btn,
a.cta-btn,
a.cta-btn:visited {
  padding: 0.85rem 2rem;
  background: var(--color-accent-fixed);
  color: #1f4700 !important;
  font-family: var(--font-main);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: '';
  display: none;
}

.cta-btn:hover::before {
  display: none;
}

.cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: none;
  color: #1f4700 !important;
}

.cta-btn-lg {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.cta-btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.65rem;
  white-space: nowrap;
  margin: 0;
}

.cta-btn-full {
  width: 100%;
  margin-top: auto;
}

.cta-secondary {
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--color-border);
  font-family: var(--font-main);
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-block;
}

.cta-secondary:hover {
  background: var(--color-surface-low);
  color: var(--text-main);
}

.cta-secondary-lg {
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.cta-secondary-full {
  width: 100%;
  margin-top: auto;
}

/* =============================================
   GRID SYSTEMS
   ============================================= */
.symmetric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  justify-content: center;
  margin-top: 3rem;
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pricing-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =============================================
   CARDS
   ============================================= */
.arch-card {
  border: 1px solid var(--color-border-subtle);
  padding: 2.5rem 2rem;
  background: var(--color-surface-container);
  transition: all 0.3s ease;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 12px;
}

.arch-card:hover {
  background: var(--color-surface-bright);
  border-color: var(--color-border-subtle);
  transform: none;
}

.arch-card i {
  color: var(--color-accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 255, 0, 0.08);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.arch-card:hover i {
  transform: scale(1.1);
}

/* =============================================
   GRAIN OVERLAY
   ============================================= */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

/* =============================================
   TRUST TICKER
   ============================================= */
.brand-carousel-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--color-base);
  position: relative;
  z-index: 1;
}

.brand-carousel-viewport {
  flex: 1;
  overflow: hidden;
}

.brand-carousel-track {
  display: flex;
  gap: 3rem;
  transition: transform 0.4s ease;
}

.brand-carousel-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-carousel-icon {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
  fill: var(--color-accent);
  flex-shrink: 0;
}

.brand-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  background: rgba(127, 255, 0, 0.1);
  color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.brand-carousel-arrow:hover {
  background: rgba(127, 255, 0, 0.2);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  background: transparent;
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}

/* Hero split layout */
.hero-split {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: end;
}

.hero-split-left {
  text-align: center;
  overflow: hidden;
  min-width: 0;
}

.hero-split-left * {
  text-align: center;
}

.hero-split-left .mono-label {
  text-align: center;
  margin-top: 0;
  color: #fff;
}

.hero-split-left h1 {
  font-size: 2.8rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.5rem;
  padding-top: 20px;
  padding-bottom: 20px;
  color: #fff;
}

.hero-split-left .hero-subtitle-centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 480px;
  color: #fff;
}

.hero-split-left .hero-cta-row {
  justify-content: center;
}

.hero-split-right {
  position: relative;
  padding-top: 100px;
  min-width: 0;
  overflow: hidden;
}

.hero-code-panel {
  background: var(--color-surface-low);
  border-radius: 12px;
  padding: 4px;
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 0 15px rgba(127, 255, 0, 0.15);
  width: 520px;
  max-width: 100%;
}

.hero-code-panel-inner {
  background: #000;
  border-radius: 9px;
  padding: 2rem 1.5rem;
  position: relative;
  height: 350px;
  overflow: hidden;
}

.hero-code-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.hcd {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.hcd-red { background: rgba(255, 95, 87, 0.4); }
.hcd-yellow { background: rgba(254, 188, 46, 0.4); }
.hcd-green { background: rgba(127, 255, 0, 0.4); }

.hero-code-pre {
  font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 2.1;
  color: #fff;
  margin: 0;
  text-align: left;
  white-space: pre;
  overflow: hidden;
}

.hero-code-pre * {
  text-align: left;
}

.hc-comment { color: rgba(255, 255, 255, 0.4); }
.hc-kw { color: #fff; }
.hc-attr { color: #fff; }
.hc-str { color: #fff; }
.hc-comment-green { color: var(--color-accent); }

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-demo-panel {
  width: 520px;
  max-width: 100%;
}

.hero-demo-panel-primary {
  width: 100%;
  max-width: 560px;
  margin: 2rem auto 0;
  min-height: 90px;
}

.hero-demo-input-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hero-demo-input-primary {
  gap: 0;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 20px rgba(127,255,0,0.15), 0 0 40px rgba(127,255,0,0.06);
}

.hero-demo-input-primary .hero-demo-input {
  border: none;
  border-radius: 0;
  padding: 1rem 1.2rem;
  font-size: 1.05rem;
  background: var(--color-surface);
}

.hero-demo-input-primary .hero-demo-input:focus {
  outline: none;
}

.hero-demo-input.cursor-blink {
  caret-color: var(--color-accent);
  animation: cursor-pulse 1s step-end infinite;
}

@keyframes cursor-pulse {
  0%, 100% { caret-color: var(--color-accent); }
  50% { caret-color: transparent; }
}

.hero-demo-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1.5px solid rgba(127,255,0,0.35);
  background: var(--color-surface);
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.hero-demo-btn-primary {
  border-radius: 0;
  padding: 1rem 1.8rem;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 200px;
  text-align: center;
}

.hero-demo-helper {
  color: #888;
  font-size: 0.82rem;
  text-align: center;
  margin: 0;
}

.hero-cta-row-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-link-secondary {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.hero-link-secondary:hover {
  opacity: 1;
}

.hero-link-divider {
  color: #555;
  font-size: 0.9rem;
}

.hero-link-tertiary {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.hero-link-tertiary:hover {
  opacity: 1;
  color: #aaa;
}

.hero-demo-mockup {
  border-radius: 14px;
  border: 1.5px solid rgba(127,255,0,0.35);
  background: #151517;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(127,255,0,0.15), 0 0 40px rgba(127,255,0,0.08), 0 8px 32px rgba(0,0,0,0.3);
  height: 540px;
  display: flex;
  flex-direction: column;
}

.hero-demo-mockup .demo-mockup-header {
  flex-shrink: 0;
}

.hero-demo-mockup .demo-mockup-body {
  flex: 1;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  gap: 0;
  display: block;
  position: relative;
  contain: layout size style;
}

.hero-demo-mockup .demo-mockup-input-bar {
  flex-shrink: 0;
}

.hero-demo-mockup embedai-chat {
  display: block;
  height: 100%;
}

@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(127,255,0,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(127,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,255,0,0); }
}
.pulse-once { animation: pulse-btn 0.6s ease-out; }

.hero-code-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: rgba(127, 255, 0, 0.08);
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
}

#hero h1 {
  font-size: 3.5rem;
  line-height: 1.05;
  margin: 0.6rem 0;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 80px;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-cta-row {
  margin-bottom: calc(1rem + 30px);
  align-items: center;
}

/* =============================================
   COPY BUTTON
   ============================================= */
.copy-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  cursor: pointer;
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  transition: background 0.2s ease;
}

.copy-btn-inline {
  background: transparent;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
}

/* =============================================
   HERO BEFORE/AFTER SLIDER (Portrait / Vertical)
   ============================================= */
.ba-after  { z-index: 1; background: #0f1117; }

/* Horizontal slider line that moves vertically */
.ba-slider {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  z-index: 10;
  top: 50%;
  box-shadow: 0 0 20px rgba(127,255,0,0.4);
  transition: top 0.05s linear;
}
.ba-slider::after {
  content: '\25B2\A\25BC';
  white-space: pre;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #000;
  box-shadow: 0 0 15px rgba(127,255,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  line-height: 1;
  color: #000;
  letter-spacing: 0;
}
@keyframes pulse-ba { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* === BEFORE: Old-school chat (top half) === */
.old-chat {
  flex: 1;
  background: #ece9d8;
  font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
  font-size: 11px;
  color: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.old-chat-titlebar {
  background: linear-gradient(180deg, #0a246a 0%, #3a6ea5 4%, #0a246a 100%);
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.old-chat-titlebar-btns { display: flex; gap: 2px; }
.old-chat-titlebar-btn {
  width: 14px; height: 12px;
  background: #d4d0c8;
  border: 1px outset #fff;
  font-size: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #000;
}
.old-chat-toolbar {
  background: #ece9d8;
  padding: 2px 4px;
  border-bottom: 1px solid #808080;
  display: flex;
  gap: 0;
  font-size: 10px;
}
.old-chat-toolbar span { padding: 1px 6px; }
.old-chat-toolbar span:hover { background: #316ac5; color: #fff; }
.old-chat-body {
  flex: 1;
  background: #fff;
  padding: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.old-chat-msg {
  font-size: 11px;
  line-height: 1.4;
  padding: 4px 0;
}
.old-chat-msg b { color: #00c; }
.old-chat-msg.system { color: #808080; font-style: italic; font-size: 10px; }
.old-chat-msg.bot b { color: #c00; }
.old-chat-input-area {
  background: #ece9d8;
  border-top: 1px solid #808080;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.old-chat-input {
  flex: 1;
  height: 22px;
  border: 1px inset #808080;
  background: #fff;
  font-size: 10px;
  padding: 0 4px;
  font-family: inherit;
}
.old-chat-send {
  background: #d4d0c8;
  border: 1px outset #fff;
  padding: 2px 10px;
  font-size: 10px;
  font-family: inherit;
  cursor: default;
}
.old-chat-statusbar {
  background: #ece9d8;
  border-top: 1px solid #808080;
  padding: 1px 6px;
  font-size: 9px;
  color: #808080;
}

/* === AFTER: Modern AI chat (bottom half) === */
.modern-chat {
  flex: 1;
  background: #0f1117;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 13px;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modern-chat-header {
  background: #161822;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modern-chat-logo {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--color-accent), #00d4aa);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #000; font-weight: 900;
}
.modern-chat-header-text { display: flex; flex-direction: column; }
.modern-chat-header-title { font-size: 13px; font-weight: 700; }
.modern-chat-header-sub { font-size: 10px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 4px; }
.modern-chat-online {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-ba 1.5s infinite;
}
.modern-chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.modern-chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.5;
}
.modern-chat-msg.user {
  align-self: flex-end;
  background: rgba(127,255,0,0.12);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.modern-chat-msg.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
}
.modern-chat-msg.ai strong { color: var(--color-accent); }
.modern-chat-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.modern-chat-action {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
}
.modern-chat-action.primary {
  background: rgba(127,255,0,0.12);
  border-color: rgba(127,255,0,0.25);
  color: var(--color-accent);
}
.modern-chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modern-chat-input-box {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}
.modern-chat-send-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #000;
}
.modern-chat-powered {
  text-align: center !important;
  font-size: 9px;
  color: rgba(255,255,255,0.2);
  padding: 4px 0 8px;
  letter-spacing: 0.05em;
}

/* =============================================
   CODE SNIPPET LARGE
   ============================================= */
.copy-btn-large {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
}

/* =============================================
   CHATBOT UI (Global)
   ============================================= */
.chatbot-ui {
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), 0 0 1px 1px var(--color-border);
  min-height: 450px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chatbot-ui.chatbot-glow-subtle {
  border-radius: 12px;
  width: 100%;
  border: 1px solid rgba(127, 255, 0, 0.5);
  box-shadow: 0 0 80px rgba(127, 255, 0, 0.1), 0 0 30px rgba(127, 255, 0, 0.05) inset;
  transform: none;
  height: 400px;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.chatbot-header {
  background: var(--color-surface);
  padding: 3rem 1.5rem;
  /* Increased vertical padding to fill the space */
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  border-radius: 12px 12px 0 0;
  /* Follow card radius */
  align-self: stretch;
}

.chatbot-header-dark {
  background: var(--color-base);
}

.chatbot-body,
.modal-chatbot-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
  align-self: stretch;
}

.chatbot-body::-webkit-scrollbar,
.modal-chatbot-body::-webkit-scrollbar {
  width: 10px;
}

.chatbot-body::-webkit-scrollbar-track,
.modal-chatbot-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb,
.modal-chatbot-body::-webkit-scrollbar-thumb {
  background: rgba(127, 255, 0, 0.4);
  border-radius: 10px;
}

.chatbot-body::-webkit-scrollbar-thumb:hover,
.modal-chatbot-body::-webkit-scrollbar-thumb:hover {
  background: rgba(127, 255, 0, 0.6);
}

/* Firefox scrollbar */
.chatbot-body,
.modal-chatbot-body {
  scrollbar-width: auto;
  scrollbar-color: rgba(127, 255, 0, 0.4) rgba(255, 255, 255, 0.08);
}

.chat-msg {
  text-align: left;
  width: 100%;
}

.chat-msg .mono-label {
  text-align: left;
  margin-bottom: 0.5rem;
}

.chat-msg .msg-box {
  text-align: left;
}

.demo-cta-btn,
.demo-cta-btn:visited,
.demo-cta-btn:link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.4rem;
  background: var(--color-accent) !important;
  color: #000 !important;
  font-weight: 700;
  font-size: 0.85rem !important;
  border-radius: 6px;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
  line-height: 1.4;
}
.demo-cta-btn:hover {
  background: #a0ff40 !important;
  color: #000 !important;
  transform: translateY(-1px);
}

.typing-dots span {
  display: inline-block;
  animation: typingBounce 1.4s infinite;
  font-size: 1.4rem;
  line-height: 0.5;
  color: var(--color-accent);
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

.chatbot-footer {
  padding: 1.25rem 1.5rem;
  background: #000;
  border-top: 1px solid var(--color-border);
  width: 100%;
  box-sizing: border-box;
}

.chatbot-footer-surface {
  background: var(--color-surface);
}

.chatbot-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-accent);
  color: white;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  caret-color: var(--color-accent);
  animation: input-caret-glow 1.2s ease-in-out infinite;
}

@keyframes input-caret-glow {
  0%, 100% { border-color: var(--color-accent); }
  50% { border-color: rgba(127, 255, 0, 0.3); }
}

.chatbot-ui:hover {
  transform: rotateY(0deg) rotateX(0deg);
  box-shadow: 0 0 80px rgba(127, 255, 0, 0.25), 0 0 30px rgba(127, 255, 0, 0.1) inset !important;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}

.mono-label-inline {
  margin: 0;
  font-size: 0.75rem;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav-arch {
  padding: 1rem 0;
  background: rgba(14, 14, 14, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
}

.container-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 4rem;
}

/* Nav menu wrapper (desktop: contents, mobile: toggled) */
.nav-menu {
  display: contents;
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 2100;
  flex-direction: column;
  gap: 5px;
}

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

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-logo-trigger {
  height: 32px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nav-logo-trigger:hover {
  transform: scale(1.1);
}

.nav-name-trigger {
  font-weight: 700;
  letter-spacing: -0.05em;
  font-size: 1.25rem;
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-name-trigger:hover {
  color: var(--color-accent);
}

.nav-accent {
  color: var(--color-accent);
}

.nav-links-group {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.nav-links-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-links-group a:hover {
  color: var(--color-accent);
}

/* =============================================
   MODAL CHATBOT
   ============================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border-radius: 14px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-chatbot-body {
  height: 400px;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-chatbot-footer {
  padding: 1.5rem;
  background: #000;
  border-top: 1px solid var(--color-border);
}

.modal-chatbot-input {
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  width: 100%;
  outline: none;
  caret-color: var(--color-accent);
}

.close-modal {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.close-modal:hover {
  opacity: 1;
  color: var(--color-accent);
}

/* =============================================
   SIGNUP MODAL
   ============================================= */
.signup-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.signup-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.signup-modal-card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s ease;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.signup-modal-overlay.active .signup-modal-card {
  transform: translateY(0) scale(1);
}

.signup-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 0;
  width: auto;
}

.signup-modal-close:hover {
  color: #fff;
}

.signup-modal-logo {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2rem;
  margin-bottom: 20px;
  display: block;
  font-family: 'Outfit', 'Roboto', sans-serif;
}

.signup-modal-heading {
  color: #fff;
  font-size: 1.8rem;
  margin: 0 0 10px;
  font-family: 'Outfit', 'Roboto', sans-serif;
}

.signup-modal-subtitle {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.signup-modal-input {
  width: 100%;
  padding: 15px;
  background: #111;
  border: 1px solid #222;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 20px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.signup-modal-input:focus {
  border-color: var(--color-accent);
}

.signup-modal-submit {
  width: 100%;
  padding: 15px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  font-family: inherit;
}

.signup-modal-submit:hover {
  transform: scale(0.98);
  opacity: 0.9;
}

.signup-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.signup-modal-msg {
  font-size: 0.85rem;
  margin-top: 15px;
  display: none;
}

.signup-modal-msg.error {
  color: #ff4444;
}

.signup-modal-msg.success {
  color: var(--color-accent);
}

.signup-modal-check {
  display: none;
}

.signup-modal-email-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.signup-modal-text {
  color: #ccc;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.signup-modal-email-addr {
  color: var(--color-accent);
  font-weight: 600;
}

.signup-modal-resend {
  color: #888;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  width: auto;
  padding: 0;
  display: inline;
}

.signup-modal-resend:hover {
  color: #fff;
}

.signup-modal-snippet-wrap {
  margin-top: 20px;
  text-align: center;
}

.signup-modal-snippet {
  display: block;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 16px;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-family: 'Roboto Mono', monospace;
  word-break: break-all;
  margin-bottom: 12px;
  text-align: left;
}

.signup-modal-divider {
  border-top: 1px solid #222;
  margin: 24px 0;
}

.signup-modal-login-link {
  color: #888;
  font-size: 0.85rem;
  margin-top: 20px;
  display: block;
}

.signup-modal-login-link a {
  color: var(--color-accent);
  text-decoration: none;
}

/* =============================================
   NAVIGATION DROPDOWN
   ============================================= */
.nav-links-group .dropdown {
  position: relative;
  display: inline-block;
}

.nav-links-group .dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-surface-container);
  min-width: 240px;
  box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border-subtle);
  z-index: 1000;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  border-radius: 10px;
  backdrop-filter: blur(20px);
}

.nav-links-group .dropdown-content::before {
  content: '';
  position: absolute;
  top: -1rem;
  left: 0;
  width: 100%;
  height: 1rem;
  background: transparent;
}

.nav-links-group .dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-title {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-title::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0.5;
}

.nav-links-group .dropdown-content a {
  color: var(--text-muted) !important;
  padding: 0.75rem 1.5rem !important;
  text-decoration: none;
  display: block;
  font-size: 0.85rem !important;
  transition: all 0.2s ease;
  text-align: center !important;
  font-weight: 400 !important;
}

.nav-links-group .dropdown-content a:hover {
  background-color: var(--color-base);
  color: var(--color-accent) !important;
}

/* =============================================
   SECTION HEADINGS (reusable)
   ============================================= */
.section-heading {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-heading-xl {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section-heading-spaced {
  font-size: 3.5rem;
  margin-bottom: 50px;
  letter-spacing: -0.03em;
}

/* =============================================
   MUTED TEXT UTILITIES
   ============================================= */
.text-muted {
  color: var(--text-muted);
}

.text-muted-sm {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.text-muted-spaced {
  color: var(--text-muted);
  margin-bottom: 50px;
}

.text-muted-centered {
  color: var(--text-muted);
  margin-bottom: 50px;
  text-align: center;
}

/* =============================================
   LONG-FORM / SEO CONTENT
   ============================================= */
.strategy-content {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.15rem;
}

.strategy-content p {
  margin-bottom: 2rem;
}

.strategy-content h3 {
  color: #fff;
  margin: 3rem 0 1.5rem;
  font-size: 1.75rem;
}

.strategy-content h4 {
  color: #fff;
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
}

/* --- Callout box (key insight / warning / tip) --- */
.callout-box {
  border-left: 4px solid var(--color-accent);
  background: rgba(127, 255, 0, 0.04);
  padding: 1.5rem 2rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
}

.callout-box.warning {
  border-left-color: #ff9f43;
  background: rgba(255, 159, 67, 0.04);
}

.callout-box.danger {
  border-left-color: #ff5f57;
  background: rgba(255, 95, 87, 0.04);
}

.callout-box strong {
  color: #fff;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.callout-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Icon section header (icon centred above heading) --- */
.icon-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin: 3rem 0 1.5rem;
}

.icon-heading i {
  color: var(--color-accent);
  font-size: 1.75rem;
}

.icon-heading h3,
.icon-heading h4 {
  margin: 0;
  color: #fff;
}

.icon-heading h3 {
  font-size: 1.75rem;
}

.icon-heading h4 {
  font-size: 1.25rem;
}

/* --- Card grid for strategy content --- */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.strategy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.strategy-card i {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  display: block;
}

.strategy-card h4 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.strategy-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Key takeaway box --- */
.key-takeaway {
  background: rgba(127, 255, 0, 0.06);
  border: 1px solid rgba(127, 255, 0, 0.15);
  border-radius: 8px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.key-takeaway strong {
  color: var(--color-accent);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.key-takeaway p {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Numbered list with visual indicators --- */
.numbered-steps {
  counter-reset: numbered-step;
  margin: 2rem 0;
}

.numbered-step {
  counter-increment: numbered-step;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.numbered-step:last-child {
  border-bottom: none;
}

.numbered-step::before {
  content: counter(numbered-step);
  width: 40px;
  height: 40px;
  background: rgba(127, 255, 0, 0.1);
  border: 1px solid rgba(127, 255, 0, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.numbered-step div h4 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.numbered-step div p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Responsive: strategy components --- */
@media (max-width: 768px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .callout-box {
    padding: 1.25rem 1.5rem;
  }

  .numbered-step {
    gap: 1rem;
  }
}

.seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.seo-card {
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  text-align: left;
  position: relative;
}

.seo-card-number {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  line-height: 1;
}

.seo-card-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
  padding-right: 2.5rem;
}

.seo-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.seo-card-points {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.seo-point {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.seo-point i {
  font-size: 1.25rem;
  color: var(--color-accent);
}

.seo-point span {
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.4;
}

.seo-card a {
  color: var(--color-accent);
  text-decoration: none;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-item {
  margin-bottom: 0.75rem;
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: var(--color-surface-bright);
}

.faq-item summary {
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.faq-item summary i {
  color: var(--color-accent);
  flex-shrink: 0;
}

.faq-item p {
  color: var(--text-muted);
  padding-top: 1rem;
  margin: 0;
  line-height: 1.6;
  text-align: left;
}

/* =============================================
   PRICING SECTION
   ============================================= */
.pricing-tier-name {
  font-size: 2rem;
  margin: 1rem 0;
}

.pricing-amount {
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.pricing-amount .period {
  font-size: 0.8rem;
  opacity: 0.6;
}

.pricing-features {
  list-style: none;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-features li {
  margin-bottom: 0.5rem;
}

.pricing-features .highlight-feature {
  color: #fff;
}

.pricing-features .fine-print {
  margin-top: 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

.pricing-secondary {
  font-size: 0.78rem;
  opacity: 0.5;
  margin-bottom: 1rem !important;
  margin-top: -0.25rem !important;
}

.pricing-roi {
  font-size: 0.82rem;
  opacity: 0.7;
  font-style: italic;
  margin-top: 0.5rem !important;
}

.pricing-cta-subtext {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.pricing-card-pro {
  border-radius: 0;
  border-color: transparent;
  border-width: 0;
  background: var(--color-surface-high) !important;
  position: relative;
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin: -1rem 0;
  z-index: 1;
  box-shadow: 0 0 30px rgba(127, 255, 0, 0.08);
}

.mono-label-dim {
  opacity: 0.5;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.contact-input {
  background: var(--color-surface-container);
  border: 1px solid var(--color-border-subtle);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: white;
  width: 100%;
  font-size: 0.95rem;
  text-align: left;
  transition: border-color 0.2s ease;
}

.contact-input:focus {
  border-color: var(--color-accent) !important;
  outline: none;
}

.contact-input:focus,
textarea.contact-input:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

textarea.contact-input {
  resize: none;
}

.contact-submit-wrap {
  margin-top: 2.5rem;
}

.form-success {
  display: none;
  margin-top: 3rem;
  text-align: center;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.5rem;
}

.form-success i {
  margin-bottom: 1rem;
  font-size: 3rem;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  padding: 3rem 0;
  background: var(--color-base);
  border-top: 1px solid var(--color-border-subtle);
}

.footer-grid-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-heading {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.footer-nav-col a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.5rem;
}

.footer-label {
  opacity: 0.5;
  font-size: 0.8rem;
  margin-bottom: 0;
}

.footer-build {
  font-size: 0.6rem;
  margin-top: 0.25rem;
  display: block;
}

.footer-socials {
  margin-top: 0;
  margin-left: 2rem;
  flex-direction: row !important;
  gap: 1.5rem;
  align-items: center;
}

.footer-socials i {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials i:hover {
  color: var(--color-accent);
}

/* =============================================
   FOCUS / AUTOFILL OVERRIDES
   ============================================= */
input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--color-accent) !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #000 inset !important;
  -webkit-text-fill-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

#chatbot-input,
#modal-chatbot-input,
#demo-chatbot-input {
  text-align: left !important;
}

#chatbot-input:focus,
#modal-chatbot-input:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 12px rgba(127, 255, 0, 0.2);
}

/* =============================================
   TABLET BREAKPOINT (≤968px)
   ============================================= */
@media (max-width: 968px) {

  /* Show hamburger, hide nav links */
  .hamburger {
    display: flex !important;
  }

  .container-nav {
    justify-content: space-between !important;
    gap: 0 !important;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-base);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 2050;
    padding: 2rem;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links-group {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .nav-links-group a {
    font-size: 1.2rem !important;
  }

  /* Dropdown: show inline in mobile menu */
  .nav-links-group .dropdown-content {
    position: static !important;
    display: none;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    margin-top: 0.5rem !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .nav-links-group .dropdown:hover .dropdown-content,
  .nav-links-group .dropdown.open .dropdown-content {
    display: block;
  }

  .nav-links-group .dropdown-content a {
    font-size: 1rem !important;
    padding: 0.5rem 0 !important;
    color: var(--text-muted) !important;
  }

  .hero-split {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }

  .hero-split-left {
    text-align: center !important;
  }

  .hero-split-left *,
  .hero-split-left .mono-label,
  .hero-split-left .hero-subtitle-centered,
  .hero-split-left .hero-subtitle-centered {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero-split-left .hero-cta-row {
    justify-content: center !important;
  }

  .symmetric-grid,
  .grid-cols-4,
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .symmetric-grid.grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  #hero h1 {
    font-size: 2.8rem !important;
  }

  .hero-code-pre {
    font-size: 0.75rem !important;
  }
}

/* =============================================
   MOBILE BREAKPOINT (≤768px)
   ============================================= */
@media (max-width: 768px) {

  /* Global overflow prevention */
  html,
  body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .hero-split-left h1 {
    font-size: 2.2rem !important;
  }

  .hero-demo-input-primary {
    flex-direction: column !important;
    border-radius: 10px !important;
  }

  .hero-demo-input-primary .hero-demo-input {
    border-radius: 0 !important;
  }

  .hero-demo-btn-primary {
    width: 100% !important;
    border-radius: 0 !important;
  }

  .hero-code-pre {
    font-size: 0.7rem !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  .symmetric-grid,
  /* Hero grid: force single column */
  #demo .container>div {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #demo .chatbot-ui.chatbot-glow-subtle {
    height: 360px;
    min-height: 320px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  #demo .chatbot-body {
    padding: 1rem;
    gap: 1rem;
    text-align: left;
    min-width: 0;
  }

  #demo .chat-msg {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  #demo .chat-msg .msg-box {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  #demo .chatbot-header {
    padding: 0.8rem 1rem;
  }

  #demo .chatbot-footer {
    padding: 0.8rem 1rem;
  }

  #trust .container>div:last-child {
    grid-template-columns: 1fr !important;
  }

  #contact form>div {
    grid-template-columns: 1fr !important;
  }

  /* Typography scaling */
  #hero h1 {
    font-size: 2.2rem !important;
    line-height: 1.15 !important;
  }

  h2 {
    font-size: 1.6rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  h1,
  h2,
  h3,
  h4 {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .mono-label {
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  #compare table {
    min-width: 0 !important;
  }

  #compare th:nth-child(4),
  #compare td:nth-child(4) {
    display: none;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }
  .hero-description {
    font-size: 0.85rem !important;
  }

  .section {
    padding: 30px 0 !important;
  }

  .container {
    padding: 0 1.25rem !important;
    max-width: 100vw !important;
  }

  .cta-btn,
  .cta-secondary {
    width: 100%;
    text-align: center;
  }

  .footer-socials {
    flex-direction: row !important;
  }

  footer .container>div {
    flex-wrap: wrap;
    justify-content: center;
  }

  .arch-card {
    padding: 2rem 1.5rem !important;
  }

  .copy-btn-large {
    top: 0.8rem !important;
    right: 0.8rem !important;
    padding: 0.35rem !important;
    font-size: 0.75rem !important;
  }

  /* Code snippet boxes: prevent overflow */
  #contact h2 {
    font-size: 1.8rem !important;
  }

  .modal-content {
    width: 95% !important;
    max-width: 100% !important;
  }

}

/* --- Stat callout row (big numbers) --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Big numbered steps --- */
.big-steps {
  counter-reset: step-counter;
  text-align: center;
}

.big-step {
  counter-increment: step-counter;
  position: relative;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.big-step:last-child {
  border-bottom: none;
}

.big-step::before {
  content: counter(step-counter, decimal-leading-zero);
  display: block;
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1rem;
}

.big-step h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.big-step p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Vertical timeline / process flow --- */
.timeline {
  position: relative;
  padding-left: 3rem;
  text-align: left;
  margin: 3rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

.timeline-node {
  position: relative;
  padding-bottom: 3rem;
}

.timeline-node:last-child {
  padding-bottom: 0;
}

.timeline-node::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px rgba(127, 255, 0, 0.4);
}

.timeline-node h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-node p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --- Feature icon grid (2-col with icons) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.feature-cell {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.feature-cell:hover {
  border-color: var(--color-accent);
}

.feature-cell i {
  color: var(--color-accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
  text-align: center;
}

.feature-cell h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.feature-cell p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Side-by-side comparison columns --- */
.vs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  text-align: left;
}

.vs-col {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem;
}

.vs-col.vs-accent {
  border-color: var(--color-accent);
  box-shadow: 0 0 30px rgba(127, 255, 0, 0.08);
}

.vs-col h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.vs-col ul {
  list-style: none;
  padding: 0;
}

.vs-col li {
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.vs-col li:last-child {
  border-bottom: none;
}

.vs-col li i {
  margin-right: 0.75rem;
  width: 18px;
  text-align: center;
}

.vs-col li .fa-check {
  color: var(--color-accent);
}

.vs-col li .fa-xmark,
.vs-col li .fa-times {
  color: #ff5f57;
}

/* --- Pull quote / highlight block --- */
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  background: rgba(127, 255, 0, 0.03);
  text-align: left;
}

.pull-quote p {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 0;
}

.pull-quote .attribution {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  font-weight: 400;
}

/* --- Terminal / code aesthetic block --- */
.terminal-block {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 3rem 0;
  text-align: left;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  font-family: monospace;
}

.terminal-body {
  padding: 1.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-body .cmd {
  color: var(--color-accent);
}

.terminal-body .comment {
  color: var(--text-muted);
  opacity: 0.5;
}

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

/* --- Accent banner / hero stripe --- */
.accent-stripe {
  background: linear-gradient(135deg, rgba(127, 255, 0, 0.08), transparent);
  border: 1px solid rgba(127, 255, 0, 0.15);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  text-align: left;
}

.accent-stripe h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.accent-stripe p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
}

/* --- Icon list (icon centred above content) --- */
.icon-list {
  text-align: center;
  margin: 2rem 0;
}

.icon-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.icon-list-item:last-child {
  border-bottom: none;
}

.icon-list-item i {
  color: var(--color-accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.icon-list-item div h4 {
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.icon-list-item div p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Lander page content wrapper (wider, left-aligned) --- */
.lander-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.lander-content p {
  margin-bottom: 1.5rem;
}

.lander-content h2:first-child {
  color: #fff;
  margin: 0 0 1.5rem;
  font-size: 2rem;
}

.lander-content h2 {
  color: #fff;
  margin: 3rem 0 1.5rem;
  font-size: 2rem;
}

.lander-content h3 {
  color: #fff;
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
}

.lander-content strong {
  color: #fff;
}

/* Lander hero variants */
.lander-hero {
  padding-top: 100px;
  text-align: center;
}

.lander-hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
}

.lander-hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* --- Responsive for new components --- */
@media (max-width: 968px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .big-step::before {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .stat-row {
    grid-template-columns: 1fr !important;
  }

  .stat-number {
    font-size: 2.5rem !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .vs-grid {
    grid-template-columns: 1fr !important;
  }

  .big-step::before {
    font-size: 2rem !important;
  }

  .lander-hero h1 {
    font-size: 2.2rem !important;
  }

  .pull-quote {
    padding: 1.5rem !important;
  }

  .pull-quote p {
    font-size: 1.05rem !important;
  }

  .terminal-body {
    font-size: 0.8rem !important;
  }
}

/* =============================================
   HERO INLINE CTA (Solution/Guide pages)
   ============================================= */
.hero-inline-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-inline-cta .cta-btn {
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
}

.hero-inline-cta .cta-secondary {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-inline-cta .cta-secondary:hover {
  color: var(--color-accent);
}

/* =============================================
   SOCIAL PROOF BAR (Homepage)
   ============================================= */
.social-proof-bar {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border-hr);
  border-bottom: 1px solid var(--color-border-hr);
}

.social-proof-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Stats row */
.proof-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.proof-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.proof-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.proof-divider {
  width: 60px;
  height: 1px;
  background: var(--color-border-hr);
}

/* Technology partners */
.social-proof-label {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.social-proof-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.social-proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.social-proof-item:hover {
  opacity: 0.85;
}

.social-proof-item i {
  font-size: 1.8rem;
  color: #fff;
}

.social-proof-item span {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Testimonials carousel */
.proof-testimonials-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
}

.proof-carousel-arrow {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  cursor: pointer;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.proof-carousel-arrow:hover {
  background: rgba(127, 255, 0, 0.1);
  border-color: var(--color-accent);
}

.proof-carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.proof-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.4s ease;
}

.proof-testimonial {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  min-width: 300px;
  flex-shrink: 0;
}

.proof-testimonial-stars {
  margin-bottom: 0.75rem;
}

.proof-testimonial-stars i {
  color: var(--color-accent);
  font-size: 0.75rem;
  margin-right: 2px;
}

.proof-testimonial blockquote {
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0;
}

.proof-testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-muted);
}

.proof-testimonial cite strong {
  color: var(--color-accent);
}

/* =============================================
   LEAD MAGNET POPUP
   ============================================= */
.lead-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 1rem;
}

.lead-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lead-popup {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 0 40px rgba(127, 255, 0, 0.08);
}

.lead-popup-overlay.active .lead-popup {
  transform: translateY(0);
}

.lead-popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.lead-popup-close:hover {
  color: #fff;
}

.lead-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.lead-popup .popup-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lead-popup .popup-benefits {
  text-align: left;
  margin-bottom: 1.5rem;
}

.lead-popup .popup-benefits li {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.lead-popup .popup-benefits li i {
  color: var(--color-accent);
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

.lead-popup form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  box-sizing: border-box;
}

.lead-popup form input::placeholder {
  color: var(--text-muted);
}

.lead-popup form button {
  width: 100%;
  padding: 0.75rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s;
}

.lead-popup form button:hover {
  opacity: 0.85;
}

.lead-popup .popup-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.lead-popup .popup-success {
  display: none;
}

.lead-popup .popup-success h3 {
  color: var(--color-accent);
}

.lead-popup .popup-success p {
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .proof-stats {
    gap: 1.5rem;
  }

  .proof-stat-number {
    font-size: 1.4rem;
  }

  .proof-stat-label {
    font-size: 0.65rem;
  }

  .proof-testimonial {
    min-width: 260px;
  }

  .social-proof-items {
    gap: 2rem;
  }

  .social-proof-item i {
    font-size: 1.4rem;
  }

  .hero-inline-cta {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* =============================================
   VIBE CODING COURSE
   ============================================= */
.course-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, rgba(127, 255, 0, 0.08) 0%, transparent 100%);
}

.course-hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

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

.hero-sub {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Course Progress Bar */
.course-progress {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 2.5rem;
}

.course-progress-step {
  padding: 0.6rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.course-progress-step:first-child {
  border-radius: 50px 0 0 50px;
}

.course-progress-step:last-child {
  border-radius: 0 50px 50px 0;
}

a.course-progress-step {
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a.course-progress-step:hover {
  opacity: 0.8;
}

.course-progress-step.active {
  color: var(--color-base);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.course-progress-step.done {
  color: var(--color-accent);
  border-color: rgba(127, 255, 0, 0.3);
}

/* Course Cards on Landing Page */
.course-grid {
  gap: 2rem;
  margin-top: 0;
}

.course-card {
  position: relative;
  text-decoration: none;
  color: var(--text-main);
  padding: 3rem 2.5rem;
  overflow: hidden;
  border-radius: 0;
}

.course-card:hover {
  color: var(--text-main);
}

.course-card-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(127, 255, 0, 0.08);
  line-height: 1;
}

.course-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.course-card-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.course-card p:not(.course-card-subtitle) {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.course-card-cta {
  margin-top: auto;
  align-self: center;
  padding: 0.6rem 1.2rem;
  text-align: center;
}

.course-card i.fas.fa-arrow-right,
.course-card i.fas.fa-arrow-left {
  margin-left: 0.5rem;
  font-size: 0.7rem;
}

/* Skill List Items */
.course-skills-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.course-skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.course-skill-item:first-child {
  padding-top: 0;
}

.course-skill-item:last-child {
  border-bottom: none;
}

.course-skill-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 12px;
}

.course-skill-icon i {
  color: var(--color-accent);
  font-size: 1.4rem;
}

.course-skill-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.course-skill-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.course-skill-content code {
  background: rgba(127, 255, 0, 0.1);
  color: var(--color-accent);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: monospace;
}

/* Mistake Items - Red accent */
.course-mistake-icon {
  border-color: rgba(255, 80, 80, 0.3);
}

.course-mistake-icon i {
  color: #ff5050;
}

/* Course Navigation */
.course-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Rorie's Ramblings Widget */
.ramblings-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  text-align: left;
}

.ramblings-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ramblings-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  object-fit: cover;
  flex-shrink: 0;
}

.ramblings-meta {
  display: flex;
  flex-direction: column;
}

.ramblings-name {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.ramblings-label {
  color: var(--color-accent);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ramblings-quote-mark {
  color: rgba(127, 255, 0, 0.15);
  font-size: 4rem;
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  pointer-events: none;
}

.ramblings-body {
  text-align: left;
  line-height: 1.8;
  color: var(--text-muted);
}

.ramblings-body p {
  text-align: left;
  margin-bottom: 1rem;
}

.ramblings-body p:last-child {
  margin-bottom: 0;
}

.ramblings-body strong {
  color: #fff;
}

.ramblings-loading {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ramblings-loading i {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .course-hero h1 {
    font-size: 2.2rem;
  }

  .course-progress {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .course-progress-step {
    border-radius: 50px;
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .course-progress-step:first-child,
  .course-progress-step:last-child {
    border-radius: 50px;
  }

  .course-skill-item {
    padding: 2rem 0;
  }

  .course-nav {
    flex-direction: column;
    gap: 1rem;
  }

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

  .ramblings-widget {
    padding: 1.5rem;
  }

  .ramblings-quote-mark {
    font-size: 2.5rem;
    top: 1rem;
    right: 1.25rem;
  }
}

/* ── Dashboard Styles ───────────────────────────────────────────────── */

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  text-align: left;
}

.dash-header .mono-label {
  text-align: left;
  margin-bottom: 0.75rem;
}

.dash-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.dash-logout-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.dash-logout-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.dash-card {
  padding: 1.5rem;
  text-align: left;
  align-items: stretch;
}

.dash-card:hover {
  transform: none;
}

.dash-card i {
  font-size: inherit;
  margin-bottom: 0;
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dash-card-header h3 {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.dash-card-header h3 i {
  color: var(--color-accent);
  font-size: 0.9rem;
  margin-right: 8px;
}

.dash-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.dash-create-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.dash-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.dash-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dash-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
}

.dash-field input,
.dash-field select,
.dash-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.dash-field input:focus,
.dash-field select:focus,
.dash-field textarea:focus {
  border-color: var(--color-accent);
}

.dash-field select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.dash-field select option {
  background: #111;
  color: #fff;
}

.dash-field textarea {
  resize: vertical;
  min-height: 70px;
}

.dash-field-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dash-optional {
  font-weight: 400;
  color: #555;
}

.dash-msg {
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.dash-msg-error {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
}

.dash-msg-success {
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

.dash-loading,
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
}

.dash-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: dash-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes dash-spin {
  to { transform: rotate(360deg); }
}

/* Onboarding checklist */
.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.onboarding-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #888;
  font-size: 0.95rem;
}

.onboarding-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.3s;
}

.onboarding-check.done {
  background: var(--color-accent, #7FFF00);
  border-color: var(--color-accent, #7FFF00);
  color: #000;
}

.onboarding-step:has(.done) span:last-child {
  color: #fff;
  text-decoration: line-through;
  text-decoration-color: #555;
}

.dash-token-card {
  margin-bottom: 1rem;
  gap: 0;
}

.dash-token-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.dash-token-label {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem 0;
}

.dash-token-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.dash-badge {
  background: var(--color-accent-glow);
  color: var(--color-accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-badge-muted {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.dash-status-active {
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 500;
}

.dash-status-active::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-right: 4px;
  vertical-align: middle;
}

.dash-status-inactive {
  color: #888;
  font-size: 0.75rem;
  font-weight: 500;
}

.dash-status-inactive::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #888;
  margin-right: 4px;
  vertical-align: middle;
}

.dash-token-actions {
  display: flex;
  gap: 0.5rem;
}

.dash-icon-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.dash-icon-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.delete-btn:hover {
  border-color: #ff4444;
  color: #ff4444;
}

.dash-token-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.dash-token-value code {
  flex: 1;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dash-copy-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.dash-copy-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.dash-snippet {
  text-align: left;
  width: 100%;
}

.dash-snippet label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.dash-snippet-code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 48px 12px 12px;
  position: relative;
  overflow: hidden;
}

.dash-snippet-code pre {
  margin: 0;
  overflow-x: auto;
  text-align: left;
}

.dash-snippet-code code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: var(--color-accent);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.5;
}

.dash-snippet-code .dash-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

@media (max-width: 600px) {
  .dash-header {
    flex-direction: column;
    gap: 1rem;
  }

  .dash-form-grid {
    grid-template-columns: 1fr;
  }

  .dash-token-header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .dash-token-actions {
    align-self: flex-end;
  }

  .dash-snippet-code {
    padding: 10px 10px 10px 10px;
  }

  .dash-snippet-code .dash-copy-btn {
    position: static;
    margin-top: 8px;
  }
}

/* =============================================
   SNIPPET MODAL (Hero CTA)
   ============================================= */
.snippet-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.snippet-modal.active {
  opacity: 1;
  pointer-events: all;
}

.snippet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.snippet-modal-card {
  position: relative;
  background: #0a0a0b;
  border: 1px solid rgba(127, 255, 0, 0.15);
  border-radius: 20px;
  padding: 3rem 2.5rem 2rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(127, 255, 0, 0.08), 0 24px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.snippet-modal.active .snippet-modal-card {
  transform: translateY(0) scale(1);
}

.snippet-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: #666;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: auto;
  padding: 0;
}

.snippet-modal-close:hover {
  color: #fff;
}

.snippet-modal-badge {
  display: inline-block;
  background: rgba(127, 255, 0, 0.1);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(127, 255, 0, 0.2);
}

.snippet-modal-title {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.snippet-modal-subtitle {
  color: #888;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.snippet-modal-steps {
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.snippet-modal-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.snippet-modal-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snippet-modal-step h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.snippet-modal-step p {
  color: #888;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
}

.snippet-modal-code {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #98c379;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-line;
  word-break: normal;
}

.snippet-modal-cta {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(127, 255, 0, 0.25);
}

.snippet-modal-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 30px rgba(127, 255, 0, 0.35);
}

.snippet-modal-cta.copied {
  background: #1a3a0a;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  box-shadow: none;
}

.snippet-modal-footer {
  margin-top: 1.5rem;
}

.snippet-modal-footer p {
  color: #888;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.snippet-modal-footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.snippet-modal-trust {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.snippet-modal-trust span {
  color: #666;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.snippet-modal-trust i {
  color: var(--color-accent);
  font-size: 0.7rem;
}

@media (max-width: 600px) {
  .snippet-modal-card {
    padding: 2rem 1.5rem 1.5rem;
    border-radius: 16px;
  }
  .snippet-modal-title {
    font-size: 1.3rem;
  }
  .snippet-modal-trust {
    gap: 0.8rem;
  }
}

/* =============================================
   HERO CENTERED (Conversion Redesign)
   ============================================= */
.hero-brand-carousel {
  background: transparent;
  padding: 20px 1.5rem 0;
  margin-top: -100px;
  margin-bottom: 2.5rem;
}

.hero-subtitle-centered {
  font-size: 1.3rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}
/* =============================================
   PRICING 3-COLUMN
   ============================================= */
.pricing-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  gap: 0;
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  overflow: hidden;
}

.pricing-grid-3 .arch-card {
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--color-border-subtle);
  justify-content: flex-start;
}

.pricing-grid-3 .pricing-features {
  flex: 1;
}

.pricing-grid-3 .arch-card:last-child {
  border-right: none;
}

.pricing-tier-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 2.6em;
}

/* =============================================
   NAV CTA LINK
   ============================================= */
.nav-cta-link {
  background: var(--color-accent-fixed) !important;
  color: #1f4700 !important;
  font-weight: 700 !important;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav-cta-link:hover {
  background: var(--color-accent-fixed) !important;
  color: #1f4700 !important;
  opacity: 0.85;
}

/* =============================================
   RESPONSIVE OVERRIDES (Conversion Redesign)
   ============================================= */
@media (max-width: 900px) {
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-grid-3 .arch-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .pricing-grid-3 .arch-card:last-child {
    border-bottom: none;
  }

  .site-footer .container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-socials {
    margin-left: 0;
  }
}

@media (max-width: 600px) {
  .hero-brand-carousel {
    display: none;
  }

  .hero-subtitle-centered {
    font-size: 1.05rem;
  }

}

/* =============================================
   STICKY MOBILE CTA BAR
   ============================================= */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1900;
  background: var(--color-base);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-cta-bar.visible {
  transform: translateY(0);
}

.mobile-cta-bar a {
  display: inline-block;
  background: var(--color-accent);
  color: #000;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  width: 100%;
  max-width: 320px;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: block;
  }

  /* Add bottom padding to body so sticky bar doesn't cover content */
  body.has-mobile-cta {
    padding-bottom: 70px;
  }
}

@media (min-width: 769px) {
  .mobile-cta-bar {
    display: none !important;
  }
}

/* ── Live Demo Section ────────────────────────────────── */
.live-demo-cta-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.live-demo-preview {
  margin-bottom: 1rem;
}

.live-demo-mockup {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid rgba(127,255,0,0.35);
  background: #151517;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(127,255,0,0.15), 0 0 40px rgba(127,255,0,0.08), 0 8px 32px rgba(0,0,0,0.3);
}

.demo-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #1a1a1d;
}

.hero-demo-mockup .demo-mockup-header {
  justify-content: center;
}

.demo-mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
}

.demo-mockup-title {
  color: #888;
  font-size: 0.8rem;
  font-weight: 500;
}

.demo-mockup-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.demo-mockup-msg {
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.demo-mockup-msg-bot {
  background: #222225;
  color: #999;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.demo-mockup-msg-user {
  background: #2a2a2e;
  color: #bbb;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.demo-mockup-input-bar {
  padding: 0.7rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #555;
  font-size: 0.8rem;
}

.demo-mockup-body-cta {
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.demo-analysing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  height: 100%;
}
.demo-analysing span {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.demo-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(127, 255, 0, 0.15);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: demo-spin 0.7s linear infinite;
}
@keyframes demo-spin {
  to { transform: rotate(360deg); }
}

.demo-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--color-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: demo-blink 0.8s step-end infinite;
}

@keyframes demo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.live-demo-input-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.live-demo-input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  border: 2px solid var(--color-accent);
  background: var(--color-surface);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.live-demo-input:focus {
  border-color: var(--color-accent);
}

.live-demo-error {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.live-demo-result {
  margin-top: 2.5rem;
}

.live-demo-columns {
  display: flex;
  gap: 3rem;
  align-items: stretch;
  text-align: left;
}

.live-demo-chat-col {
  flex: 1;
  min-width: 0;
}

.live-demo-chat-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  height: 450px;
}

.live-demo-chat-wrap embedai-chat {
  display: block;
  height: 100%;
}

.live-demo-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.live-demo-detected {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.25rem;
}

.live-demo-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.live-demo-details-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.live-demo-details-list li i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

.live-demo-snippet {
  background: #000;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-demo-snippet code {
  color: var(--color-accent);
  font-size: 0.8rem;
  font-family: 'Roboto Mono', monospace;
  word-break: break-all;
}

@media (max-width: 768px) {
  .live-demo-mockup {
    width: 100%;
  }
  .live-demo-columns {
    flex-direction: column;
  }
  .live-demo-input-row {
    flex-direction: column;
  }
}

/* ── Customiser Section ───────────────────────────────── */
.customiser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

.customiser-controls,
.customiser-preview,
.customiser-prompt {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  background: radial-gradient(ellipse at center, rgba(127, 255, 0, 0.04) 0%, transparent 60%);
}

.customiser-controls::before,
.customiser-preview::before,
.customiser-prompt::before {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, rgba(127, 255, 0, 0.07) 0%, transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

.customiser-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.customiser-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.customiser-field .text-muted-sm {
  text-align: center;
}

.customiser-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.customiser-input-row input[type="color"] {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  padding: 2px;
  cursor: pointer;
  background: transparent;
  flex-shrink: 0;
}

.customiser-text-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: monospace;
  font-size: 0.9rem;
}

.customiser-text-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

/* Live Preview Widget */
.customiser-preview {
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.cust-widget {
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  border: none;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.cust-widget-header {
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cust-widget-title {
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  flex: 1;
}

.cust-widget-close {
  position: absolute;
  right: 14px;
  font-size: 20px;
  opacity: 0.7;
  cursor: default;
}

.cust-widget-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.cust-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.cust-msg-user {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.cust-msg-bot {
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.cust-widget-form {
  padding: 12px;
  display: flex;
  gap: 8px;
  position: relative;
}

.cust-widget-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 14px;
  background: transparent;
  caret-color: var(--color-accent);
  text-align: left;
}

.cust-widget-form::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 18px;
  background: rgba(255, 255, 255, 0.7);
  animation: custBlink 1s step-end infinite;
  pointer-events: none;
  z-index: 1;
}

.cust-widget-form:focus-within::before {
  display: none;
}

@keyframes custBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cust-widget-send {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.cust-typing {
  opacity: 0.5;
}

.cust-widget-powered {
  font-size: 11px;
  color: #888;
  text-align: center;
  padding: 6px 0 8px;
  background: #0d0d0d;
}

/* Prompt Column */
.customiser-prompt {
  display: flex;
  flex-direction: column;
}

.customiser-prompt label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.customiser-prompt-input {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
  resize: none;
  margin-top: 0.5rem;
  overflow-y: auto;
}

.customiser-prompt-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.cust-prompt-footer {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cust-prompt-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cust-prompt-code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-family: monospace;
  letter-spacing: 0.05em;
}

/* Tag Output */
.customiser-tag-section {
  text-align: left;
}

.customiser-tag-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.customiser-tag-wrap code {
  flex: 1;
  padding: 14px 18px;
  font-size: 0.75rem;
  color: var(--color-accent);
  white-space: normal;
  word-break: break-all;
  text-align: left;
}

.cust-copy-btn {
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s;
}

.cust-copy-btn:hover {
  color: var(--color-accent);
}

@media (max-width: 960px) {
  .customiser-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cust-widget {
    width: 100%;
  }

  .customiser-prompt-input {
    min-height: 150px;
  }

  .customiser-tag-wrap code {
    font-size: 0.75rem;
  }
}

/* ── Daily Report page ──────────────────────────────────────────── */

.dr-section {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dr-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dr-section h3 {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.dr-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.dr-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 120px;
    flex: 1;
    text-align: center;
}

.dr-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
}

.dr-stat-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.dr-change {
    display: inline-block;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    font-weight: 600;
}

.dr-up { color: var(--color-accent); }
.dr-down { color: #FF4444; }
.dr-flat { color: #666; }

.dr-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.dr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dr-table th {
    text-align: left;
    color: #888;
    font-weight: 500;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dr-table td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #ccc;
}

.dr-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dr-bar-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.dr-bar-label {
    font-size: 0.8rem;
    color: #aaa;
    min-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.dr-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dr-bar-value {
    font-size: 0.8rem;
    color: #ccc;
    min-width: 40px;
    text-align: right;
    font-family: 'Roboto Mono', monospace;
}

.dr-select {
    background: var(--color-surface);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.dr-btn {
    background: var(--color-accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dr-btn:hover { opacity: 0.85; }
.dr-btn:disabled { opacity: 0.4; cursor: not-allowed; }

@media (max-width: 768px) {
    .dr-two-col {
        grid-template-columns: 1fr;
    }
    .dr-stats-row {
        gap: 0.5rem;
    }
    .dr-stat {
        min-width: 90px;
        padding: 0.5rem 0.75rem;
    }
    .dr-stat-value {
        font-size: 1.2rem;
    }
    .dr-bar-label {
        min-width: 100px;
    }
}

/* deploy trigger 2026-03-06T08:01:51Z */