/* Geist Font */
@font-face {
  font-family: 'Geist';
  src: url('/css/geist/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/css/geist/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/css/geist/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/css/geist/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Login Form ---- */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
}

.login-box {
  text-align: center;
  max-width: 340px;
  width: 100%;
  padding: 0 24px;
}

.login-box h1 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.login-box p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 28px;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Geist', sans-serif;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.login-box input[type="password"]:focus {
  border-color: #f97316;
}

.login-box input[type="password"]::placeholder {
  color: #9ca3af;
}

.login-box button {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  color: #ffffff;
  background: #f97316;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: -0.01em;
}

.login-box button:hover {
  background: #ea580c;
}

.login-box .error {
  color: #ef4444;
  font-size: 13px;
  margin-top: 12px;
  display: none;
}

/* ---- Reveal.js Theme ---- */
.reveal-viewport {
  background: #ffffff;
}

.reveal {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: #171717;
  -webkit-font-smoothing: antialiased;
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  color: #000000;
  text-transform: none;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.4em;
}

.reveal h1 {
  font-size: 2.2em;
}

.reveal h2 {
  font-size: 1.8em;
}

.reveal h3 {
  font-size: 1em;
  font-weight: 600;
  color: #525252;
  letter-spacing: -0.02em;
}

.reveal p {
  line-height: 1.4;
  margin-bottom: 0.4em;
  color: #404040;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.reveal ul, .reveal ol {
  display: inline-block;
  margin-left: 0;
  text-align: left;
  list-style: none;
  padding: 0;
  max-width: 960px;
}

.reveal li {
  margin-bottom: 0.35em;
  line-height: 1.3;
  color: #404040;
  padding-left: 1.2em;
  position: relative;
}

.reveal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  background: #f97316;
  border-radius: 2px;
}

.reveal strong {
  font-weight: 700;
  color: #000000;
}

.reveal em {
  color: #737373;
  font-style: normal;
}

.reveal a {
  color: #000000;
  text-decoration: underline;
  text-decoration-color: #f97316;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.reveal blockquote {
  background: transparent;
  border-left: 4px solid #f97316;
  padding: 8px 16px;
  margin: 16px auto;
  font-style: normal;
  font-size: 0.75em;
  font-weight: 500;
  color: #737373;
  width: auto;
  max-width: 700px;
  box-sizing: border-box;
  text-align: left;
}

.reveal code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8em;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
  color: #000000;
}

.reveal pre {
  width: 90%;
  max-width: 960px;
  margin: 12px auto;
  font-size: 0.55em;
}

.reveal pre code {
  padding: 14px 18px;
  line-height: 1.5;
  background: #0a0a0a;
  color: #e5e5e5;
  border-radius: 8px;
  display: block;
  overflow-x: auto;
}

/* ---- Section numbers ---- */
.reveal .section-number {
  font-size: 0.5em;
  font-weight: 700;
  color: #f97316;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2em;
  display: block;
}

/* ---- Orange accent bar for section titles ---- */
.reveal hr {
  border: none;
  height: 3px;
  background: #f97316;
  width: 50px;
  margin: 0 auto 0.8em auto;
}

/* ---- Tables ---- */
.reveal table {
  border-collapse: collapse;
  width: auto;
  max-width: 95%;
  margin: 10px auto;
  font-size: 0.55em;
}

.reveal table th {
  background: #18181b;
  color: #ffffff;
  font-weight: 600;
  padding: 7px 12px;
  text-align: left;
  letter-spacing: -0.01em;
}

.reveal table td {
  padding: 5px 12px;
  border-bottom: 1px solid #e5e5e5;
  text-align: left;
  color: #404040;
}

.reveal table tr:nth-child(even) td {
  background: #fafafa;
}

/* ---- Images & SVGs ---- */
.reveal img, .reveal svg {
  max-width: 95%;
  max-height: 65vh;
  margin: 10px auto;
  display: block;
  border: none;
  box-shadow: none;
}

/* ---- Controls ---- */
.reveal .controls {
  color: #d4d4d4;
}

/* ---- Footer Branding ---- */
#apek-footer {
  position: fixed;
  top: 14px;
  right: 20px;
  font-family: 'Geist', sans-serif;
  font-size: 10px;
  color: #d4d4d4;
  z-index: 100;
  letter-spacing: 0.04em;
}

#apek-footer a {
  color: #d4d4d4;
  text-decoration: none;
}

#apek-footer a:hover {
  color: #a3a3a3;
}

/* ---- Slide spacing ---- */
.reveal section {
  padding: 10px 0;
}

/* ---- Keyword pill ---- */
.reveal .pill {
  display: inline-block;
  background: #f97316;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.55em;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ---- Large stat number ---- */
.reveal .stat {
  font-size: 2.6em;
  font-weight: 700;
  color: #000000;
  letter-spacing: -0.04em;
  line-height: 1;
}

.reveal .stat-label {
  font-size: 0.7em;
  color: #737373;
  font-weight: 400;
}

/* ---- Hero title slide ---- */
.reveal .hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.reveal .hero h1 {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.4em;
  text-wrap: balance;
}

.reveal .hero-pill {
  display: inline-block;
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  font-weight: 600;
  font-size: 0.45em;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.reveal .hero-sub {
  font-size: 0.65em;
  color: #a3a3a3;
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  text-wrap: balance;
}

/* ---- Gradient glow behind hero (pure CSS) ---- */
.reveal section[data-background-color="#000000"] {
  position: relative;
}

.reveal section[data-background-color="#000000"]::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.reveal .hero > * {
  position: relative;
  z-index: 1;
}

/* ---- Hero title slide (photo background) ---- */
.reveal .hero-photo {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.reveal .hero-photo h1 {
  font-size: 2.8em;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.4em;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.reveal .hero-photo .hero-pill {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.45em;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5em;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.reveal .hero-photo .hero-sub {
  font-size: 0.65em;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  text-wrap: balance;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.reveal .hero-photo .hero-sub strong {
  color: #ffffff;
}

/* ---- Two-column layout ---- */
.reveal .columns {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.reveal .columns .col {
  flex: 1;
  min-width: 0;
}

.reveal .columns .col-narrow {
  flex: 0 0 40%;
}

.reveal .columns .col-wide {
  flex: 0 0 58%;
}

/* ---- Three-column layout ---- */
.reveal .cols-3 {
  display: flex;
  gap: 24px;
  text-align: left;
  max-width: 1100px;
  margin: 0 auto;
}

.reveal .cols-3 > div {
  flex: 1;
  min-width: 0;
}

/* ---- Card / box ---- */
.reveal .card {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-align: left;
}

.reveal .card h4 {
  font-size: 0.85em;
  font-weight: 700;
  margin-bottom: 0.3em;
  color: #18181b;
}

.reveal .card p, .reveal .card li {
  font-size: 0.8em;
  margin-bottom: 0.2em;
}

/* ---- Diagram container (ASCII art) ---- */
.reveal .diagram {
  background: #0a0a0a;
  color: #a3e635;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.48em;
  line-height: 1.4;
  padding: 18px 24px;
  border-radius: 8px;
  text-align: left;
  white-space: pre;
  overflow-x: auto;
  max-width: 95%;
  margin: 10px auto;
}

/* ---- Flow / pipeline steps ---- */
.reveal .flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 16px auto;
  flex-wrap: wrap;
}

.reveal .flow-step {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.7em;
  font-weight: 600;
  color: #18181b;
  text-align: center;
}

.reveal .flow-arrow {
  font-size: 0.8em;
  color: #f97316;
  padding: 0 8px;
  font-weight: 700;
}

/* ---- Accent box / callout ---- */
.reveal .callout {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  padding: 10px 16px;
  margin: 12px auto;
  max-width: 800px;
  text-align: left;
  border-radius: 0 6px 6px 0;
}

.reveal .callout p {
  font-size: 0.8em;
  margin: 0;
  color: #78350f;
}

/* ---- Badge grid ---- */
.reveal .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 12px auto;
}

.reveal .badge {
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.65em;
  font-weight: 600;
  color: #18181b;
}

.reveal .badge-orange {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

/* ---- Print styles ---- */
@media print {
  .reveal table th {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
