/* ============================================================
   CIGWELD PRESENTATION DECK: GLOBAL DESIGN SYSTEM
   ============================================================
   Shared variables, reset, base layout, typography, auth,
   footer navigation, and animation primitives.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Cabin:wght@400;500;600;700&display=swap');

:root {
  --blue: #1793CF;
  --blue-dark: #0E6B9C;
  --blue-deeper: #0A4F73;
  --yellow: #FEE800;
  --yellow-muted: #D4C200;
  --dark: #0D1117;
  --dark-card: #161B22;
  --dark-border: #21262D;
  --dark-surface: #1C2128;
  --text-primary: #E6EDF3;
  --text-secondary: #8B949E;
  --text-muted: #6E7681;
  --green: #3FB950;
  --red: #F85149;
  --amber: #D29922;
  --white: #FFFFFF;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Cabin', sans-serif;
  --footer-h: 56px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-display); cursor: pointer; border: none; outline: none; }
ul, ol { list-style: none; }
a { color: var(--blue); text-decoration: none; }

/* ============================================================
   AUTH GATE
   ============================================================ */
.auth-overlay {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.auth-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.auth-bg-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.06;
}

.auth-card {
  position: relative; z-index: 1;
  width: 90%; max-width: 380px;
  text-align: center;
  padding: 48px 32px;
}

.auth-card__logo { width: 180px; margin: 0 auto 32px; }

.auth-card__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.auth-card__input-group { margin-bottom: 16px; }

.auth-card__input {
  width: 100%; padding: 14px 20px;
  background: #F6F8FA;
  border: 1px solid #D0D7DE;
  border-radius: 6px;
  color: #24292F;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-card__input::placeholder { color: #8B949E; }
.auth-card__input:focus { border-color: var(--blue); }
.auth-card__input.error { border-color: var(--red); animation: shake 0.4s ease; }

.auth-card__error { color: var(--red); font-size: 0.8rem; margin-top: 8px; min-height: 18px; }

.auth-card__btn {
  width: 100%; padding: 14px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  transition: all 0.2s;
}
.auth-card__btn:hover { background: var(--blue-dark); }

.auth-card__footer { margin-top: 48px; opacity: 0.4; }
.auth-card__footer img { height: 22px; margin: 0 auto; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   PRESENTATION SHELL
   ============================================================ */
.presentation {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.presentation.visible { opacity: 1; }

/* ============================================================
   SLIDES: Base
   ============================================================ */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px calc(20px + var(--footer-h));
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

.slide.exiting {
  opacity: 0;
  transform: translateX(-40px);
  z-index: 1;
}

.slide__inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.slide__bg-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide__bg-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,17,23,0.7) 0%, rgba(13,17,23,0.85) 100%);
}

/* ============================================================
   SLIDE VARIANTS
   ============================================================ */
.slide--blue {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 100%);
}
.slide--blue h2, .slide--blue h4, .slide--blue p { color: var(--white); }

.slide--dark { background: var(--dark); }
.slide--dark h2, .slide--dark h4 { color: var(--text-primary); }

.slide--light { background: #FAFBFC; }
.slide--light h2, .slide--light h3, .slide--light h4 { color: #0D1117; }
.slide--light p { color: #57606A; }

.slide--gray { background: #F0F2F5; }
.slide--gray h2, .slide--gray h3, .slide--gray h4 { color: #0D1117; }
.slide--gray p { color: #57606A; }

.slide--content-heavy {
  align-items: flex-start;
  padding-top: 72px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.15;
}

h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.kicker {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 12px;
}
.kicker--light { color: var(--yellow); }
.kicker--large { font-size: 1rem; letter-spacing: 0.25em; margin-bottom: 8px; }

.intent {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 24px;
}

/* ============================================================
   INVESTMENT PILL
   ============================================================ */
.investment-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  background: rgba(23,147,207,0.12);
  color: var(--blue);
  border: 1px solid rgba(23,147,207,0.2);
}
.investment-pill--premium {
  background: rgba(254,232,0,0.1);
  color: var(--yellow);
  border-color: rgba(254,232,0,0.2);
}

/* ============================================================
   FOOTER NAVIGATION
   ============================================================ */
.presentation-footer {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  height: var(--footer-h);
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 1000;
  border-top: 1px solid rgba(255,255,255,0.06);
  transform: translateY(100%);
  transition: transform 0.3s;
}
.presentation-footer.visible { transform: translateY(0); }

.footer-logo {
  height: 18px;
  width: auto;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.footer-logo:hover { opacity: 0.7; }

.progress-dots { display: flex; align-items: center; gap: 8px; }
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.progress-dot:hover { background: rgba(255,255,255,0.3); }
.progress-dot.active {
  background: var(--blue);
  transform: scale(1.4);
  box-shadow: 0 0 6px rgba(23,147,207,0.4);
}

.nav-controls { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.15s;
}
.nav-btn svg { width: 14px; height: 14px; }
.nav-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }

.nav-counter {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  min-width: 36px;
  text-align: center;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-fade-up.visible { opacity: 1; transform: translateY(0); }

.anim-fade-in { opacity: 0; transition: opacity 0.7s ease; }
.anim-fade-in.visible { opacity: 1; }

.anim-scale-in {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.anim-scale-in.visible { opacity: 1; transform: scale(1); }

.anim-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.anim-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.anim-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.anim-stagger > *:nth-child(5) { transition-delay: 0.25s; }

/* ============================================================
   RESPONSIVE: Global
   ============================================================ */
@media (max-width: 768px) {
  .slide { padding: 32px 24px calc(16px + var(--footer-h)); }
  .slide--content-heavy { padding-top: 56px; }
  .presentation-footer { padding: 0 16px; }
  .nav-counter { display: none; }
  body { overflow: hidden; }
}

@media (max-width: 480px) {
  .auth-card { padding: 32px 20px; }
  .auth-card__logo { width: 140px; }
}
