/* ============================================================
   Tesla Ad Campaign Showcase — Jaswant Singh
   style.css
   ============================================================ */

/* ── RESET & BASE ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:        #000000;
  --near-black:   #0a0a0a;
  --dark:         #111111;
  --card:         #161616;
  --border:       #2a2a2a;
  --border-light: #333333;
  --white:        #ffffff;
  --off-white:    #f0f0f0;
  --grey:         #888888;
  --grey-light:   #b0b0b0;
  --red:          #E82127;
  --red-dim:      rgba(232, 33, 39, 0.15);
  --font:         'Inter', -apple-system, sans-serif;
  --mono:         'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── NAVIGATION ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--white);
}

.nav-logo span {
  color: var(--red);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--grey);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.nav-back:hover {
  color: var(--white);
}

.nav-back svg {
  transition: transform 0.2s;
}

.nav-back:hover svg {
  transform: translateX(-3px);
}

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(232, 33, 39, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(232, 33, 39, 0.3);
  border-radius: 2px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.hero-title .accent {
  color: var(--red);
}

.hero-sub-title {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--grey-light);
  letter-spacing: 0.02em;
  margin-bottom: 1.75rem;
  font-style: italic;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--grey);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.meta-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--off-white);
}

.meta-divider {
  width: 1px;
  height: 2rem;
  background: var(--border-light);
}

/* ── SCROLL INDICATOR ────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  animation: float 3s ease-in-out infinite;
}

.scroll-hint span {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-light), transparent);
}

/* ── SECTIONS ────────────────────────────────────────────────── */
section {
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--grey);
  max-width: 500px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}

/* ── CONCEPT STRIP ───────────────────────────────────────────── */
.concept-strip {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.concept-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.concept-text h2 em {
  font-style: italic;
  color: var(--red);
}

.concept-text p {
  font-size: 1rem;
  color: var(--grey);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.concept-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-number span {
  color: var(--red);
}

.stat-desc {
  font-size: 0.8rem;
  color: var(--grey);
  line-height: 1.4;
}

/* ── PRINT ADS ───────────────────────────────────────────────── */
.print-section {
  padding: 7rem 0;
}

.print-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  margin-top: 3.5rem;
  align-items: start;
}

/* ── AD CARDS (shared) ───────────────────────────────────────── */
.ad-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.ad-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.ad-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--off-white);
}

.ad-card-spec {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--grey);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.ad-card-spec.print-badge {
  color: var(--red);
  background: var(--red-dim);
}

.ad-display {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
}

.ad-display.paper-bg {
  background: #f5f5f5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.ad-display img {
  max-width: 100%;
  height: auto;
  display: block;
}

.ad-display.fullpage-display img {
  max-height: 520px;
  width: auto;
}

.ad-display.onethird-display img {
  max-width: 260px;
  width: 100%;
}

.ad-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── TOOL BADGES ─────────────────────────────────────────────── */
.tool-badge {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--grey-light);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.tool-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

/* ── DIGITAL ADS ─────────────────────────────────────────────── */
.digital-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

/* Browser mock — leaderboard context */
.browser-mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
  transition: border-color 0.3s;
}

.browser-mock:hover {
  border-color: var(--border-light);
}

.browser-bar {
  background: #1a1a1a;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
}

.browser-dots {
  display: flex;
  gap: 0.4rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot--red    { background: #ff5f57; }
.browser-dot--yellow { background: #febc2e; }
.browser-dot--green  { background: #28c840; }

.browser-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.3rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.02em;
}

.browser-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.leaderboard-demo {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.leaderboard-placement-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  align-self: flex-start;
}

.leaderboard-wrapper {
  width: 100%;
  max-width: 728px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--border);
}

.leaderboard-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.leaderboard-footer {
  border-top: none;
  padding: 0;
  margin-top: 0.25rem;
}

/* Digital small ad grid */
.digital-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}

.digital-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.digital-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}

/* Skyscraper — image left, info right */
.skyscraper-card .digital-card-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.skyscraper-img-wrap {
  flex-shrink: 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
}

.skyscraper-img-wrap img {
  width: 80px;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.digital-card-info {
  padding: 1.5rem;
  flex: 1;
}

.digital-card-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 0.35rem;
}

.digital-card-info .spec-line {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--grey);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.digital-card-info p {
  font-size: 0.82rem;
  color: var(--grey);
  line-height: 1.65;
}

.digital-card-info .badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Rectangle — image top, info bottom */
.rectangle-card .digital-card-inner {
  display: flex;
  flex-direction: column;
}

.rectangle-img-wrap {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
}

.rectangle-img-wrap img {
  max-width: 180px;
  height: auto;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.rectangle-card .digital-card-info {
  padding: 1.25rem 1.5rem;
}

/* ── PROCESS SECTION ─────────────────────────────────────────── */
.process-section {
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.process-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.process-card:hover {
  border-color: var(--border-light);
}

.process-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.process-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.process-card p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.7;
}

/* ── TOOLS SECTION ───────────────────────────────────────────── */
.tools-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--near-black);
}

.tools-section .section-title {
  font-size: 1.6rem;
}

.tools-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.tool-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--off-white);
  transition: border-color 0.2s, background 0.2s;
}

.tool-pill:hover {
  border-color: var(--border-light);
  background: #1f1f1f;
}

.tool-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-icon--ai { background: #FF6B00; color: #fff; }
.tool-icon--ps { background: #001E36; color: #31A8FF; border: 1px solid rgba(49, 168, 255, 0.2); }

/* ── CTA SECTION ─────────────────────────────────────────────── */
.cta-section {
  padding: 7rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1rem;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: #c71a1f;
  border-color: #c71a1f;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* ── SEPARATOR ───────────────────────────────────────────────── */
.sep {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
  margin: 0 2rem;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.82rem;
  color: var(--grey);
}

.footer-left strong {
  color: var(--off-white);
  font-weight: 600;
}

.footer-left a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-left a:hover {
  color: var(--white);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-link {
  font-size: 0.82rem;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--white);
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .concept-grid { grid-template-columns: 1fr; gap: 3rem; }
  .print-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .digital-small-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-meta { gap: 1rem; }
  .meta-divider { display: none; }
  .section-inner { padding: 0 1.25rem; }
  .footer { padding: 1.5rem; flex-direction: column; text-align: center; }
}
