/* ============================================
   NISSAN GT-R — INDEX / PAGE COMPONENTS
============================================ */

/* ─── Page Wrapper ─── */
.page { min-height: 100vh; padding-top: 72px; }

/* ─── Section Base ─── */
.section {
  padding: 100px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: 4px;
  line-height: 0.9;
  color: var(--text);
}

.section-title em {
  color: var(--red);
  font-style: normal;
}

/* ─── Hero Base ─── */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  transform: scale(1.05);
  animation: heroScale 12s ease-out forwards;
}

@keyframes heroScale {
  to { transform: scale(1); filter: brightness(0.38); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
   rgba(5,6,8,0.7) 0%,
    transparent 50%,
     rgba(5,6,8,0.5) 100%
     );
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(to top, var(--dark), transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 100px;
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 6px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s var(--trans) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 11vw, 10rem);
  letter-spacing: 6px;
  line-height: 0.88;
  color: var(--text);
  opacity: 0;
  animation: fadeUp 0.9s var(--trans) 0.5s forwards;
}

.hero-title span { color: var(--red); display: block; }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--silver);
  margin-top: 24px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.9s var(--trans) 0.7s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 14px 36px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--trans);
  opacity: 0;
  animation: fadeUp 0.9s var(--trans) 0.9s forwards;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transform: translateX(-110%);
  transition: transform 0.4s var(--trans);
}

.hero-cta:hover::before { transform: translateX(0); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232,0,29,0.4); }

.hero-stats {
  position: absolute;
  right: 80px;
  bottom: 100px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  animation: fadeLeft 0.9s var(--trans) 1.1s forwards;
}

.hero-stat {
  text-align: right;
  border-right: 2px solid var(--red);
  padding-right: 20px;
}

.hero-stat .num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  letter-spacing: 3px;
  color: var(--text);
  line-height: 1;
}

.hero-stat .unit {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 4px;
  color: var(--red);
  text-transform: uppercase;
}

/* ─── Animated Text Ticker Band ─── */
.band {
  background: var(--red);
  padding: 22px 80px;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  white-space: nowrap;
}

.band-inner {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 8px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ─── Cards Grid ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 60px;
}

.card {
  background: var(--dark-3);
  padding: 40px 36px;
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--trans);
   display: flex;
  flex-direction: column;
  height: 100%;
}

.card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.5s var(--trans);
}

.card:hover::before { width: 100%; }
.card:hover { background: var(--dark-4); transform: translateY(-4px); }

.card-num {
  font-family: var(--font-head);
  font-size: 4rem;
  color: rgba(232,0,29,0.12);
  line-height: 1;
  margin-bottom: 16px;
}

.card:hover .card-num { color: rgba(232,0,29,0.3); }

.card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 12px;
}

.card-text { font-size: 0.95rem; color: var(--text-dim);  line-height: 1.7;  }

/* ─── Divider ─── */
.divider { border: none;
   border-top: 1px solid rgba(255,255,255,0.05);
    margin: 0 80px; 
  }

/* ─── Spec Table  ─── */
.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 32px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.03);
  transition: background 0.3s;
}
.spec-row:hover { background: var(--dark-4); }

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}
.spec-val {
  font-family: var(--font-head);
  font-size: 1.32rem;
  letter-spacing: 2px;
  color: var(--text);
}

.spec-val.highlight {
  color: var(--red);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.compare-card {
  padding: 48px 36px;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: all 0.4s var(--trans);
}

.compare-card.featured {
  background: var(--dark-4);
  border-color: var(--red);
}

.compare-card.featured::before {
  content: 'FLAGSHIP';
  position: absolute;
  top: 0; right: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  padding: 6px 12px;
}

.compare-model {
  font-family: var(--font-head);
  font-size: 2.5rem;
  letter-spacing: 4px;
  color: var(--text);
  margin-bottom: 8px;
}

.compare-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.compare-spec {
  margin-bottom: 18px;
}

.compare-spec .label {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.compare-spec .value {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--text);
}

.compare-card.featured .compare-spec .value { color: var(--red); }

.accent-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.accent-bar::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  background: var(--red);
}

.accent-bar-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.timeline {
  position: relative;
  margin-top: 70px;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), transparent);
}

.tl-item {
  position: relative;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 0.7s var(--trans) forwards;
}

.tl-item:nth-child(1) { animation-delay: 0.1s; }
.tl-item:nth-child(2) { animation-delay: 0.25s; }
.tl-item:nth-child(3) { animation-delay: 0.4s; }
.tl-item:nth-child(4) { animation-delay: 0.55s; }
.tl-item:nth-child(5) { animation-delay: 0.7s; }
.tl-item:nth-child(6) { animation-delay: 0.85s; }

.tl-dot {
  position: absolute;
  left: -54px;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid var(--red);
  box-shadow: 0 0 12px rgba(232,0,29,0.5);
}

.tl-year {
  font-family: var(--font-head);
  font-size: 2rem;
  letter-spacing: 4px;
  color: var(--red);
  margin-bottom: 6px;
}

.tl-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 8px;
}

.tl-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  max-width: 620px;
  line-height: 1.7;
}

.GTR {
  width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px; 
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); 
  border: 1px solid rgba(255, 255, 255, 0.1); 
  background-color: #111; 
}

.GTR img {
  width: 100%;
  height: 850px; 
  object-fit: cover; 
  object-position: center 60%; 
  display: block;
  filter: brightness(0.6) contrast(1.05); 
  transition: transform 0.5s ease, filter 0.5s ease; 
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  text-align: left;
  width: auto;
  max-width: 60%;
  z-index: 10;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}


@media (max-width: 768px) {
  .spec-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 0 24px 60px; }
  .hero-stats { position: relative; right: auto; bottom: auto; padding: 0 24px 40px; flex-direction: row; }
}
