/* ============================================================
   ELIOS AGENTIC — styles.css
   Dark premium / command-center aesthetic
   Fonts: Syne (display) + DM Mono (body/code)
   No external dependencies beyond Google Fonts in HTML
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:          #090b0f;
  --bg-2:        #0d1117;
  --bg-3:        #111620;
  --surface:     #141a24;
  --surface-2:   #1a2230;
  --border:      #1e2a3a;
  --border-2:    #243040;
  --accent:      #00e5a0;
  --accent-dim:  #00b87a;
  --accent-glow: rgba(0, 229, 160, 0.12);
  --accent-glow-2: rgba(0, 229, 160, 0.06);
  --text-1:      #e8edf5;
  --text-2:      #8a9ab5;
  --text-3:      #5a6a82;
  --live:        #00e5a0;
  --live-bg:     rgba(0, 229, 160, 0.08);
  --planned:     #f0b429;
  --planned-bg:  rgba(240, 180, 41, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       6px;
  --radius-lg:    12px;
  --max-width:    1100px;
}

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

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

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

/* ── LAYOUT ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 11, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--text-1);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 7px 18px;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow);
}

.accent { color: var(--accent); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-pulse {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--live-bg);
  border: 1px solid rgba(0, 229, 160, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 36px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transition: opacity 0.3s;
}

.hero-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 28px;
}

.accent-text { color: var(--accent); }

.hero-sub {
  font-size: 16px;
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.meta-item { display: flex; align-items: center; gap: 8px; }
.meta-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 3px;
}
.meta-sep { color: var(--border-2); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: var(--radius);
  transition: opacity 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 0 32px rgba(0, 229, 160, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  color: var(--text-1);
  border-color: var(--accent-dim);
  background: var(--accent-glow-2);
}

.btn-large {
  font-size: 15px;
  padding: 18px 42px;
}

.full-width { width: 100%; text-align: center; }

/* ── SECTIONS ── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.75;
}

/* ── SERVICES GRID ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.service-card:hover { background: var(--surface); }

.service-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
  display: block;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ── STACK LIST ── */
.stack-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stack-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 28px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.stack-row:last-child { border-bottom: none; }
.stack-row:hover { background: var(--surface); }

.stack-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stack-status.live {
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}

.stack-status.planning {
  background: var(--planned);
  box-shadow: 0 0 8px var(--planned);
}

.stack-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stack-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
}

.stack-desc {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.01em;
}

.stack-badge {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--live-bg);
  color: var(--live);
  border: 1px solid rgba(0, 229, 160, 0.2);
  white-space: nowrap;
}

.stack-badge.planned {
  background: var(--planned-bg);
  color: var(--planned);
  border-color: rgba(240, 180, 41, 0.2);
}

/* ── OFFER GRID ── */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 30px var(--accent-glow-2);
}

.offer-highlight {
  border-color: var(--accent-dim);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 229, 160, 0.04) 100%);
}

.offer-tier {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offer-list li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.offer-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-top: 8px;
}

/* ── FLOW ── */
.flow-container {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.flow-step {
  flex: 1;
  min-width: 200px;
  padding: 32px 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  padding: 0 8px;
  padding-top: 48px;
  opacity: 0.5;
}

.flow-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--border-2);
  margin-bottom: 16px;
  line-height: 1;
}

.flow-step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}

.flow-step p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── PROOF ── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.proof-placeholder {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  transition: border-color 0.2s;
}

.proof-placeholder:hover { border-color: var(--accent-dim); }

.proof-icon {
  font-size: 28px;
  color: var(--text-3);
  opacity: 0.4;
}

.proof-note {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  font-style: italic;
}

/* ── CONTACT ── */
.section-contact {
  text-align: center;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-inner .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.contact-meta {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

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

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* stagger children in grids */
.services-grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.35s; }

.stack-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.stack-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.stack-list .reveal:nth-child(4) { transition-delay: 0.18s; }
.stack-list .reveal:nth-child(5) { transition-delay: 0.24s; }
.stack-list .reveal:nth-child(6) { transition-delay: 0.30s; }
.stack-list .reveal:nth-child(7) { transition-delay: 0.36s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav-inner { padding: 0 20px; }

  .hero { padding: 100px 0 64px; }

  .hero-title { font-size: 40px; }

  .hero-actions { flex-direction: column; align-items: flex-start; }

  .hero-meta { display: none; }

  .section { padding: 72px 0; }

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

  .flow-container {
    flex-direction: column;
    gap: 12px;
  }

  .flow-arrow {
    transform: rotate(90deg);
    padding: 0;
    align-self: center;
  }

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

  .stack-row { flex-wrap: wrap; gap: 12px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .section-contact { text-align: left; }
  .contact-inner { align-items: flex-start; }
  .contact-meta { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .section-title { font-size: 28px; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 12px; }
  .btn-large { padding: 16px 28px; font-size: 13px; }
}
