/* ==========================================================================
   ELUVATHINGAL SPARE PARTS — STYLING SYSTEM (SIMPLIFIED VERSION)
   ========================================================================== */

:root {
  /* Color Palette (Extracted from Logo) */
  --bg-primary: #0A0A0A;
  --bg-secondary: #121212;
  --bg-accent: #171717;
  
  --brand-red: #D11919;
  --brand-red-hover: #E3120B;
  --brand-red-glow: rgba(209, 25, 25, 0.4);
  --brand-red-muted: rgba(209, 25, 25, 0.12);
  
  --text-primary: #FFFFFF;
  --text-secondary: #E5E5EA;
  --text-muted: #8E8E93;
  --text-dark: #0B0B0B;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --border-color-active: rgba(209, 25, 25, 0.5);
  
  /* Logo adaptation variables */
  --logo-dark: #FFFFFF;
  --logo-text: #FFFFFF;
  --logo-accent: #D11919;
  --logo-light: #E5E5EA;

  /* Typography */
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  --container-width: 1240px;
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #2C2C2E;
  border-radius: 0px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Background Grids & Layout Accents (Blueprint feel) */
.tech-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 1;
}

.tech-line-y-left, .tech-line-y-right {
  position: fixed;
  top: 0;
  width: 1px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  z-index: 1;
}

.tech-line-y-left { left: 8%; }
.tech-line-y-right { right: 8%; }

/* Grid & Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 2.5rem;
  padding-left: 2.5rem;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
}

.grid-2-col { grid-template-columns: repeat(2, 1fr); }
.gap-xl { gap: 5rem; }
.alignment-center { align-items: center; }

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0px; /* Sharp edges */
  cursor: pointer;
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-primary {
  background-color: var(--brand-red);
  color: var(--text-primary);
  border: 1px solid var(--brand-red);
  padding: 1.1rem 2.25rem;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  border-color: var(--brand-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--brand-red-glow);
}

.btn-secondary-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 1rem 2.25rem;
  font-size: 0.9rem;
}

.btn-secondary-outline:hover {
  border-color: var(--brand-red);
  background-color: var(--brand-red-muted);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--text-primary);
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header Component */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 110px;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  background-color: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  transition: var(--transition-medium);
}

.main-header.scrolled {
  height: 85px;
  background-color: rgba(10, 10, 10, 0.9);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

.logo-wrapper {
  width: 75px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: var(--transition-medium);
}

.header-logo, .footer-logo {
  width: 100%;
  height: auto;
}

.logo-link:hover .logo-wrapper {
  transform: scale(1.05);
}

.main-header.scrolled .logo-wrapper {
  width: 60px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.launch-badge-muted {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-left: 1px solid var(--border-color);
  padding-left: 1.5rem;
  display: inline-block;
}

/* Section Common Styles */
section {
  padding-top: 8rem;
  padding-bottom: 8rem;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--border-color);
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-red);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--brand-red);
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.section-desc-simple {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.scroll-target {
  display: block;
  position: relative;
  top: -110px;
  visibility: hidden;
}

/* ==========================================================================
   HERO SECTION (Scroll 1)
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.45;
  transform: scale(1.05);
  animation: heroImageEntry 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 65% 50%, transparent 10%, var(--bg-primary) 85%),
    linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
}

.hero-container {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background-color: var(--brand-red);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--brand-red);
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-title .title-line {
  display: block;
}

.text-accent {
  color: var(--brand-red);
  background: linear-gradient(90deg, var(--brand-red) 30%, #FF5252 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 3.5rem;
}

/* Integrated Countdown layout */
.hero-countdown {
  display: inline-flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  width: 100%;
  max-width: 550px;
}

.countdown-timer-mini {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 90px;
}

.time-num {
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.time-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.time-sep {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.15);
  margin-top: -1.25rem;
}

.countdown-caption {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.we-are-live-container {
  width: 100%;
  text-align: left;
  padding: 0.5rem 0;
}

.we-are-live-text {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-red);
  letter-spacing: 0.08em;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { opacity: 0.8; }
  50% { opacity: 1; text-shadow: 0 0 20px var(--brand-red-glow); }
  100% { opacity: 0.8; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  height: 50px;
}

.arrow-line {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.arrow-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--brand-red);
  animation: scrollLineAnim 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.arrow-tip {
  width: 8px;
  height: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  transform: rotate(45deg);
  margin-top: -4px;
}

@keyframes heroImageEntry {
  from { transform: scale(1.06); opacity: 0; }
  to { transform: scale(1); opacity: 0.45; }
}

@keyframes scrollLineAnim {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   DETAILS & SUBSCRIPTION (Scroll 2)
   ========================================================================== */
.details-section {
  background-color: var(--bg-secondary);
}

.details-info-col {
  padding-right: 2rem;
}

.offerings-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 500px;
}

.offering-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.offering-tag:hover {
  border-color: var(--brand-red);
  background-color: var(--brand-red-muted);
}

.tag-bullet {
  width: 6px;
  height: 6px;
  background-color: var(--brand-red);
  border-radius: 50%;
}

/* Simplified Subscription Card */
.cta-card-simplified {
  background-color: var(--bg-accent);
  border: 1px solid var(--border-color);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.cta-card-simplified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--brand-red);
}

.cta-card-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.cta-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.cta-form-vertical {
  width: 100%;
}

.form-group-vertical {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input-box {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 1.15rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: var(--transition-fast);
}

.form-input-box::placeholder {
  color: #55555C;
}

.form-input-box:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 10px var(--brand-red-glow);
}

.form-message {
  font-size: 0.9rem;
  margin-top: 1rem;
  min-height: 20px;
  transition: var(--transition-fast);
}

.form-message.success { color: #34C759; }
.form-message.error { color: var(--brand-red); }

.support-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.contact-email-link {
  color: var(--text-secondary);
  text-decoration: underline;
}

.contact-email-link:hover {
  color: var(--brand-red);
}

/* ==========================================================================
   SIMPLIFIED FOOTER
   ========================================================================== */
.main-footer-simplified {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  position: relative;
  z-index: 2;
}

.footer-layout-simple {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.footer-logo-wrapper-simple {
  width: 120px;
  height: auto;
}

.copyright-simple {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-meta-side {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.social-links-row {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

.social-link {
  color: var(--text-muted);
}

.social-link:hover {
  color: var(--brand-red);
}

.launch-date-footer-simple {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  font-weight: 700;
}

/* ==========================================================================
   ANIMATIONS & SCROLL REVEALS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-text-reveal {
  overflow: hidden;
}

.animate-text-reveal .title-line {
  display: block;
  transform: translateY(105%);
  animation: lineReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-text-reveal .title-line:nth-child(1) { animation-delay: 0.3s; }
.animate-text-reveal .title-line:nth-child(2) { animation-delay: 0.5s; }

@keyframes lineReveal {
  to { transform: translateY(0); }
}

.animate-fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-fade-in-up.delay-2 { animation-delay: 0.7s; }
.animate-fade-in-up.delay-3 { animation-delay: 0.9s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.animate-header {
  opacity: 0;
  transform: translateY(-20px);
  animation: headerReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.1s;
}

@keyframes headerReveal {
  to { opacity: 1; transform: translateY(0); }
}

.main-header:hover .header-logo circle[filter="url(#red-glow)"],
.main-footer-simplified:hover .footer-logo circle[filter="url(#red-glow)"] {
  animation: headlightFlicker 1.5s ease-in-out infinite alternate;
}

@keyframes headlightFlicker {
  0%, 100% { filter: url(#red-glow); opacity: 1; }
  30%, 70% { filter: none; opacity: 0.8; }
  50% { filter: url(#red-glow); opacity: 0.4; }
}

.main-header:hover .header-logo #background-gears transform,
.main-footer-simplified:hover .footer-logo #background-gears transform {
  animation: spinCog 8s linear infinite;
}

@keyframes spinCog {
  100% { transform: rotate(-375deg); }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (min-width: 1440px) {
  .tech-line-y-left { left: calc(50vw - 620px - 2.5rem); }
  .tech-line-y-right { right: calc(50vw - 620px - 2.5rem); }
}

@media (max-width: 1200px) {
  :root {
    --container-width: 960px;
  }
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.5rem; }
  .gap-xl { gap: 3rem; }
}

@media (max-width: 991px) {
  :root {
    --container-width: 720px;
  }
  
  section {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .tech-line-y-left, .tech-line-y-right {
    display: none;
  }

  .grid-2-col {
    grid-template-columns: 1fr;
  }
  
  .gap-xl {
    gap: 4rem;
  }
  
  .main-header { height: 90px; }
  .hero-section { padding-top: 110px; }
  .hero-title { font-size: 3rem; }
  .hero-desc { font-size: 1.1rem; margin-bottom: 2.5rem; }
  
  .details-info-col {
    padding-right: 0;
  }
  
  .cta-card-simplified {
    padding: 3rem;
  }

  .footer-layout-simple {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand-side {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-meta-side {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --container-width: 100%;
  }

  .container {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .main-header { height: 80px; }
  .main-header.scrolled { height: 70px; }
  .logo-wrapper { width: 60px; }
  .launch-badge-muted { display: none; }

  .hero-section {
    padding-top: 100px;
    align-items: flex-start;
  }
  
  .hero-content {
    margin-top: 2rem;
  }

  .hero-content .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
  }

  .hero-title { font-size: 2.25rem; margin-bottom: 1.5rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 2.5rem; }

  .hero-countdown {
    padding-top: 1.5rem;
  }

  .countdown-timer-mini {
    gap: 0.5rem;
    width: 100%;
  }

  .time-block {
    min-width: 60px;
  }

  .time-num {
    font-size: 2.25rem;
  }

  .time-label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .time-sep {
    font-size: 1.5rem;
    margin-top: -1rem;
  }

  .we-are-live-text {
    font-size: 2.25rem;
  }

  .section-title { font-size: 2rem; }
  
  .cta-card-simplified {
    padding: 2.5rem 1.5rem;
  }
  
  .cta-card-title {
    font-size: 1.75rem;
  }
}
