:root {
  --amber: #FF9900;
  --amber-dim: rgba(255, 153, 0, 0.7);
  --amber-glow: rgba(255, 153, 0, 0.25);
  --ember: #FF6A3D;
  --electric: #36C5F0;
  --surface-0: #0A0C10;
  --surface-1: #12151C;
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-3: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 153, 0, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-mid: rgba(255, 255, 255, 0.75);
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Noto Sans TC', sans-serif;
  background: var(--surface-0);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgb(from var(--amber) r g b / 0.3); color: #fff; }

/* ===== BACKGROUND ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgb(from var(--amber) r g b / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(from var(--amber) r g b / 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
}
.bg-radial {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 60% 0%, rgb(from var(--amber) r g b / 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgb(from var(--electric) r g b / 0.04) 0%, transparent 50%);
}
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.04'/%3E%3C/svg%3E");
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--ember));
  z-index: 200;
  width: 0%;
  transition: width 0.1s;
}

/* ===== CONTAINER ===== */
.container { position: relative; z-index: 1; }
section {
  padding: 100px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: rgba(10, 12, 16, 0.8);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s;
}
.navbar.scrolled { padding: 10px 28px; background: rgba(10, 12, 16, 0.95); border-bottom-color: var(--border); }
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-left img { height: 28px; filter: invert(1) brightness(2); }
.aws-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgb(from var(--amber) r g b / 0.1);
  border: 1px solid var(--amber-glow);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.aws-pill svg { width: 14px; height: 14px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--amber);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  border: none;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--amber-glow); }
.nav-links {
  display: flex;
  gap: 24px;
  padding: 6px 28px;
  width: 100%;
  background: rgba(10, 12, 16, 0.9);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled .nav-links {
  max-height: 40px;
  padding: 8px 28px;
}
@media (min-width: 768px) {
  .nav-expanded .nav-links {
    max-height: 40px;
    padding: 8px 28px;
  }
}
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgb(from var(--amber) r g b / 0.08);
  border: 1px solid rgb(from var(--amber) r g b / 0.2);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: chipPulse 3s ease-in-out infinite;
}
@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 20px rgb(from var(--amber) r g b / 0.1); }
}
.hero-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: dotBlink 2s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--amber) 0%, var(--ember) 50%, var(--electric) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.6;
}
.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-dim);
  max-width: 620px;
  margin: 16px auto 40px;
  font-weight: 400;
}
.hero-sub strong { color: var(--amber); font-weight: 600; }

/* Hero 3D */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 24px auto 40px;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(10, 12, 16, 0.95), rgba(18, 21, 28, 0.95));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgb(from var(--amber) r g b / 0.04);
}
#heroCanvas { width: 100%; height: 100%; display: block; }

.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.tech-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.tech-logo-row img {
  width: 36px;
  height: 36px;
  opacity: 0.7;
  transition: opacity 0.3s, transform 0.3s;
  filter: grayscale(0.2);
}
.tech-logo-row img:hover {
  opacity: 1;
  transform: scale(1.15);
  filter: grayscale(0);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--amber);
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.6s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 32px var(--amber-glow); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--amber); background: rgb(from var(--amber) r g b / 0.05); transform: translateY(-2px); }

/* ===== SEMINAR BANNER ===== */
.seminar-banner {
  text-align: center;
  padding: 40px 24px;
  margin: -40px auto 0;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}
.seminar-inner {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 20px 36px;
  background: linear-gradient(135deg, rgb(from var(--electric) r g b / 0.08), rgb(from var(--amber) r g b / 0.08));
  border: 1px solid rgba(54, 197, 240, 0.2);
  border-radius: var(--radius);
  flex-wrap: wrap;
  justify-content: center;
}
.seminar-inner .label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--electric);
}
.seminar-inner .info { font-size: 15px; color: var(--text-mid); }
.seminar-inner .info strong { color: var(--text); }

/* ===== SECTION HEADERS ===== */
.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.section-desc { font-size: 16px; color: var(--text-dim); max-width: 600px; margin: 0 auto; }

/* ===== STATS ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 0 auto;
  max-width: 900px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.stat-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--surface-2);
  transition: background 0.3s;
}
.stat-item:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat-item:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stat-item:hover { background: var(--surface-3); }
.stat-num {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--amber);
  line-height: 1;
  font-family: 'JetBrains Mono', 'DM Sans', monospace;
}
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 6px; letter-spacing: 0.5px; }
@media (max-width: 600px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:first-child { border-radius: var(--radius) 0 0 0; }
  .stat-item:last-child { border-radius: 0 0 var(--radius) 0; }
  .stat-item:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .stat-item:nth-child(3) { border-radius: 0 0 0 var(--radius); }
}

/* ===== WHY THIS WORKSHOP / GRID CARDS ===== */
.why-section { text-align: center; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.why-card {
  background: var(--surface-2);
  padding: 40px 28px;
  text-align: left;
  transition: all 0.3s;
  position: relative;
}
.why-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.why-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.why-card:hover { background: var(--surface-3); }
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.why-card:hover::before { opacity: 1; }
.why-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgb(from var(--amber) r g b / 0.08);
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  font-size: 22px;
  margin-bottom: 20px;
}
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
@media (max-width: 768px) {
  .why-grid, .why-grid[style] { grid-template-columns: 1fr !important; }
  .why-card, .why-card:first-child, .why-card:last-child { border-radius: 0; }
  .why-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .why-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== WHY KIRO ===== */
.why-kiro { text-align: center; }
.why-kiro-card {
  max-width: 800px;
  margin: 48px auto 0;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: left;
  transition: all 0.3s;
}
.why-kiro-card:hover { border-color: var(--border); }
.why-kiro-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 16px; color: var(--amber); }
.why-kiro-card p { font-size: 15px; color: var(--text-dim); line-height: 1.85; margin-bottom: 16px; }
.why-kiro-card p:last-child { margin-bottom: 0; }
.why-kiro-card p strong { color: var(--text-mid); }
.why-kiro-card .kiro-highlight {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgb(from var(--amber) r g b / 0.06), rgb(from var(--amber) r g b / 0.02));
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.6;
}
.why-kiro-video {
  max-width: 800px;
  margin: 32px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}
.why-kiro-video video {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}
.why-kiro-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}
.why-kiro-logo-row img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .why-kiro-card { padding: 28px 20px; }
}

/* ===== AUDIENCE ===== */
.audience { text-align: center; }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
}
.audience-card {
  background: var(--surface-2);
  padding: 40px 28px;
  text-align: left;
  transition: all 0.3s;
  position: relative;
}
.audience-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.audience-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.audience-card:hover { background: var(--surface-3); }
.audience-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.audience-card:hover::before { opacity: 1; }
.audience-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgb(from var(--amber) r g b / 0.08);
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  font-size: 22px;
  margin-bottom: 20px;
}
.audience-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.audience-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }
@media (max-width: 768px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-card, .audience-card:first-child, .audience-card:last-child { border-radius: 0; }
  .audience-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .audience-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== SHOWCASE ===== */
.showcase { text-align: center; }
.showcase-items { margin-top: 56px; }
.showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 2px;
  position: relative;
}
.showcase-item:nth-child(even) .showcase-text { order: 2; }
.showcase-item:nth-child(even) .showcase-media { order: 1; }
.showcase-text {
  background: var(--surface-2);
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  transition: background 0.3s;
}
.showcase-text:hover { background: var(--surface-3); }
.showcase-lesson-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 16px;
}
.showcase-lesson-tag .tag-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 5px;
  background: var(--border);
  border: 1px solid var(--amber-glow);
  font-size: 14px;
  font-weight: 800;
}
.showcase-text h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.showcase-text h3 .gradient-text {
  background: linear-gradient(135deg, var(--amber), var(--ember));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.showcase-text p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}
.showcase-text .showcase-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0.7;
  font-style: italic;
  line-height: 1.6;
}
.showcase-media {
  background: var(--surface-2);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}
.showcase-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgb(from var(--amber) r g b / 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.showcase-media img {
  max-width: 100%;
  max-height: 320px;
  cursor: zoom-in;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}
.showcase-media:hover img { transform: scale(1.03); }
.showcase-media-pair {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  justify-content: center;
}
.showcase-media-pair img {
  max-width: 46%;
  max-height: 280px;
}
.showcase-media-pair .arrow-between {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--amber-glow);
  color: var(--amber);
  font-size: 14px;
  z-index: 2;
}
.showcase-media-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.showcase-media-stack img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.showcase-item:first-child .showcase-text { border-radius: var(--radius) 0 0 0; }
.showcase-item:first-child .showcase-media { border-radius: 0 var(--radius) 0 0; }
.showcase-item:last-child .showcase-text { border-radius: 0 0 0 var(--radius); }
.showcase-item:last-child .showcase-media { border-radius: 0 0 var(--radius) 0; }
.showcase-item:first-child:nth-child(even) .showcase-media { border-radius: var(--radius) 0 0 0; }
.showcase-item:first-child:nth-child(even) .showcase-text { border-radius: 0 var(--radius) 0 0; }
.showcase-item:last-child:nth-child(even) .showcase-media { border-radius: 0 0 0 var(--radius); }
.showcase-item:last-child:nth-child(even) .showcase-text { border-radius: 0 0 var(--radius) 0; }
@media (max-width: 768px) {
  .showcase-item { grid-template-columns: 1fr; }
  .showcase-item:nth-child(even) .showcase-text { order: 1; }
  .showcase-item:nth-child(even) .showcase-media { order: 2; }
  .showcase-text { padding: 32px 20px; }
  .showcase-media { min-height: 220px; padding: 20px 16px; }
  .showcase-media-pair { flex-direction: column; }
  .showcase-media-pair img { max-width: 80%; }
  .showcase-media-pair .arrow-between { transform: rotate(90deg); }
  .showcase-item, .showcase-item:first-child .showcase-text, .showcase-item:first-child .showcase-media,
  .showcase-item:last-child .showcase-text, .showcase-item:last-child .showcase-media { border-radius: 0; }
  .showcase-items .showcase-item:first-child .showcase-text { border-radius: var(--radius) var(--radius) 0 0; }
  .showcase-items .showcase-item:last-child .showcase-media { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== COURSE OUTLINE ===== */
.outline { text-align: center; }
.outline-sessions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}
.session-card {
  background: var(--surface-2);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.session-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.session-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.session-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.session-card:nth-child(4) { border-radius: 0 0 var(--radius) 0; }
.session-card:hover { background: var(--surface-3); }
.session-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.session-card:hover::after { transform: scaleX(1); }
.session-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.session-num .idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--border);
  border: 1px solid var(--amber-glow);
  font-size: 14px;
  font-weight: 800;
  color: var(--amber);
}
.session-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.session-block { margin-bottom: 14px; }
.session-block-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.session-card ul { list-style: none; padding: 0; }
.session-card ul li {
  font-size: 14px;
  color: var(--text-mid);
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.5;
}
.session-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px; height: 6px;
  border-radius: 2px;
  background: rgb(from var(--amber) r g b / 0.4);
}
@media (max-width: 768px) {
  .outline-sessions { grid-template-columns: 1fr; }
  .session-card, .session-card:nth-child(1), .session-card:nth-child(2),
  .session-card:nth-child(3), .session-card:nth-child(4) { border-radius: 0; }
  .session-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .session-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* 5-lesson grid variant */
.outline-sessions.five-lessons .session-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.outline-sessions.five-lessons .session-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.outline-sessions.five-lessons .session-card:nth-child(3) { border-radius: 0; }
.outline-sessions.five-lessons .session-card:nth-child(4) { border-radius: 0; }
.outline-sessions.five-lessons .session-card:nth-child(5) { border-radius: 0 0 var(--radius) 0; }
.outline-sessions.five-lessons .session-card:last-child { border-radius: 0 0 var(--radius) 0; }
@media (max-width: 768px) {
  .outline-sessions.five-lessons .session-card,
  .outline-sessions.five-lessons .session-card:nth-child(1),
  .outline-sessions.five-lessons .session-card:nth-child(2),
  .outline-sessions.five-lessons .session-card:nth-child(3),
  .outline-sessions.five-lessons .session-card:nth-child(4),
  .outline-sessions.five-lessons .session-card:nth-child(5) { border-radius: 0; }
  .outline-sessions.five-lessons .session-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .outline-sessions.five-lessons .session-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== INSTRUCTOR ===== */
.instructor { text-align: center; }
.instructor-card {
  max-width: 740px;
  margin: 48px auto 0;
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
  transition: all 0.3s;
}
.instructor-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.instructor-photo {
  flex-shrink: 0;
  width: 130px; height: 130px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgb(from var(--amber) r g b / 0.2);
}
.instructor-info h3 { font-size: 21px; font-weight: 800; margin-bottom: 2px; }
.instructor-info .instructor-title { font-size: 14px; color: var(--amber); font-weight: 600; margin-bottom: 12px; }
.instructor-info p { font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.instructor-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.instructor-badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
  background: rgb(from var(--amber) r g b / 0.06);
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  color: var(--amber-dim);
  letter-spacing: 0.5px;
}
.instructor-badge.highlight { background: rgba(255, 106, 61, 0.08); border-color: rgba(255, 106, 61, 0.25); color: var(--ember); }
@media (max-width: 600px) {
  .instructor-card { flex-direction: column; text-align: center; padding: 28px 20px; }
  .instructor-badges { justify-content: center; }
}

/* ===== PRICING ===== */
.pricing { text-align: center; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  background: var(--surface-2);
  padding: 40px 28px;
  text-align: left;
  position: relative;
  transition: all 0.3s;
}
.price-card:nth-child(1) { border-radius: var(--radius) 0 0 var(--radius); }
.price-card:nth-child(3) { border-radius: 0 var(--radius) var(--radius) 0; }
.price-card:hover { background: var(--surface-3); }
.price-card.featured {
  background: linear-gradient(135deg, rgb(from var(--amber) r g b / 0.06), rgb(from var(--amber) r g b / 0.02));
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  border-radius: var(--radius);
  margin: -1px;
  z-index: 1;
}
.price-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.price-amount {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  color: var(--amber);
  font-family: 'JetBrains Mono', 'DM Sans', monospace;
  line-height: 1.2;
  margin-bottom: 4px;
}
.price-card .price-note { font-size: 14px; color: var(--text-dim); line-height: 1.6; }
.price-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgb(from var(--amber) r g b / 0.1);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  margin-top: 12px;
}
.price-tag.blue { background: rgba(54, 197, 240, 0.1); color: var(--electric); }
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card, .price-card:nth-child(1), .price-card:nth-child(2),
  .price-card:nth-child(3) { border-radius: 0; }
  .price-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .price-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== PRIVATE CLASS ===== */
.private-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 60px;
  position: relative;
  z-index: 1;
}
.private-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 24px;
}
.private-card {
  background: var(--surface-2);
  padding: 32px 28px;
  transition: all 0.3s;
}
.private-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.private-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.private-card:hover { background: var(--surface-3); }
.private-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.private-card .price-amount { font-size: 1.6rem; margin-bottom: 8px; }
.private-card p { font-size: 14px; color: var(--text-dim); }
@media (max-width: 600px) {
  .private-grid { grid-template-columns: 1fr; }
  .private-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .private-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== SCHEDULE ===== */
.schedule { text-align: center; }
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.schedule-card {
  background: var(--surface-2);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s;
}
.schedule-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.schedule-card:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.schedule-card:hover { background: var(--surface-3); }
.schedule-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.schedule-card .location { font-size: 14px; color: var(--amber); font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mtr-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mtr-dot.tsuen-wan { background: #E60012; box-shadow: 0 0 0 2px rgba(230, 0, 18, 0.2); }
.cohort-heading { margin-top: 56px; margin-bottom: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-mid); text-align: left; max-width: 800px; margin-left: auto; margin-right: auto; }
.cohort-heading:first-of-type { margin-top: 48px; }
.cohort-heading .cohort-num { color: var(--amber); font-family: 'JetBrains Mono', monospace; margin-right: 8px; }
.schedule-grid.cohort-grid { margin-top: 16px; }
.schedule-card .time { font-size: 14px; color: var(--text-mid); margin-bottom: 8px; font-family: 'JetBrains Mono', monospace; font-size: 14px; }
.schedule-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.schedule-date {
  padding: 6px 12px;
  background: rgb(from var(--amber) r g b / 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  font-family: 'JetBrains Mono', monospace;
}
@media (max-width: 600px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .schedule-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }
}

/* ===== AWS DISCOUNT BANNER ===== */
.aws-banner {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgb(from var(--amber) r g b / 0.06), rgb(from var(--ember) r g b / 0.04));
  border: 1px solid rgb(from var(--amber) r g b / 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.aws-banner-icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--border);
  font-size: 28px;
}
.aws-banner-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.aws-banner-content h4 span { color: var(--amber); }
.aws-banner-content p { font-size: 14px; color: var(--text-dim); }
.aws-banner-content p strong { color: var(--text-mid); }
@media (max-width: 600px) {
  .aws-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
}

/* ===== FINAL CTA ===== */
.final-cta {
  text-align: center;
  padding: 120px 24px;
  position: relative;
}
.final-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.final-cta p { color: var(--text-dim); font-size: 16px; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btn-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 48px;
  background: var(--amber);
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 17px;
  transition: all 0.3s;
  box-shadow: 0 8px 30px var(--amber-glow);
}
.cta-btn-main:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 16px 50px rgb(from var(--amber) r g b / 0.35); }
.next-level-nudge {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
.next-level-nudge p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* ===== FAQ ===== */
.faq { text-align: center; }
.faq-groups { margin-top: 48px; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-group-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--amber);
  font-family: 'JetBrains Mono', monospace;
  text-align: left;
  padding: 20px 0 8px;
  margin-top: 12px;
}
.faq-item {
  background: var(--surface-2);
  margin-bottom: 2px;
  overflow: hidden;
  transition: background 0.3s;
  text-align: left;
}
.faq-item:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.faq-item:last-of-type { border-radius: 0 0 var(--radius) var(--radius); }
.faq-item:only-of-type { border-radius: var(--radius); }
.faq-item:hover { background: var(--surface-3); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--amber); }
.faq-q .faq-toggle {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgb(from var(--amber) r g b / 0.08);
  border: 1px solid rgb(from var(--amber) r g b / 0.15);
  color: var(--amber);
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.3s;
  font-family: 'JetBrains Mono', monospace;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-a p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.active img {
  transform: scale(1);
}

/* ===== PORTFOLIO ===== */
.portfolio { text-align: center; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.portfolio-card {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: all 0.3s;
  border: 1px solid var(--border-subtle);
}
.portfolio-card:hover {
  background: var(--surface-3);
  border-color: var(--border);
  transform: translateY(-4px);
}
.portfolio-card-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.portfolio-card-body { padding: 20px; text-align: left; }
.portfolio-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.portfolio-card-name { font-size: 15px; font-weight: 700; }
.portfolio-card-cohort {
  font-size: 14px;
  color: var(--amber);
  background: rgb(from var(--amber) r g b / 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.portfolio-card-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.portfolio-card-icons img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
}
.portfolio-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
}
footer a { color: var(--amber); text-decoration: none; }


/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  section { padding: 60px 16px; }
  .hero { padding-top: 80px; }
  .nav-cta span { display: none; }
  .navbar.scrolled .nav-links { padding: 8px 16px; }
  .nav-links { overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 16px; }
}

/* ===== FLYING KIRO LOGOS ===== */
.kiro-logo-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.kiro-logo {
  position: absolute;
  width: 70px; height: 70px;
  opacity: 0.15;
  animation: float-kiro 20s infinite ease-in-out;
  filter: drop-shadow(0 0 12px var(--amber-glow));
  pointer-events: auto;
  cursor: pointer;
}
.kiro-logo:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 18s; }
.kiro-logo:nth-child(2) { left: 28%; animation-delay: -5s; animation-duration: 22s; }
.kiro-logo:nth-child(3) { left: 48%; animation-delay: -10s; animation-duration: 20s; }
.kiro-logo:nth-child(4) { left: 68%; animation-delay: -15s; animation-duration: 24s; }
.kiro-logo:nth-child(5) { left: 86%; animation-delay: -8s; animation-duration: 19s; }
@keyframes float-kiro {
  0%, 100% { transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8); opacity: 0; }
  10% { opacity: 0.15; }
  50% { transform: translateY(-20vh) translateX(40px) rotate(8deg) scale(1.05); opacity: 0.25; }
  90% { opacity: 0.15; }
}

/* ===== CANVAS ===== */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== LEVEL CARDS V2 (catalog page) ===== */
.level-cards-v2 {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 56px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.level-card-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.level-card-v2:hover {
  background: var(--surface-3);
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.level-card-v2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--ember));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.level-card-v2:hover::after { transform: scaleX(1); }
.level-card-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
}
.level-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.level-card-v2:hover .level-card-preview img { opacity: 1; }
.level-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.level-card-body .level-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}
.level-card-body h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}
.level-card-body .level-subtitle {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 20px;
  line-height: 1.6;
}
.level-card-body .level-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.level-card-body .level-meta span {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 12px;
  background: rgb(from var(--amber) r g b / 0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.level-card-body .level-meta span.highlight {
  color: var(--amber);
  background: rgb(from var(--amber) r g b / 0.12);
  border-color: rgb(from var(--amber) r g b / 0.25);
}
@media (max-width: 680px) {
  .level-card-v2 {
    grid-template-columns: 1fr;
  }
  .level-card-preview {
    height: 160px;
  }
}
