:root {
  --bg: #0a0908;
  --bg-elevated: #0e0c0a;
  --bg-overlay: #141210;
  --ink: #f4efe6;
  --ink-muted: #cfc8b8;
  --muted: #8b8478;
  --line: #1f1d1a;
  --line-active: #2e2b26;
  --amber: #e8a857;
  --amber-deep: #b8772e;
  --amber-subtle: rgba(232,168,87,0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --success: #6b8e6b;
  --danger: #c84a3c;
  --warning: #d4943a;
  --info: #5a7fa8;
  
  /* Z-index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.6s ease;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.5);
  
  /* Text Fallbacks */
  --text: var(--ink);
  --text-muted: var(--ink-muted);
}

[data-theme="light"] {
  --bg:           #f4efe6;
  --bg-elevated:  #ede8de;
  --bg-overlay:   #e5dfd4;
  --ink:          #1a1714;
  --ink-muted:    #3d3830;
  --muted:        #7a7268;
  --line:         #d4cec4;
  --line-active:  #b8b2a8;
  --amber:        #c47d1e;
  --amber-deep:   #9e6318;
  --amber-subtle: rgba(196,125,30,0.08);
  --success:      #3d6b3d;
  --danger:       #a83228;
  --warning:      #b07820;
  --info:         #3a5f82;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* TYPOGRAPHY SYSTEM */
.display-hero {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--amber);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--ink-muted);
  max-width: 65ch;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--amber);
  margin: 1.5rem 0;
}

/* NAV SYSTEM */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(10, 9, 8, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="light"] .nav {
  background: rgba(244, 239, 230, 0.88);
}

.nav-logo {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--amber);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--amber);
}

.nav-link-inactive {
  position: relative;
  cursor: not-allowed;
  opacity: 0.65;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.nav-link-inactive:hover {
  opacity: 0.85;
  color: var(--muted);
}

/* Coming Soon Tooltip */
.nav-link-inactive[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  text-transform: none;
  letter-spacing: normal;
}

.nav-link-inactive[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

/* LAYOUT CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.col {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* BUTTONS */
.btn-primary {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: var(--amber);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-fast), transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--amber-deep);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary:disabled {
  background: var(--line-active);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-inactive {
  cursor: not-allowed;
  opacity: 0.65;
  position: relative;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.btn-inactive:hover {
  opacity: 0.85;
}

.btn-inactive[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  z-index: 1000;
  text-transform: none;
  letter-spacing: normal;
  font-weight: normal;
}

.btn-inactive[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.btn-secondary {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-active);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-secondary[href*="intent=employer"]:hover {
  border-color: var(--success);
  color: var(--success);
}

.btn-secondary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-ghost {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-danger {
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--danger);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-danger:hover {
  background: #a33c30;
}

.btn-logo-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transition: filter var(--transition-fast);
}

/* Adjust filter to match text color for buttons */
/* In dark mode: .btn-primary has text color var(--bg) which is dark (#0a0908) */
.btn-primary .btn-logo-icon {
  filter: brightness(0);
}

/* In dark mode: .btn-secondary has text color var(--ink) which is light (#f4efe6) */
.btn-secondary .btn-logo-icon {
  filter: brightness(0) invert(1);
}

/* On hover: .btn-secondary:hover has color var(--amber) */
.btn-secondary:hover .btn-logo-icon {
  filter: brightness(0) saturate(100%) invert(68%) sepia(35%) saturate(1212%) hue-rotate(345deg) brightness(96%) contrast(92%);
}

/* Embun logo hover to green */
.btn-secondary[href*="intent=employer"]:hover .btn-logo-icon {
  filter: brightness(0) saturate(100%) invert(53%) sepia(11%) saturate(762%) hue-rotate(67deg) brightness(96%) contrast(87%);
}

/* Light theme adjustments */
[data-theme="light"] .btn-primary .btn-logo-icon {
  filter: brightness(0) invert(1);
}

[data-theme="light"] .btn-secondary .btn-logo-icon {
  filter: brightness(0);
}

/* Kuntum brand amber filter in light mode */
[data-theme="light"] .btn-secondary:hover .btn-logo-icon {
  filter: brightness(0) saturate(100%) invert(47%) sepia(56%) saturate(1348%) hue-rotate(344deg) brightness(96%) contrast(88%);
}

/* Embun logo hover to green in light mode */
[data-theme="light"] .btn-secondary[href*="intent=employer"]:hover .btn-logo-icon {
  filter: brightness(0) saturate(100%) invert(36%) sepia(21%) saturate(1067%) hue-rotate(69deg) brightness(96%) contrast(90%);
}

/* BADGES & PILLS */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.pill-amber { border-color: var(--amber); color: var(--amber); }
.pill-green { border-color: var(--success); color: var(--success); }
.pill-red { border-color: var(--danger); color: var(--danger); }
.pill-info { border-color: var(--info); color: var(--info); }

.badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.badge-green { background: var(--success); color: #ffffff; }
.badge-red { background: var(--danger); color: #ffffff; }

/* CARDS */
.card {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
  border-radius: var(--radius-lg);
}

.card:hover {
  border-color: var(--line-active);
  transform: translateY(-2px);
}

.card-interactive:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
}

.card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 1px;
  background: var(--amber);
}

.card .card-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* FORMS & INPUTS */
.input-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition-base);
  border-radius: var(--radius-md);
}

.input::placeholder {
  color: var(--muted);
}

.input:hover {
  border-color: var(--line-active);
}

.input:focus {
  border-color: var(--amber);
}

.input.error {
  border-color: var(--danger);
}

.input-error {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.4rem;
  font-family: "Inter Tight", sans-serif;
}

.input-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.select {
  appearance: none;
  cursor: pointer;
}

/* CHAT INTERFACE */
.chat-wrap {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  width: 100%;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 700px;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(14, 12, 10, 0.4);
}

.chat-header .agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.chat-header .agent-name {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

[data-theme="light"] .chat-header .agent-name {
  color: #000000 !important;
}

.chat-header .step-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-left: auto;
}

.chat-header .header-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-left: auto; /* Push to the right, exactly matching the step-tag */
}

/* Color filters for Kuntum & Embun logo PNGs in Dark/Light themes */
.chat-header img[src*="kuntum_logo"],
.nav-logo img[src*="kuntum_logo"] {
  filter: brightness(0) saturate(100%) invert(68%) sepia(35%) saturate(1212%) hue-rotate(345deg) brightness(96%) contrast(92%);
}

.chat-header img[src*="embun_logo"] {
  filter: brightness(0) saturate(100%) invert(53%) sepia(11%) saturate(762%) hue-rotate(67deg) brightness(96%) contrast(87%);
}

[data-theme="light"] .chat-header img[src*="kuntum_logo"],
[data-theme="light"] .nav-logo img[src*="kuntum_logo"] {
  filter: brightness(0) saturate(100%) invert(47%) sepia(56%) saturate(1348%) hue-rotate(344deg) brightness(96%) contrast(88%);
}

[data-theme="light"] .chat-header img[src*="embun_logo"] {
  filter: brightness(0) saturate(100%) invert(36%) sepia(21%) saturate(1067%) hue-rotate(69deg) brightness(96%) contrast(90%);
}

.chat-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  overflow-y: auto;
  background: var(--bg-elevated);
}

.bubble-agent {
  max-width: 85%;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.6;
  align-self: flex-start;
  border-radius: var(--radius-xl);
  border-top-left-radius: var(--radius-sm);
}

.bubble-user {
  max-width: 85%;
  padding: 1rem 1.25rem;
  background: rgba(232, 168, 87, 0.06);
  border: 1px solid rgba(232, 168, 87, 0.2);
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
  align-self: flex-end;
  border-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-sm);
}

.typing {
  display: flex;
  gap: 4px;
  padding: 0.75rem 1.25rem;
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: tbounce 1.2s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes tbounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  background: rgba(14, 12, 10, 0.2);
}

.chat-footer .input {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

/* SKELETONS & SPINNERS */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--line-active) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line-active);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* AVATARS */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bg-overlay);
  border: 1px solid var(--line);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-sm { width: 28px; height: 28px; font-size: 0.65rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

.avatar-initials {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--amber);
  line-height: 1;
  user-select: none;
}

.avatar-anon {
  background: var(--line-active);
  border-color: var(--line);
}

.avatar-anon .avatar-initials {
  color: var(--muted);
}

/* STAT METRICS */
.metric {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.metric .metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.75rem;
}

.metric .metric-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--amber);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.5rem;
}

.metric .metric-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* MATCH PILLS & BAR */
.match-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.match-score .score-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.match-bar {
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.match-bar-fill {
  height: 100%;
  background: var(--amber);
  transition: width 0.6s ease;
}

.match-block {
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  min-width: 180px;
  border-radius: var(--radius-lg);
}

/* TABLE */
.table-wrap {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 12, 10, 0.4);
}

.table td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--ink-muted);
  vertical-align: middle;
}

.table tr:hover td {
  background: rgba(255,255,255,0.015);
}

.table td:first-child {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: var(--z-tooltip);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-active);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.theme-toggle:hover {
  border-color: var(--amber);
  color: var(--amber);
}

/* SECTION SPECIFIC LAYOUTS */

/* 1. HERO SECTION */
.hero-section {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.hero-headline {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 6.8vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero-headline em {
  font-style: italic;
  color: var(--amber);
}

.hero-subheadline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--ink-muted);
  max-width: 68ch;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.65;
}

.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.18; /* subtle opacity to blend beautifully and not distract */
  mix-blend-mode: luminosity; /* blends organically with dark/light themes */
  filter: contrast(1.15) brightness(0.75) saturate(0.95);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

[data-theme="light"] .hero-image-bg {
  opacity: 0.08; /* slightly softer in light mode for excellent text contrast */
  mix-blend-mode: multiply; /* blends perfectly on the warm light paper background */
  filter: contrast(1.05) brightness(0.95);
}

#magic-rings-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.75;
}

.backdrop-shape {
  position: absolute;
  filter: blur(120px);
  border-radius: 50%;
  opacity: 0.25;
}

.shape-kuntum {
  background: var(--amber);
  width: 450px;
  height: 450px;
  top: -10%;
  right: -5%;
}

.shape-embun {
  background: var(--info);
  width: 500px;
  height: 500px;
  bottom: -15%;
  left: -5%;
}

/* 2. CHOOSE YOUR PATH */
.path-section {
  padding: 4rem 2rem;
}

.split-panel {
  display: flex;
  min-height: 550px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
}

.split-side {
  flex: 1;
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: flex-grow var(--transition-slow) cubic-bezier(0.25, 1, 0.5, 1), background var(--transition-smooth);
}

.split-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  pointer-events: none;
  background: radial-gradient(circle, var(--amber) 0%, transparent 80%);
}

.split-left {
  border-right: 1px solid var(--line);
}

.split-left::before {
  background: radial-gradient(circle, var(--info) 0%, transparent 80%);
  opacity: 0.05;
}

.split-header {
  z-index: 5;
}

.split-header span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  display: block;
}

.split-header h3 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.split-header h3 em {
  font-style: italic;
  color: var(--amber);
}

.split-header-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
}

.split-header-logo[src*="kuntum_logo"] {
  filter: brightness(0) saturate(100%) invert(68%) sepia(35%) saturate(1212%) hue-rotate(345deg) brightness(96%) contrast(92%);
}

.split-header-logo[src*="embun_logo"] {
  filter: brightness(0) saturate(100%) invert(53%) sepia(11%) saturate(762%) hue-rotate(67deg) brightness(96%) contrast(87%);
}

[data-theme="light"] .split-header-logo[src*="kuntum_logo"] {
  filter: brightness(0) saturate(100%) invert(47%) sepia(56%) saturate(1348%) hue-rotate(344deg) brightness(96%) contrast(88%);
}

[data-theme="light"] .split-header-logo[src*="embun_logo"] {
  filter: brightness(0) saturate(100%) invert(36%) sepia(21%) saturate(1067%) hue-rotate(69deg) brightness(96%) contrast(90%);
}

.color-embun {
  color: var(--success) !important;
}

.split-body {
  margin: 2rem 0;
  z-index: 5;
}

.split-body p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-muted);
  line-height: 1.6;
}

.split-footer {
  z-index: 5;
  margin-top: auto;
}

/* CANDIDATE SUBSECTIONS */
.candidate-subsections {
  display: flex;
  flex-direction: column;
  gap: 7rem;
  margin-top: 4rem;
}

.candidate-subsection {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.candidate-subsection.alternate {
  grid-template-columns: 1fr 1.1fr;
}

.candidate-subsection-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.candidate-subsection-content .step-num-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--amber);
  background: rgba(232, 168, 87, 0.06);
  border: 1px solid rgba(232, 168, 87, 0.15);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.candidate-subsection-content h3 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.candidate-subsection-content h3 em {
  font-style: italic;
  color: var(--amber);
}

.candidate-subsection-content p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.candidate-subsection-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.candidate-subsection-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.candidate-subsection-feature i {
  color: var(--amber);
  font-size: 15px;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* CENTERED SUBSECTIONS FOR STEP 03 AND 04 */
.candidate-subsection.centered-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding: 4.5rem 1.5rem 0 1.5rem; /* Set bottom padding to 0 */
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);

  /* Full-bleed edge-to-edge breakout */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  border-left: none !important;
  border-right: none !important;
  border-radius: 0;
  overflow: hidden;
  max-width: none !important; /* Allow breakout to override max-width */
}

.candidate-subsection.centered-block .candidate-subsection-content {
  align-items: center;
  max-width: 800px;
}

.candidate-subsection.centered-block .candidate-subsection-content .step-num-badge {
  align-self: center;
}

.candidate-subsection.centered-block h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
}

.candidate-subsection.centered-block .candidate-subsection-features {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2.5rem;
  margin-top: 1rem;
}

.candidate-subsection.centered-block .candidate-subsection-feature {
  max-width: 340px;
  text-align: left;
}

.candidate-subsection.centered-block .chat-wrap {
  max-width: 820px !important;
  height: 480px !important;
  border-bottom: none !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: 0 !important;
}

/* PREMIUM ELEVATED AND GRADIENT BACKGROUNDS FOR STEPS 03 & 04 */
.candidate-subsection.sub-block-amber {
  background: linear-gradient(180deg, rgba(232, 168, 87, 0.035) 0%, rgba(232, 168, 87, 0.008) 100%), var(--bg-elevated);
  border: 1px solid rgba(232, 168, 87, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.candidate-subsection.sub-block-green {
  background: linear-gradient(180deg, rgba(107, 142, 107, 0.045) 0%, rgba(107, 142, 107, 0.01) 100%), var(--bg-elevated);
  border: 1px solid rgba(107, 142, 107, 0.16);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Light Theme overrides for visual separation */
[data-theme="light"] .candidate-subsection.sub-block-amber {
  background: linear-gradient(180deg, rgba(196, 125, 30, 0.05) 0%, rgba(196, 125, 30, 0.01) 100%), var(--bg-elevated);
  border: 1px solid rgba(196, 125, 30, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .candidate-subsection.sub-block-green {
  background: linear-gradient(180deg, rgba(61, 107, 61, 0.05) 0%, rgba(61, 107, 61, 0.01) 100%), var(--bg-elevated);
  border: 1px solid rgba(61, 107, 61, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
}

/* ELIMINATE GAP BETWEEN STEP 03 AND STEP 04 TO BE VISUALLY SEAMLESS */
#candidate-sub-3 + #candidate-sub-4 {
  margin-top: -7rem; /* Negate the 7rem flexbox gap to join Step 3 & 4 */
  border-top: none !important; /* Seamless back-to-back transition */
}

/* Ensure the full-bleed green block touches the bottom showcase section seamlessly */
#candidates {
  padding-bottom: 0 !important;
}

/* 3. COMPANIES & CANDIDATES STEPS SECTION */
.steps-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.step-item {
  position: relative;
  padding: 1.25rem 1.5rem 1.25rem 5rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.step-num {
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--muted);
  line-height: 1;
  transition: color var(--transition-base);
}

.step-item h4 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
  color: var(--ink);
  transition: color var(--transition-base);
}

.step-item p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

.step-item:hover {
  background: var(--bg-elevated);
  border-color: var(--line);
  transform: translateX(4px);
}

.step-item:hover .step-num {
  color: var(--amber);
}

.step-item.active {
  background: var(--bg-overlay);
  border-color: var(--line-active);
  border-left: 3px solid var(--amber);
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.step-item.active h4 {
  color: var(--amber);
}

.step-item.active .step-num {
  color: var(--amber);
  font-weight: 500;
}

/* Chat Mockup Visuals */
.chat-mockup-wrapper {
  perspective: 1000px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Checklist Visual Widget */
.checklist-widget {
  padding: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
}

.checklist-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}

.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
  opacity: 0.5;
  transition: opacity 0.5s ease, color 0.5s ease;
}

.checklist-item.active {
  opacity: 1;
  color: var(--ink);
}

.checklist-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.checklist-check svg {
  width: 100%;
  height: 100%;
}

.checklist-check path {
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 0.8s ease;
}

.checklist-item.active .checklist-check path {
  stroke-dashoffset: 0;
}

/* 4. WHY US INTERTWINE DIAGRAM */
.diagram-container {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 3rem;
}

.ecosystem-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-width: 800px;
  margin: 2rem auto;
}

.diagram-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 130px;
  height: 130px;
  z-index: 10;
  pointer-events: auto;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diagram-hub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 20px; /* smoothly round the corners of the white canvas */
  background-color: #ffffff; /* ensure solid white background */
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.12));
  transition: filter 0.3s ease;
}

.diagram-hub:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.diagram-hub:hover img {
  filter: drop-shadow(0 0 12px rgba(107, 142, 107, 0.35));
}

.diagram-node-small {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform: translate(-50%, -50%);
}

.diagram-node-small:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 12px rgba(232, 168, 87, 0.2);
}

.diagram-node-small.node-left:hover {
  border-color: var(--amber);
}

.diagram-node-small.node-right:hover {
  border-color: var(--amber);
}

.diagram-node-small i {
  font-size: 12px;
  color: var(--ink-muted);
  transition: color 0.3s ease;
}

.diagram-node-small:hover i {
  color: var(--amber);
}

.diagram-node-small span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.diagram-node-small:hover span {
  color: var(--amber);
}

.diagram-node-small::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm);
  z-index: 20;
}

.diagram-node-small:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Connecting paths */
.diagram-paths {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.diagram-paths svg {
  width: 100%;
  height: 100%;
}

.connection-path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
  opacity: 0.25;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

.connection-path-active {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  opacity: 0.25;
  animation: dashOffset 15s linear infinite;
  transition: stroke 0.3s ease, opacity 0.3s ease;
}

@keyframes dashOffset {
  to {
    stroke-dashoffset: -1000;
  }
}

.diagram-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
  border-top: 1px dashed var(--line);
  padding-top: 1.5rem;
}

.label-group {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.label-left {
  align-items: flex-start;
  text-align: left;
}

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

.label-right {
  align-items: flex-end;
  text-align: right;
}

.label-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.label-name {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
}

/* 5. FOOTER & FINAL CTA */
.footer-cta {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--amber);
}

.footer-cta h2 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.footer-layout {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-brand {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--amber);
  letter-spacing: -0.02em;
}

.footer-credits {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.725rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.footer-kd-icon {
  height: 14px;
  width: auto;
  opacity: 0.9;
  vertical-align: middle;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-kd-icon:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 1rem;
  margin: 0.25rem 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.725rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber);
}

.footer-kd-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--transition-fast);
}

.footer-kd-link:hover {
  color: var(--amber);
}

.footer-kd-link:hover .footer-kd-icon {
  transform: scale(1.1);
  opacity: 1;
}


.footer-meta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  text-align: right;
}

.footer-attribution {
  font-size: 0.625rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  line-height: 1.65;
}

.footer-attribution a {
  color: var(--ink-muted);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-attribution a:hover {
  color: var(--amber);
}

/* Candidate Vector Corpus Profile Card */
.corpus-card {
  width: 100%;
  padding: 1.25rem;
  background: rgba(232, 168, 87, 0.02);
  border: 1px dashed rgba(232, 168, 87, 0.25);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(232, 168, 87, 0.03);
}

.corpus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.corpus-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 0.85rem;
}

.corpus-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  text-transform: uppercase;
}

.corpus-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(107, 142, 107, 0.1);
  color: var(--success);
  border: 1px solid rgba(107, 142, 107, 0.15);
}

.corpus-skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0;
}

.corpus-experience {
  text-align: left;
}

.corpus-skill-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-overlay);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.corpus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
}

.corpus-grid-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.corpus-grid-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.corpus-grid-value {
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 500;
}

.corpus-insight {
  margin-top: 0.85rem;
  padding: 0.6rem;
  background: rgba(232, 168, 87, 0.02);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* WHY KUNTUM HITS DIFFERENT - GRID AND DOUBLE CARD */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 992px) {
  .why-us-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-double {
    grid-column: span 2;
  }
}

.card-double-bg {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.card-double-bg .card-image {
  position: absolute;
  top: 50%;
  right: 3rem;
  left: auto;
  transform: translateY(-50%);
  width: 140px;
  height: 140px;
  background-image: url('kd.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
  opacity: 0.85;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity var(--transition-smooth);
}

.card-double-bg:hover .card-image {
  transform: translateY(-50%) scale(1.06);
  opacity: 1;
}

.card-double-bg .card-content {
  position: relative;
  z-index: 2;
  max-width: 60%;
}

.card-double-bg h3 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-top: 0.5rem;
}

.card-double-bg p {
  color: var(--text-muted);
  max-width: 50ch;
}

.card-double-bg:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* MALAYSIAN TALENT SHOWCASE */
.talent-showcase-section {
  width: 100%;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
  margin: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
}

.showcase-card {
  position: relative;
  overflow: hidden;
  height: 65vh;
  min-height: 520px;
  max-height: 750px;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.showcase-card:last-child {
  border-right: none;
}

.showcase-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.9) contrast(1.05);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.2);
  z-index: 1;
  transition: background var(--transition-smooth);
}

.showcase-card:hover .showcase-overlay {
  background: rgba(10, 10, 10, 0.3);
}

/* Middle Special Overlay (Glassmorphism + Dark/Light Theme Support) */
.showcase-middle .showcase-overlay {
  background: rgba(10, 10, 10, 0.65);
  backdrop-filter: blur(2px);
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

[data-theme="light"] .showcase-middle .showcase-overlay {
  background: rgba(255, 254, 252, 0.85);
  backdrop-filter: blur(4px);
}

.showcase-middle:hover .showcase-overlay {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(3px);
}

[data-theme="light"] .showcase-middle:hover .showcase-overlay {
  background: rgba(255, 254, 252, 0.9);
}

.showcase-content-center {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 85%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 2.5rem;
  box-sizing: border-box;
}

.showcase-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
}

.showcase-title {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.showcase-title em {
  font-style: italic;
  color: var(--amber);
}

.showcase-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
  margin: 0;
}

/* RESPONSIVE ADAPTERS */
@media (max-width: 900px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .chat-mockup-wrapper {
    order: -1;
  }
}

@media (max-width: 800px) {
  .nav {
    padding: 1.25rem 1.5rem;
  }
  
  .nav-links {
    display: none; /* Can build a hamburger or slide-out menu if needed, but for modular elegance let's keep nav links hidden on small screens and utilize actions */
  }
  
  .split-panel {
    flex-direction: column;
    min-height: auto;
  }
  
  .split-left {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  
  .split-side {
    padding: 3rem 2rem;
  }
  
  .hero-section {
    padding: 3rem 1.5rem;
  }
  
  .container, .container-wide {
    padding: 4rem 1.5rem;
  }
  
  .ecosystem-diagram {
    aspect-ratio: 2 / 1.1;
  }
  .diagram-hub {
    width: 90px;
    height: 90px;
  }
  .diagram-hub img {
    border-radius: 12px;
  }
  .diagram-node-small {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }
  .diagram-node-small i {
    font-size: 9px;
  }
  .diagram-node-small span {
    font-size: 0.5rem;
  }
  .hub-eyes {
    gap: 4px;
    margin-bottom: 4px;
  }
  .hub-eye {
    width: 1px;
    height: 5px;
  }
  .hub-mouth {
    width: 9px;
    height: 1px;
  }
  .label-name {
    font-size: 0.9rem;
  }
  .label-tag {
    font-size: 0.55rem;
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  
  .hero-ctas a {
    width: 100%;
  }
  
  .footer-cta {
    padding: 4rem 1.5rem;
  }
  
  .footer-layout {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand-group {
    align-items: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-meta-group {
    align-items: center;
    text-align: center;
  }
}

/* RESPONSIVE OVERRIDES FOR SHOWCASE & DOUBLE CARD */
@media (max-width: 768px) {
  .talent-showcase-section {
    padding: 0;
    margin: 2.5rem 0;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .showcase-card {
    height: 45vh;
    min-height: 380px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .showcase-card:last-child {
    border-bottom: none;
  }
  .showcase-content-center {
    padding: 1.5rem;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-double {
    grid-column: span 1 !important;
  }
  .card-double-bg {
    min-height: 280px;
    padding: 1.5rem;
  }
  .card-double-bg .card-image {
    top: 1.5rem;
    right: 1.5rem;
    transform: none;
    width: 60px;
    height: 60px;
    opacity: 0.35;
  }
  .card-double-bg:hover .card-image {
    transform: scale(1.05);
  }
  .card-double-bg .card-content {
    max-width: 100%;
    margin-top: 1.5rem;
  }
  .card-double-bg h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 991px) {
  .candidate-subsections {
    gap: 4.5rem;
  }
  .candidate-subsection,
  .candidate-subsection.alternate {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .candidate-subsection-content {
    order: 1 !important;
  }
  .candidate-subsection .chat-mockup-wrapper,
  .candidate-subsection #kuntum-profile-view,
  .candidate-subsection #kuntum-checklist-view {
    order: 2 !important;
  }
  #candidate-sub-3 + #candidate-sub-4 {
    margin-top: -4.5rem; /* Match the mobile gap of 4.5rem */
  }
}

/* ONBOARDING SIMULATOR COMPONENT STYLES */
.simulator-section {
  position: relative;
  z-index: 5;
}

/* Animations for Simulator */
@keyframes spin-loader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-border {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 168, 87, 0.4); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(232, 168, 87, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 168, 87, 0); }
}

@keyframes bounce-hand {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@keyframes pulse-cpu {
  0% { filter: drop-shadow(0 0 2px rgba(232, 168, 87, 0.2)); }
  100% { filter: drop-shadow(0 0 10px rgba(232, 168, 87, 0.7)); }
}

@keyframes pulse-arrow {
  0% { opacity: 0.3; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(4px); }
  100% { opacity: 0.3; transform: translateX(0); }
}

/* Responsive arrows & columns */
@media (max-width: 767px) {
  .sim-arrow-hide-mobile {
    display: none !important;
  }
}

/* Custom Scrolling Dashes and Idle bounce for Onboarding Resume Simulator */
@keyframes dash-scroll {
  to {
    stroke-dashoffset: -22;
  }
}

.sim-arrow-svg path:first-child {
  animation: dash-scroll 1.2s linear infinite;
}

@keyframes resume-idle-bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.draggable-resume.idle-bounce {
  animation: resume-idle-bounce 1.5s ease-in-out infinite alternate;
  transition: box-shadow 0.15s ease, border-color 0.15s ease !important; /* Disable transition on transform during idle animation */
}

/* Hide scrollbar indicators while keeping scroll functionality */
#kuntum-profile-view,
#kuntum-checklist-view,
.chat-body {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

#kuntum-profile-view::-webkit-scrollbar,
#kuntum-checklist-view::-webkit-scrollbar,
.chat-body::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Styling for Interview Prep feature cards */
.candidate-subsection.centered-block .prep-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  max-width: 340px;
}

.prep-feature-card i {
  color: var(--amber);
  font-size: 2.2rem;
  display: inline-block;
  margin-bottom: 0.25rem;
  transition: transform var(--transition-base), color var(--transition-base);
}

.prep-feature-content h4 {
  font-family: "Inter Tight", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem 0;
}

.prep-feature-content p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

/* Animations for icons */
.anim-bob {
  animation: icon-bob 2.2s ease-in-out infinite alternate;
}

.anim-pulse-scale {
  animation: icon-pulse-scale 2.5s ease-in-out infinite;
}

@keyframes icon-bob {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-8px);
  }
}

@keyframes icon-pulse-scale {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(232, 168, 87, 0));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(232, 168, 87, 0.45));
  }
}



