/* ==========================================
   AutomEdge Landing Page — Theme CSS
   ========================================== */

:root {
  --bg: #0A0A0F;
  --bg-alt: #0E0E18;
  --surface: #14141F;
  --surface-2: #1a1a2e;
  --teal: #00D4AA;
  --teal-dim: rgba(0, 212, 170, 0.12);
  --teal-glow: rgba(0, 212, 170, 0.25);
  --teal-soft: rgba(0, 212, 170, 0.07);
  --text: #F5F5F0;
  --text-muted: #8B8FA8;
  --text-dim: #5A5D72;
  --border: rgba(255,255,255,0.06);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 3px; }

/* ---- NAV ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(10, 10, 15, 0.8);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-left: 0.75rem;
  border-left: 1px solid var(--border);
}

/* ---- SECTION SHARED ---- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,170,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,170,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,212,170,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 4vw, 4rem) clamp(4rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1.75rem;
  color: var(--text);
}
.headline-accent {
  color: var(--teal);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

/* Node lines visual */
.hero-nodes-visual {
  position: relative;
  height: 120px;
  max-width: 280px;
}
.node-lines {
  width: 100%;
  height: 100%;
}
.node {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.node-1 { top: 10%; left: 18%; }
.node-2 { top: 5%; right: 18%; }
.node-3 { bottom: 10%; left: 18%; }
.node-4 { bottom: 30%; right: 18%; }
.node-5 { top: 40%; left: 50%; transform: translate(-50%, -50%); width: 12px; height: 12px; box-shadow: 0 0 14px var(--teal); }

/* Workflow card */
.workflow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,212,170,0.04);
  position: relative;
  overflow: hidden;
}
.workflow-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.4;
}
.wf-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.wf-dot { width: 10px; height: 10px; border-radius: 50%; }
.wf-dot.green { background: #10B981; }
.wf-dot.yellow { background: #F59E0B; }
.wf-dot.red { background: #EF4444; }
.wf-title {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.wf-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.wf-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.wf-step.done { color: var(--text-muted); }
.wf-step.active { color: var(--text); font-weight: 500; }
.wf-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--teal-soft);
  border: 1px solid rgba(0,212,170,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-icon.pulse { animation: wf-pulse 1.5s infinite; }
@keyframes wf-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,170,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,212,170,0); }
}
.wf-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-left: auto;
}
.wf-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.wf-metric-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
  display: block;
}
.wf-metric-label {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ---- WORKFLOWS ---- */
.workflows {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg-alt);
  position: relative;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.wf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wf-card:hover {
  border-color: rgba(0,212,170,0.2);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 20px rgba(0,212,170,0.04);
}
.wf-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-dim);
  border: 1px solid rgba(0,212,170,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.wf-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.wf-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.wf-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tech-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
}

/* ---- OUTCOMES ---- */
.outcomes {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.outcome-val {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.outcome-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.outcome-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.client-tag {
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.manifesto-bg-glow {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,212,170,0.05) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-content { max-width: 680px; }
.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
  border-left: 3px solid var(--teal);
  padding-left: 1.5rem;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.manifesto-principles {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.principle {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.principle-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal-dim);
  line-height: 1;
  min-width: 2.5rem;
}
.principle strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}
.principle p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 4rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.footer-services strong,
.footer-pricing strong {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 1rem;
}
.footer-services ul,
.footer-pricing ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-services li,
.footer-pricing li {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.footer-tagline { font-style: italic; color: var(--text-dim); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .hero-nodes-visual { display: none; }
  .workflow-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 600px) {
  .hero-headline { font-size: 2.2rem; }
  .wf-metrics { grid-template-columns: 1fr; }
  .section-sub { margin-bottom: 2rem; }
}
