/* ============================================
   BUGNET — Marketing Site Styles
   Professional upgrade with modern design
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* Core palette */
  --cream:      #FFFBF3;
  --cream2:     #FFF6E8;
  --cream3:     #FEF0D4;
  --paper:      #F9F3E8;
  --coral:      #E8624A;
  --coral-lt:   #FBEAE6;
  --coral-md:   #F4A38F;
  --coral-dk:   #C7442E;
  --sage:       #4A7C6F;
  --sage-lt:    #E4F0ED;
  --sage-md:    #8ABCB2;
  --sage-dk:    #3A6358;
  --mustard:    #D4953A;
  --mustard-lt: #FDF3E1;
  --navy:       #1E2B3A;
  --navy-deep:  #0F1923;
  --ink:        #2C2416;
  --ink2:       #5C4F3D;
  --ink3:       #9C8E7A;
  --ink4:       #C8BDAD;
  --border:     #E8DFD0;
  --white:      #FFFFFF;

  /* Typography */
  --f-head: 'Fraunces', serif;
  --f-body: 'Nunito', sans-serif;
  --f-hand: 'Fraunces', serif;
  --f-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Shadows — layered for depth */
  --shadow-xs: 0 1px 3px rgba(44,36,22,0.04);
  --shadow-sm: 0 2px 8px rgba(44,36,22,0.06), 0 1px 2px rgba(44,36,22,0.04);
  --shadow-md: 0 8px 30px rgba(44,36,22,0.08), 0 2px 6px rgba(44,36,22,0.04);
  --shadow-lg: 0 20px 60px rgba(44,36,22,0.10), 0 4px 12px rgba(44,36,22,0.05);
  --shadow-xl: 0 32px 80px rgba(44,36,22,0.14), 0 8px 20px rgba(44,36,22,0.06);

  /* Gradients */
  --grad-coral: linear-gradient(135deg, #E8624A 0%, #F4845F 50%, #E8624A 100%);
  --grad-hero: linear-gradient(165deg, rgba(255,251,243,1) 0%, rgba(254,240,212,0.4) 40%, rgba(251,234,230,0.45) 70%, rgba(255,251,243,1) 100%),
               radial-gradient(ellipse at 25% 15%, rgba(232,98,74,0.1) 0%, transparent 50%),
               radial-gradient(ellipse at 75% 85%, rgba(74,124,111,0.08) 0%, transparent 50%),
               radial-gradient(ellipse at 50% 50%, rgba(212,149,58,0.04) 0%, transparent 60%);
  --grad-dark: linear-gradient(165deg, #1E2B3A 0%, #0F1923 40%, #162233 100%);
  --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,251,243,0.85) 100%);

  /* Borders */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 0.68, 0, 1.1);
  --ease-bounce: cubic-bezier(0.22, 0.68, 0, 1.4);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-normal: 0.25s;
  --dur-slow: 0.45s;
}

/* === SKIP LINK (Accessibility) === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 12px 24px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--coral-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--coral); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(1deg); }
  66% { transform: translateY(-3px) rotate(-0.5deg); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scribble {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}
@keyframes pop {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes blobmorph {
  0%, 100% { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33% { border-radius: 45% 55% 40% 60% / 60% 40% 55% 45%; }
  66% { border-radius: 55% 45% 60% 40% / 45% 55% 50% 50%; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes tickerPulse {
  0% { box-shadow: 0 0 0 0 rgba(232,98,74,0.3); }
  70% { box-shadow: 0 0 0 8px rgba(232,98,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,98,74,0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(232,98,74,0.3)); }
  50% { filter: drop-shadow(0 0 16px rgba(232,98,74,0.5)); }
}

/* Reveal system */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* === LAYOUT === */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--dur-normal) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--dur-fast);
}
.btn:hover::after { opacity: 1; }

.btn-sm { font-size: 13px; padding: 9px 22px; }
.btn-md { font-size: 15px; padding: 13px 30px; }
.btn-lg { font-size: 16px; padding: 15px 36px; letter-spacing: -0.01em; }
.btn-xl { font-size: 17px; padding: 18px 44px; letter-spacing: -0.01em; }

.btn-ghost {
  background: transparent;
  color: var(--ink2);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink3);
  color: var(--ink);
  background: rgba(255,255,255,0.5);
}

.btn-primary {
  background: var(--grad-coral);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 0 var(--coral-dk), var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 var(--coral-dk), var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.2);
  animation: gradientShift 3s ease infinite;
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--coral-dk);
}

.btn-outline {
  background: transparent;
  color: var(--coral);
  border: 2px solid var(--coral);
}
.btn-outline:hover {
  background: var(--coral-lt);
  border-color: var(--coral);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* === NAV === */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--grad-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(232,223,208,0.6);
  height: 72px;
  display: flex;
  align-items: center;
  transition: box-shadow var(--dur-normal), background var(--dur-normal);
}
nav.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,251,243,0.96);
}
.nav-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  transition: transform var(--dur-fast);
}
.nav-logo:hover { transform: scale(1.02); }
.nav-logo .wordmark { letter-spacing: -0.03em; line-height: 1; }
.nav-logo .net { color: var(--coral); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  transition: color var(--dur-fast);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--grad-coral);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--dur-normal) var(--ease-out);
  transform-origin: center;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: inherit;
  transition: color var(--dur-fast);
}
.nav-dropdown-toggle:hover { color: var(--ink); }
.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}
.nav-dropdown.open .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  z-index: 100;
}
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
  animation: dropdownIn 0.18s ease-out;
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-dropdown-item:hover {
  background: var(--cream2);
}
/* Override nav-links a styles for dropdown items */
.nav-dropdown-item::after {
  display: none !important;
}
.nav-dropdown-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cream2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink2);
}
.nav-dropdown-icon svg {
  width: 18px;
  height: 18px;
}
.nav-dropdown-item:hover .nav-dropdown-icon {
  background: var(--coral-lt);
  color: var(--coral);
}
.nav-dropdown-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav-dropdown-desc {
  display: block;
  font-size: 12px;
  color: var(--ink3);
  font-weight: 400;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  border-radius: 8px;
  transition: background var(--dur-fast);
  position: relative;
  z-index: 101;
}
.nav-toggle:hover { background: var(--cream2); }
.nav-toggle .hamburger-line {
  display: block;
  width: 20px;
  height: 2.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 2px 0;
}
.nav-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(255,251,243,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; order: -1; }
  .btn-ghost.nav-hide-mobile { display: none; }

  /* Mobile dropdown */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    width: 100%;
    justify-content: space-between;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 8px 12px;
    min-width: auto;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    animation: none;
  }
}

/* === HERO === */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
}
.blob {
  position: absolute;
  pointer-events: none;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blobmorph 12s ease-in-out infinite;
  filter: blur(1px);
}
.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232,98,74,0.08), transparent 65%);
  top: -140px;
  right: -140px;
}
.blob-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(74,124,111,0.07), transparent 65%);
  bottom: -80px;
  left: -100px;
  animation-delay: -4s;
}
.blob-3 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(212,149,58,0.06), transparent 65%);
  top: 40%;
  left: 38%;
  animation-delay: -7s;
}

.squig {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  transition: opacity 0.5s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-hand);
  font-size: 15px;
  color: var(--sage);
  background: var(--sage-lt);
  border: 1.5px solid var(--sage-md);
  border-radius: var(--radius-pill);
  padding: 6px 18px;
  margin-bottom: 24px;
  animation: pop 0.5s var(--ease-bounce) 0.1s both;
  letter-spacing: 0.02em;
}

.hero-h1 {
  font-family: var(--f-head);
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 22px;
  animation: fadeUp 0.7s var(--ease-out) 0.15s both;
}
.hero-h1 em {
  font-style: italic;
  color: var(--coral);
  position: relative;
  display: inline-block;
}
.hero-h1 em svg {
  position: absolute;
  bottom: -6px;
  left: -2px;
  width: 105%;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: scribble 0.9s ease 1s forwards;
  filter: drop-shadow(0 1px 2px rgba(232,98,74,0.3));
}

.hero-sub {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
  animation: fadeUp 0.7s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 380px;
  animation: fadeUp 0.7s var(--ease-out) 0.45s both;
  margin-bottom: 32px;
}

.hero-actions .btn {
  justify-content: center;
  text-align: center;
}

.hero-microcopy {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.01em;
  text-align: center;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease 0.8s both;
}
.avatars { display: flex; }
.avatars .av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-fast);
}
.avatars .av:first-child { margin-left: 0; }
.avatars:hover .av { transform: translateY(-2px); }
.proof-txt { font-size: 13px; color: var(--ink3); }
.proof-txt strong { color: var(--ink2); font-weight: 700; }
.stars { color: var(--mustard); font-size: 14px; letter-spacing: 1px; }

/* Hero visual / app card */
.hero-visual {
  position: relative;
  z-index: 1;
  animation: fadeInScale 0.9s var(--ease-out) 0.3s both;
}

.app-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl), 8px 8px 0 rgba(232,223,208,0.5);
  overflow: hidden;
  transition: transform var(--dur-slow), box-shadow var(--dur-slow);
}
.app-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: var(--shadow-xl), 10px 12px 0 rgba(232,223,208,0.5);
}

.app-bar {
  background: linear-gradient(180deg, var(--paper) 0%, #F4EDE0 100%);
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 7px;
  border-bottom: 1.5px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }

.app-body {
  display: grid;
  grid-template-columns: 210px 1fr;
}
.app-col {
  padding: 14px;
}
.app-col:first-child {
  border-right: 1.5px solid var(--border);
  background: linear-gradient(180deg, var(--paper) 0%, rgba(249,243,232,0.5) 100%);
}
.col-lbl {
  font-family: var(--f-hand);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink3);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ticket {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  margin-bottom: 7px;
  transition: border-color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.ticket:hover {
  border-color: var(--coral-md);
  transform: translateX(3px);
  box-shadow: var(--shadow-xs);
}
.ticket.sel {
  border-color: var(--coral);
  background: var(--coral-lt);
  box-shadow: 0 0 0 3px rgba(232,98,74,0.08);
}
.t-user { font-size: 11px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.t-msg { font-size: 11px; color: var(--ink3); line-height: 1.55; }
.t-tag {
  display: inline-block;
  font-family: var(--f-hand);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 5px;
  font-weight: 600;
}
.tag-r { background: #FEE2E2; color: #b91c1c; }
.tag-y { background: #FEF9C3; color: #92400e; }
.tag-g { background: var(--sage-lt); color: var(--sage); }

.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-row.out { flex-direction: row-reverse; }
.c-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}
.bubble {
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.55;
  max-width: 86%;
}
.bubble-in {
  background: var(--paper);
  color: var(--ink2);
  border-bottom-left-radius: 4px;
}
.bubble-out {
  background: var(--grad-coral);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Floating badges */
.fb {
  position: absolute;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  animation: floatSlow 4s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
  backdrop-filter: blur(8px);
  transition: transform var(--dur-normal);
}
.fb:hover { transform: scale(1.05) !important; }
.fb-1 { top: -18px; right: -16px; animation-delay: 0s; }
.fb-2 { bottom: 48px; left: -20px; animation-delay: -1.5s; }
.fb-3 { bottom: -16px; right: 48px; animation-delay: -0.8s; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { margin-left: auto; margin-right: auto; }
  .hero-proof { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
}

/* === MARQUEE === */
.marquee-strip {
  padding: 36px 0;
  background: var(--cream2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}
.marquee-strip::before { left: 0; background: linear-gradient(90deg, var(--cream2), transparent); }
.marquee-strip::after { right: 0; background: linear-gradient(-90deg, var(--cream2), transparent); }
.m-label {
  text-align: center;
  font-family: var(--f-hand);
  font-size: 12px;
  color: var(--ink3);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.m-track {
  display: flex;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.m-track:hover { animation-play-state: paused; }
.m-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.m-item:hover { color: var(--ink); }
.m-item .m-ico {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 16px;
}
.m-item .m-ico svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* === SECTIONS (generic) === */
.section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.section-lbl {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-hand);
  font-size: 13px;
  color: var(--coral);
  background: var(--coral-lt);
  border: 1.5px solid var(--coral-md);
  border-radius: var(--radius-pill);
  padding: 5px 16px;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.section-h2 {
  font-family: var(--f-head);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-h2 em {
  font-style: italic;
  color: var(--coral);
}
.section-p {
  font-size: 17px;
  color: var(--ink2);
  line-height: 1.75;
  max-width: 540px;
}
.tc { text-align: center; }
.tc .section-p { margin: 0 auto; }

/* === FEATURES — VERTICAL PIPELINE === */
.pipeline {
  position: relative;
  margin-top: 64px;
  padding: 0 20px;
}
.pipeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--coral-md) 0%, var(--sage-md) 40%, var(--mustard) 70%, var(--coral-md) 100%);
  border-radius: 3px;
  transform: translateX(-50%);
  opacity: 0.35;
}
.pipeline-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
}
.pipeline-item:last-child { margin-bottom: 0; }

.pipeline-left {
  flex-direction: row;
  justify-content: flex-end;
  padding-right: calc(50% + 32px);
  padding-left: 0;
}
.pipeline-right {
  flex-direction: row;
  justify-content: flex-start;
  padding-left: calc(50% + 32px);
  padding-right: 0;
}

.pipeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--coral);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(255,251,243,0.9);
  transition: transform var(--dur-normal) var(--ease-bounce), box-shadow var(--dur-normal);
}
.pipeline-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.pipeline-item:hover .pipeline-dot {
  transform: translateX(-50%) scale(1.25);
  box-shadow: 0 0 0 8px rgba(232,98,74,0.1);
}

.pipeline-content {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  max-width: 440px;
  transition: transform var(--dur-normal) var(--ease-smooth),
              box-shadow var(--dur-normal) var(--ease-smooth),
              border-color var(--dur-normal);
  position: relative;
}
.pipeline-content::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}
.pipeline-left .pipeline-content::after {
  right: -26px;
}
.pipeline-right .pipeline-content::after {
  left: -26px;
}
.pipeline-item:hover .pipeline-content {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 5px 5px 0 rgba(232,223,208,0.4);
  border-color: var(--ink4);
}

.pipeline-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pipeline-ico svg {
  width: 30px;
  height: 30px;
}
.pipeline-h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.pipeline-p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}

/* Pipeline mobile */
@media (max-width: 860px) {
  .pipeline-line { left: 24px; }
  .pipeline-left,
  .pipeline-right {
    flex-direction: row;
    justify-content: flex-start;
    padding-left: 64px;
    padding-right: 0;
  }
  .pipeline-dot {
    left: 24px;
  }
  .pipeline-item:hover .pipeline-dot {
    transform: translateX(-50%) scale(1.25);
  }
  .pipeline-dot { transform: translateX(-50%); }
  .pipeline-content { max-width: 100%; }
  .pipeline-content::after { display: none; }
}

/* Background decoration shapes */
.bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* === WORKFLOW BAND === */
.workflow-band {
  background: var(--grad-dark);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.workflow-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(232,98,74,0.12), transparent 50%),
              radial-gradient(ellipse at 80% 50%, rgba(74,124,111,0.09), transparent 50%),
              radial-gradient(ellipse at 50% 100%, rgba(212,149,58,0.06), transparent 40%);
}
.workflow-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.workflow-band .container {
  position: relative;
  z-index: 1;
}
.workflow-h2 {
  font-family: var(--f-head);
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 28px;
}
.workflow-h2 em {
  font-style: italic;
  color: var(--coral);
}

/* Pipeline pills */
.workflow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
}
.workflow-pill {
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.workflow-pill-error {
  background: rgba(239,68,68,0.15);
  color: #fca5a5;
  border: 1.5px solid rgba(239,68,68,0.3);
}
.workflow-pill-pipeline {
  background: rgba(232,98,74,0.15);
  color: var(--coral-md);
  border: 1.5px solid rgba(232,98,74,0.3);
}
.workflow-pill-fix {
  background: rgba(52,211,153,0.15);
  color: #6ee7b7;
  border: 1.5px solid rgba(52,211,153,0.3);
}
.workflow-arrow {
  flex-shrink: 0;
}

/* Workflow grid */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.workflow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}
.workflow-step {
  text-align: center;
}
.workflow-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.workflow-icon-crash {
  background: rgba(239,68,68,0.1);
  border: 1.5px solid rgba(239,68,68,0.25);
}
.workflow-icon-issue {
  background: rgba(232,98,74,0.1);
  border: 1.5px solid rgba(232,98,74,0.25);
}
.workflow-icon-fix {
  background: rgba(52,211,153,0.1);
  border: 1.5px solid rgba(52,211,153,0.25);
}
.workflow-step-h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.workflow-step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 16px;
}
.workflow-step-p {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 280px;
  margin: 0 auto;
}

/* Log lines */
.workflow-log-line {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #e2e8f0;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workflow-log-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
}
.workflow-log-tag.error {
  background: rgba(239,68,68,0.2);
  color: #fca5a5;
}
.workflow-log-tag.dim {
  color: #64748b;
  padding: 0;
}
.workflow-log-meta {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.workflow-device-chip {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
}

/* Issue rows */
.workflow-issue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.workflow-issue-row:last-of-type {
  border-bottom: none;
}
.workflow-issue-title {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 600;
}
.workflow-issue-labels {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.workflow-label {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
}

/* Commit lines */
.workflow-commit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.workflow-commit:last-of-type {
  border-bottom: none;
}
.workflow-resolved {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #6ee7b7;
}

/* Responsive */
@media (max-width: 768px) {
  .workflow-h2 { font-size: 32px; }
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .workflow-connector {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .workflow-pipeline { gap: 10px; }
  .workflow-pill { font-size: 13px; padding: 8px 20px; }
}

/* === HOW IT WORKS === */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.steps {
  display: flex;
  flex-direction: column;
}
.step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1.5px dashed var(--border);
  transition: transform var(--dur-fast);
}
.step:hover { transform: translateX(4px); }
.step:last-child { border-bottom: none; }
.step-n {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--coral-lt);
  border: 2px solid var(--coral-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-hand);
  font-size: 17px;
  font-weight: 700;
  color: var(--coral);
  margin-top: 2px;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.step:hover .step-n {
  background: var(--coral);
  color: #fff;
  transform: scale(1.1);
}
.step-h3 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}

/* Code card */
.how-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), 8px 8px 0 rgba(232,223,208,0.4);
  transition: transform var(--dur-slow);
  text-align: left;
}
.how-card:hover { transform: translateY(-3px); }
.eng-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.eng-tab {
  font-family: var(--f-hand);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1.5px solid var(--border);
  color: var(--ink3);
  background: transparent;
  transition: all var(--dur-fast);
}
.eng-tab:hover {
  border-color: var(--ink4);
  color: var(--ink2);
}
.eng-tab.active {
  color: var(--coral);
  border-color: var(--coral-md);
  background: var(--coral-lt);
  box-shadow: var(--shadow-xs);
}
.code-blk {
  background: var(--navy-deep);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre;
  text-align: left;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
  transition: opacity var(--dur-fast);
}
.code-blk .cm { color: #94a3b8; font-style: italic; }
.code-blk .kw { color: #f472b6; }
.code-blk .fn { color: #60a5fa; }
.code-blk .st { color: #86efac; }
.code-blk .ty { color: #c4b5fd; }
.code-blk .op { color: #cbd5e1; }

.code-foot {
  margin-top: 16px;
  padding: 13px 16px;
  background: var(--sage-lt);
  border: 1.5px solid var(--sage-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
}
.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(74,124,111,0.4);
}
.code-foot p {
  font-size: 13px;
  font-weight: 700;
  color: var(--sage);
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.mini-stat {
  background: var(--paper);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.mini-stat-n {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 800;
}
.mini-stat-l {
  font-family: var(--f-hand);
  font-size: 11px;
  color: var(--ink3);
}

@media (max-width: 800px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-grid .section-h2 { word-break: break-word; }
  .how-card { max-width: 100%; overflow: hidden; }
}

/* === INTEGRATIONS === */
.int-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 50px;
}
.int-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-smooth),
              box-shadow var(--dur-normal);
  position: relative;
  overflow: hidden;
}
.int-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.int-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  border-radius: 0 var(--radius-xl) 0 140px;
  opacity: 0.08;
  transition: opacity var(--dur-normal);
}
.int-card:hover .int-accent { opacity: 0.14; }
.int-steam .int-accent { background: var(--mustard); }
.int-gh .int-accent { background: var(--navy); }

.int-ico {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.int-ico svg {
  width: 36px;
  height: 36px;
}
.int-h3 {
  font-family: var(--f-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.int-p {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.5;
}
.ck {
  color: var(--sage);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Steam & player reviews */
.r-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.r-info { flex: 1; min-width: 0; }
.r-name { font-size: 12px; font-weight: 700; color: var(--ink); }
.r-sub { font-size: 11px; color: var(--ink3); }

/* Steam review cards */
.steam-reviews {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.steam-review {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.sr-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.sr-thumb {
  font-size: 16px;
  margin-left: auto;
  flex-shrink: 0;
}
.sr-body {
  font-size: 12px;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 10px;
}
.sr-reply {
  background: var(--sage-lt);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.sr-reply-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.sr-reply-body {
  font-size: 11.5px;
  color: var(--ink2);
  line-height: 1.55;
}
.sr-meta {
  font-size: 10px;
  color: var(--ink3);
}
.sr-reply-pending {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--coral);
  font-weight: 600;
  padding: 8px 12px;
  background: var(--coral-lt);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--coral-md);
  cursor: pointer;
}

/* Code mini */
.code-mini {
  background: var(--navy-deep);
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.75;
  margin-top: 18px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.15);
  overflow-x: auto;
}

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

/* === DEEP FEATURES GRID === */
.deep-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.deep-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--dur-normal), box-shadow var(--dur-normal), border-color var(--dur-normal);
}
.deep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-md);
}
.deep-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.deep-ico svg { width: 24px; height: 24px; }
.deep-h3 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.deep-p {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}
@media (max-width: 860px) { .deep-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .deep-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; } }

/* === TESTIMONIALS === */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.testi-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal), border-color var(--dur-normal), box-shadow var(--dur-normal);
  position: relative;
}
.testi-card:hover {
  transform: translateY(-5px);
  border-color: var(--coral-md);
  box-shadow: var(--shadow-lg);
}
.testi-q {
  font-family: var(--f-head);
  font-size: 56px;
  line-height: 0.8;
  color: var(--coral-md);
  margin-bottom: 16px;
  display: block;
  font-style: italic;
}
.testi-txt {
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.8;
  margin-bottom: 22px;
  font-style: italic;
  font-family: var(--f-head);
}
.testi-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.testi-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testi-role { font-size: 12px; color: var(--ink3); }
.corner-deco {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0.1;
  transition: opacity var(--dur-normal);
}
.testi-card:hover .corner-deco { opacity: 0.2; }

@media (max-width: 860px) {
  .testi-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* === PRICING === */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  align-items: start;
}
.price-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 38px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal), box-shadow var(--dur-normal);
  position: relative;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card.feat {
  border-color: var(--coral);
  box-shadow: var(--shadow-lg), 6px 6px 0 var(--coral-md);
  transform: scale(1.04);
  background: linear-gradient(180deg, #fff 0%, #FFFAF5 100%);
}
.price-card.feat:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: var(--shadow-xl), 8px 8px 0 var(--coral-md);
}
.pop-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-coral);
  color: #fff;
  font-family: var(--f-hand);
  font-size: 12px;
  padding: 5px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.02em;
}
.price-tier {
  font-family: var(--f-hand);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink3);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.price-n {
  font-family: var(--f-head);
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.price-n sup { font-size: 22px; vertical-align: super; color: var(--ink2); }
.price-n sub { font-size: 16px; font-weight: 400; color: var(--ink3); }
.price-desc {
  font-size: 14px;
  color: var(--ink3);
  margin-bottom: 22px;
  line-height: 1.55;
}
.price-divider {
  height: 1.5px;
  background: var(--border);
  margin-bottom: 22px;
  border: none;
}
.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--ink2);
}
.price-list li .ck { color: var(--sage); font-weight: 800; flex-shrink: 0; }
.price-list li .dash { color: var(--ink4); }

/* Billing toggle */
.billing-toggle {
  display: inline-flex;
  gap: 0;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-top: 24px;
}
.billing-opt {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink3);
  transition: background var(--dur-fast), color var(--dur-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
.billing-opt.active {
  background: var(--coral);
  color: #fff;
}
.save-badge {
  font-size: 11px;
  background: var(--sage);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 800;
}
.billing-opt.active .save-badge {
  background: rgba(255,255,255,0.25);
}

/* Price highlight chip */
.price-highlight {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--sage-lt);
  color: var(--sage);
  margin-bottom: 12px;
}
.price-card.feat .price-highlight {
  background: var(--coral-lt);
  color: var(--coral);
}

/* Billed annually subtext */
.price-billed {
  font-size: 12px;
  color: var(--ink3);
  margin-bottom: 4px;
  min-height: 18px;
}

@media (max-width: 860px) {
  .price-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .price-card.feat { transform: none; }
  .price-card.feat:hover { transform: translateY(-6px); }
}

/* === STICKY MOBILE CTA === */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255,251,243,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  align-items: center;
  gap: 8px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}
.sticky-cta-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--ink3);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
@media (max-width: 768px) {
  .sticky-cta { display: flex; }
}

/* === FAQ === */
.faq-grid {
  max-width: 740px;
  margin: 50px auto 0;
}
.faq-item {
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  cursor: pointer;
  gap: 18px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  transition: color var(--dur-fast);
}
.faq-q:hover { color: var(--coral); }
.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform 0.35s var(--ease-out);
  color: var(--ink3);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
}
.faq-a-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.75;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-a { max-height: 350px; }

/* === CTA === */
.cta-sec {
  padding: 110px 0;
  background: var(--paper);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-blob {
  position: absolute;
  pointer-events: none;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: blobmorph 14s ease-in-out infinite;
}
.cta-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232,98,74,0.07), transparent 65%);
  top: -140px;
  left: -140px;
}
.cta-blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(74,124,111,0.06), transparent 65%);
  bottom: -100px;
  right: -100px;
  animation-delay: -6s;
}
.cta-icon-wrap {
  font-size: 68px;
  margin-bottom: 22px;
  display: inline-block;
  animation: float 3.5s ease-in-out infinite;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.cta-h2 {
  font-family: var(--f-head);
  font-size: clamp(34px, 5.2vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 18px;
}
.cta-h2 em { font-style: italic; color: var(--coral); }
.cta-p {
  font-size: 18px;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.cta-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cta-note {
  font-family: var(--f-hand);
  font-size: 14px;
  color: var(--ink3);
  letter-spacing: 0.02em;
}

/* === FOOTER === */
.footer-wave {
  display: block;
  width: 100%;
  height: 80px;
  margin-bottom: -2px;
  background: var(--paper);
}
footer {
  background: #1a2636;
  padding: 24px 0 40px;
  color: rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, transparent 0%, transparent 8%, rgba(15,25,35,0.4) 35%, rgba(15,25,35,0.7) 65%, rgba(22,37,56,0.5) 100%);
  pointer-events: none;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(232,98,74,0.06), transparent 45%),
    radial-gradient(ellipse at 85% 100%, rgba(74,124,111,0.06), transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.015), transparent 60%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.footer-logo .wordmark { letter-spacing: -0.02em; }
.footer-logo .net { color: var(--coral); }
.footer-brand p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 260px;
}
.footer-col { position: relative; z-index: 1; }
.footer-col h4 {
  font-family: var(--f-hand);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  transition: color var(--dur-fast), transform var(--dur-fast);
}
.footer-col a:hover {
  color: #fff;
  transform: translateX(3px);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--f-hand);
}

/* Newsletter form */
.footer-newsletter {
  margin-top: 18px;
}
.footer-newsletter-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.footer-newsletter-row {
  display: flex;
  gap: 0;
}
.footer-newsletter-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: var(--f-body);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.footer-newsletter-input::placeholder {
  color: rgba(255,255,255,0.35);
}
.footer-newsletter-input:focus {
  border-color: var(--coral);
}
.footer-newsletter-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--f-body);
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.footer-newsletter-btn:hover {
  background: #d4553f;
}
.footer-newsletter-msg {
  font-size: 0.78rem;
  margin-top: 6px;
  min-height: 18px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   MOBILE OVERFLOW FIXES
   Eliminates all x-axis sway
   ============================================ */

/* Global overflow clip — only on html so sticky nav works on body */
html {
  overflow-x: hidden;
}

/* Sections that contain absolute-positioned elements */
.hero,
.cta-sec,
.stats-band {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Reduce container padding for tighter fit */
  .container { padding: 0 20px; }

  /* Hero adjustments */
  .hero { padding: 64px 0 48px; }
  .hero-grid { gap: 32px; }
  .hero-h1 { font-size: clamp(32px, 8vw, 42px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Hide decorative squiggles on mobile */
  .squig { display: none; }

  /* Contain blobs */
  .blob-1 { width: 300px; height: 300px; top: -80px; right: -80px; }
  .blob-2 { width: 200px; height: 200px; bottom: -60px; left: -60px; }
  .blob-3 { display: none; }

  /* Floating badges — reposition to not overflow */
  .fb { font-size: 11px; padding: 8px 10px; }
  .fb-1 { top: -12px; right: 0; }
  .fb-2 { bottom: 36px; left: 0; }
  .fb-3 { bottom: -12px; right: 12px; }

  /* App card — stack columns on mobile */
  .app-body { grid-template-columns: 1fr; }
  .app-col:first-child { border-right: none; border-bottom: 1.5px solid var(--border); }

  /* Section spacing */
  .section { padding: 64px 0; }
  .section-h2 { font-size: clamp(26px, 7vw, 36px); }
  .section-p { font-size: 15px; }

  /* Stats */
  .stats-band { padding: 56px 0; }
  .stat-n { font-size: 40px; }
  .stat-cell { padding: 20px 12px; }

  /* How it works */
  .how-card { padding: 20px; max-width: 100%; overflow: hidden; }
  .code-blk { font-size: 11px; padding: 16px 14px; white-space: pre-wrap; overflow-wrap: break-word; }
  .step { min-width: 0; }
  .step div { min-width: 0; }

  /* Integrations */
  .int-card { padding: 24px 20px; }
  .int-h3 { font-size: 20px; }
  .risk-prev { padding: 10px; }
  .r-row { gap: 6px; flex-wrap: wrap; }
  .r-track { flex: 1; min-width: 60px; }

  /* Code mini — prevent overflow */
  .code-mini { font-size: 10.5px; padding: 12px 14px; overflow-x: auto; word-break: break-word; }

  /* Testimonials */
  .testi-grid { margin-top: 36px; }
  .testi-q { font-size: 40px; }
  .testi-txt { font-size: 14px; }

  /* Pricing */
  .price-n { font-size: 44px; }

  /* CTA */
  .cta-sec { padding: 72px 20px; }
  .cta-h2 { font-size: clamp(28px, 7vw, 40px); }
  .cta-p { font-size: 16px; }
  .cta-actions { flex-direction: column; gap: 10px; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 48px 0 32px; }
  .footer-grid { gap: 28px; margin-bottom: 32px; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-h1 { font-size: 28px; }
  .btn-lg { font-size: 14px; padding: 13px 24px; }
  .btn-xl { font-size: 15px; padding: 16px 28px; }
  .stat-n { font-size: 32px; }
  .stats-grid { gap: 8px; }
  .how-card { padding: 14px; border-radius: var(--radius-lg); }
  .code-blk { font-size: 11px; padding: 12px 10px; }
  .code-mini { font-size: 11px; padding: 10px 12px; }
  .eng-tab { font-size: 12px; padding: 6px 12px; }
}

/* ============================================
   GAME SCREENSHOT + ERROR OVERLAY (Hero)
   ============================================ */
.game-screenshot-wrap {
  position: relative;
  border-radius: var(--radius-xl, 16px);
  overflow: visible;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.game-screenshot {
  position: relative;
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  background: #1a1a2e;
  line-height: 0;
}
.game-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Error tracing overlay */
.error-overlay {
  position: absolute;
  bottom: 24px;
  left: 16px;
  right: 16px;
  background: rgba(15, 20, 30, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  z-index: 3;
  animation: overlaySlideUp 0.6s ease-out;
}
@keyframes overlaySlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.error-overlay-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body, 'Nunito', sans-serif);
  font-size: 12px;
  font-weight: 700;
  color: #ef4444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.error-overlay-body {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  line-height: 1.6;
}
.error-trace-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.error-trace-error {
  color: #fca5a5;
  font-weight: 600;
}
.error-trace-stack {
  color: #94a3b8;
  padding-left: 12px;
}
.error-trace-meta {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 10px;
  color: #64748b;
}

/* Floating badge on hero visual */
.error-badge-float {
  position: absolute;
  top: -12px;
  right: -8px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sage);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 4;
  animation: floatBadge 3s ease-in-out infinite;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Features wave separator ── */
#features {
  padding-bottom: 140px;
}
.features-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 3;
  display: block;
}

/* ============================================
   FEATURE GRID (4-card layout)
   ============================================ */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 48px auto 0;
}

.feat-card {
  display: flex;
  flex-direction: column;
}

/* Card highlight area */
.feat-card-highlight {
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  flex: 1;
}
.feat-card:hover .feat-card-highlight {
  border-color: var(--coral-md);
  box-shadow: 0 8px 28px rgba(232, 98, 74, 0.15);
}
.feat-card-inner {
  background: #0f1923;
  padding: 28px 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card text — equal height across row */
.feat-card-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.feat-card-h3 {
  font-family: var(--f-head, 'Fraunces', serif);
  font-size: 20px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0 0 8px;
}
.feat-card-p {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* ── Terminal card ── */
.feat-card-terminal {
  padding: 0 !important;
}
.feat-term-window {
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  margin: 20px 18px;
}
.feat-term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.feat-term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.feat-term-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-right: 30px;
}
.feat-term-body {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #e2e8f0;
  padding: 16px 18px;
}
.feat-term-line.dim {
  color: #64748b;
}

/* ── Aggregation card ── */
.feat-agg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #e2e8f0;
}
.feat-agg-count {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-weight: 700;
  color: var(--coral);
  min-width: 32px;
}
.feat-agg-msg {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.feat-agg-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.feat-agg-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #94a3b8;
}

/* ── Stack trace card ── */
.feat-stack-error {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #fca5a5;
  margin-bottom: 14px;
}
.feat-stack-trace {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  color: #94a3b8;
  line-height: 2;
  padding-left: 8px;
  border-left: 2px solid rgba(239, 68, 68, 0.3);
  margin-bottom: 16px;
}
.feat-stack-trace span {
  color: #64748b;
}
.feat-stack-device {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feat-device-chip {
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Replay card ── */
.feat-replay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  color: #cbd5e1;
  position: relative;
}
.feat-replay-time {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  min-width: 38px;
}
.feat-replay-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}
.feat-replay-dot.crash {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}
.feat-replay-crash {
  color: #fca5a5;
  font-weight: 600;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 6px;
  padding: 7px 10px;
  margin-top: 4px;
}

/* Feature grid responsive */
@media (max-width: 768px) {
  .feat-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .feat-card-inner {
    min-height: 160px;
    padding: 22px 18px;
  }
  .feat-card-h3 { font-size: 18px; }
  .error-overlay {
    left: 8px;
    right: 8px;
    bottom: 12px;
    padding: 10px 12px;
  }
  .error-trace-meta { flex-wrap: wrap; gap: 8px; }
  .error-badge-float { display: none; }
}
