/* ========================================== */
/* DESIGN SYSTEM & ROOT TOKENS                */
/* ========================================== */
:root {
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-dark: #07070a;
  --bg-darker: #040406;
  --panel-bg: rgba(255, 255, 255, 0.02);
  --panel-border: rgba(255, 255, 255, 0.07);
  --panel-border-hover: rgba(0, 242, 254, 0.4);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --text-primary: #f5f5f7;
  --text-muted: #8e8e93;
  --text-dark: #1d1d1f;
  
  --glow-cyan: rgba(0, 242, 254, 0.15);
  --glow-blue: rgba(79, 172, 254, 0.15);
  
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ========================================== */
/* BASE STYLES                                */
/* ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Glow Effects */
.radial-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
}
.glow-1 {
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
}
.glow-2 {
  top: 40%;
  left: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
}

/* Typographical hierarchy */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.1rem;
}

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

/* Glassmorphism Panel Base */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: var(--transition-smooth);
}

/* ========================================== */
/* LAYOUT & COMPONENT STYLES                  */
/* ========================================== */

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
}
.logo-symbol {
  color: var(--primary-cyan);
  font-size: 1.6rem;
}

nav {
  display: flex;
  gap: 2rem;
}
nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}
nav a:hover {
  color: var(--primary-cyan);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.header-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.1) 0%, rgba(79, 172, 254, 0.1) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--primary-cyan);
}
.header-cta:hover {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
  border-color: transparent;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  min-height: calc(80vh - 80px);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--primary-cyan);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  animation: pulse-border 3s infinite;
}

.hero-description {
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 1.5rem;
}

.primary-cta {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: var(--bg-dark);
  border: none;
}
.primary-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.4);
}

.secondary-cta {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}
.secondary-cta:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-image {
  width: 100%;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.image-wrapper:hover .product-image {
  transform: scale(1.05);
}
.image-reflection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Stats Section */
.stats-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.stats-card {
  padding: 2.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stats-grid {
  display: flex;
  gap: 4rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-cyan);
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.progress-bar-container {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  align-items: center;
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-cyan);
  animation: pulse-dot 1.5s infinite;
}

/* Features Section */
.features-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-title-wrap h2 {
  margin-bottom: 1rem;
}

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

.feature-card {
  padding: 3rem 2rem;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Crowdfund Tiers Section */
.crowdfund-section {
  max-width: 1200px;
  margin: 0 auto 6rem;
  padding: 0 2rem;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.tier-card {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.tier-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}
.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-desc {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.tier-features {
  list-style: none;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}
.tier-features li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tier-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tier-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Featured Tier Card specifics */
.featured-tier {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 40px rgba(0, 242, 254, 0.1);
  transform: scale(1.03);
}
.featured-tier:hover {
  border-color: var(--primary-cyan);
  box-shadow: 0 15px 50px rgba(0, 242, 254, 0.2);
}
.featured-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}
.featured-tier .tier-price {
  color: var(--primary-cyan);
}
.featured-tier .tier-badge {
  background: rgba(0, 242, 254, 0.08);
  color: var(--primary-cyan);
  border: 1px solid rgba(0, 242, 254, 0.2);
}
.primary-tier-btn {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: var(--bg-dark);
  border: none;
}
.primary-tier-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
}

/* Newsletter Section */
.newsletter-section {
  max-width: 800px;
  margin: 0 auto 8rem;
  padding: 0 2rem;
}

.newsletter-card {
  padding: 4rem 3rem;
  text-align: center;
}

.newsletter-header {
  margin-bottom: 2.5rem;
}
.newsletter-header h2 {
  margin-bottom: 0.75rem;
}
.newsletter-header p {
  max-width: 600px;
  margin: 0 auto;
}

.signup-form {
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  padding: 0.4rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
}
.input-group:focus-within {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.input-group input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.input-group input::placeholder {
  color: #55555c;
}

.submit-btn {
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}
.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loader Spinner */
.loader {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-dark);
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
}
.hidden {
  display: none !important;
}

.form-message {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
  transition: var(--transition-smooth);
}
.form-message.success {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--primary-cyan);
}
.form-message.error {
  background: rgba(255, 69, 58, 0.05);
  border: 1px solid rgba(255, 69, 58, 0.2);
  color: #ff453a;
}

/* Footer Section */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-darker);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.2rem;
}
.footer-container p {
  font-size: 0.85rem;
}

/* ========================================== */
/* ANIMATIONS & RESPONSIVENESS                */
/* ========================================== */
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

@keyframes pulse-border {
  0% { border-color: rgba(0, 242, 254, 0.25); }
  50% { border-color: rgba(0, 242, 254, 0.6); box-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
  100% { border-color: rgba(0, 242, 254, 0.25); }
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    margin-top: 2rem;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .stats-grid {
    gap: 2rem;
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1.25rem;
  }
  .progress-info {
    flex-direction: column;
    align-items: flex-start;
  }
  .stats-grid {
    flex-wrap: wrap;
  }
  .featured-tier {
    transform: none; /* Avoid layout overflow or zoom bugs on narrow viewports */
  }
  .newsletter-card {
    padding: 2.5rem 1.5rem;
  }
  .input-group {
    flex-direction: column;
    background: transparent;
    border: none;
    padding: 0;
  }
  .input-group input {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    margin-bottom: 0.5rem;
  }
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ========================================== */
/* CHECKOUT MODAL STYLES                      */
/* ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-container {
  width: 90%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 242, 254, 0.15);
}
.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}
.modal-close:hover {
  color: var(--primary-cyan);
  transform: rotate(90deg);
}

.modal-subtitle {
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.text-center {
  text-align: center;
}

/* Modal Form styling */
.modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.full-width {
  grid-column: span 2;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.form-field label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-field input, .form-field select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-smooth);
}
.form-field input:focus, .form-field select:focus {
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* Payment Intent Options selector */
.payment-selector {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.payment-option {
  flex: 1;
  position: relative;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.payment-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.01);
  transition: var(--transition-smooth);
  gap: 0.25rem;
}
.payment-label span {
  font-size: 1.2rem;
}
.payment-option input:checked + .payment-label {
  border-color: var(--primary-cyan);
  background: rgba(0, 242, 254, 0.05);
  color: var(--primary-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}
.payment-label:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Success Checkmark View */
.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 242, 254, 0.06);
  border: 2px solid var(--primary-cyan);
  border-radius: 50%;
  color: var(--primary-cyan);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  animation: pulse-dot 2s infinite;
}

@media (max-width: 580px) {
  .modal-form-grid {
    grid-template-columns: 1fr;
  }
  .form-field {
    grid-column: span 1;
  }
  .payment-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
}

