/* =============================================
   AUTOMATEIQ — THEME
   ============================================= */

:root {
  --bg: #0d1117;
  --bg-raised: #161b22;
  --bg-card: #1c2128;
  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.12);
  --amber-glow: rgba(245, 158, 11, 0.08);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.1);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #484f58;
  --border: rgba(255,255,255,0.08);
  --border-amber: rgba(245,158,11,0.25);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 6rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 70% 50%, black 0%, transparent 100%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96,165,250,0.05) 0%, transparent 70%);
  bottom: 100px;
  right: 200px;
}

.hero-nodes {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
}

.node {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: float 6s ease-in-out infinite;
}

.node::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.15;
  filter: blur(4px);
}

.node-1 {
  width: 24px; height: 24px;
  top: 80px; left: 80px;
  border-color: var(--amber);
  color: var(--amber);
  animation-delay: 0s;
}

.node-2 {
  width: 16px; height: 16px;
  top: 200px; left: 280px;
  border-color: var(--blue);
  color: var(--blue);
  animation-delay: 1.5s;
}

.node-3 {
  width: 20px; height: 20px;
  top: 120px; left: 500px;
  border-color: var(--amber);
  color: var(--amber);
  animation-delay: 0.8s;
}

.node-4 {
  width: 12px; height: 12px;
  top: 400px; left: 150px;
  border-color: var(--blue);
  color: var(--blue);
  animation-delay: 2.2s;
}

.node-5 {
  width: 28px; height: 28px;
  top: 350px; left: 500px;
  border-color: var(--amber);
  color: var(--amber);
  animation-delay: 0.4s;
}

.node-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: pulse-ring 4s ease-in-out infinite;
}

.ring-1 {
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(245,158,11,0.15);
  animation-delay: 0s;
}

.ring-2 {
  width: 340px; height: 340px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(245,158,11,0.08);
  animation-delay: 1s;
}

.ring-3 {
  width: 480px; height: 480px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(96,165,250,0.05);
  animation-delay: 2s;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 600px;
}

.hero-label {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--border-amber);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-primary {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: var(--amber);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cta-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.cta-secondary {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cta-secondary:hover {
  border-color: var(--amber);
  color: var(--text);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.proof-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}

.proof-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 80px;
  line-height: 1.3;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* =============================================
   SERVICES
   ============================================= */

.services {
  padding: 8rem 6rem;
  background: var(--bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.services-header {
  max-width: 700px;
  margin-bottom: 5rem;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover {
  border-color: var(--border-amber);
  transform: translateY(-2px);
}

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

.service-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--amber-dim);
  border: 1px solid var(--border-amber);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}

.service-icon--sm {
  width: 40px;
  height: 40px;
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.service-name--sm {
  font-size: 1.1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 600px;
}

.service-desc--sm {
  font-size: 0.875rem;
}

.service-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* =============================================
   PRICING
   ============================================= */

.pricing {
  padding: 8rem 6rem;
  background: var(--bg-raised);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.pricing-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  transition: transform 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
}

.pricing-card--featured {
  background: var(--amber-dim);
  border-color: var(--border-amber);
}

.pricing-card--featured::after {
  content: 'Popular';
  position: absolute;
  top: -1px;
  right: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  padding: 0.25rem 0.75rem;
  border-radius: 0 0 8px 8px;
}

.pricing-tier {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

.pricing-amount {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.pricing-per {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.pricing-note {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
}

.pricing-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  background: var(--amber);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.pricing-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.pricing-btn--featured {
  background: var(--bg);
  color: var(--amber);
  border: 1px solid var(--border-amber);
}

.pricing-btn--featured:hover {
  background: var(--amber-dim);
}

.pricing-btn--setup {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.pricing-btn--setup:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.pricing-card--setup {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.5rem;
}

.pricing-card--setup .pricing-tier,
.pricing-card--setup .pricing-amount,
.pricing-card--setup .pricing-per {
  margin-bottom: 0;
}

.pricing-card--setup .pricing-desc {
  margin: 0;
}

.pricing-card--setup .pricing-features {
  grid-column: 2;
}

.pricing-card--setup .pricing-btn {
  grid-column: 3;
  margin-top: 0;
  align-self: center;
}

@media (max-width: 900px) {
  .pricing-card--setup {
    grid-template-columns: 1fr;
  }
  .pricing-card--setup .pricing-features,
  .pricing-card--setup .pricing-btn {
    grid-column: 1;
  }
}

/* =============================================
   RESULTS
   ============================================= */

.results {
  padding: 8rem 6rem;
  background: var(--bg);
  position: relative;
}

.results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.results-header {
  max-width: 700px;
  margin-bottom: 5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
}

.result-block {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}

.result-block--before {
  border-color: rgba(255,255,255,0.04);
}

.result-block--after {
  background: linear-gradient(135deg, var(--amber-dim), rgba(245,158,11,0.04));
  border-color: var(--border-amber);
}

.result-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.result-block--after .result-label {
  color: var(--amber);
}

.result-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.result-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  flex-shrink: 0;
  margin-top: 2px;
}

.result-icon--amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.result-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  padding-top: 6rem;
  animation: arrow-pulse 2s ease-in-out infinite;
}

@keyframes arrow-pulse {
  0%, 100% { transform: translateX(0); opacity: 0.7; }
  50% { transform: translateX(8px); opacity: 1; }
}

/* =============================================
   CLOSING
   ============================================= */

.closing {
  padding: 10rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-headline {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--text);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.closing-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  padding: 3rem 6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-sep {
  color: var(--text-dim);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 7rem 4rem 5rem;
  }
  .hero-nodes {
    display: none;
  }
  .services, .pricing, .results, .closing {
    padding: 6rem 4rem;
  }
  .service-card--lead {
    grid-template-columns: 1fr;
  }
  .service-row {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .result-arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero, .services, .pricing, .results, .closing {
    padding: 5rem 1.5rem 4rem;
  }
  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .hero-proof {
    gap: 1.5rem;
  }
  .proof-divider {
    display: none;
  }
  .hero-headline {
    font-size: 2.25rem;
  }
  .pricing-card {
    padding: 2rem;
  }
}