/* ============================================
   SS Trading - Complete Stylesheet
   ============================================ */

/* === CSS Variables / Design Tokens === */
:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #0f0f11;
  --border: #27272a;
  --muted: #a1a1aa;
  --brand: #c0c0c0;
  --brand-foreground: #09090b;
  --font-sans: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Signika', 'Inter', sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', 'Fira Code', monospace;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* === Typography === */
.font-display {
  font-family: var(--font-display);
}

.tnum {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* === Skip Link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* === Header / Navbar === */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(-80px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.site-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  margin-top: 0;
}
@media (min-width: 640px) {
  .nav-container {
    padding: 1rem 2rem;
  }
}
.nav-container.scrolled {
  max-width: 80rem;
  margin-top: 0.5rem;
  border-color: var(--border);
  border-radius: 1rem;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  flex-shrink: 0;
}
.nav-logo img {
  height: 1.75rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--foreground);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  height: 1px;
  width: 0;
  background: var(--brand);
  transition: width 0.3s;
}
.nav-link:hover::after {
  width: 100%;
}

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

.btn-join {
  display: none;
  height: 2.25rem;
  align-items: center;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  padding: 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
}
.btn-join:hover {
  background: var(--foreground);
  color: var(--background);
}
@media (min-width: 640px) {
  .btn-join {
    display: inline-flex;
  }
}

.btn-menu {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--foreground);
}
@media (min-width: 768px) {
  .btn-menu {
    display: none;
  }
}

/* === Hero Section === */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--background);
  padding-bottom: 14vh;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  filter: blur(0.5px);
  mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 30%, transparent 60%);
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.hero-label {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  display: none;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  background: rgba(15,15,17,0.7);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .hero-label {
    display: block;
  }
}
.hero-label.nq { top: 13%; left: 15%; }
.hero-label.es { top: 16%; left: 82%; }
.hero-label.gc { top: 28%; left: 25%; }
.hero-label.cl { top: 30%; left: 73%; }

.hero-top-fade {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 0;
  height: 8rem;
  background: linear-gradient(to bottom, var(--background), transparent);
  pointer-events: none;
}
.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: 10rem;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

.hero h1 {
  white-space: pre-wrap;
  margin: 1.5rem auto 0;
  max-width: 48rem;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 40px var(--background);
}
@media (min-width: 768px) {
  .hero h1 {
    font-size: 4.5rem;
  }
}

.hero-subtitle {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  text-shadow: 0 1px 20px var(--background);
}
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

/* Animated CTA Button */
.hero-cta-wrap {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow: hidden;
  border-radius: 14px;
  border: 1.5px solid rgba(192,192,192,0.35);
  background: rgba(192,192,192,0.1);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  cursor: pointer;
  transition: all 600ms cubic-bezier(0.23,1,0.32,1);
  backdrop-filter: blur(8px);
}
.hero-cta:hover {
  border-color: transparent;
  color: #0a0a0b;
  background: var(--foreground);
}
.hero-cta:active {
  transform: scale(0.95);
}

.hero-cta .arrow-left {
  position: absolute;
  width: 1rem;
  height: 1rem;
  left: -25%;
  stroke: #111;
  fill: none;
  z-index: 9;
  transition: left 800ms cubic-bezier(0.34,1.56,0.64,1);
}
.hero-cta:hover .arrow-left {
  left: 1rem;
}

.hero-cta .cta-text {
  position: relative;
  z-index: 1;
  transform: translateX(0);
  transition: transform 800ms ease-out, color 0.4s;
}
.hero-cta:hover .cta-text {
  transform: translateX(0.75rem);
  color: #0a0a0b;
}

.hero-cta .cta-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  opacity: 1;
  transition: all 800ms cubic-bezier(0.19,1,0.22,1);
}
.hero-cta:hover .cta-circle {
  width: 220px;
  height: 220px;
  background: white;
  opacity: 1;
}

.hero-cta .arrow-right {
  position: absolute;
  width: 1rem;
  height: 1rem;
  right: 1rem;
  stroke: #111;
  fill: none;
  z-index: 9;
  transition: right 800ms cubic-bezier(0.34,1.56,0.64,1);
}
.hero-cta:hover .arrow-right {
  right: -25%;
}

.hero-tagline {
  margin-top: 2.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(161,161,170,0.7);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  z-index: 10;
  height: 3rem;
  width: 1px;
  transform: translateX(-50%);
  overflow: hidden;
  background: var(--border);
}
.hero-scroll-indicator span {
  display: block;
  height: 1rem;
  width: 100%;
  background: var(--foreground);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* === Section Common === */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}
.section-label-line {
  height: 1px;
  width: 2rem;
  border-radius: 9999px;
  background: rgba(200,164,78,0.8);
}
.section-label-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-desc {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* === Model Section === */
.model-section {
  background: var(--background);
}

.model-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 8rem 1.25rem;
}
@media (min-width: 640px) {
  .model-container {
    padding: 8rem 2rem;
  }
}

.model-header {
  max-width: 42rem;
  margin: 0 auto;
}

.model-grid {
  margin-top: 5rem;
  display: grid;
  gap: 3.5rem;
}
@media (min-width: 768px) {
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.model-step {
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) {
  .model-step {
    padding-right: 2.5rem;
  }
  .model-step:not(:first-child) {
    border-left: 1px solid rgba(250,250,250,0.15);
    padding-left: 2.5rem;
  }
}

.model-step-num {
  font-family: var(--font-display);
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--brand);
}

.model-step h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.model-step .step-subtitle {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

.model-step .step-desc {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(250,250,250,0.7);
}

.model-footer {
  margin-top: 5rem;
  text-align: center;
}

.model-footer-quote {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--muted);
}

.btn-brand {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--brand);
  padding: 0 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-foreground);
  transition: transform 0.2s;
}
.btn-brand:hover {
  transform: translateY(-2px);
}
.btn-brand svg {
  transition: transform 0.2s;
}
.btn-brand:hover svg {
  transform: translateX(2px);
}

/* === About Section === */
.about-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 7rem 1.25rem;
}
@media (min-width: 640px) {
  .about-section {
    padding: 7rem 2rem;
  }
}

.about-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
  }
}

.about-photo-wrap {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 24rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
}

.about-photo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.about-photo-overlay {
  position: absolute;
  inset: 0 0 auto 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.3s;
}

.about-photo-overlay .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}

.about-photo-overlay .role {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.about-bio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  background: rgba(9,9,11,0.95);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.about-photo-wrap:hover .about-bio-overlay {
  opacity: 1;
}
.about-photo-wrap:hover .about-photo-overlay {
  opacity: 0;
}

.about-bio-overlay .bio-label {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.about-bio-overlay .bio-text {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(250,250,250,0.9);
}

.about-bio-socials {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
}

/* Social Icon Button */
.social-btn {
  display: grid;
  place-items: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.375rem;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.social-btn:hover {
  border-color: rgba(250,250,250,0.3);
  color: var(--foreground);
}
.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.about-info {
  max-width: 36rem;
}

.about-info .section-label {
  justify-content: flex-start;
}

.about-info .section-title {
  font-size: 2.25rem;
}
@media (min-width: 768px) {
  .about-info .section-title {
    font-size: 3rem;
  }
}

.about-info .section-desc {
  margin-top: 1rem;
}

.about-tags {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.about-tag {
  border-radius: 9999px;
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  color: rgba(250,250,250,0.8);
}

.about-socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.about-note {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
}

/* === Testimonials Section === */
.testimonials-section {
  overflow: hidden;
  padding: 7rem 0;
}

/* === Enhanced CTA Buttons === */
.btn-glow {
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), transparent 40%, var(--brand));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-glow:hover::after {
  opacity: 0.15;
}

/* === Premium Card Hover === */
.course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(192,192,192,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.course-card:hover::before {
  opacity: 1;
}

/* === Pulse animation for live badges === */
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.live-badge {
  animation: livePulse 2s ease-in-out infinite;
}

/* === Smooth page transitions === */
.page-enter {
  animation: pageIn 0.5s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Gradient border effect === */
.gradient-border {
  position: relative;
  background: var(--card);
  border-radius: 1rem;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), transparent 50%, var(--brand));
  z-index: -1;
  opacity: 0.3;
}

/* === Floating animation === */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}

.testimonials-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .testimonials-header {
    padding: 0 2rem;
  }
}

.testimonials-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonials-column {
  overflow: hidden;
  height: 640px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

.testimonials-track {
  display: flex;
  flex-direction: column;
}

.testimonial-card {
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.75rem;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(250,250,250,0.85);
}

.testimonial-card blockquote::before {
  content: '\201C';
  color: var(--brand);
}

.testimonial-card blockquote::after {
  content: '\201D';
  color: var(--brand);
}

.testimonial-card figcaption {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Scroll animation for testimonial columns */
.testimonials-column.scroll-up .testimonials-track {
  animation: scrollUp 60s linear infinite;
}
.testimonials-column.scroll-down .testimonials-track {
  animation: scrollDown 60s linear infinite;
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

.testimonials-column:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonials-col-2,
.testimonials-col-3 {
  display: none;
}
@media (min-width: 768px) {
  .testimonials-col-2 {
    display: block;
  }
}
@media (min-width: 1024px) {
  .testimonials-col-3 {
    display: block;
  }
}

/* === Community / Globe Section === */
.community-section {
  max-width: 80rem;
  margin: 0 auto;
}

.community-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
  padding: 7rem 1.25rem;
}
@media (min-width: 640px) {
  .community-grid {
    padding: 7rem 2rem;
  }
}
@media (min-width: 768px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
}

.community-info .section-label {
  justify-content: flex-start;
}

.community-socials {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.globe-wrap {
  max-width: 28rem;
  margin: 0 auto;
  width: 100%;
}

.globe-container {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  user-select: none;
}

.globe-container canvas {
  width: 100%;
  height: 100%;
  cursor: grab;
  opacity: 0;
  transition: opacity 1.2s ease;
  border-radius: 50%;
  touch-action: none;
}
.globe-container canvas.loaded {
  opacity: 1;
}

/* Globe city labels */
.globe-label {
  position: absolute;
  padding: 2px 6px;
  background: #1a1a2e;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s, filter 0.8s;
  filter: blur(8px);
}
.globe-label.visible {
  opacity: 1;
  filter: blur(0);
}
.globe-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate3d(-50%, -1px, 0);
  border: 5px solid transparent;
  border-top-color: #1a1a2e;
}

/* === CTA / Stop Guessing Section === */
.cta-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.25rem;
}
@media (min-width: 640px) {
  .cta-section {
    padding: 6rem 2rem;
  }
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--foreground);
  padding: 5rem 1.5rem;
  text-align: center;
  color: var(--background);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(192,192,192,0.15), transparent 60%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .cta-card {
    padding: 7rem 4rem;
  }
}

.cta-card .cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}

.cta-card h2 {
  margin-top: 1.25rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
@media (min-width: 768px) {
  .cta-card h2 {
    font-size: 3.75rem;
  }
}

.cta-card .cta-desc {
  margin-top: 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(9,9,11,0.7);
}

.cta-buttons {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.btn-dark {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: var(--background);
  padding: 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  transition: transform 0.2s;
}
.btn-dark:hover {
  transform: translateY(-2px);
}
.btn-dark svg {
  transition: transform 0.2s;
}
.btn-dark:hover svg {
  transform: translateX(2px);
}

.btn-outline-light {
  display: inline-flex;
  height: 3rem;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(9,9,11,0.3);
  padding: 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--background);
  transition: background 0.2s;
}
.btn-outline-light:hover {
  background: rgba(9,9,11,0.1);
}

/* === Footer === */
.site-footer {
  background: var(--background);
}

.footer-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) {
  .footer-grid {
    padding: 4rem 2rem;
  }
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.footer-brand {
  grid-column: span 2;
}

.footer-logo img {
  height: 2.5rem;
  width: auto;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-col ul {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  list-style: none;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--foreground);
}

.footer-bottom {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
}
@media (min-width: 640px) {
  .footer-bottom {
    padding: 0 2rem 2.5rem;
  }
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--muted);
}

/* === Scroll Animations === */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up-delay {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-up-delay.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero-specific animations */
.hero-content h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(8px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}
.hero-content h1.animate-in .word {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.hero-content p.hero-subtitle {
  opacity: 0;
  transition: opacity 1s ease 0.6s;
}
.hero-content p.hero-subtitle.animate-in {
  opacity: 1;
}

.hero-cta-wrap {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}
.hero-cta-wrap.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-tagline {
  opacity: 0;
  transition: opacity 1s ease 1.2s;
}
.hero-tagline.animate-in {
  opacity: 1;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(9,9,11,0.98);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--foreground);
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--brand);
}
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 1.25rem;
}

/* === Canvas for Hero Background Animation === */
#hero-canvas {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

/* === Page Transition Overlay === */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none !important;
}
/* Safety: always allow clicks after 3 seconds */
.page-loader[style*="display: none"] { pointer-events: none !important; }
.page-loader .loader-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.page-loader .loader-logo img {
  width: 28px;
  height: 28px;
  filter: brightness(0);
}
.page-loader .loader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.page-loader .loader-bar::after {
  content: '';
  display: block;
  width: 40%;
  height: 100%;
  background: var(--brand);
  border-radius: 2px;
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}
@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* === Section Reveal Animations === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === Nav Link Hover Animation === */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}
.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* === Button Click Ripple Effect === */
.btn-join, .btn-brand, .a-btn {
  position: relative;
  overflow: hidden;
}
.btn-join::after, .btn-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.btn-join:active::after, .btn-brand:active::after {
  opacity: 1;
}

/* === Smooth Card Hover === */
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

/* === Admin View Transition === */
#admin-view, #edu-view {
  transition: opacity 0.4s ease;
}
#edu-view.hidden {
  display: none;
}
#admin-view.active {
  display: block;
  animation: fadeSlideIn 0.4s ease;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Admin Tab Switch Animation === */
.admin-section {
  animation: fadeSlideIn 0.3s ease;
}

/* === Notification Toast === */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  font-size: 0.875rem;
  z-index: 10000;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success { border-color: #22c55e; }
.toast.error { border-color: #ef4444; }

/* === Custom Confirm / Prompt Modal === */
.ss-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ss-modal-overlay.active { opacity: 1; pointer-events: auto; }
.ss-modal {
  background: #111114;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s ease;
}
.ss-modal-overlay.active .ss-modal {
  transform: scale(1) translateY(0);
}
.ss-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}
.ss-modal-icon.warn { background: rgba(251,191,36,0.12); color: #fbbf24; }
.ss-modal-icon.danger { background: rgba(239,68,68,0.12); color: #ef4444; }
.ss-modal-icon.info { background: rgba(99,102,241,0.12); color: #818cf8; }
.ss-modal-icon.success { background: rgba(34,197,94,0.12); color: #22c55e; }
.ss-modal-body {
  padding: 2rem 2rem 0;
  text-align: center;
}
.ss-modal-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}
.ss-modal-desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}
.ss-modal-desc ul {
  text-align: left;
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  list-style: disc;
}
.ss-modal-desc li {
  margin-bottom: 0.25rem;
}
.ss-modal-input {
  width: 100%;
  margin-top: 1rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.ss-modal-input:focus { border-color: var(--brand); }
.ss-modal-input.error { border-color: #ef4444; }
.ss-modal-footer {
  display: flex;
  gap: 0.75rem;
  padding: 1.5rem 2rem 2rem;
  justify-content: center;
}
.ss-modal-btn {
  flex: 1;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.15s;
}
.ss-modal-btn.cancel {
  background: rgba(255,255,255,0.06);
  color: var(--foreground);
  border: 1px solid rgba(255,255,255,0.08);
}
.ss-modal-btn.cancel:hover { background: rgba(255,255,255,0.1); }
.ss-modal-btn.confirm {
  background: var(--brand);
  color: var(--brand-foreground);
}
.ss-modal-btn.confirm:hover { opacity: 0.9; }
.ss-modal-btn.danger {
  background: #ef4444;
  color: #fff;
}
.ss-modal-btn.danger:hover { background: #dc2626; }
.ss-modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === SVG Icon System === */
.tab-icon { display: inline-flex; align-items: center; vertical-align: middle; margin-right: 4px; }
.tab-icon svg { width: 14px; height: 14px; }
.card-emoji { font-size: 2.5rem; margin-bottom: 1rem; display: flex; align-items: center; }
.cat-icon { display: inline-flex; width: 32px; height: 32px; border-radius: 8px; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.cat-icon-foundation { background: rgba(34,197,94,0.12); }
.cat-icon-advanced { background: rgba(168,85,247,0.12); }
.cat-icon-execution { background: rgba(59,130,246,0.12); }
.card-meta { display: flex; gap: 1rem; margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.stat-card .icon svg { width: 20px; height: 20px; }
.lesson-lock svg { width: 14px; height: 14px; }
.a-btn svg { width: 14px; height: 14px; }
