/* ============================================
   EcoGenie — Premium AI Landing Page
   ============================================ */

:root {
  --color-primary: #FF0149;
  --color-secondary: #1D0A42;
  --color-light: #FFFFFF;
  --color-flat-purple: #6C2BD9;
  --color-flat-green: #33AB78;

  --gradient-1: linear-gradient(135deg, #FF0149, #6C2BD9);
  --gradient-2: linear-gradient(135deg, #6C2BD9, #4A1A9E);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.14);

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Lato', sans-serif;
  font-weight: 400; font-size: 15px; line-height: 1.5;
  color: var(--color-light);
  background: linear-gradient(180deg, #0C0320 0%, #1D0A42 25%, #170A38 50%, #1D0A42 75%, #0C0320 100%) no-repeat;
  background-color: #0C0320;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   Typography
   ============================================ */
h1 { font-size: 56px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
h4 { font-size: 13px; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.35); }
h5 { font-size: 11px; line-height: 1.5; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.25); }
em { font-style: italic; }

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.center { text-align: center; }

/* ============================================
   Pill Badge
   ============================================ */
.pill-badge {
  display: inline-flex; align-items: center;
  padding: 6px 16px; border-radius: var(--radius-full);
  border: 1px solid rgba(108,43,217,0.3);
  background: rgba(108,43,217,0.08);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-flat-purple);
  margin-bottom: 20px;
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 100px 0; position: relative; }
.section-dark { background: transparent; }
.section-darker { background: transparent; }

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-top: 8px; }
.section-sub {
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.5);
  max-width: 520px; margin: 16px auto 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Lato', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2;
  padding: 14px 28px; border-radius: var(--radius-full);
  border: none; cursor: pointer; transition: all 0.25s ease; text-decoration: none;
}
.btn-primary {
  background: var(--color-flat-purple); color: var(--color-light);
  box-shadow: 0 0 24px rgba(108,43,217,0.25), 0 4px 12px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  background: #7c3aed; color: var(--color-light); transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(108,43,217,0.35), 0 8px 20px rgba(0,0,0,0.3);
}
.btn-ghost {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover {
  color: var(--color-light); border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.04);
}
.btn-full { width: 100%; }

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, #0C0320 0%, #1D0A42 50%, #150835 100%);
  padding: 120px 0 80px; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(108,43,217,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(255,1,73,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(108,43,217,0.08) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradient-drift 15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gradient-drift {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 60% 40%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 40% 60%; }
  100% { background-position: 0% 0%; }
}
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); animation: orb-float 12s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: rgba(108,43,217,0.15); top: -10%; right: 10%; }
.hero-orb-2 { width: 400px; height: 400px; background: rgba(255,1,73,0.08); bottom: 10%; left: -5%; animation-delay: -4s; animation-duration: 15s; }
.hero-orb-3 { width: 300px; height: 300px; background: rgba(108,43,217,0.08); top: 40%; left: 50%; animation-delay: -8s; animation-duration: 18s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -25px) scale(1.03); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.6);
  margin-bottom: 32px; letter-spacing: 0.04em;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-flat-green);
  box-shadow: 0 0 8px rgba(51,171,120,0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
/* Canvas starfield */
.hero-starfield {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}

/* Hero entrance animations */
.hero-fade {
  opacity: 0; transform: translateY(24px);
  animation: hero-entrance 0.8s cubic-bezier(0.22,1,0.36,1) forwards;
}
.hero-fade-1 { animation-delay: 0.2s; }
.hero-fade-2 { animation-delay: 0.4s; }
.hero-fade-3 { animation-delay: 0.6s; }
.hero-fade-4 { animation-delay: 0.95s; }
@keyframes hero-entrance {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Coming soon banner */
.coming-soon-banner {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  text-align: center; padding: 10px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  background: linear-gradient(90deg, transparent, rgba(108,43,217,0.3), rgba(255,1,73,0.2), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.coming-soon-banner::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: banner-shimmer 4s ease-in-out infinite;
}


@keyframes banner-shimmer {
  0% { left: -60%; }
  50% { left: 100%; }
  100% { left: 100%; }
}
.hero-logo { height: 36px; width: auto; margin: 0 auto 40px; display: block; }
.hero-title { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; }

/* Hero stats */
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.hero-ctas .btn-primary {
  position: relative;
}
.hero-ctas .btn-primary::before {
  content: '';
  position: absolute; inset: -3px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255,1,73,1);
  box-shadow: 0 0 12px rgba(255,1,73,0.4);
  animation: pulse-border 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-border {
  0%, 100% { opacity: 0.3; inset: -3px; box-shadow: 0 0 8px rgba(255,1,73,0.2); }
  50% { opacity: 1; inset: -7px; box-shadow: 0 0 20px rgba(255,1,73,0.5); }
}





/* ============================================
   Stats
   ============================================ */
.stat-item { text-align: center; }
.stat-value { display: block; font-size: 48px; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }
.stat-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.06); }


/* ============================================
   Blueprint
   ============================================ */
.blueprint {
  display: flex; flex-direction: column; align-items: center;
  max-width: 640px; margin: 0 auto;
}
.blueprint-layer { width: 100%; }
.blueprint-card {
  padding: 32px; text-align: center; position: relative;
}
.blueprint-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--gradient-1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 12px;
}
.blueprint-card h3 { font-size: 22px; margin-bottom: 8px; }
.blueprint-card p { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.blueprint-icons {
  display: flex; gap: 16px; justify-content: center;
  color: rgba(255,255,255,0.3);
}
.blueprint-connector {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; padding: 12px 0;
}
.blueprint-connector-line {
  width: 2px; height: 32px;
  background: linear-gradient(180deg, rgba(108,43,217,0.5), rgba(255,1,73,0.3));
}
.blueprint-arrow { color: rgba(255,255,255,0.25); }
.blueprint-layer-3 .blueprint-card { border-top: 2px solid rgba(108,43,217,0.3); }
.blueprint-layer-2 .blueprint-card { border-top: 2px solid rgba(255,1,73,0.3); }
.blueprint-layer-1 .blueprint-card { border-top: 2px solid rgba(108,43,217,0.3); }

/* Blueprint staggered reveal delays */
.blueprint-layer.reveal { transition-delay: 0s; }
.blueprint-connector.reveal:nth-of-type(2) { transition-delay: 0.1s; }
.blueprint-layer-2.reveal { transition-delay: 0.2s; }
.blueprint-connector.reveal:nth-of-type(4) { transition-delay: 0.3s; }
.blueprint-layer-1.reveal { transition-delay: 0.4s; }

/* Blueprint glow pulse on layer borders */
.blueprint-layer-3 .blueprint-card { animation: layer-glow-purple 4s ease-in-out infinite; }
.blueprint-layer-2 .blueprint-card { animation: layer-glow-red 4s ease-in-out infinite 1.3s; }
.blueprint-layer-1 .blueprint-card { animation: layer-glow-purple 4s ease-in-out infinite 2.6s; }
@keyframes layer-glow-purple {
  0%, 100% { box-shadow: 0 -2px 12px rgba(108,43,217,0); }
  50% { box-shadow: 0 -2px 20px rgba(108,43,217,0.15); }
}
@keyframes layer-glow-red {
  0%, 100% { box-shadow: 0 -2px 12px rgba(255,1,73,0); }
  50% { box-shadow: 0 -2px 20px rgba(255,1,73,0.15); }
}

/* Blueprint floating icons */
.blueprint-icons svg {
  animation: icon-bob 3s ease-in-out infinite;
}
.blueprint-icons svg:nth-child(2) { animation-delay: -1s; }
.blueprint-icons svg:nth-child(3) { animation-delay: -2s; }
@keyframes icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Blueprint connector pulse */
.blueprint-connector-line {
  animation: connector-pulse 3s ease-in-out infinite;
}
@keyframes connector-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   Contact
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-details-card { padding: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-md);
  background: rgba(108,43,217,0.1); border: 1px solid rgba(108,43,217,0.12);
  display: flex; align-items: center; justify-content: center; color: var(--color-flat-purple);
}
.contact-item h4 { margin-bottom: 2px; }
.contact-item p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.7); }
.contact-item a { color: var(--color-light); border-bottom: 1px solid rgba(255,255,255,0.1); transition: border-color 0.2s ease; }
.contact-item a:hover { border-color: var(--color-flat-purple); }

.contact-form {
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea {
  font-family: 'Lato', sans-serif; font-size: 15px;
  padding: 12px 16px; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); background: rgba(255,255,255,0.03);
  color: var(--color-light); transition: border-color 0.2s ease, box-shadow 0.2s ease; outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-flat-purple);
  box-shadow: 0 0 0 3px rgba(108,43,217,0.12), 0 0 20px rgba(108,43,217,0.08);
}

/* Contact card hover glow */
.contact-details-card:hover,
.contact-form:hover {
  border-color: rgba(108,43,217,0.25);
  box-shadow: 0 8px 32px rgba(108,43,217,0.1), 0 0 0 1px rgba(108,43,217,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================
   Footer
   ============================================ */
/* Coming Soon Banner (between contact & footer) */
.coming-soon-banner-section {
  text-align: center; padding: 14px 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.9);
  background: linear-gradient(90deg, transparent, rgba(108,43,217,0.3), rgba(255,1,73,0.2), transparent);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.coming-soon-banner-section::after {
  content: '';
  position: absolute; top: 0; left: -60%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: banner-shimmer 4s ease-in-out infinite;
}

.footer { background: transparent; color: rgba(255,255,255,0.5); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-logo-img { height: 28px; width: auto; display: block; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.3); max-width: 260px; line-height: 1.5; }
.footer-nav { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.4); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-light); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.04); margin: 40px 0 32px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-legal p { font-size: 13px; line-height: 1.6; margin-bottom: 2px; }
.footer-legal strong { color: rgba(255,255,255,0.7); }
.footer-contact-summary p { font-size: 13px; line-height: 1.6; margin-bottom: 2px; }
.footer-contact-summary a { color: rgba(255,255,255,0.4); }
.footer-contact-summary a:hover { color: var(--color-light); }
.footer-copy p { font-size: 12px; color: rgba(255,255,255,0.2); }

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(28px) scale(0.98);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }


@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-orb { animation: none; }
  .badge-dot { animation: none; }
  .hero-starfield { display: none; }
  .hero-fade { animation: none; opacity: 1; transform: none; filter: none; }
  .coming-soon-banner::after { animation: none; }
  .stats-glow::after { animation: none; }
  .blueprint-icons svg { animation: none; }
  .blueprint-connector-line { animation: none; }
  .blueprint-layer .blueprint-card { animation: none; }
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }

  .hero {
    padding: 60px 0 40px;
    min-height: 100svh;
  }
  .hero-logo { height: 32px; margin-bottom: 32px; }
  .hero-title { margin-bottom: 28px; }
  .hero-ctas .btn { padding: 14px 32px; font-size: 15px; }
  .hero-ctas .btn-primary::before { display: none; }

  .hero-stats {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 24px 16px; margin-top: 40px; padding-top: 28px;
  }
  .stat-divider { display: none; }
  .stat-value { font-size: 32px; }
  .stat-label { font-size: 12px; }

  .section { padding: 72px 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-details-card, .contact-form { padding: 24px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .container { padding: 0 20px; }

  .hero { padding: 56px 0 32px; }
  .hero-logo { height: 28px; margin-bottom: 28px; }
  .hero-title { margin-bottom: 24px; }
  .hero-ctas .btn { padding: 12px 28px; font-size: 14px; }

  .hero-stats { gap: 20px 12px; margin-top: 32px; padding-top: 24px; }
  .stat-value { font-size: 28px; }

  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 250px; height: 250px; }
  .hero-orb-3 { display: none; }
}
