/* viko-agent Landing Page — styles */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:  #0A1628;   /* dark navy — distinctly blue, not black */
  --card:   #0D1E38;   /* elevated card surface */
  --txt:    #F0F4FF;
  --body:   #C8D4F0;
  --dim:    #7080AA;
  --pri:    #7C4DFF;   /* electric violet — matches logo gradient midpoint */
  --amb:    #FF9B48;   /* amber accent */
  --red:    #FF3366;   /* crimson — matches logo gradient bottom */
  --blu:    #4FC3F7;   /* ice blue — matches logo gradient top */
  --border: #1B2E4A;
}

html { scroll-behavior: smooth; }

/* ── Body: dot-grid vector background + ambient glows ── */
body {
  background-color: var(--black);
  background-image: radial-gradient(circle, rgba(124,77,255,0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  color: var(--txt);
  font-family: 'Courier New', Courier, monospace;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Ambient colour glows — fixed so they don't scroll with content */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%,   rgba(124,77,255,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 100% 100%, rgba(79,195,247,0.06) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure every direct section sits above the fixed glow layer */
body > * { position: relative; z-index: 1; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Utilities ── */
.label {
  font-size: 11px;
  color: var(--pri);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sep { width: 48px; height: 2px; background: var(--pri); margin-bottom: 20px; }
.section-title {
  font-size: 32px; font-weight: bold; color: var(--txt);
  letter-spacing: 2px; line-height: 1.2; margin-bottom: 12px;
}
.section-sub {
  font-size: 16px; color: var(--body);
  max-width: 560px; line-height: 1.8;
}

/* ── Buttons ── */
.btn-primary {
  padding: 12px 28px;
  background: var(--pri); color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 12px; font-weight: bold; letter-spacing: 2px;
  border: none; border-radius: 2px; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: #9B6BFF; }
.btn-outline {
  padding: 12px 28px;
  background: transparent; color: var(--pri);
  font-family: 'Courier New', monospace;
  font-size: 12px; letter-spacing: 2px;
  border: 1px solid rgba(124,77,255,0.4); border-radius: 2px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--pri); background: rgba(124,77,255,0.08); }

/* ════ HEADER ════ */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,22,40,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 48px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 32px; height: 32px; object-fit: contain; }
.nav-name { font-size: 20px; font-weight: bold; color: var(--pri); letter-spacing: 4px; }
.nav-sub { color: var(--red); font-size: 16px; letter-spacing: 3px; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 12px; color: var(--dim); letter-spacing: 2px;
  text-decoration: none; text-transform: uppercase; transition: color 0.2s;
}
.nav-link:hover { color: var(--pri); }
.nav-cta {
  padding: 8px 20px; background: var(--pri); color: #fff;
  font-family: 'Courier New', monospace; font-size: 11px;
  font-weight: bold; letter-spacing: 2px;
  border-radius: 2px; text-decoration: none;
}

/* ════ HERO ════ */
.hero {
  position: relative; min-height: 580px;
  overflow: hidden; display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 80px 0 64px;
}

.hero-fade-top {
  position: absolute; top: 0; left: 0; right: 0; height: 80px;
  background: linear-gradient(to bottom, #0A1628, transparent); z-index: 2;
}
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 140px;
  background: linear-gradient(to bottom, transparent, #0A1628); z-index: 2;
}

/* Animated dot grid canvas — layered on top of body dot grid */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0.2;
}

.hero-content {
  position: relative; z-index: 5;
  padding: 0 64px; max-width: 640px;
  display: flex; flex-direction: column; gap: 16px;
}

.hero-eyebrow { font-size: 11px; color: var(--blu); letter-spacing: 5px; text-transform: uppercase; }
.hero-title {
  font-size: 72px; font-weight: bold; line-height: 0.95;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--blu) 0%, var(--pri) 50%, var(--red) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title span {
  font-size: 48px; letter-spacing: 8px;
  background: linear-gradient(135deg, var(--pri) 0%, var(--red) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline { font-size: 20px; color: var(--txt); line-height: 1.5; }
.hero-desc { font-size: 16px; color: var(--body); line-height: 1.8; max-width: 420px; }
.hero-cta { display: flex; gap: 12px; margin-top: 8px; }

/* ════ STORY ════ */
.story {
  padding: 96px 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  border-bottom: 1px solid var(--border);
}
.story-title {
  font-size: 36px; font-weight: bold; color: var(--txt);
  letter-spacing: 2px; line-height: 1.3; margin-bottom: 24px;
}
.story-title em { color: var(--pri); font-style: normal; }
.story-body { font-size: 16px; color: var(--body); line-height: 2; }
.story-body p + p { margin-top: 16px; }

.story-stats { display: flex; flex-direction: column; gap: 24px; }
.stat-block {
  padding: 28px 32px; background: var(--card);
  border: 1px solid var(--border); border-left: 3px solid var(--pri);
}
.stat-block.amber { border-left-color: var(--amb); }
.stat-block.red   { border-left-color: var(--red); }
.stat-number {
  font-size: 40px; font-weight: bold; color: var(--pri);
  letter-spacing: 2px; line-height: 1; margin-bottom: 6px;
}
.stat-block.amber .stat-number { color: var(--amb); }
.stat-block.red   .stat-number { color: var(--red); }
.stat-label { font-size: 13px; color: var(--body); letter-spacing: 1px; }

/* ════ FEATURES ════ */
.features { padding: 96px 64px; border-bottom: 1px solid var(--border); }
.features-intro { margin-bottom: 48px; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--card); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background 0.2s;
}
.feature-card:hover { background: #162444; }
.feature-icon { font-size: 20px; color: var(--pri); line-height: 1; }
.feature-card.amber .feature-icon { color: var(--amb); }
.feature-card.red   .feature-icon { color: var(--red); }
.feature-name { font-size: 13px; font-weight: bold; color: var(--txt); letter-spacing: 1.5px; line-height: 1.3; }
.feature-desc { font-size: 14px; color: var(--body); line-height: 1.7; flex: 1; }

/* ════ ARCHITECTURE ════ */
.architecture { padding: 96px 64px; border-bottom: 1px solid var(--border); }
.arch-intro { margin-bottom: 48px; }
.arch-diagram { margin-bottom: 48px; }
.arch-code {
  font-family: 'Courier New', monospace; font-size: 13px;
  color: var(--body); line-height: 1.8;
  background: rgba(13,30,56,0.85); border: 1px solid var(--border);
  padding: 28px 32px; overflow-x: auto;
  border-left: 3px solid var(--pri);
}
.arch-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.arch-card {
  padding: 24px 20px; background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.arch-card-icon {
  font-size: 28px; font-weight: bold;
  background: linear-gradient(135deg, var(--blu), var(--pri));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px; line-height: 1;
}
.arch-card-title { font-size: 12px; font-weight: bold; color: var(--txt); letter-spacing: 2px; }
.arch-card-desc { font-size: 13px; color: var(--body); line-height: 1.7; }
.arch-card-desc code {
  font-size: 11px; color: var(--blu);
  background: rgba(79,195,247,0.08); padding: 1px 4px;
  border-radius: 2px;
}

/* ════ GITHUB CTA ════ */
.github-cta {
  padding: 96px 64px; border-bottom: 1px solid var(--border);
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.github-cta .label { text-align: center; }
.github-cta-title { font-size: 36px; font-weight: bold; color: var(--txt); letter-spacing: 2px; line-height: 1.3; }
.github-cta-title span { color: var(--pri); }
.github-cta-sub { font-size: 16px; color: var(--body); max-width: 480px; line-height: 1.8; }
.github-tech { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.tech-pill { padding: 6px 14px; background: transparent; border: 1px solid var(--border); font-size: 12px; color: var(--dim); letter-spacing: 1px; border-radius: 2px; }
.tech-pill.violet { border-color: rgba(124,77,255,0.4); color: var(--pri); }
.tech-pill.amber  { border-color: rgba(255,155,72,0.4); color: var(--amb); }

/* ════ FOOTER ════ */
footer { padding: 40px 64px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 24px; height: 24px; object-fit: contain; opacity: 0.8; }
.footer-name { font-size: 18px; font-weight: bold; color: var(--pri); letter-spacing: 4px; }
.footer-sub { color: var(--red); font-size: 14px; letter-spacing: 3px; margin-left: 2px; }
.footer-center { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-link { font-size: 12px; color: var(--dim); letter-spacing: 1.5px; text-decoration: none; text-transform: uppercase; }
.footer-link:hover { color: var(--pri); }
.footer-email { font-size: 12px; color: var(--dim); text-decoration: none; }
.footer-email:hover { color: var(--pri); }
.footer-copy { font-size: 11px; color: var(--dim); }

/* ════ RESPONSIVE ════ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-cards { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; gap: 48px; padding: 64px 40px; }
  .hero-content { padding: 0 40px; }
  .hero-title { font-size: 56px; }
  .hero-title span { font-size: 40px; }
  .features, .architecture, .github-cta { padding: 64px 40px; }
  footer { padding: 32px 40px; }
}

@media (max-width: 600px) {
  header { padding: 0 20px; }
  .nav-links .nav-link { display: none; }
  .nav-cta { font-size: 10px; padding: 7px 14px; }

  .hero { padding: 80px 0 48px; min-height: 460px; }
  .hero-content { padding: 0 24px; }
  .hero-title { font-size: 48px; letter-spacing: 4px; }
  .hero-title span { font-size: 32px; }
  .hero-tagline { font-size: 18px; }
  .hero-desc { font-size: 14px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }

  .story { padding: 56px 24px; gap: 36px; }
  .story-title { font-size: 26px; }

  .features { padding: 56px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }

  .architecture { padding: 56px 24px; }
  .arch-cards { grid-template-columns: 1fr; }
  .arch-code { font-size: 11px; padding: 16px; }

  .github-cta { padding: 56px 24px; }
  .github-cta-title { font-size: 26px; }

  footer { padding: 28px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-center { align-items: flex-start; }
}
