/* ============================================
   AI DREAMS — Design System & Styles
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Base */
  --bg-primary: #0a0a12;
  --bg-secondary: #0f0f1a;
  --bg-tertiary: #141425;
  --bg-card: rgba(18, 18, 35, 0.6);
  --bg-card-hover: rgba(25, 25, 45, 0.8);

  /* Text */
  --text-primary: #e8e6f0;
  --text-secondary: #9896a8;
  --text-tertiary: #5c5a6e;

  /* Accents */
  --accent-primary: #7c3aed;
  --accent-secondary: #3b82f6;
  --accent-glow: #c4b5fd;
  --gradient-primary: linear-gradient(135deg, #7c3aed, #3b82f6);

  /* Product Colors */
  --color-huginn: #f59e0b;
  --color-candengo: #3b82f6;
  --color-email: #06b6d4;
  --color-icp: #8b5cf6;
  --color-helpdesk: #f43f5e;

  /* Sizing */
  --nav-height: 64px;
  --section-padding: clamp(48px, 6vw, 80px);
  --content-width: 1200px;
  --content-padding: clamp(20px, 4vw, 40px);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 2px solid var(--accent-glow);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* Subtle noise grain over entire page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

/* --- Utility --- */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-glow);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto clamp(24px, 4vw, 48px);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn--glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.3s;
}

.btn--glow:hover::after {
  opacity: 0.6;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all 0.3s var(--ease-out);
}

.nav--scrolled {
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav__logo-icon {
  font-size: 1.4rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

.nav__mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(10, 10, 18, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__mobile.active {
  display: flex;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) var(--content-padding) 4rem;
  overflow: hidden;
}

.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Multiple aurora layers for full coverage */
.hero__aurora::before,
.hero__aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

/* Center-left blob — purple dominant */
.hero__aurora::before {
  width: 80vw;
  height: 80vh;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.55) 0%, rgba(88, 28, 235, 0.25) 35%, transparent 65%);
  animation: aurora-1 14s ease-in-out infinite alternate;
}

/* Center-right blob — blue/cyan */
.hero__aurora::after {
  width: 70vw;
  height: 70vh;
  top: 45%;
  left: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.45) 0%, rgba(6, 182, 212, 0.22) 40%, transparent 65%);
  animation: aurora-2 18s ease-in-out infinite alternate;
}

@keyframes aurora-1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(8%, 5%) scale(1.15) rotate(3deg); }
  100% { transform: translate(-5%, -3%) scale(1.05) rotate(-2deg); }
}

@keyframes aurora-2 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-10%, 8%) scale(1.2) rotate(-3deg); }
  100% { transform: translate(5%, -5%) scale(0.95) rotate(2deg); }
}

/* Extra aurora blobs via elements */
.hero__aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__aurora-blob--1 {
  width: 50vw;
  height: 60vh;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 60%);
  animation: aurora-1 20s ease-in-out infinite alternate-reverse;
}

.hero__aurora-blob--2 {
  width: 45vw;
  height: 45vh;
  top: 65%;
  left: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  animation: aurora-2 16s ease-in-out infinite alternate;
}

.hero__aurora-blob--3 {
  width: 60vw;
  height: 50vh;
  top: 35%;
  left: 55%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 55%);
  animation: aurora-1 22s ease-in-out 3s infinite alternate;
}

/* Subtle grid overlay */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-glow);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 2rem;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero__title-gradient {
  background: linear-gradient(135deg, #c4b5fd 0%, #7c3aed 40%, #3b82f6 70%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Hero entry animations --- */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s var(--ease-out) forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.2s; }
.animate-in:nth-child(2) { animation-delay: 0.4s; }
.animate-in:nth-child(3) { animation-delay: 0.6s; }
.animate-in:nth-child(4) { animation-delay: 0.8s; }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Scroll-triggered animations --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LOGOS MARQUEE
   ============================================ */
.logos {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.logos__label {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.logos__track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos__marquee {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  width: max-content;
}

.logos__item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.logos__divider {
  color: var(--text-tertiary);
  opacity: 0.3;
  font-size: 0.7rem;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================
   BENTO GRID
   ============================================ */
.products {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
  position: relative;
}

/* Ambient glow behind the product grid */
.products::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(60px);
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.25rem;
}

.bento__card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.bento__card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(124, 58, 237, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bento__card-glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--card-accent, var(--accent-primary)), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  padding: 1px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
}

.bento__card:hover .bento__card-glow {
  opacity: 0.5;
}

.bento__card-content {
  position: relative;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bento__card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.bento__card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento__card-icon--huginn { background: rgba(245, 158, 11, 0.1); color: var(--color-huginn); }
.bento__card-icon--candengo { background: rgba(59, 130, 246, 0.1); color: var(--color-candengo); }
.bento__card-icon--email { background: rgba(6, 182, 212, 0.1); color: var(--color-email); }
.bento__card-icon--icp { background: rgba(139, 92, 246, 0.1); color: var(--color-icp); }
.bento__card-icon--helpdesk { background: rgba(244, 63, 94, 0.1); color: var(--color-helpdesk); }

.bento__card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
}

.bento__card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.bento__card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento__card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-glow);
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bento__card-link:hover {
  gap: 0.6rem;
}

/* Grid placement */
.bento__card--large {
  grid-column: span 3;
  grid-row: span 2;
  --card-accent: var(--color-huginn);
}

.bento__card--medium {
  grid-column: span 3;
  grid-row: span 1;
}

.bento__card--small {
  grid-column: span 3;
  grid-row: span 1;
}

.bento__card--candengo { --card-accent: var(--color-candengo); }
.bento__card--email { --card-accent: var(--color-email); }
.bento__card--icp { --card-accent: var(--color-icp); }
.bento__card--helpdesk { --card-accent: var(--color-helpdesk); }

/* --- Bento card visuals --- */
.bento__card-visual {
  flex: 1;
  min-height: 120px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

/* Huginn pulse grid */
.pulse-grid {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.pulse-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-huginn);
  animation: pulse-ring 3s ease-in-out var(--delay) infinite;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--color-huginn);
  opacity: 0;
  animation: pulse-ring-expand 3s ease-out var(--delay) infinite;
}

.pulse-dot--alert {
  background: var(--color-helpdesk);
}

.pulse-dot--alert::after {
  border-color: var(--color-helpdesk);
}

@keyframes pulse-ring-expand {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

.pulse-grid__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

.pulse-grid__status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Candengo vector space */
.vector-space {
  width: 100%;
  height: 100%;
  min-height: 120px;
}

/* Email flow */
.email-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  padding: 1rem;
}

.email-flow__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.02);
}

.email-flow__icon {
  font-size: 1.2rem;
}

.email-flow__item--in { border-color: rgba(6, 182, 212, 0.3); }
.email-flow__item--process {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.05);
}
.email-flow__item--out { border-color: rgba(34, 197, 94, 0.3); }

.email-flow__arrow {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ============================================
   PLATFORM SECTION
   ============================================ */
.platform {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.platform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.platform__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
}

/* --- Orbit System --- */
.platform__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-system {
  position: relative;
  width: 360px;
  height: 360px;
}

.orbit-system__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4), 0 0 80px rgba(124, 58, 237, 0.15);
  z-index: 2;
}

.orbit-system__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid var(--border-card);
}

.orbit-system__ring--1 {
  width: 260px;
  height: 260px;
  margin-top: -130px;
  margin-left: -130px;
  animation: orbit-rotate 30s linear infinite;
}

.orbit-system__ring--2 {
  width: 340px;
  height: 340px;
  margin-top: -170px;
  margin-left: -170px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.03);
  animation: orbit-rotate 45s linear infinite reverse;
}

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

.orbit-system__node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  top: 50%;
  left: 50%;
  /* Position nodes in a circle */
  transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle)));
  margin-top: -20px;
  margin-left: -20px;
  /* Counter-rotate to keep text upright, plus undo parent rotation */
  animation: orbit-counter-rotate 30s linear infinite;
}

@keyframes orbit-counter-rotate {
  to { transform: rotate(calc(var(--angle) - 360deg)) translateX(130px) rotate(calc(-1 * (var(--angle) - 360deg))); }
}

.orbit-system__node--huginn { background: rgba(245, 158, 11, 0.15); color: var(--color-huginn); }
.orbit-system__node--candengo { background: rgba(59, 130, 246, 0.15); color: var(--color-candengo); }
.orbit-system__node--email { background: rgba(6, 182, 212, 0.15); color: var(--color-email); }
.orbit-system__node--icp { background: rgba(139, 92, 246, 0.15); color: var(--color-icp); }
.orbit-system__node--helpdesk { background: rgba(244, 63, 94, 0.15); color: var(--color-helpdesk); }

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  position: relative;
  padding: var(--section-padding) var(--content-padding);
  text-align: center;
  overflow: hidden;
}

.cta__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta__aurora::before {
  content: '';
  position: absolute;
  width: 80vw;
  height: 50vw;
  max-width: 900px;
  max-height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  filter: blur(80px);
  animation: aurora-1 14s ease-in-out infinite alternate;
}

.cta__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta__subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta__form {
  display: flex;
  gap: 0.75rem;
  max-width: 450px;
  margin: 0 auto;
}

.cta__input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.cta__input::placeholder {
  color: var(--text-tertiary);
}

.cta__input:focus {
  border-color: var(--accent-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem var(--content-padding) 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer__tagline {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer__links {
  display: flex;
  gap: 4rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer__col a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ============================================
   HOW IT WORKS — Architecture Flow
   ============================================ */
.how-it-works {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.arch-flow__layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.arch-flow__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: var(--bg-card);
}

.arch-flow__label--skills {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(59, 130, 246, 0.1));
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--accent-glow);
}

.arch-flow__arrow {
  color: var(--text-tertiary);
  font-size: 1.2rem;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.arch-flow__core {
  width: 100%;
  padding: 2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.25);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arch-flow__core::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.1), transparent 70%);
}

.arch-flow__core-inner {
  position: relative;
}

.arch-flow__core-label {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

.arch-flow__core-sub {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.arch-flow__agents {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.arch-flow__agent {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
}

.arch-flow__agent--inbox { border-color: rgba(59, 130, 246, 0.3); color: var(--color-candengo); }
.arch-flow__agent--finance { border-color: rgba(34, 197, 94, 0.3); color: #22c55e; }
.arch-flow__agent--meetings { border-color: rgba(245, 158, 11, 0.3); color: var(--color-huginn); }
.arch-flow__agent--support { border-color: rgba(244, 63, 94, 0.3); color: var(--color-helpdesk); }
.arch-flow__agent--compliance { border-color: rgba(139, 92, 246, 0.3); color: var(--color-icp); }

/* ============================================
   AGENTS — Card Grid
   ============================================ */
.agents {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.agent-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.agent-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: all 0.4s var(--ease-out);
}

.agent-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.agent-card--reverse {
  direction: rtl;
}

.agent-card--reverse > * {
  direction: ltr;
}

/* Agent avatar */
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-avatar--inbox { background: rgba(59, 130, 246, 0.12); color: var(--color-candengo); }
.agent-avatar--finance { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.agent-avatar--meetings { background: rgba(245, 158, 11, 0.12); color: var(--color-huginn); }
.agent-avatar--support { background: rgba(244, 63, 94, 0.12); color: var(--color-helpdesk); }
.agent-avatar--compliance { background: rgba(139, 92, 246, 0.12); color: var(--color-icp); }

/* Agent card info */
.agent-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.agent-card__role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-glow);
  margin-bottom: 1rem;
}

.agent-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.agent-card__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent-glow);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

/* Agent card mockups */
.agent-card__visual {
  position: relative;
}

.agent-card__mockup {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Inbox mockup */
.mockup-line {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mockup-line:last-child { border-bottom: none; }

.mockup-tag {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.mockup-tag--blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.mockup-tag--amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.mockup-tag--green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.mockup-tag--violet { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.mockup-tag--red { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

/* Finance mockup */
.mockup-invoice {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.mockup-invoice__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mockup-invoice__row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  color: var(--text-secondary);
}

.mockup-invoice__row span:last-child {
  color: var(--text-primary);
}

.mockup-invoice__action {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  color: #4ade80;
  font-size: 0.75rem;
}

/* Calendar mockup */
.mockup-calendar {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.mockup-calendar__slot {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.mockup-calendar__slot:last-child { margin-bottom: 0; }
.mockup-calendar__slot--taken { opacity: 0.5; }
.mockup-calendar__slot--open { color: var(--text-primary); }
.mockup-calendar__slot--suggested {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Chat mockup */
.mockup-chat {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mockup-chat__msg {
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.mockup-chat__msg strong {
  display: block;
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}

.mockup-chat__msg p { margin-bottom: 0.3rem; }
.mockup-chat__msg p:last-child { margin-bottom: 0; }

.mockup-chat__msg--customer {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  margin-right: 2rem;
}

.mockup-chat__msg--agent {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.15);
  color: var(--text-secondary);
  margin-left: 2rem;
}

/* Compliance mockup */
.mockup-compliance {
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-card);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mockup-compliance__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.mockup-compliance__item:last-child { border-bottom: none; }

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
  padding: var(--section-padding) var(--content-padding);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.skills-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--content-width);
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: all 0.3s var(--ease-out);
}

.skill-card:hover {
  border-color: rgba(124, 58, 237, 0.2);
  background: rgba(124, 58, 237, 0.05);
}

.skill-card__icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.skill-card__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.roadmap-card {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: all 0.3s var(--ease-out);
}

.roadmap-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.roadmap-card__phase {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  margin-bottom: 0.75rem;
}

.roadmap-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.roadmap-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   HUGINN — Full Product Section
   ============================================ */
.huginn-hero {
  padding: var(--section-padding) var(--content-padding);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.huginn-hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.05) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.huginn-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.huginn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.huginn-card {
  padding: 1.75rem;
  border-radius: 16px;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  transition: all 0.4s var(--ease-out);
}

.huginn-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.huginn-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(234, 88, 12, 0.04));
  border-color: rgba(245, 158, 11, 0.15);
}

.huginn-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.huginn-card__icon--ai { background: rgba(245, 158, 11, 0.12); color: var(--color-huginn); }
.huginn-card__icon--wifi { background: rgba(59, 130, 246, 0.12); color: var(--color-candengo); }
.huginn-card__icon--network { background: rgba(6, 182, 212, 0.12); color: var(--color-email); }
.huginn-card__icon--inventory { background: rgba(139, 92, 246, 0.12); color: var(--color-icp); }
.huginn-card__icon--security { background: rgba(244, 63, 94, 0.12); color: var(--color-helpdesk); }
.huginn-card__icon--traffic { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.huginn-card__icon--guest { background: rgba(245, 158, 11, 0.12); color: var(--color-huginn); }
.huginn-card__icon--auto { background: rgba(6, 182, 212, 0.12); color: var(--color-email); }

.huginn-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.huginn-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.huginn-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.huginn-card__features span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-huginn);
  border: 1px solid rgba(245, 158, 11, 0.12);
}

.huginn-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento__card--large,
  .bento__card--medium,
  .bento__card--small {
    grid-column: span 1;
    grid-row: span 1;
  }

  .platform__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .platform__visual {
    order: -1;
  }

  .orbit-system {
    width: 280px;
    height: 280px;
  }

  .orbit-system__ring--1 {
    width: 200px;
    height: 200px;
    margin-top: -100px;
    margin-left: -100px;
  }

  .orbit-system__node {
    transform: rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
  }

  .orbit-system__ring--2 {
    width: 260px;
    height: 260px;
    margin-top: -130px;
    margin-left: -130px;
  }

  .agent-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .agent-card--reverse {
    direction: ltr;
  }

  .skills-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-grid--rich {
    grid-template-columns: 1fr;
  }

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

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

  .huginn-card--featured {
    grid-column: span 1;
  }

  .huginn-stats {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: start;
  }

  .footer__inner {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer__links {
    gap: 2rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2rem, 9vw, 3.5rem);
  }

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

  .platform__stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .cta__form {
    flex-direction: column;
  }

  .email-flow {
    flex-direction: column;
    gap: 0.5rem;
  }

  .email-flow__arrow {
    transform: rotate(90deg);
  }
}

/* ============================================
   AGENT HEADSHOTS
   ============================================ */
.agent-headshot {
  width: 120px;
  height: 120px;
  margin-bottom: 1.25rem;
  position: relative;
}

.agent-headshot svg {
  width: 100%;
  height: 100%;
}

.agent-headshot__status {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   RICH SKILLS GRID
   ============================================ */
.skills-grid--rich {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-card--rich {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-card__desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   ROADMAP V2 — Timeline
   ============================================ */
.roadmap-v2 {
  padding: var(--section-padding) var(--content-padding);
  max-width: var(--content-width);
  margin: 0 auto;
}

.roadmap-v2__inner {
  max-width: 800px;
  margin: 0 auto;
}

.roadmap-v2__timeline {
  position: relative;
  padding-left: 40px;
}

.roadmap-v2__timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-card);
}

.roadmap-v2__phase {
  position: relative;
  padding-bottom: 2.5rem;
}

.roadmap-v2__phase:last-child { padding-bottom: 0; }

.roadmap-v2__marker {
  position: absolute;
  left: -33px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--text-tertiary);
  z-index: 2;
}

.roadmap-v2__phase--active .roadmap-v2__marker {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.roadmap-v2__content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.75rem;
}

.roadmap-v2__phase--active .roadmap-v2__content {
  border-color: rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), rgba(59, 130, 246, 0.03));
}

.roadmap-v2__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.roadmap-v2__content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.roadmap-v2__content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.roadmap-v2__agents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.roadmap-v2__agent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
}

.roadmap-v2__agent--inbox { border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.roadmap-v2__agent--finance { border-color: rgba(34, 197, 94, 0.3); color: #4ade80; }
.roadmap-v2__agent--meetings { border-color: rgba(245, 158, 11, 0.3); color: #fbbf24; }
.roadmap-v2__agent--support { border-color: rgba(244, 63, 94, 0.3); color: #fb7185; }
.roadmap-v2__agent--compliance { border-color: rgba(139, 92, 246, 0.3); color: #a78bfa; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
