/* ============================================
   Vectral — Premium Dark AI Landing Page
   ============================================ */

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

:root {
  --bg-primary: #09090b;
  --bg-secondary: #111113;
  --bg-card: #16161a;
  --bg-card-hover: #1c1c21;
  --bg-elevated: #1e1e23;
  --border: #232329;
  --border-subtle: #1a1a1f;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent-blue: #3b82f6;
  --accent-teal: #06b6d4;
  --accent-green: #6ee7b7;
  --accent-purple: #8b5cf6;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --font-sans: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 24px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 8px 8px 20px;
  transition: var(--transition-smooth);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

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

.nav-link-login {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.nav-link-login:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
}

.nav-cta:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}

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

.nav-mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
}

/* --- Hero --- */
.hero {
  padding: 72px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-outer {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-secondary);
  min-height: 700px;
}

/* Dual-edge vignette: black edges easing toward dark-gray center */
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #050507 0%,
    #0a0a0d 8%,
    #111113 30%,
    #161618 50%,
    #111113 70%,
    #0a0a0d 92%,
    #050507 100%
  );
}

/* Gradient spotlight — atmospheric sweep at bottom-center */
.hero-stage::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 55% 85% at var(--spot-x1, 35%) 88%,
      rgba(58, 58, 66, 0.42) 0%,
      rgba(38, 38, 44, 0.18) 40%,
      transparent 80%
    ),
    radial-gradient(
      ellipse 48% 75% at var(--spot-x2, 65%) 92%,
      rgba(50, 50, 58, 0.34) 0%,
      rgba(32, 32, 38, 0.12) 45%,
      transparent 80%
    );
  animation: spotlight-sweep 8s ease-in-out infinite;
  mix-blend-mode: lighten;
}

@keyframes spotlight-sweep {
  0% {
    --spot-x1: 32%;
    --spot-x2: 68%;
  }
  25% {
    --spot-x1: 52%;
    --spot-x2: 48%;
  }
  50% {
    --spot-x1: 68%;
    --spot-x2: 32%;
  }
  75% {
    --spot-x1: 48%;
    --spot-x2: 52%;
  }
  100% {
    --spot-x1: 32%;
    --spot-x2: 68%;
  }
}

@property --spot-x1 {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 35%;
}

@property --spot-x2 {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 65%;
}

.wave-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-stage-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 700px;
  padding: 60px 56px 52px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 28px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(110, 231, 183, 0); }
}

.hero-title {
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.title-accent {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: #3a3a42;
  background: rgba(255, 255, 255, 0.03);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
  border: 2px solid var(--bg-secondary);
  margin-left: -8px;
}

.avatar:first-child {
  margin-left: 0;
}

.hero-proof p {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-proof strong {
  color: var(--text-secondary);
}

/* --- Hero Cards Row (removed — cards now below hero) --- */

.dash-card {
  background: rgba(22, 22, 26, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  flex: 1;
  min-width: 0;
}

.dash-card:hover {
  border-color: #2e2e36;
  background: var(--bg-card-hover);
}

.dash-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dash-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dash-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.4); }
.dash-dot.blue { background: var(--accent-blue); box-shadow: 0 0 8px rgba(59, 130, 246, 0.4); }
.dash-dot.steel { background: #71717a; box-shadow: 0 0 8px rgba(113, 113, 122, 0.4); }

.dash-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.dash-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: rgba(161, 161, 170, 0.1);
  color: #a1a1aa;
  border-radius: var(--radius-pill);
}

/* Main dashboard card */
.dash-main {
  max-width: 300px;
}

.dash-chart {
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-line 2s ease-out 0.5s forwards;
}

.chart-area {
  opacity: 0;
  animation: fade-in 1s ease-out 1.5s forwards;
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.metric {
  text-align: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

.metric-value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Activity card */
.dash-activity {
  max-width: 280px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.activity-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon.deploy { background: rgba(161, 161, 170, 0.1); color: #a1a1aa; }
.activity-icon.success { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.activity-icon.data { background: rgba(161, 161, 170, 0.1); color: #a1a1aa; }

.activity-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.activity-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-time {
  font-size: 11px;
  color: var(--text-muted);
}


/* Floating animations */
.float-1 {
  animation: float-y 6s ease-in-out infinite;
}

.float-2 {
  animation: float-y 7s ease-in-out 1s infinite;
}

.float-3 {
  animation: float-y 5s ease-in-out 0.5s infinite;
}

.float-4 {
  animation: float-y 8s ease-in-out 2s infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}


/* --- Marquee --- */
.marquee-section {
  border-top: none;
  border-bottom: 1px solid var(--border-subtle);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-secondary);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  min-width: 100%;
}

.marquee-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.marquee-sep {
  color: rgba(255, 255, 255, 0.08);
  font-size: 10px;
}

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

/* --- Section Shared --- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Features --- */
.features {
  padding: 100px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: #2e2e36;
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

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

/* --- Logos --- */
.logos-section {
  padding: 60px 24px;
  border-top: 1px solid var(--border-subtle);
}

.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.35;
  letter-spacing: -0.02em;
  transition: var(--transition-base);
}

.logo-item:hover {
  opacity: 0.6;
}

/* --- CTA --- */
.cta-section {
  padding: 80px 24px 100px;
}

.cta-card {
  position: relative;
  text-align: center;
  padding: 80px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.1), transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  position: relative;
}

.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 40px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 40px;
}

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

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: var(--transition-base);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom span {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

}

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 0;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 0;
  }

  .hero-stage-inner {
    min-height: 560px;
    padding: 40px 24px 36px;
  }

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

  .features {
    padding: 60px 16px;
  }

  .logos-row {
    gap: 28px;
  }

  .cta-card {
    padding: 50px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Scroll reveal animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.06s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.18s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
