:root {
  /* Dark, Sleek Palette */
  --bg-body: #05090C;
  --bg-surface: #0E151A;
  --bg-card: #131B22;

  /* Text */
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  /* Accents */
  --accent: #38BDF8; /* Electric Sky Blue */
  --accent-glow: rgba(56, 189, 248, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.3);

  /* Spacing */
  --container-width: 1200px;
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

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

/* --- UTILITIES --- */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px; /* Sharper corners */
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--bg-body);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- NAVIGATION --- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(5, 9, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav__links { display: flex; gap: 2.5rem; }
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.nav__links a:hover { color: white; }

.mobile-toggle { display: none; color: white; font-size: 1.5rem; background: none; border: none; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 10rem 0 6rem;
  overflow: hidden;
}

/* Abstract Grid Background */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.email-form {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.email-form input {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.3s;
}

.email-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

.email-form button {
  white-space: nowrap;
}

/* Web3forms honeypot - must stay in DOM but invisible and out of flow */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Thank-you popup - on same page */
.thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5, 9, 12, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.thanks-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.thanks-popup {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.thanks-popup p {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}
.thanks-popup .btn { margin: 0; }

.hero__disclaimer {
  margin-top: 1rem;
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(255,255,255,0.3);
}

/* --- STATS STRIP --- */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  padding: 3rem 0;
}
.stats__source {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__num {
  font-family: 'Space Grotesk';
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.stats__source .stat-highlight {
  color: var(--accent);
  font-weight: 700;
}

.stat__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- SERVICES (Cards) --- */
.services { padding: 8rem 0; }

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-head p { color: var(--text-muted); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

/* Subtle glow effect on hover */
.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
}

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: 0.3s;
}

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

.card__icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); }

/* --- HOW IT WORKS (Timeline) --- */
.process {
  padding: 8rem 0;
  background: var(--bg-surface);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  position: relative;
}

/* Connecting Line */
.steps::after {
  content: '';
  position: absolute;
  top: 24px; left: 0; width: 100%; height: 1px;
  background: var(--border);
  z-index: 0;
}

.step { position: relative; z-index: 1; padding-right: 2rem; }

.step__marker {
  width: 48px; height: 48px;
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk';
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  transition: 0.3s;
}

.step:hover .step__marker {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* --- USE CASES --- */
.use-cases { padding: 8rem 0; }
.use-case-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: 0.2s;
}

.use-case-row:hover { background: rgba(255,255,255,0.02); }
.use-case-row h4 { font-size: 1.1rem; }
.use-case-row p { font-size: 0.95rem; color: var(--text-muted); text-align: right; }

/* --- CTA SECTION --- */
.cta-section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: radial-gradient(circle at center, #1e293b 0%, #05090C 70%);
  border-top: 1px solid var(--border);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h2 { font-size: 2.25rem; margin-bottom: 1rem; }
.cta-box p { color: var(--text-muted); margin-bottom: 2rem; }

/* Hidden CTA section */
.cta-section { display: none; }

/* --- FOOTER --- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .nav__links { display: none; }
  .mobile-toggle { display: block; }
  .stats__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::after { display: none; } /* Hide line on mobile */
  .use-case-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .use-case-row p { text-align: left; }
  .email-form { flex-direction: column; }
  .btn { width: 100%; }
}

/* --- FAQ --- */
.faq { padding: 8rem 0; background: var(--bg-surface); }
.faq .wrap { max-width: var(--container-width); margin: 0 auto; padding: 0 1.5rem; }
.faq .section-header { text-align: center; }
.section-header__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.faq .section-header h2 { font-size: 2.5rem; margin-bottom: 3rem; }
.faq__list { max-width: 720px; margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq__question:hover { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s;
}
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__item.is-open .faq__answer { max-height: 400px; }
.faq__answer p {
  padding: 0 0 1.25rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}
