/* ============================================================
   DAEMI — Neural Dark Theme
   ============================================================ */

:root {
  --bg:        #0A0E1A;
  --surface:   #111827;
  --surface2:  #161d2e;
  --primary:   #6366F1;
  --primary-dark: #4f51c7;
  --accent:    #22D3EE;
  --text:      #F8FAFC;
  --muted:     #94A3B8;
  --border:    #1E293B;
  --radius:    12px;
  --radius-lg: 20px;
  --glow:      0 0 40px rgba(99,102,241,0.3);
  --glow-cyan: 0 0 40px rgba(34,211,238,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── Utilities ─────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  text-align: center;
  margin: 0 auto;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  background: rgba(10, 14, 26, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--primary);
  color: var(--text) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  box-shadow: 0 0 20px rgba(99,102,241,0.5);
}

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulse-orb 6s ease-in-out infinite alternate;
}

.glow-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
  top: -150px;
  left: 50%;
  transform: translateX(-60%);
}

.glow-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
  bottom: 50px;
  right: -100px;
  animation-delay: -3s;
}

.glow-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

@keyframes pulse-orb {
  0%   { opacity: 0.6; transform: scale(1) translateX(-60%); }
  100% { opacity: 1;   transform: scale(1.08) translateX(-60%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 120px 24px 100px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

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

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 32px rgba(99,102,241,0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  transform: translateY(-1px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 72px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── FEATURES ───────────────────────────────────────────────── */
#features {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.features-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(99,102,241,0.4);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

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

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.feature-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ── AGENTS ─────────────────────────────────────────────────── */
#agents {
  padding: 100px 0;
}

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

.agents-footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 15px;
}

.agents-footer strong {
  color: var(--text-primary);
}


.agents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.agent-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(99,102,241,0);
  transition: box-shadow 0.3s;
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 40px rgba(99,102,241,0.25), 0 8px 32px rgba(0,0,0,0.4);
}

.agent-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(34,211,238,0.1));
  border: 1px solid rgba(99,102,241,0.3);
  flex-shrink: 0;
}

.agent-name {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agent-role-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 2px 8px;
  border-radius: 100px;
}

.agent-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.6;
  text-align: center;
}

.agent-greeting {
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 8px 8px;
  padding: 10px 14px;
  width: 100%;
  font-size: 0.88rem;
  color: var(--text);
  font-style: italic;
  position: relative;
}

.agent-greeting::before {
  content: '"';
  font-size: 1.4rem;
  color: var(--primary);
  font-style: normal;
  opacity: 0.6;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
}

.agent-online-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  animation: blink 3s infinite;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
#how-it-works {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-header {
  text-align: center;
  margin-bottom: 70px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 20px;
  box-shadow: 0 0 20px rgba(99,102,241,0.4);
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: 0.2;
  z-index: -1;
}

.step-icon {
  font-size: 1.6rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── MEMORY SYSTEM ──────────────────────────────────────────── */
#memory {
  padding: 100px 0;
}

.memory-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.memory-left .section-sub {
  margin-bottom: 32px;
}

.memory-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.pillar:hover { border-color: rgba(99,102,241,0.4); }

.pillar-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Terminal */
.terminal {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--glow);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
}

.terminal-titlebar {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.term-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.term-dot.red    { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green  { background: #28c840; }

.terminal-title {
  font-size: 0.75rem;
  color: #8b949e;
  margin-left: 8px;
  font-family: inherit;
}

.terminal-body {
  padding: 20px;
  font-size: 0.8rem;
  line-height: 1.8;
  color: #e6edf3;
}

.t-comment  { color: #8b949e; }
.t-prompt   { color: #58a6ff; }
.t-cmd      { color: #79c0ff; }
.t-key      { color: #d2a8ff; }
.t-val      { color: #a5d6ff; }
.t-str      { color: #7ee787; }
.t-num      { color: #f0883e; }
.t-tag      { color: #ff7b72; }
.t-cyan     { color: #39d353; }
.t-accent   { color: #22D3EE; }
.t-muted    { color: #6e7681; }
.t-yellow   { color: #e3b341; }
.t-indigo   { color: #818cf8; }
.t-br { display: block; height: 0.4em; }

/* ── GET STARTED ────────────────────────────────────────────── */
#get-started {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.gs-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.gs-inner .section-title { margin-bottom: 16px; }
.gs-inner .section-sub   { margin: 0 auto 40px; }

.install-terminal {
  margin: 0 auto 32px;
  max-width: 500px;
}

.install-terminal .terminal-body {
  font-size: 1rem;
  line-height: 2;
}

.gs-alt {
  font-size: 0.9rem;
  color: var(--muted);
}

.gs-alt a {
  color: var(--accent);
  border-bottom: 1px solid rgba(34,211,238,0.3);
  transition: border-color 0.2s;
}
.gs-alt a:hover { border-color: var(--accent); }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}
.footer-patent {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: #4a5568;
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }

  .steps::before { display: none; }

  .memory-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    gap: 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .features-grid,
  .agents-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.beta-form-placeholder {
  margin-top: 40px;
  padding: 48px;
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  text-align: center;
}

.placeholder-note {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}
