@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..900&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #0b0e14;
  --bg-card: rgba(19, 23, 32, 0.6);
  --bg-card-hover: rgba(26, 31, 42, 0.75);
  --border-color: rgba(232, 224, 210, 0.07);
  --border-glow: rgba(201, 124, 61, 0.18);
  
  --color-green: #c97c3d;
  --color-green-glow: rgba(201, 124, 61, 0.4);
  --color-cyan: #5b8299;
  --color-cyan-glow: rgba(91, 130, 153, 0.4);
  --color-purple: #4a7a68;
  --color-purple-glow: rgba(74, 122, 104, 0.4);
  
  --color-amber: #d9a441;
  --color-red: #c0524a;
  
  --text-primary: #e8e6df;
  --text-secondary: #a39b8c;
  --text-dark: #6e6656;
  
  --font-sans: 'Manrope', sans-serif;
  --font-display: 'Fraunces', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  min-height: 100vh;
  position: relative;
  background: var(--bg-color);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background elements */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: 80px 80px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  pointer-events: none;
  z-index: 1;
}

.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vw;
  max-width: 1200px;
  max-height: 1200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 124, 61, 0.06) 0%, transparent 70%);
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ambient-glow.watch {
  background: radial-gradient(circle, rgba(201, 124, 61, 0.06) 0%, transparent 70%);
}
.ambient-glow.write {
  background: radial-gradient(circle, rgba(91, 130, 153, 0.06) 0%, transparent 70%);
}
.ambient-glow.post {
  background: radial-gradient(circle, rgba(74, 122, 104, 0.06) 0%, transparent 70%);
}

/* General Layout elements */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

header.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 7, 9, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.3s;
}

header.navbar.scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 10px var(--color-green-glow);
  display: inline-block;
  animation: logoPulse 2.5s infinite ease-in-out;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); box-shadow: 0 0 8px var(--color-green-glow); }
  50% { opacity: 1; transform: scale(1.2); box-shadow: 0 0 16px var(--color-green); }
}

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

.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-green);
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-login {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.btn-login:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.btn-primary {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--color-green) 0%, #e0954f 100%);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(201, 124, 61, 0.25);
  transition: var(--transition-spring);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 124, 61, 0.4);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  cursor: pointer;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding-top: 80px;
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ECG Heartbeat Graph */
.heartbeat-container {
  width: 100%;
  max-width: 900px;
  height: 120px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}

.heartbeat-canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.status-badge-wrap {
  margin-bottom: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.status-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green-glow);
  display: inline-block;
  animation: logoPulse 2.5s infinite ease-in-out;
}

.status-badge a {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 600;
}

/* Headline Reveal */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 980px;
  margin: 0 auto 24px auto;
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--color-green) 0%, #e0954f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.word-reveal span {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  animation: blurReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes blurReveal {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 40px auto;
}

.hero-description span.asko-name {
  background: linear-gradient(90deg, var(--color-green) 0%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Floating Cards Parallax */
.floating-cards-container {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 860px;
  margin: 40px auto 48px auto;
  perspective: 1000px;
  z-index: 10;
}

.floating-card {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: left;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
  cursor: grab;
}

.floating-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 124, 61, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
}

.card-status-dot.slow {
  background: var(--color-amber);
  box-shadow: 0 0 8px var(--color-amber);
}

.card-status-dot.down {
  background: var(--color-red);
  box-shadow: 0 0 8px var(--color-red);
}

.card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.card-ping-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-green);
  background: rgba(201, 124, 61, 0.08);
  border: 1px solid rgba(201, 124, 61, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-ping-badge.slow {
  color: var(--color-amber);
  background: rgba(217, 164, 65, 0.08);
  border-color: rgba(217, 164, 65, 0.15);
}

.card-ping-badge.down {
  color: var(--color-red);
  background: rgba(192, 82, 74, 0.08);
  border-color: rgba(192, 82, 74, 0.15);
}

.card-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

/* Card ECG sparkline preview */
.card-wave {
  width: 100%;
  height: 32px;
  opacity: 0.4;
  transition: opacity 0.3s;
}

.floating-card:hover .card-wave {
  opacity: 0.85;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.magnetic-wrap {
  display: inline-block;
  position: relative;
}

.btn-large {
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 10px;
}

.btn-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* Scroll Morph / Three AI Agents Section */
.agents-section {
  position: relative;
  padding: 140px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.agents-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.agents-visual {
  position: sticky;
  top: 150px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Visual Morphing Orb styling */
.orb-container {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.orb-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-green);
  filter: blur(40px);
  opacity: 0.25;
  transition: var(--transition-smooth);
}

.orb {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 70%);
  background-color: rgba(201, 124, 61, 0.15);
  border: 1px solid rgba(201, 124, 61, 0.3);
  box-shadow: inset 0 0 20px rgba(201, 124, 61, 0.2);
  transition: var(--transition-smooth);
  animation: orbFloat 6s ease-in-out infinite;
  z-index: 10;
}

/* Orb shapes per active agent */
.agents-section[data-active="watch"] .orb {
  background-color: rgba(201, 124, 61, 0.15);
  border-color: rgba(201, 124, 61, 0.4);
  box-shadow: 0 0 40px rgba(201, 124, 61, 0.3), inset 0 0 20px rgba(201, 124, 61, 0.2);
  border-radius: 50%;
}
.agents-section[data-active="watch"] .orb-glow {
  background-color: var(--color-green);
  opacity: 0.3;
}

.agents-section[data-active="write"] .orb {
  background-color: rgba(91, 130, 153, 0.15);
  border-color: rgba(91, 130, 153, 0.4);
  box-shadow: 0 0 45px rgba(91, 130, 153, 0.3), inset 0 0 20px rgba(91, 130, 153, 0.2);
  border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%;
  animation: orbRotateBlob 8s linear infinite;
}
.agents-section[data-active="write"] .orb-glow {
  background-color: var(--color-cyan);
  opacity: 0.3;
}

.agents-section[data-active="post"] .orb {
  background-color: rgba(74, 122, 104, 0.15);
  border-color: rgba(74, 122, 104, 0.4);
  box-shadow: 0 0 50px rgba(74, 122, 104, 0.35), inset 0 0 20px rgba(74, 122, 104, 0.2);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: orbExpandMorph 7s ease-in-out infinite alternate;
}
.agents-section[data-active="post"] .orb-glow {
  background-color: var(--color-purple);
  opacity: 0.35;
}

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

@keyframes orbRotateBlob {
  0% { transform: rotate(0deg) scale(1); border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%; }
  50% { transform: rotate(180deg) scale(1.05); border-radius: 40% 60% 70% 30% / 50% 50% 50% 50%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 30% 70% 50% 50% / 40% 40% 60% 60%; }
}

@keyframes orbExpandMorph {
  0% { transform: scale(1) rotate(0deg); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  100% { transform: scale(1.15) rotate(45deg); border-radius: 40% 60% 60% 40% / 40% 60% 40% 60%; }
}

/* Rings revolving around orb */
.orb-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.05);
  pointer-events: none;
  transition: var(--transition-smooth);
}

.orb-ring.r1 {
  width: 230px;
  height: 230px;
  animation: ringSpinClockwise 12s linear infinite;
}

.orb-ring.r2 {
  width: 270px;
  height: 270px;
  animation: ringSpinCounter 20s linear infinite;
}

.agents-section[data-active="watch"] .orb-ring {
  border-color: rgba(201, 124, 61, 0.08);
}
.agents-section[data-active="write"] .orb-ring {
  border-color: rgba(91, 130, 153, 0.08);
}
.agents-section[data-active="post"] .orb-ring {
  border-color: rgba(74, 122, 104, 0.08);
}

@keyframes ringSpinClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringSpinCounter {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Agent content column */
.agent-content-block {
  padding: 40px 0 100px 0;
  opacity: 0.35;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.agent-content-block.active {
  opacity: 1;
  transform: translateY(0);
}

.agent-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.watch-badge {
  color: var(--color-green);
  border: 1px solid rgba(201, 124, 61, 0.2);
  background: rgba(201, 124, 61, 0.08);
}

.write-badge {
  color: var(--color-cyan);
  border: 1px solid rgba(91, 130, 153, 0.2);
  background: rgba(91, 130, 153, 0.08);
}

.post-badge {
  color: var(--color-purple);
  border: 1px solid rgba(74, 122, 104, 0.2);
  background: rgba(74, 122, 104, 0.08);
}

.agent-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.agent-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.agent-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  opacity: 0;
  transform: translateY(15px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.agent-content-block.active .agent-feature-item {
  opacity: 1;
  transform: translateY(0);
}

.agent-feature-item:nth-child(1) { transition-delay: 0.1s; }
.agent-feature-item:nth-child(2) { transition-delay: 0.2s; }
.agent-feature-item:nth-child(3) { transition-delay: 0.3s; }
.agent-feature-item:nth-child(4) { transition-delay: 0.4s; }
.agent-feature-item:nth-child(5) { transition-delay: 0.5s; }

.feature-icon-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.watch-icon-box {
  background: rgba(201, 124, 61, 0.12);
  border: 1px solid rgba(201, 124, 61, 0.2);
}

.write-icon-box {
  background: rgba(91, 130, 153, 0.12);
  border: 1px solid rgba(91, 130, 153, 0.2);
}

.post-icon-box {
  background: rgba(74, 122, 104, 0.12);
  border: 1px solid rgba(74, 122, 104, 0.2);
}

.feature-info {
  display: flex;
  flex-direction: column;
}

.feature-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* How It Works Section */
.works-section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Vertical Timeline SVG Scroll Drawing path */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-svg {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.timeline-svg-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 0.1s ease-out;
}

.timeline-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 5;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step:nth-child(even) .step-card-col {
  grid-column: 2;
}

.timeline-step:nth-child(even) .step-info-col {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
}

.step-card-col {
  display: flex;
  align-items: center;
}

.step-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.timeline-step.active .step-num {
  color: rgba(201, 124, 61, 0.18);
  transform: scale(1.1);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 400px;
}

.timeline-step:nth-child(even) .step-desc {
  margin-left: auto;
}

.step-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: var(--transition-spring);
  position: relative;
}

.timeline-step.active .step-card {
  transform: translateY(-5px);
  border-color: rgba(201, 124, 61, 0.25);
  box-shadow: 0 20px 40px rgba(201, 124, 61, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Center node indicator */
.step-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-step.active .step-node {
  border-color: var(--color-green);
  box-shadow: 0 0 10px var(--color-green-glow);
}

.step-node-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  transition: var(--transition-smooth);
}

.timeline-step.active .step-node-inner {
  transform: translate(-50%, -50%) scale(1);
}

/* Stats Bar */
.stats-section {
  background: #000;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Infinite Horizontal Marquee Ticker */
.marquee-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  position: relative;
  padding: 24px 0 0 0;
  display: flex;
  pointer-events: auto;
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeRun 35s linear infinite;
  padding-left: 20px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.stat-pill {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: border-color 0.25s, background-color 0.25s;
}

.stat-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

@keyframes marqueeRun {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); } /* Loop points match replication of children */
}

/* Pricing Section */
.pricing-section {
  padding: 120px 0;
  position: relative;
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.tab-pill-box {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.tab-btn {
  background: transparent;
  color: var(--text-dark);
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}

.trial-banner {
  max-width: 450px;
  margin: 0 auto 40px auto;
  background: linear-gradient(135deg, rgba(201, 124, 61, 0.04), rgba(201, 124, 61, 0.07));
  border: 1px solid rgba(201, 124, 61, 0.18);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trial-text {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-claim {
  background: var(--color-green);
  color: #000;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition-spring);
}

.btn-claim:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201, 124, 61, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  perspective: 1000px; /* Setup for 3D tilt perspective */
}

/* Pricing Card base styles */
.pricing-card-wrap {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.pricing-card {
  height: 100%;
  position: relative;
  background: rgba(8, 10, 14, 0.45);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.01);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.pricing-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.pricing-card.popular {
  border-color: var(--color-green);
  box-shadow: 0 10px 30px rgba(201, 124, 61, 0.04);
}

/* Glowing Border Scanning Highlight */
.pricing-card.popular::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(90deg, var(--color-green), #e0954f, var(--color-green));
  background-size: 200% 100%;
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 4s linear infinite;
}

@keyframes borderSweep {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-green) 0%, #e0954f 100%);
  color: #000;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(201, 124, 61, 0.25);
  white-space: nowrap;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.popular .pricing-tier {
  color: var(--color-green);
}

.pricing-cost {
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
}

.price-val {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.price-period {
  font-size: 0.8rem;
  color: var(--text-dark);
  margin-left: 4px;
}

.pricing-desc {
  font-size: 0.78rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.pricing-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 24px;
}

.popular .pricing-divider {
  background: rgba(201, 124, 61, 0.18);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
}

.btn-pricing:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.popular .btn-pricing {
  background: linear-gradient(135deg, var(--color-green) 0%, #e0954f 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(201, 124, 61, 0.15);
}

.popular .btn-pricing:hover {
  box-shadow: 0 6px 20px rgba(201, 124, 61, 0.35);
  transform: translateY(-1px);
}

.pricing-notice {
  text-align: center;
  margin-top: 32px;
  color: var(--text-dark);
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

/* FAQ Section */
.faq-section {
  padding: 120px 0 160px 0;
  border-top: 1px solid var(--border-color);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  transition: color 0.2s;
}

.faq-trigger:hover .faq-question {
  color: #fff;
}

.faq-icon-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.faq-trigger:hover .faq-icon-box {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.faq-icon-box svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item.active .faq-icon-box svg {
  transform: rotate(45deg);
}

.faq-item.active .faq-icon-box {
  border-color: rgba(201, 124, 61, 0.3);
  background: rgba(201, 124, 61, 0.08);
}

.faq-item.active .faq-icon-box svg line {
  stroke: var(--color-green);
}

/* Accordion expand collapse grid mechanics */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
}

.faq-answer-content p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 0 18px 0;
  max-width: 500px;
}

/* Footer Section */
footer.footer {
  background: #030406;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 24px;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-dark);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon-link {
  color: var(--text-dark);
  transition: color 0.2s;
}

.social-icon-link:hover {
  color: #fff;
}

/* Scroll Animation classes (reveal-on-scroll) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .agents-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-menu, .nav-actions {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 40px;
    padding-bottom: 80px;
  }
  
  .floating-cards-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .agents-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .agents-visual {
    position: relative;
    top: 0;
    height: auto;
    margin-bottom: 20px;
  }
  
  .orb-container {
    width: 220px;
    height: 220px;
  }
  
  .orb {
    width: 140px;
    height: 140px;
  }
  
  .orb-ring.r1 { width: 180px; height: 180px; }
  .orb-ring.r2 { width: 220px; height: 220px; }
  
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .timeline-svg {
    left: 20px;
    transform: none;
  }
  
  .step-node {
    left: 20px;
    transform: translate(-50%, -50%);
  }
  
  .timeline-step:nth-child(even) .step-card-col {
    grid-column: 1;
  }
  
  .timeline-step:nth-child(even) .step-info-col {
    grid-column: 1;
    text-align: left;
  }
  
  .step-info-col {
    padding-left: 50px;
  }
  
  .step-card-col {
    padding-left: 50px;
  }
  
  .timeline-step:nth-child(even) .step-desc {
    margin-left: 0;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .magnetic-wrap, .btn-secondary, .btn-large {
    width: 100%;
  }
  
  .btn-large, .btn-secondary {
    text-align: center;
  }
}

/* Accessibility settings for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .word-reveal span {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    animation: none !important;
  }
  
  .orb, .orb-glow, .orb-ring, .btn-primary, .btn-secondary, .step-node, .step-node-inner, .faq-icon-box svg {
    animation: none !important;
    transform: none !important;
  }
  
  .heartbeat-canvas {
    display: none !important;
  }
  
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  
  .marquee-track {
    animation: none !important;
    flex-wrap: wrap;
    justify-content: center;
  }
}
