:root {
  --navy: #1A365D; /* Less dark, more blue */
  --navy-light: #1E40AF;
  --orange: #FF6B35;
  --orange-glow: rgba(255, 107, 53, 0.4);
  --white: #F8F9FA;
  --text-muted: #A8B2D1;
  --glass-bg: rgba(17, 34, 64, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
}

.text-orange {
  color: var(--orange);
}

/* Nav */
header > nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(10, 25, 47, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0;
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
  box-shadow: 0 0 20px var(--orange-glow);
}

.btn-primary:hover {
  background: transparent;
  color: var(--orange);
  box-shadow: 0 0 30px var(--orange-glow);
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  padding-top: 5rem;
  background-image: linear-gradient(to right, rgba(26, 54, 93, 0.95) 30%, rgba(26, 54, 93, 0.65) 100%), url('assets/hacker-sq.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fadeUp 1s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  color: var(--orange);
  font-family: monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Video Section (Full width modern player) */
.video-section {
  position: relative;
  width: 100%;
  padding: 5% 5%;
  background: var(--navy);
  z-index: 2;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  background: var(--navy-light);
  transform: translateY(50px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-container.in-view {
  transform: translateY(0);
  opacity: 1;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 25, 47, 0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.video-container:hover .play-overlay {
  background: rgba(10, 25, 47, 0.2);
}

.video-container:hover .video-thumbnail {
  transform: scale(1.02);
}

.play-btn {
  width: 80px;
  height: 80px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--orange-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--navy);
  margin-left: 6px;
}

.video-container:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 50px var(--orange-glow);
}

/* Philosophy Section */
.philosophy {
  padding: 10% 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  margin-top: 4rem;
}

.card {
  background: var(--navy-light);
  padding: 2.5rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.3);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.card p {
  font-size: 1rem;
}

/* Contact Section */
.contact {
  padding: 10% 5%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact h2 {
  margin-bottom: 1.5rem;
}

.contact p {
  margin-bottom: 3rem;
  margin-left: auto;
  margin-right: auto;
}

.scheduler-container {
  width: 100%;
  max-width: 950px;
  background: var(--navy-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
}

.scheduler-container iframe {
  max-width: 100%;
  border: none;
  overflow: hidden;
}

/* Channel Videos & Shorts Section */
.videos-section {
  padding: 8% 5% 10%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.videos-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 3.5rem;
  width: 100%;
}

.videos-header p {
  margin: 0 auto;
}

.channel-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
}

.channel-link:hover {
  text-decoration: underline;
}

.channel-videos-grid {
  inline-size: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-block-end: 3rem;
  align-items: stretch;
}

.video-embed-card {
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  inline-size: 100%;
}

.video-embed-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.4);
}

.video-embed-card.video-embed-wide,
.video-embed-card.video-embed-short {
  grid-column: span 1;
  inline-size: 100%;
}

.channel-videos-grid > .video-embed-card:only-child {
  grid-column: 1 / -1;
  max-inline-size: 860px;
  justify-self: center;
}

.video-frame-wrapper {
  position: relative;
  inline-size: 100%;
  background: #0A192F;
  aspect-ratio: 16 / 9;
}

.video-frame-wrapper.short-ratio {
  aspect-ratio: 9 / 16;
  max-inline-size: 260px;
  margin-inline: auto;
}

.video-embed-card.video-embed-short {
  background: linear-gradient(to bottom, #0A192F 0%, var(--navy-light) 100%);
}

.video-frame-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-meta {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.video-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.video-badge {
  align-self: flex-start;
  font-family: monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.15);
  border: 1px solid rgba(255, 107, 53, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.video-duration-tag {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-card-meta h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--white);
}

.video-card-title-link {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-card-title-link:hover {
  color: var(--orange);
}

.video-card-summary {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 0.5rem;
}

.video-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  text-decoration: none;
  padding-top: 0.35rem;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.video-card-link:hover {
  gap: 0.65rem;
  text-decoration: underline;
}

.videos-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dedicated Video Watch Page */
.video-page-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 7.5rem 5% 5rem;
}

.breadcrumb {
  position: static;
  width: auto;
  padding: 0;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--orange);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.video-page-article {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.video-player-stage {
  width: 100%;
  background: #0A192F;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.video-player-stage.stage-short {
  max-width: 400px;
  margin: 0 auto;
}

.video-page-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.video-page-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-page-header h1 {
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 0;
}

.ai-summary-card {
  background: var(--navy-light);
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy);
  background: var(--orange);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.ai-summary-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: var(--white);
}

.ai-summary-card p {
  max-width: 100%;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--white);
  opacity: 0.92;
}

.ai-summary-card h3 {
  font-size: 1.15rem;
  color: var(--orange);
  margin-top: 0.25rem;
}

.key-takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0;
}

.key-takeaways-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.key-takeaways-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 800;
}

.key-takeaways-list li strong {
  color: var(--white);
}

.bottom-line-box {
  background: rgba(10, 25, 47, 0.55);
  border-left: 3px solid var(--orange);
  padding: 1.1rem 1.35rem;
  border-radius: 0 8px 8px 0;
}

.bottom-line-box p {
  font-size: 0.98rem;
  margin: 0;
  color: var(--text-muted);
}

.bottom-line-box strong {
  color: var(--white);
}

.transcript-disclosure {
  background: rgba(10, 25, 47, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
}

.transcript-disclosure summary {
  cursor: pointer;
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  user-select: none;
}

.transcript-disclosure[open] summary {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.transcript-disclosure p {
  max-width: 100%;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.video-cta-banner {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.8), rgba(10, 25, 47, 0.9));
  border: 1px solid rgba(255, 107, 53, 0.35);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-cta-banner h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.25rem;
}

.video-cta-banner p {
  margin: 0 auto 0.75rem;
}

.related-videos-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.related-videos-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 2rem;
  text-align: center;
}

.related-videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.related-video-card {
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.related-video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 53, 0.45);
}

.related-video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0A192F;
}

.related-video-info {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.related-video-info h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--white);
}

.related-video-info p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.version-tag {
  opacity: 0.6;
  margin-left: 0.5rem;
}

/* Footer */
footer {
  padding: 4rem 5%;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
  font-family: monospace;
}

footer p {
  margin: 0 auto;
}

/* Animations */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header > nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }

  .cta-group {
    flex-direction: column;
  }

  .channel-videos-grid {
    grid-template-columns: 1fr;
  }
}
