/* Enora Energy — Landing Page Styles */

:root {
  --bg-deep: #0A0F1C;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --blue: #2365A1;
  --blue-light: #2d78b8;
  --green: #26C061;
  --green-light: #33d470;
  --accent: #26C061;
  --accent-light: #33d470;
  --accent-glow: rgba(38, 192, 97, 0.15);
  --text: #E8E6E1;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --success: #34D399;
  --error: #F87171;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

a { color: var(--green-light); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.nav-logo:hover { text-decoration: none; }

.logo-img {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.logo-img-inline {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.nav-contact {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color var(--transition), background var(--transition);
}
.nav-contact:hover {
  border-color: var(--green);
  background: rgba(38, 192, 97, 0.05);
  text-decoration: none;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 0;
}

.hero-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(35, 101, 161, 0.3) 0%, rgba(38, 192, 97, 0.08) 40%, transparent 70%);
  pointer-events: none;
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero-content {
  text-align: center;
  max-width: 840px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.text-accent {
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Launch badge */
.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
  background: rgba(38, 192, 97, 0.12);
  border: 1px solid rgba(38, 192, 97, 0.5);
  color: #26C061;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  overflow: hidden;
  animation: badge-float 3s ease-in-out infinite, badge-glow 2s ease-in-out infinite;
}

/* shimmer sweep */
.launch-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: badge-shimmer 2.5s ease-in-out infinite;
}

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

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(38,192,97,0.3), 0 0 0 0 rgba(38,192,97,0); }
  50% { box-shadow: 0 0 24px rgba(38,192,97,0.6), 0 0 48px rgba(38,192,97,0.2); }
}

@keyframes badge-shimmer {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(200%); }
}

/* ripple dot */
.launch-badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  background: #26C061;
  border-radius: 50%;
  flex-shrink: 0;
}

.launch-badge-dot::before,
.launch-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #26C061;
  animation: ripple 2s ease-out infinite;
}

.launch-badge-dot::after {
  animation-delay: 0.75s;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.hero-quote {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ─── Signup Form ─── */
.signup-form {
  max-width: 480px;
  margin: 0 auto;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.signup-input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}

.signup-input::placeholder {
  color: var(--text-muted);
}

.signup-input:focus {
  border-color: var(--blue);
}

.signup-button {
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: #ffffff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  transition: opacity var(--transition), transform var(--transition);
}

.signup-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.signup-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  justify-content: center;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  min-height: 1.25rem;
  text-align: center;
}

.form-feedback.error { color: var(--error); }
.form-feedback.success { color: var(--success); }

.signup-success {
  text-align: center;
  padding: 1.5rem;
  color: var(--success);
  font-size: 1.1rem;
  font-weight: 500;
  animation: fade-in-up 0.4s ease;
}

/* ─── Sections ─── */
.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-card);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ─── Cards ─── */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), background var(--transition);
}

.card:hover {
  border-color: rgba(38, 192, 97, 0.2);
  background: var(--bg-card-hover);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Steps ─── */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: 1px solid rgba(35, 101, 161, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-divider {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, var(--green) 0%, transparent 100%);
  opacity: 0.3;
}

/* ─── CTA ─── */
.section-cta {
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 560px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  margin-top: -1.5rem;
  line-height: 1.7;
}

/* ─── Contact Form ─── */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form .signup-input {
  padding: 1rem 1.25rem;
  font-size: 1rem;
}

.contact-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: var(--font);
}

.contact-button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-brand {
  font-weight: 600;
  font-size: 1rem;
}

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

/* ─── Animations ─── */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero elements animate in immediately via CSS delays (no JS needed) */
.hero .animate-in {
  animation: fade-in-up 0.8s ease forwards;
}
.hero .animate-in:nth-child(1) { animation-delay: 0.1s; }
.hero .animate-in:nth-child(2) { animation-delay: 0.4s; }
.hero .animate-in:nth-child(3) { animation-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .animate-in { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive ─── */
@media (min-width: 480px) {
  .signup-row { flex-direction: row; }
  .signup-button { width: auto; }
}

@media (min-width: 640px) {
  .nav-inner { height: 72px; }
  .nav-logo { font-size: 1.25rem; gap: 0.5rem; }
  .logo-img { width: 36px; height: 36px; }
  .logo-img-inline { width: 22px; height: 22px; }
  .nav-contact { font-size: 1rem; padding: 0.5625rem 1.5rem; }
  .hero { min-height: calc(100vh - 72px); padding: 4rem 0; }
  .hero-title { font-size: 2.75rem; margin-bottom: 2.5rem; }
  .hero-quote { font-size: 1.1rem; margin-bottom: 2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .nav-inner { height: 80px; }
  .nav-logo { font-size: 1.5rem; }
  .logo-img { width: 42px; height: 42px; }
  .logo-img-inline { width: 24px; height: 24px; }
  .nav-contact { font-size: 1.05rem; padding: 0.625rem 1.75rem; }
  .hero { min-height: calc(100vh - 80px); }
  .hero-title { font-size: 4rem; margin-bottom: 3rem; }
  .hero-quote { font-size: 1.5rem; margin-bottom: 3rem; }
  .section-title { font-size: 2.5rem; }

  .steps {
    flex-direction: row;
    max-width: none;
    align-items: flex-start;
  }
  .step { flex: 1; }
  .step-divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--green) 0%, transparent 100%);
    margin-top: 1.5rem;
    align-self: flex-start;
    margin-top: 3.5rem;
  }
}

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
