/* ============================================
   PULSESUITE.IO — HOME PAGE STYLES
   ============================================ */

body.home-page {
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

body.home-page::before,
body.home-page::after {
  position: fixed;
}

/* ---- NAV ---- */
.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.home-nav-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.home-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.home-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--pulse-blue);
  color: var(--bg-void);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #33ddff;
  box-shadow: var(--glow-md);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--border-active);
  background: var(--bg-elevated);
}

.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px 60px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #ffffff04 1px, transparent 1px),
    linear-gradient(0deg, #ffffff04 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, #00d4ff0a 0%, transparent 70%);
  pointer-events: none;
}

/* Pulse line across hero */
.hero-pulse-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-pulse-line svg {
  width: 100%;
  height: 100px;
}

.pulse-trace {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: trace-draw 3s ease-in-out infinite;
}

@keyframes trace-draw {
  0% { stroke-dashoffset: 1600; opacity: 0; }
  20% { opacity: 1; }
  60% { stroke-dashoffset: 0; opacity: 1; }
  80% { opacity: 0; }
  100% { stroke-dashoffset: -1600; opacity: 0; }
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pulse-green);
  animation: dot-pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pulse-blue), var(--pulse-cyan), var(--pulse-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

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

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

.hero-stat-val {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--pulse-blue);
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Dashboard preview */
.hero-preview {
  position: relative;
  margin-top: 60px;
  max-width: 900px;
  width: 100%;
  z-index: 2;
}

.preview-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.4), var(--glow-sm);
}

.preview-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.preview-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bg-card);
}

.preview-dots span:first-child { background: #ff5f57; }
.preview-dots span:nth-child(2) { background: #febc2e; }
.preview-dots span:nth-child(3) { background: #28c840; }

.preview-img {
  width: 100%;
  display: block;
}

/* ---- SECTIONS ---- */
.section {
  padding: 100px 32px;
  position: relative;
}

.section-dark {
  background: var(--bg-deep);
}

.section-cta {
  background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 100%);
  padding: 80px 32px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--pulse-blue-dim);
  color: var(--pulse-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-header h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* ---- FEATURES GRID ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- AGENTS SHOWCASE ---- */
.agents-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.agent-showcase-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s;
}

.agent-showcase-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--glow-sm);
}

.agent-showcase-ring {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--ring-color, var(--pulse-blue));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--ring-color, var(--pulse-blue));
  animation: ring-healthy 2s ease-in-out infinite;
}

.agent-showcase-card h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.agent-showcase-role {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.agent-showcase-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.agent-showcase-traits {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.agent-showcase-traits span {
  padding: 3px 10px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ---- SECURITY GRID ---- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.security-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.security-item:hover {
  border-color: var(--border-active);
}

.security-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.security-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.security-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.home-footer {
  padding: 24px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.home-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

.home-footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-title { font-size: 40px; }
  .features-grid, .agents-showcase { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .home-links { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-divider { display: none; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .home-nav { padding: 0 16px; }
  .section { padding: 60px 16px; }
}
