/* ═══════════════════════════════════════════════════════
   F2X — GLOBAL CSS
   Design system custom properties & component styles
═══════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --color-bg:        #0D0D0D;
  --color-surface:   #0F1A2E;
  --color-card:      #141E30;
  --color-navy:      #1B2A4A;
  --color-accent:    #06B6D4;
  --color-light:     #4CD7F6;
  --color-border:    #1E3A5F;
  --color-outline:   #3D494C;
  --color-muted:     #6B7280;
  --color-text:      #F9FAFB;
  --color-subtext:   #9CA3AF;

  --font-display:    'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --font-headline:   'Plus Jakarta Sans', sans-serif;
  --font-body:       'Inter', sans-serif;

  --ease-f2x:        cubic-bezier(0.16, 1, 0.3, 1);
  --transition:      200ms var(--ease-f2x);
  --transition-slow: 600ms var(--ease-f2x);
}

/* ── Material Symbols ───────────────────────────────── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* ── Base reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(6, 182, 212, 0.3);
  color: #fff;
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar        { width: 5px; }
::-webkit-scrollbar-track  { background: var(--color-bg); }
::-webkit-scrollbar-thumb  { background: var(--color-border); }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }

/* ── Focus ──────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════
   HERO BACKGROUNDS
═══════════════════════════════════════════════════════ */
.hero-grid {
  background-image:
    linear-gradient(rgba(6,182,212,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-glow {
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(6, 182, 212, 0.15) 0%,
    transparent 70%
  );
}

/* ═══════════════════════════════════════════════════════
   HERO — PAGE LOAD ANIMATIONS (staggered fade-up)
═══════════════════════════════════════════════════════ */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-anim {
  opacity: 0; /* start hidden; animation fills forward */
  animation: hero-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-anim-1 { animation-delay: 0.10s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.40s; }
.hero-anim-4 { animation-delay: 0.55s; }
.hero-anim-5 { animation-delay: 0.70s; }
.hero-anim-6 { animation-delay: 0.85s; }

/* ── Hero CTA buttons ─────────────────────────────── */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;        /* py-4 px-8 */
  background-color: #06B6D4;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: 0.9625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid #06B6D4;
  border-radius: 0;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color     0.2s ease,
    box-shadow       0.2s ease,
    transform        0.2s ease;
}
.hero-btn-primary:hover {
  background-color: #4CD7F6;
  border-color:     #4CD7F6;
  box-shadow: 0 0 28px rgba(6,182,212,0.45);
  transform: translateY(-2px);
}
.hero-btn-primary:active { transform: translateY(0); }

/* "도입 문의" — white border, hover flips to white bg / black text */
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: transparent;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: 0.9625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 0;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color            0.2s ease,
    border-color     0.2s ease,
    transform        0.2s ease;
}
.hero-btn-ghost:hover {
  background-color: #ffffff;
  color:            #000000;
  border-color:     #ffffff;
  transform: translateY(-2px);
}
.hero-btn-ghost:active { transform: translateY(0); }

/* ── Hero real image (grayscale) ─────────────────── */
.hero-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
  z-index: 2;
}
.hero-img-real:hover { filter: grayscale(50%); }

/* ── SVG placeholder — floating loop ────────────── */
@keyframes hero-float {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-14px); }
}
.hero-visual-float {
  animation: hero-float 5.5s ease-in-out infinite;
}

/* ── Scroll indicator — bounce ───────────────────── */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(7px); }
}
.scroll-bounce {
  display: block;
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background-color: var(--color-accent);
  color: #001f26;
  font-family: var(--font-headline);
  font-size: 0.9625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-accent);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition),
    letter-spacing var(--transition);
}
.btn-primary:hover {
  background-color: var(--color-light);
  border-color: var(--color-light);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px);
  letter-spacing: 0.08em;
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  background-color: transparent;
  color: var(--color-accent);
  font-family: var(--font-headline);
  font-size: 0.9625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 2px solid var(--color-accent);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}
.btn-secondary:hover {
  background-color: rgba(6, 182, 212, 0.1);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
  transform: translateY(-1px);
}
.btn-secondary:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
#navbar {
  background-color: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}
#navbar.nav-scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* ── CTA button in nav ───────────────────────────── */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.5rem;       /* py-2.5 px-6 */
  background-color: #06B6D4;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: 0.8937rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.nav-cta:hover {
  background-color: #4CD7F6;
  box-shadow: 0 0 22px rgba(6,182,212,0.45);
  transform: translateY(-1px);
}
.nav-cta:active { transform: translateY(0); }

/* Mobile bottom CTA */
.nav-cta-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  background-color: #06B6D4;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: 1.0312rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
}
.nav-cta-mobile:hover { background-color: #4CD7F6; }

/* ── Dropdown trigger ────────────────────────────── */
.nav-dropdown-trigger {
  position: relative;
}
/* Invisible hover bridge — keeps dropdown open while mouse travels down */
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 16px;
  background: transparent;
}

/* Chevron rotates on hover */
.nav-chevron {
  transition: transform 0.2s ease;
}
.nav-dropdown-trigger:hover .nav-chevron { transform: rotate(180deg); }

/* ── Dropdown panel ──────────────────────────────── */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 16px);   /* clear the bridge gap */
  left: 0;
  min-width: 220px;
  background-color: #141E30;
  border-top: 2px solid var(--color-accent);
  padding: 1rem 0;           /* py-4 */
  box-shadow: 0 24px 48px rgba(0,0,0,0.7);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity    0.2s var(--ease-f2x),
    transform  0.2s var(--ease-f2x),
    visibility 0.2s;
  z-index: 100;
  pointer-events: none;
}
/* Right-aligned variant */
.nav-dropdown-right { left: auto; right: 0; }

/* Revealed on hover — trigger covers bridge so dropdown stays open */
.nav-dropdown-trigger:hover .nav-dropdown,
.nav-dropdown-trigger:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1.5rem;   /* px-6 */
  font-size: 0.8937rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-subtext);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    color            0.15s ease,
    background-color 0.15s ease,
    border-color     0.15s ease,
    padding-left     0.15s ease;
}
.nav-dropdown-item:hover {
  color: white;
  background-color: rgba(6,182,212,0.06);
  border-left-color: var(--color-accent);
  padding-left: 1.75rem;
}

/* ── Nav link active underline ───────────────────── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.25s var(--ease-f2x);
}
.nav-link.active { color: var(--color-accent) !important; }
.nav-link.active::after,
.nav-link:hover::after { width: 100%; }

/* ── Mobile menu ─────────────────────────────────── */
#mobile-menu { transform: translateX(100%); }
#mobile-menu.is-open { transform: translateX(0); }

/* ── Accordion ───────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid rgba(61,73,76,0.35);
}

.accordion-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}
.accordion-trigger:hover { color: var(--color-accent); }

.accordion-icon {
  font-size: 22px;
  color: var(--color-muted);
  transition: transform 0.3s var(--ease-f2x), color 0.2s ease;
  flex-shrink: 0;
}
.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}
.accordion-item.is-open .accordion-trigger { color: var(--color-accent); }

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-f2x), padding 0.35s ease;
  padding-bottom: 0;
}
.accordion-item.is-open .accordion-content {
  max-height: 400px;
  padding-bottom: 0.75rem;
}

.accordion-link {
  display: block;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1.0312rem;
  font-weight: 500;
  color: var(--color-subtext);
  text-decoration: none;
  border-left: 2px solid rgba(6,182,212,0.2);
  margin-left: 0.25rem;
  transition: color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}
.accordion-link:hover {
  color: white;
  border-left-color: var(--color-accent);
  padding-left: 1rem;
}

/* ═══════════════════════════════════════════════════════
   SECTION UTILITIES
═══════════════════════════════════════════════════════ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent);
  flex-shrink: 0;
}

.accent-line {
  width: 48px;
  height: 3px;
  background-color: var(--color-accent);
  display: block;
}

/* ═══════════════════════════════════════════════════════
   TOOL SHOWCASE CARDS
═══════════════════════════════════════════════════════ */

/* ── Section label ──────────────────────────────────── */
.tools-label {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #06B6D4;
}

/* ── Card shell ─────────────────────────────────────── */
.tc-card {
  background: #141E30;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.tc-card:hover {
  border-color: rgba(6,182,212,0.4);
  box-shadow: 0 0 40px rgba(6,182,212,0.12);
}

/* ── Window bar ─────────────────────────────────────── */
.tc-bar {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.tc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tc-bar-title {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Canvas ─────────────────────────────────────────── */
.tc-canvas {
  min-height: 300px;
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── Caption ─────────────────────────────────────────── */
.tc-caption {
  padding: 0.875rem 1.25rem;
  font-size: 0.8937rem;
  text-align: center;
  color: var(--color-subtext);
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.2);
}

/* ══════════════════════════════════════════════════════
   n8n CARD
══════════════════════════════════════════════════════ */
.n8n-canvas {
  background: #0A0F1A;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  justify-content: center;
}

.n8n-status {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #06B6D4;
}
@keyframes n8n-blink {
  0%, 100% { opacity: 1;    box-shadow: 0 0 5px #06B6D4; }
  50%       { opacity: 0.2; box-shadow: none; }
}
.n8n-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06B6D4;
  flex-shrink: 0;
  animation: n8n-blink 1.4s infinite;
}

.n8n-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.n8n-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 76px;
  height: 66px;
  background: #141E30;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  flex-shrink: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
  z-index: 1;
}
.n8n-node .material-symbols-outlined {
  font-size: 20px;
  color: #4CD7F6;
}
.n8n-node-lbl {
  font-size: 8px;
  color: #6B7280;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.n8n-node.lit {
  border-color: rgba(6,182,212,0.75);
  background: rgba(6,182,212,0.07);
  box-shadow: 0 0 22px rgba(6,182,212,0.4);
}

.n8n-wire {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  max-width: 56px;
}
.n8n-traveler {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06B6D4;
  box-shadow: 0 0 8px #06B6D4, 0 0 18px rgba(6,182,212,0.5);
  left: -10px;
}

/* ══════════════════════════════════════════════════════
   DIFY CARD
══════════════════════════════════════════════════════ */
.dify-canvas {
  background: #0D1425;
  justify-content: flex-end;
  gap: 0.625rem;
  padding-bottom: 1rem;
}
.dify-msgs {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
  justify-content: flex-end;
}

.dify-msg-user {
  align-self: flex-end;
  background: #1E293B;
  color: #F9FAFB;
  padding: 0.5rem 0.875rem;
  border-radius: 12px 12px 3px 12px;
  font-size: 0.8937rem;
  max-width: 82%;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dify-msg-user.show { opacity: 1; transform: translateX(0); }

.dify-msg-bot {
  align-self: flex-start;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 92%;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.dify-msg-bot.show { opacity: 1; transform: translateX(0); }

.dify-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4 0%, #1B2A4A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}
.dify-bubble {
  background: #0F1A2E;
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid #06B6D4;
  padding: 0.5rem 0.75rem;
  border-radius: 2px 10px 10px 10px;
  font-size: 0.825rem;
  color: #9CA3AF;
  line-height: 1.55;
}
.dify-bubble strong { color: #F9FAFB; font-weight: 600; }

.dify-typing-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.dify-bounce-dots {
  display: flex;
  gap: 3px;
  background: #0F1A2E;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
}
@keyframes dify-bounce {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.35; }
  30%            { transform: translateY(-4px); opacity: 1; }
}
.dify-bounce-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #06B6D4;
  animation: dify-bounce 1.2s infinite;
}
.dify-bounce-dots span:nth-child(2) { animation-delay: 0.2s; }
.dify-bounce-dots span:nth-child(3) { animation-delay: 0.4s; }

/* ══════════════════════════════════════════════════════
   VIBE CODING CARD
══════════════════════════════════════════════════════ */
.vibe-canvas {
  background: #080B14;
  font-family: 'Fira Code', 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.825rem;
  line-height: 1.65;
  color: #E5E7EB;
  justify-content: flex-start;
  gap: 0.5rem;
}
.vibe-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.vibe-sym {
  color: #06B6D4;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.vibe-typed { color: #F9FAFB; }
@keyframes vibe-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.vibe-cur {
  color: #06B6D4;
  font-size: 0.7rem;
  animation: vibe-blink 0.9s infinite;
  margin-left: 1px;
}
.vibe-out {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  overflow: hidden;
}
.vibe-spinner {
  color: #06B6D4;
  font-size: 0.825rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-bottom: 2px;
}
.vibe-spinner.show { opacity: 1; }
.vibe-code-row {
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.vibe-code-row.show { opacity: 1; transform: translateY(0); }
.vibe-ln {
  color: #4B5563;
  min-width: 1.2rem;
  text-align: right;
  user-select: none;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.vk  { color: #06B6D4; }  /* keyword  */
.vs  { color: #34D399; }  /* string   */
.vjx { color: #93C5FD; }  /* jsx tag  */
.vibe-done {
  color: #34D399;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.4s ease;
  margin-top: 4px;
  font-size: 0.8rem;
}
.vibe-done.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   CURRICULUM
═══════════════════════════════════════════════════════ */

/* ── Section label ──────────────────────────────────── */
.cv-label {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #06B6D4;
}

/* ── Filter tabs ─────────────────────────────────────── */
.cv-filter {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cv-filter-btn {
  padding: 0.75rem 1.5rem;
  font-family: var(--font-headline);
  font-size: 1.0312rem;
  font-weight: 700;
  color: #6B7280;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: -1px;
  white-space: nowrap;
}
.cv-filter-btn:hover  { color: white; }
.cv-filter-btn.active {
  color: white;
  border-bottom-color: #06B6D4;
}

/* ── Course card ─────────────────────────────────────── */
.cv-card {
  background: #141E30;
  border: 1px solid rgba(255,255,255,0.07);
  border-left-width: 4px;
  padding: 1.5rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.cv-card[data-category="foundation"] { border-left-color: #06B6D4; }
.cv-card[data-category="techskills"] { border-left-color: #3B82F6; }
.cv-card[data-category="domain"]     { border-left-color: #8B5CF6; }

.cv-card:hover { background: #1B2A4A; }
.cv-card[data-category="foundation"]:hover { box-shadow: -3px 0 18px rgba(6,182,212,0.18); }
.cv-card[data-category="techskills"]:hover { box-shadow: -3px 0 18px rgba(59,130,246,0.18); }
.cv-card[data-category="domain"]:hover     { box-shadow: -3px 0 18px rgba(139,92,246,0.18); }

/* ── Card internals ─────────────────────────────────── */
.cv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cv-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2rem;
  color: white;
}
.cv-badge-f { background: rgba(6,182,212,0.2); }
.cv-badge-t { background: rgba(59,130,246,0.2); }
.cv-badge-d { background: rgba(139,92,246,0.2); }
.cv-code {
  font-size: 0.8937rem;
  font-weight: 600;
  color: #6B7280;
  font-family: var(--font-display);
}
.cv-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  margin-bottom: 0.625rem;
}
.cv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.cv-pill {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: 0.7rem;
  color: #9CA3AF;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
}
.cv-desc {
  font-size: 0.9625rem;
  color: #9CA3AF;
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════
   WHY AX SECTION
═══════════════════════════════════════════════════════ */
.why-ax-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.why-ax-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.why-ax-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .why-ax-item {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
  }
}

.why-ax-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 4.5rem;   /* ~text-7xl */
  line-height: 1;
  color: rgba(6, 182, 212, 0.15);
  flex-shrink: 0;
  min-width: 6rem;
  text-align: left;
  user-select: none;
}
@media (min-width: 768px) {
  .why-ax-num {
    font-size: 5rem;
    text-align: right;
  }
}

/* ═══════════════════════════════════════════════════════
   WHY F2X BLOCKS
═══════════════════════════════════════════════════════ */
.wf-label {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #06B6D4;
}
.wf-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .wf-block {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}
.wf-num {
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(6,182,212,0.12);
  flex-shrink: 0;
  width: 7rem;
  text-align: right;
  user-select: none;
  padding-top: 0.125rem;
}
@media (min-width: 768px) {
  .wf-num { font-size: 6rem; width: 8rem; }
}
@media (max-width: 767px) {
  .wf-num { width: auto; text-align: left; font-size: 3.5rem; }
}
.wf-content { flex: 1; min-width: 0; }
.wf-bar {
  width: 4rem;
  height: 4px;
  background: #06B6D4;
  margin-bottom: 1.5rem;
}
.wf-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}
.wf-text {
  font-size: 1rem;
  color: #9CA3AF;
  line-height: 1.8;
}
.wf-img { flex-shrink: 0; }
.wf-photo {
  display: block;
  width: 100%;
  max-width: 22rem;
  border-radius: 0.5rem;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.wf-photo:hover { filter: grayscale(20%); opacity: 1; }
@media (max-width: 767px) { .wf-photo { max-width: 100%; } }

/* ═══════════════════════════════════════════════════════
   TRAINING PROCESS TIMELINE
═══════════════════════════════════════════════════════ */
.ps-label {
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #06B6D4;
}

/* ── Wrapper ────────────────────────────────────────── */
.ps-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (min-width: 768px) {
  .ps-wrap {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ── Step ───────────────────────────────────────────── */
.ps-step {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 2.5rem;   /* space for mobile connector */
}
@media (min-width: 768px) {
  .ps-step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0;
  }
}

/* ── Connector lines via ::after ────────────────────── */
/* Mobile: vertical line below each circle (except last) */
.ps-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.4375rem;    /* (48px ÷ 2) − 1px = 23px */
  top: 3rem;          /* sits below the 48px circle */
  width: 2px;
  height: 2.5rem;     /* matches padding-bottom */
  background: rgba(6,182,212,0.25);
  z-index: 0;
}
/* Desktop: horizontal line to the right (except last) */
@media (min-width: 768px) {
  .ps-step:not(:last-child)::after {
    left: 50%;
    top: 1.4375rem;   /* (48px ÷ 2) − 1px = 23px */
    width: 100%;
    height: 2px;
  }
}

/* ── Circle ─────────────────────────────────────────── */
.ps-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid rgba(6,182,212,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.125rem;
  color: white;
  background: #0F1A2E;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ps-step:hover .ps-circle {
  border-color: #06B6D4;
  background: rgba(6,182,212,0.08);
  box-shadow: 0 0 18px rgba(6,182,212,0.35);
}

/* ── Body ───────────────────────────────────────────── */
.ps-body {
  position: relative;
  z-index: 1;
}
@media (min-width: 768px) {
  .ps-body { padding-top: 0.75rem; }
}

.ps-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.0312rem;
  color: white;
  margin-bottom: 0.375rem;
}

.ps-desc {
  font-size: 0.8937rem;
  color: #9CA3AF;
  line-height: 1.55;
}
@media (min-width: 768px) {
  .ps-desc { max-width: 11rem; }
}

/* ═══════════════════════════════════════════════════════
   CONTACT FORM
═══════════════════════════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-subtext);
}

.form-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--color-outline);
  color: white;
  font-family: var(--font-body);
  font-size: 0.9625rem;
  padding: 0.75rem 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.form-input::placeholder { color: var(--color-muted); }
.form-input:focus        { border-bottom-color: var(--color-accent); }
.form-input option, .form-input optgroup { background-color: #141E30; color: white; }

.form-input.error { border-bottom-color: #F87171; }

.form-error {
  display: none;
  font-size: 0.7rem;
  color: #F87171;
  margin-top: 2px;
}
.form-group.has-error .form-error { display: block; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  font-size: 0.9625rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }

.footer-icon {
  color: var(--color-muted);
  transition: color var(--transition);
}
.footer-icon:hover { color: var(--color-accent); }

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-f2x),
    transform 0.7s var(--ease-f2x);
}
.reveal.visible {
  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; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── animate-on-scroll alias (same behaviour as .reveal) ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-grid { background-size: 40px 40px; }
}
