/* ==========================================================================
   CarbonNxt — Cinematic Center-Aligned Poster Style Landing Page Sheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-navy-deep: #030811;
  --bg-navy-dark: #060e1b;
  --bg-navy-overlay: rgba(3, 8, 17, 0.78);
  
  --color-white: #ffffff;
  --color-text-muted: rgba(226, 232, 240, 0.80);
  --color-text-subtle: rgba(148, 163, 184, 0.88);

  --color-teal-bright: #2dd4bf;
  --color-teal-light: #5eead4;
  --color-teal-dark: #0d9488;
  --color-emerald: #10b981;
  --color-emerald-light: #34d399;
  --color-cyan: #06b6d4;
  --color-cyan-light: #38bdf8;
  
  --border-cyan-glass: rgba(45, 212, 191, 0.25);
  --border-cyan-hover: rgba(45, 212, 191, 0.55);
  --glass-bg: rgba(8, 18, 33, 0.65);
  --glass-bg-hover: rgba(12, 27, 48, 0.80);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s var(--ease-out-cubic);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Structure
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Single screen full-viewport height on desktop */
  background-color: var(--bg-navy-deep);
  color: var(--color-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --------------------------------------------------------------------------
   3. Cinematic Fullscreen Background & Overlays
   -------------------------------------------------------------------------- */
.bg-wrapper {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Center-aligned poster positioning */
  transform: scale(1.02);
  filter: contrast(1.05) brightness(0.85);
}

.bg-overlay {
  position: absolute;
  inset: 0;
  /* Centered poster style vignette overlay for high readability in center */
  background: radial-gradient(
    circle,
    rgba(3, 8, 17, 0.65) 0%,
    rgba(3, 8, 17, 0.85) 60%,
    rgba(3, 8, 17, 0.95) 100%
  );
  backdrop-filter: blur(1px);
}

/* Low-intensity ambient light glow behind content */
.glow-radial {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.15) 0%,
    rgba(16, 185, 129, 0.05) 50%,
    transparent 80%
  );
  pointer-events: none;
  z-index: 2;
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

/* Floating Carbon Molecule Outlines */
.floating-molecules {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.molecule {
  position: absolute;
  opacity: 0.65;
  filter: drop-shadow(0 0 12px rgba(45, 212, 191, 0.2));
}

.mol-1 {
  top: 18%;
  left: 15%;
  animation: floatMol1 14s ease-in-out infinite alternate;
}

.mol-2 {
  bottom: 22%;
  right: 15%;
  animation: floatMol2 18s ease-in-out infinite alternate;
}

@keyframes floatMol1 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-24px) rotate(12deg); }
}

@keyframes floatMol2 {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(20px) rotate(-15deg); }
}

/* --------------------------------------------------------------------------
   4. Transparent Clean Header
   -------------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 32px 64px; /* Generous 56–70px horizontal padding */
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1540px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-smooth);
}

.brand-logo:hover {
  transform: translateY(-2px);
}

.brand-logo-img {
  height: 96px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Header Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-link {
  color: rgba(241, 245, 249, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-teal-bright);
}

.soon-badge {
  position: absolute;
  bottom: -16px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.7);
}

/* Header Action Button */
.btn-notify-outline {
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  border: 1.5px solid rgba(45, 212, 191, 0.45);
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-notify-outline:hover {
  border-color: var(--color-teal-bright);
  background: rgba(45, 212, 191, 0.12);
  color: var(--color-teal-light);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
  transform: translateY(-1px);
}

/* Mobile Menu Hamburger Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 30;
}

.mobile-menu-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  display: none;
}

/* --------------------------------------------------------------------------
   5. Hero Main Content (Center Aligned Poster Style)
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally */
  padding: 100px 32px 80px 32px;
}

.hero-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content items */
  text-align: center;  /* Center text alignment */
}

/* Eyebrow Sub-heading */
.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em; /* Increased letter spacing */
  text-transform: uppercase;
  color: var(--color-teal-bright);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Main Heading */
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: 4.8rem; /* ~76px desktop */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}

.title-top {
  color: var(--color-white);
  font-weight: 400;
}

.title-bottom {
  background: linear-gradient(135deg, #ffffff 10%, var(--color-teal-bright) 70%, var(--color-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Prominent COMING SOON Banner */
.coming-soon-badge {
  margin-bottom: 26px;
}

.coming-soon-badge span {
  font-family: var(--font-sans);
  font-size: 3.2rem; /* ~50px desktop */
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--color-emerald-light) 0%, var(--color-teal-bright) 50%, var(--color-cyan-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.45));
  display: inline-block;
  line-height: 1.1;
}

/* Description Paragraph */
.hero-description {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 38px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   6. Contact Details Card (Replacing waitlist form input)
   -------------------------------------------------------------------------- */
.contact-details-card {
  width: 100%;
  max-width: 580px;
  background: var(--glass-bg);
  border: 1px solid var(--border-cyan-glass);
  border-radius: 20px;
  padding: 24px 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

.contact-details-card:hover {
  border-color: var(--border-cyan-hover);
  transform: translateY(-2px);
}

.contact-header {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal-bright);
  margin-bottom: 18px;
}

.contact-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.contact-item:hover {
  transform: scale(1.03);
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.contact-item:hover .contact-value {
  color: var(--color-teal-bright);
}

.contact-address {
  font-size: 0.84rem;
  color: var(--color-text-subtle);
  line-height: 1.5;
  margin-top: 14px;
  max-width: 480px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. Single-Screen Bottom Footer Bar
   -------------------------------------------------------------------------- */
.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 24px 64px;
  background: linear-gradient(to top, rgba(3, 8, 17, 0.9) 0%, transparent 100%);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1540px;
  margin: 0 auto;
  font-size: 0.84rem;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.02em;
}

.footer-email {
  color: rgba(226, 232, 240, 0.85);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-email:hover {
  color: var(--color-teal-bright);
}

/* --------------------------------------------------------------------------
   8. Glassmorphic Modal Component
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 8, 17, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: rgba(8, 18, 33, 0.95);
  border: 1px solid var(--border-cyan-glass);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(45, 212, 191, 0.15);
  transform: translateY(20px) scale(0.96);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-teal-bright);
}

.modal-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-teal-bright);
  margin-bottom: 10px;
}

.modal-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--color-white);
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal-feature-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.modal-feature-item h4 {
  font-size: 0.9rem;
  color: var(--color-teal-light);
  margin-bottom: 6px;
}

.modal-feature-item p {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.8);
  line-height: 1.4;
}

.modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-list li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding-left: 20px;
  position: relative;
}

.modal-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--color-teal-bright);
  font-size: 0.8rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 0.95rem;
  color: var(--color-teal-light);
  margin-bottom: 6px;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Responsive Mobile Styling
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-header {
    padding: 24px 36px;
  }
  
  .hero-wrapper {
    padding: 100px 36px 80px 36px;
  }
  
  .hero-title {
    font-size: 4rem;
  }

  .coming-soon-badge span {
    font-size: 2.6rem;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-y: auto; /* Allow scroll on very short mobile screens to prevent text cut off */
    height: auto;
    min-height: 100vh;
  }

  .site-header {
    padding: 20px 24px;
  }

  .brand-logo {
    padding: 6px 14px;
  }

  .brand-logo-img {
    height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .header-actions .btn-notify-outline {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Mobile Drawer Menu */
  .mobile-drawer {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 8, 17, 0.97);
    backdrop-filter: blur(16px);
    z-index: 25;
    padding-top: 90px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-drawer.active {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-drawer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 20px;
  }

  .mobile-drawer-link {
    font-size: 1.3rem;
    color: var(--color-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-soon-badge {
    font-size: 0.7rem;
    color: var(--color-teal-bright);
    border: 1px solid var(--color-teal-bright);
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
  }

  .mobile-drawer-btn {
    margin-top: 16px;
    width: 80%;
    text-align: center;
  }

  /* Hero Content Mobile Aligned */
  .hero-wrapper {
    height: auto;
    min-height: 100vh;
    padding: 120px 24px 100px 24px;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.6rem; /* 42-48px mobile target */
    line-height: 1.15;
    align-items: center;
  }

  .coming-soon-badge span {
    font-size: 2.1rem; /* 30-36px mobile target */
  }

  .hero-description {
    font-size: 0.96rem;
    margin-bottom: 28px;
  }

  .contact-details-card {
    padding: 20px;
  }

  .contact-grid {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .contact-value {
    font-size: 1rem;
  }

  .site-footer {
    position: relative;
    padding: 20px 24px;
    background: rgba(3, 8, 17, 0.95);
  }

  .footer-container {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
