/* ==========================================================================
   GoAutomate AI — Design System
   Palette: graphite/indigo dark base, teal "active" signal, amber secondary
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono (labels)
   ========================================================================== */

:root {
  --bg:            #0A0E17;
  --bg-alt:        #0D1220;
  --surface:       #111725;
  --surface-2:     #161D2E;
  --border:        #212A3D;
  --text:          #E7EAF0;
  --text-muted:    #8B93A7;
  --text-dim:      #5B6478;
  --accent:        #22D3AE;
  --accent-dim:    #16A085;
  --accent-2:      #FFB454;
  --danger:        #FF6B6B;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* Subtle grain overlay for depth */
.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s var(--ease);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.logo-mark { width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; display: grid; place-items: center; background: var(--surface); flex-shrink: 0; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.main-nav ul { display: flex; gap: 32px; list-style: none; }
.main-nav a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.2s; position: relative; padding: 4px 0; }
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--accent); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); transition: 0.3s; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all 0.25s var(--ease);
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: #06110D; }
.btn-primary:hover { background: #3EF0C6; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(34, 211, 174, 0.25); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------------- Hero ---------------- */
.hero { padding: 90px 0 60px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero-sub { font-size: 1.1rem; max-width: 480px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-item { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); font-weight: 600; }

/* Pipeline diagram (signature element) */
.pipeline { position: relative; }
.pipeline-svg { width: 100%; height: auto; overflow: visible; }
.node-box { fill: var(--surface); stroke: var(--border); stroke-width: 1; }
.node-label { font-family: var(--font-mono); font-size: 11px; fill: var(--text-muted); }
.node-title { font-family: var(--font-body); font-size: 12px; fill: var(--text); font-weight: 600; }
.pipe-line { fill: none; stroke: var(--border); stroke-width: 1.5; }
.pipe-pulse {
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-dasharray: 6 220; stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--accent));
  animation: flow 3.5s linear infinite;
}
@keyframes flow { to { stroke-dashoffset: -450; } }
.node-active .node-box { stroke: var(--accent); }
.node-glow { animation: glow 3.5s linear infinite; }
@keyframes glow { 0%, 85%, 100% { opacity: 0; } 10%, 30% { opacity: 1; } }

/* ---------------- Sections ---------------- */
section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Logos / social proof strip */
.proof-strip { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.proof-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.proof-tags { display: flex; gap: 14px; flex-wrap: wrap; }
.proof-tag { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; }

/* Service cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent-dim); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5); }
.card-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 20px; color: var(--accent); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; display: block; }

/* Process steps (real sequence — numbered legitimately) */
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-dim); }
.process-item h3 { margin-bottom: 8px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); font-weight: 700; }
.stat-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }

/* Testimonial / quote */
.quote-block { border-left: 2px solid var(--accent); padding-left: 28px; }
.quote-block p { font-family: var(--font-display); font-size: 1.3rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.quote-attr { margin-top: 16px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }

/* CTA band */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 64px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; top: -50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(34,211,174,0.12), transparent 70%); transform: translateX(-50%); }
.cta-band h2 { position: relative; margin-bottom: 16px; }
.cta-band p { position: relative; max-width: 480px; margin: 0 auto 32px; }

/* Pricing */
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #06110D; font-family: var(--font-mono); font-size: 0.65rem; padding: 4px 12px; border-radius: 999px; letter-spacing: 0.05em; }
.price-amount { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; margin: 16px 0 4px; }
.price-amount span { font-size: 0.95rem; color: var(--text-dim); font-weight: 400; }
.price-list { list-style: none; margin: 24px 0 28px; flex-grow: 1; }
.price-list li { padding: 8px 0; font-size: 0.9rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.price-list li::before { content: '✓ '; color: var(--accent); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
input, textarea, select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-tagline { margin: 14px 0 18px; font-size: 0.9rem; }
.footer-status { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); animation: pulse 2s ease-in-out infinite; }
.footer-heading { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-text { font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-dim); }
.footer-signature { font-family: var(--font-mono); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > * { animation: fadeUp 0.6s var(--ease) forwards; }
.reveal-stagger > *:nth-child(1) { animation-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { animation-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { animation-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { animation-delay: 0.35s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Page hero (inner pages) */
.page-hero { padding: 70px 0 50px; border-bottom: 1px solid var(--border); }
.breadcrumb { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-w { max-width: 640px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* FAQ accordion (native details/summary — works with zero JS) */
.faq-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq-item summary {
  cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem; color: var(--text); display: flex; justify-content: space-between;
  align-items: center; gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.4rem; color: var(--accent); flex-shrink: 0;
  transition: transform 0.25s var(--ease); font-family: var(--font-body); font-weight: 400;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: 0.95rem; padding-right: 40px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .stats-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 30px; }
  .main-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 20px 24px;
  }
  .main-nav.open ul { flex-direction: column; gap: 18px; }
  section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  
}


@media (max-width: 600px){
     .hero-actions{
      flex-wrap: nowrap;
  }
}
