/* =========================================
   HEDWIG AI — Landing Page Styles
   Theme: Dark Mode + Green (#00FF88) Accent
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --bg:            #050a0e;
  --green:         #00ff88;
  --green-dim:     #00c96a;
  --green-glow:    rgba(0, 255, 136, 0.18);
  --green-glass:   rgba(0, 255, 136, 0.08);
  --white:         #ffffff;
  --muted:         rgba(255,255,255,0.55);
  --card-bg:       rgba(10, 20, 15, 0.55);
  --card-border:   rgba(0, 255, 136, 0.18);
  --border-subtle: rgba(255,255,255,0.07);
  --font-main:     'Space Grotesk', sans-serif;
  --font-display:  'Plus Jakarta Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ─── Spline Background ─── */
#spline-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#spline-bg iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* Dark overlay so content is readable over the 3D scene */
#spline-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(5, 10, 14, 0.82) 0%,
    rgba(0, 20, 10, 0.70) 50%,
    rgba(5, 10, 14, 0.88) 100%
  );
  pointer-events: none;
}

/* ─── Site content sits above bg ─── */
.site-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Navbar ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 10, 14, 0.45);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--green-glow));
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.nav-logo-text span {
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  background: var(--green);
  color: #050a0e !important;
  font-weight: 700 !important;
  padding: 10px 24px;
  border-radius: 100px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--green-dim) !important;
  box-shadow: 0 0 24px var(--green-glow);
  transform: translateY(-1px);
  color: #050a0e !important;
}

/* ─── Hero ─── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
  min-height: calc(100vh - 85px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-glass);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
  animation: fadeSlideDown 0.7s ease forwards;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 820px;
  animation: fadeSlideUp 0.8s 0.1s ease both;
}

.hero h1 .accent {
  color: var(--green);
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
}

.hero p {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
  animation: fadeSlideUp 0.8s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeSlideUp 0.8s 0.35s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #050a0e;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 0 var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-dim);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.45), 0 8px 30px rgba(0,0,0,0.4);
  transform: translateY(-3px) scale(1.02);
}

.btn-primary svg {
  transition: transform 0.25s;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.25s;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(0,255,136,0.3);
  transform: translateY(-2px);
}

/* ─── Trust Bar ─── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 64px;
  flex-wrap: wrap;
  animation: fadeSlideUp 0.8s 0.5s ease both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

/* ─── Scroll indicator ─── */
.scroll-hint {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeSlideUp 0.8s 0.7s ease both;
}

.scroll-hint .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid rgba(0,255,136,0.4);
  border-bottom: 2px solid rgba(0,255,136,0.4);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ─── Features Section ─── */
.section {
  padding: 100px 60px;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,136,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--green-glass);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-glass);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--green);
  font-size: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ─── Stats Strip ─── */
.stats-strip {
  background: var(--card-bg);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.stat-item {
  flex: 1;
  min-width: 180px;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(0,255,136,0.5);
  display: block;
}

.stat-desc {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 6px;
}

/* ─── How It Works ─── */
.how-it-works {
  padding: 100px 60px;
  position: relative;
  z-index: 2;
}

.steps-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.step {
  flex: 1;
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  position: relative;
  transition: background 0.3s;
}

.step:first-child { border-radius: 24px 0 0 24px; }
.step:last-child  { border-radius: 0 24px 24px 0; }

.step:not(:last-child) {
  border-right: none;
}

.step:hover {
  background: rgba(0, 255, 136, 0.06);
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--green-glass);
  color: rgba(0, 255, 136, 0.15);
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-connector {
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 16px;
  z-index: 1;
}

/* ─── CTA Banner ─── */
.cta-section {
  padding: 80px 60px;
  position: relative;
  z-index: 2;
}

.cta-card {
  background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,255,136,0.04));
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 32px;
  padding: 70px 60px;
  text-align: center;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,255,136,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-card p {
  color: var(--muted);
  font-size: 17px;
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  backdrop-filter: blur(12px);
  background: rgba(5, 10, 14, 0.6);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  height: 32px;
  filter: drop-shadow(0 0 8px var(--green-glow));
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--white);
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--green);
}

/* ─── Animations ─── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,255,136,0.2); }
  50%       { box-shadow: 0 0 50px rgba(0,255,136,0.5); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .section, .how-it-works, .cta-section, footer { padding-left: 24px; padding-right: 24px; }
  .steps-row { flex-direction: column; }
  .step:first-child { border-radius: 24px 24px 0 0; }
  .step:last-child  { border-radius: 0 0 24px 24px; }
  .step:not(:last-child) { border-right: 1px solid var(--card-border); border-bottom: none; }
  .step-connector { display: none; }
  .cta-card { padding: 48px 28px; }
  footer { flex-direction: column; text-align: center; }
  .stats-strip { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .stat-item:last-child { border-bottom: none; }
}
