/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent);
  top: -100px; left: 50%;
  transform: translateX(-50%);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--cyan), transparent);
  bottom: 0; left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--blue), transparent);
  top: 20%; right: 5%;
  animation: float 12s ease-in-out infinite;
}

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

.hero-orb-2 { animation: float2 10s ease-in-out infinite; }
.hero-orb-3 { animation: float3 12s ease-in-out infinite; }

@keyframes float2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(25px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent3);
  padding: 6px 14px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  position: relative;
  z-index: 1;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-title-line1 { color: var(--text); display: block; }

.hero-title-line2 {
  display: block;
  background: linear-gradient(135deg, var(--accent2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(13px, 1.4vw, 16px);
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 48px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-cta .btn-primary {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 0;
  box-shadow: 0 0 40px rgba(124,58,237,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.hero-cta .btn-secondary {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 0;
}


.hero-meta {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--text3);
  font-size: 13px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-meta-item span { color: var(--text2); font-weight: 500; }

/* HERO SEARCH */
.hero-search {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-search-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.hero-search-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.hero-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 44px 12px 18px;
  border-radius: 0;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.hero-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  pointer-events: none;
}
.hero-search-input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.hero-search-input::placeholder { color: var(--text3); }

.hero-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 50;
}
.hero-search-results.hidden { display: none; }

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg3); }
.search-result-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.search-result-meta { font-size: 11px; color: var(--text3); }

/* PREVIEW */
.preview-section {
  padding: 0 40px 120px;
  position: relative;
}

.preview-wrap {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(124,58,237,0.15);
}

.preview-bar {
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}

.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text3);
}

.preview-canvas {
  height: 360px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
  background-image:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 32px 32px;
}

.preview-line {
  position: absolute;
  top: 50%;
  left: -100px;
  right: -100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border2), var(--accent), var(--cyan), var(--border2), transparent);
  transform: translateY(-50%);
}

.preview-events {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 100px;
  padding: 0 60px;
  animation: scrollPreview 20s linear infinite;
}

@keyframes scrollPreview {
  0% { transform: translateX(80px); }
  100% { transform: translateX(-80px); }
}

.preview-event {
  position: relative;
  flex-shrink: 0;
  width: 150px;
}

/* Dot pinned exactly on the center line */
.preview-dot-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  border: 2px solid var(--bg2);
  z-index: 2;
}

/* Connector line */
.preview-connector-line {
  position: absolute;
  width: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Card */
.preview-card {
  position: absolute;
  left: 0; right: 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

/* ABOVE: card and connector above the line */
.preview-event.above .preview-connector-line {
  bottom: 50%;
  height: 44px;
  background: linear-gradient(to top, var(--accent), transparent);
}
.preview-event.above .preview-card {
  bottom: calc(50% + 44px);
}

/* BELOW: card and connector below the line */
.preview-event.below .preview-connector-line {
  top: 50%;
  height: 44px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.preview-event.below .preview-card {
  top: calc(50% + 44px);
}

.preview-card-date {
  font-size: 10px;
  color: var(--accent3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.preview-card-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.preview-card-desc {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
  line-height: 1.5;
}

.preview-event:nth-child(even) .preview-connector-line { /* legacy, unused */
}

/* FEATURES */
.features-section {
  padding: 80px 40px 120px;
  min-height: 100vh;
}

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

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

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

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

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-card:nth-child(1) .feature-icon { background: rgba(124,58,237,0.2); }
.feature-card:nth-child(2) .feature-icon { background: rgba(6,182,212,0.2); }
.feature-card:nth-child(3) .feature-icon { background: rgba(59,130,246,0.2); }
.feature-card:nth-child(4) .feature-icon { background: rgba(16,185,129,0.2); }
.feature-card:nth-child(5) .feature-icon { background: rgba(245,158,11,0.2); }
.feature-card:nth-child(6) .feature-icon { background: rgba(239,68,68,0.2); }

.feature-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
}

/* CTA SECTION */
.cta-section {
  padding: 60px 40px 120px;
}

.cta-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.1));
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 24px;
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.2), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text2);
  margin-bottom: 40px;
}

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

/* FOOTER */
footer {
  border-top: none;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
}

.footer-copy {
  font-size: 13px;
  color: var(--text3);
  white-space: nowrap;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--text3);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--text2); }

/* Cross-link to the sibling product (timeline ⇄ spiderweb). Deliberately quiet:
   same size as the legal links, only tinted and set apart by a hairline. */
.footer-link-sibling {
  color: var(--text2);
  padding-right: 20px;
  border-right: 1px solid var(--border);
}

.footer-link-sibling:hover { color: var(--accent3); }

/* STATS */
.stats-section {
  padding: 60px 40px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--text2);
  margin-top: 4px;
}

/* Particles */
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
