/* --- ROOT & GLOBAL RESETS --- */
:root {
  --cng-green: #4db848;
  --apple-black: #1d1d1f;
  --text-gray: #86868b;
  --border-light: #f5f5f7;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white);
  color: var(--apple-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- PRELOADER --- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-text {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.03em;
}

/* --- SCROLL ANIMATION SECTION --- */
#scroll-section {
  height: 450vh; /* Smooth duration for 109 frames */
  position: relative;
}

.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--white);
}

#hero-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* --- SCROLL HINT CTA --- */
#scroll-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-text {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--apple-black);
  margin-bottom: 40px;
}

.scroll-indicator {
  height: 120px;
  width: 1.5px;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--apple-black);
  animation: scroll-line-anim 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scroll-line-anim {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

.hint-hidden {
  opacity: 0;
  transform: translate(-50%, -60%) scale(0.95);
}

/* --- TECHNICAL CONTENT SECTION --- */
#content {
  background: var(--white);
  padding: 160px 0;
  position: relative;
  z-index: 2;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Feature Header Art */
.section-tagline {
  color: var(--cng-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.giant-headline {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--apple-black);
  margin-bottom: 80px;
}

.description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 150px;
}

.description-grid p {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text-gray);
  font-weight: 400;
}

/* --- SPECIFICATIONS TABLE ART --- */
.table-headline {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 40px;
  letter-spacing: -0.02em;
}

.green-text { 
  color: var(--cng-green); 
}

.table-art-wrapper {
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.04);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-bottom: 20px;
}

.cng-table {
  width: 100%;
  border-collapse: collapse;
}

.cng-table thead {
  background: var(--apple-black);
  color: var(--white);
}

.cng-table th {
  padding: 24px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
}

.cng-table td {
  padding: 24px;
  font-size: 16px;
  border: 1px solid var(--border-light);
  color: var(--apple-black);
  text-align: center;
}

.cng-table tbody tr:nth-child(even) {
  background-color: #fbfbfd;
}

.table-footnote {
  font-size: 14px;
  color: var(--text-gray);
  font-style: italic;
  text-align: center;
  margin-top: 20px;
}

/* --- PREMIUM DOWNLOAD CTA --- */
.download-hero {
  margin-top: 150px;
  background: #fbfbfd;
  border-radius: 40px;
  padding: 100px 40px;
  text-align: center;
}

.download-hero h3 {
  font-size: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.download-hero p {
  font-size: 21px;
  color: var(--text-gray);
  margin-bottom: 40px;
}

.premium-btn {
  display: inline-flex;
  align-items: center;
  background: var(--apple-black);
  color: var(--white);
  padding: 20px 40px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-btn:hover {
  transform: scale(1.05);
  background: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.btn-icon {
  margin-left: 15px;
  background: var(--cng-green);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* --- FOOTER --- */
footer {
  padding: 60px 20px;
  text-align: center;
  background: #f5f5f7;
  border-top: 1px solid var(--border-light);
  color: var(--text-gray);
  font-size: 14px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .description-grid {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  #content {
    padding: 80px 0;
  }
  
  .giant-headline {
    margin-bottom: 40px;
  }

  .description-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 80px;
  }

  .table-art-wrapper {
    overflow-x: auto; /* Allow horizontal scroll for table on mobile */
  }

  .cng-table th, .cng-table td {
    padding: 15px 10px;
    font-size: 13px;
  }

  .download-hero {
    margin-top: 80px;
    padding: 60px 20px;
  }

  .download-hero h3 {
    font-size: 32px;
  }
}