/* ChargeHero Landing — Dark/AI Startup Theme */

:root {
  --bg-primary:    #06060b;
  --bg-secondary:  #0d0d16;
  --bg-card:       #0f0f1a;
  --text-primary:  #ececf0;
  --text-secondary:#6b6b80;
  --accent:        #00d4ff;
  --accent-purple: #7b2ff7;
  --accent-glow:   rgba(0, 212, 255, 0.25);
  --purple-glow:   rgba(123, 47, 247, 0.15);
  --border:        rgba(255, 255, 255, 0.06);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========================
   Nav
   ======================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.nav-brand {
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========================
   Layout
   ======================== */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================
   Hero
   ======================== */
.hero {
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.wordmark {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-top: 1.5rem;
}

.wordmark-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 60px var(--accent-glow));
}

.tagline {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  font-weight: 400;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.05);
  color: var(--accent);
  padding: 0.4rem 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.5; box-shadow: 0 0 0 8px transparent; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  line-height: 1.7;
}

/* ========================
   Email Signup
   ======================== */
.email-signup {
  margin-top: 2.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.input-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  pointer-events: none;
}

.email-signup input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.email-signup input::placeholder { color: var(--text-secondary); }
.email-signup input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.email-signup input:disabled { opacity: 0.5; }

.email-signup button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent), #00b8d9);
  color: var(--bg-primary);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}

.email-signup button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.email-signup button:disabled {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.email-signup button.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-arrow {
  width: 18px;
  height: 18px;
}

.signup-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}

.signup-note.visible { opacity: 1; }

/* ========================
   Features
   ======================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 2rem 4rem;
  max-width: 960px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  transition: border-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.05);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================
   Stats
   ======================== */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

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

/* ========================
   Footer
   ======================== */
.footer {
  margin-top: auto;
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  width: 100%;
  position: relative;
  z-index: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer p {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ========================
   Animated Background
   ======================== */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(0, 212, 255, 0.02) 79px, rgba(0, 212, 255, 0.02) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(0, 212, 255, 0.02) 79px, rgba(0, 212, 255, 0.02) 80px);
  animation: gridScroll 25s linear infinite;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

@keyframes gridScroll {
  0%   { background-position: 0 0; }
  100% { background-position: 80px 80px; }
}

.glow-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  top: -15%;
  right: -5%;
  animation: floatOrb1 12s ease-in-out infinite alternate;
  filter: blur(40px);
}

.glow-orb-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 247, 0.08) 0%, transparent 60%);
  bottom: -10%;
  left: -5%;
  animation: floatOrb2 15s ease-in-out infinite alternate;
  filter: blur(40px);
}

@keyframes floatOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 60px) scale(1.1); }
}

@keyframes floatOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -40px) scale(1.15); }
}

/* ========================
   Legal Pages
   ======================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  line-height: 1.8;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal-content h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content li { color: var(--text-secondary); }
.legal-content ul { padding-left: 1.5rem; margin-top: 0.5rem; }
.legal-content li { margin-bottom: 0.25rem; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.back-link:hover { opacity: 0.8; }

/* ========================
   Responsive
   ======================== */
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; }

  .features {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .email-signup {
    flex-direction: column;
  }

  .input-wrapper { max-width: 100%; }
  .email-signup input { min-width: unset; width: 100%; }
  .email-signup button { width: 100%; justify-content: center; }

  .stats { gap: 1.5rem; }
  .stat-number { font-size: 1.5rem; }
}
