/* =========================================
   ElectroFuseAI — Main Stylesheet
   ========================================= */

:root {
  --bg-primary:    #0b0b13;
  --bg-secondary:  #13131f;
  --bg-card:       #1a1a2e;
  --brand:         #575ECF;
  --brand-light:   #818CF8;
  --brand-glow:    rgba(87, 94, 207, 0.18);
  --text-primary:  #e4e6f0;
  --text-muted:    #8a8fa8;
  --border:        rgba(87, 94, 207, 0.2);
  --border-subtle: rgba(255,255,255,0.07);
  --radius:        12px;
  --radius-lg:     20px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--text-muted); line-height: 1.75; }

.highlight { color: var(--brand-light); }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1rem;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section { padding: 6rem 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 24px rgba(87,94,207,0.35);
}
.btn-primary:hover {
  background: var(--brand-light);
  box-shadow: 0 0 36px rgba(129,140,248,0.45);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-light);
  transform: translateY(-1px);
}
.btn-lg { padding: 0.95rem 2rem; font-size: 1rem; }

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
#navbar.scrolled {
  background: rgba(11,11,19,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo-text span { color: var(--brand-light); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta { display: flex; align-items: center; gap: 1rem; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 101;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(87,94,207,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 70%, rgba(87,94,207,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-light);
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.hero-title { margin-bottom: 1.25rem; }
.hero-subtitle {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}
.hero-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 0 60px rgba(87,94,207,0.15);
  position: relative;
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.hero-card-icon {
  width: 40px; height: 40px;
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card-icon svg {
  width: 18px; height: 18px;
  stroke: var(--brand-light);
}
.hero-card-title { font-size: 0.95rem; font-weight: 600; }
.hero-card-sub { font-size: 0.78rem; color: var(--text-muted); }
.hero-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-flow-step:last-child { margin-bottom: 0; }
.step-num {
  width: 24px; height: 24px;
  background: var(--brand);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-text { font-size: 0.875rem; color: var(--text-muted); }
.step-text strong { color: var(--text-primary); display: block; font-size: 0.9rem; }
.hero-card-badge {
  position: absolute;
  top: -12px; right: 20px;
  background: #4ade80;
  color: #0a2e1a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}
.connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--brand), transparent);
  margin-left: 11px;
  margin-bottom: 4px;
}

/* ── Industries Strip ── */
#industries {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.75rem 0;
}
.industries-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.industries-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}
.industries-strip span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 1.25rem;
  letter-spacing: 0.01em;
  opacity: 0.75;
}
.industries-strip .sep {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
  padding: 0;
  flex-shrink: 0;
}

/* ── Problem ── */
#problem { background: var(--bg-primary); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header p { max-width: 580px; margin: 1rem auto 0; font-size: 1.05rem; }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.problem-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.problem-icon {
  width: 44px; height: 44px;
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.problem-icon svg {
  width: 22px; height: 22px;
  stroke: var(--brand-light);
}
.problem-card h3 { margin-bottom: 0.75rem; }

/* ── How It Works ── */
#how-it-works { background: var(--bg-secondary); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.6% + 20px);
  right: calc(16.6% + 20px);
  height: 1px;
  background: linear-gradient(to right, var(--brand), var(--brand-light), var(--brand));
  opacity: 0.4;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.step-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--brand-glow);
}
.step-number {
  width: 56px; height: 56px;
  background: var(--brand);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 24px rgba(87,94,207,0.4);
}
.step-card h3 { margin-bottom: 0.75rem; }

/* ── Features ── */
#features { background: var(--bg-primary); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.feature-icon svg {
  width: 20px; height: 20px;
  stroke: var(--brand-light);
}
.feature-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }

/* ── Use Cases ── */
#use-cases { background: var(--bg-secondary); }
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.usecase-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--brand-glow);
}
.usecase-icon {
  width: 48px; height: 48px;
  background: var(--brand-glow);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.usecase-icon svg {
  width: 22px; height: 22px;
  stroke: var(--brand-light);
}
.usecase-card h3 { margin-bottom: 0.75rem; }
.usecase-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
}

/* ── About ── */
#about { background: var(--bg-primary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}
.about-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(87,94,207,0.15) 0%, transparent 70%);
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: -1;
}
.about-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  margin: 0 0.3rem 0.3rem 0;
}
.about-tags { margin-top: 1.5rem; }

/* ── CTA ── */
#cta { background: var(--bg-secondary); }
.cta-box {
  background: linear-gradient(135deg, #13131f 0%, #1a1a30 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(87,94,207,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { max-width: 480px; margin: 0 auto 2rem; font-size: 1.05rem; }
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.8rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form input:focus { border-color: var(--brand); }
.waitlist-form input::placeholder { color: var(--text-muted); }
.form-success {
  display: none;
  color: #4ade80;
  font-size: 0.95rem;
  margin-top: 1rem;
}
.waitlist-input-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  cursor: pointer;
  text-align: left;
}
.consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  margin-top: 2px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.consent-label input[type="checkbox"]:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.consent-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 45%;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}
.consent-label input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}
.consent-label span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 480px;
  text-align: center;
  opacity: 0.75;
}
.form-legal a {
  color: var(--brand-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-legal a:hover {
  color: var(--text-primary);
}

/* ── Footer ── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.footer-logo img { height: 30px; }
.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}
.footer-logo-text span { color: var(--brand-light); }
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ── Divider ── */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(to right, var(--brand), var(--brand-light));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 300px; margin: 0 auto; }
  .cta-box { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .industries-strip { gap: 0.25rem; }
  .industries-strip .sep { display: none; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  section { padding: 4rem 0; }
}

/* ── Mobile menu ── */
body.mobile-menu-open .nav-links {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 99;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 5rem;
}
body.mobile-menu-open .nav-cta {
  display: flex;
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
}
