@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ══════════════════════════════════════════════════════════════
   SWISS STARK AI DESIGN SYSTEM (Vibes UI Engine 3.0)
   Mikhail Puzyrev Multi-page Platform
   Fonts: Space Grotesk (Headers/UI) + JetBrains Mono (Tech/Data)
══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #ffffff;
  --bg-gray: #f8fafc;
  --bg-card: #f1f5f9;
  --bg-dark: #09090b;
  --bg-dark-card: #18181b;
  --black: #09090b;
  --gray: #52525b;
  --gray-light: #e4e4e7;
  --border: #e2e8f0;
  --border-dark: #27272a;
  
  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  
  --green: #10b981;
  --green-dark: #059669;
  --green-bg: #ecfdf5;
  --emerald: #10b981;
  --cyan: #06b6d4;
  --red: #ef4444;

  /* Card Standard Design Tokens (Reference: Image 4) */
  --card-bg: #ffffff;
  --card-border: 1px solid var(--border);
  --card-border-color: var(--border);
  --card-radius: 0px;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.07);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--black);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  word-break: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .card-title, .form-title, .roadmap-card-heading, .sol-card-title, .price-name {
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

p, li, .hero-sub, .section-sub, .card-desc, .feature-desc, .roadmap-card-text, .sol-card-desc, .price-period {
  text-wrap: pretty;
  overflow-wrap: break-word;
}

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

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

button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0;
}

.nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 24px);
  min-width: 0;
  height: 68px;
  padding: 0 clamp(16px, 2.5vw, 48px);
  box-sizing: border-box;
}

.nav-logo {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: fit-content;
  overflow: visible;
  text-decoration: none !important;
}

.nav-logo strong {
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-block;
}

.nav-logo strong span.accent-yo {
  color: var(--green);
}

.nav-logo-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--black);
  color: #fff;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  flex: 0 0 auto;
}

.nav-links li {
  flex-shrink: 0;
}

.nav-links a {
  position: relative;
  color: #52525b;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
  padding: 8px 0;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-link-text {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}

.nav-links > li > a.active,
.nav-dropdown-toggle.active {
  color: var(--black) !important;
  font-weight: 500 !important;
}

/* Tight, close underline strictly under the text words, excluding the arrow */
.nav-links > li > a.active .nav-link-text::after,
.nav-dropdown-toggle.active .nav-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: 0;
}

.nav-cta {
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  padding: 0 18px;
  height: 40px;
  min-height: 40px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  border-radius: 0;
  box-sizing: border-box;
}

.nav-cta:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Nav Auth Button (Square Profile Button matching all platform buttons) */
.nav-auth-btn {
  height: 40px;
  min-height: 40px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--black);
  border: 1px solid var(--black);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  text-decoration: none;
  box-sizing: border-box;
}

.nav-auth-btn:hover {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.nav-auth-btn:hover svg {
  stroke: #ffffff;
}

.nav-auth-btn.logged-in {
  background: #ffffff;
  border: 1px solid var(--border);
  color: #18181b;
  padding: 0 8px;
  gap: 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.04);
}

.nav-auth-btn.logged-in:hover {
  background: #f4f4f5;
  border-color: var(--black);
  color: #18181b;
}

/* User Profile Dropdown Menu in Navigation */
.nav-user-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid var(--black);
  border-radius: 0 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 10001;
  display: none;
  flex-direction: column;
  padding: 6px 0;
  box-sizing: border-box;
  animation: navDropdownFadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.nav-user-dropdown-menu.show {
  display: flex;
}

@keyframes navDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-user-dropdown-header {
  padding: 10px 14px;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
}

.nav-user-dropdown-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #09090b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-user-dropdown-sub {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #71717a;
  margin-top: 2px;
}

.nav-user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.nav-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #27272a;
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: var(--font);
}

.nav-user-dropdown-item:hover {
  background: #f4f4f5;
  color: #09090b;
}

.nav-user-dropdown-item svg {
  flex-shrink: 0;
  color: #71717a;
  transition: color 0.15s ease;
}

.nav-user-dropdown-item:hover svg {
  color: #09090b;
}

.nav-user-dropdown-logout {
  color: #dc2626 !important;
}

.nav-user-dropdown-logout svg {
  color: #dc2626 !important;
}

.nav-user-dropdown-logout:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.nav-user-dropdown-logout:hover svg {
  color: #b91c1c !important;
}

/* Auth Modal Popup */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border);
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active .auth-modal-dialog {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  color: var(--black);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-modal-close:hover {
  background: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px 20px 48px;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.open {
  display: flex;
  animation: mobileMenuFade 0.22s ease-out;
}

@keyframes mobileMenuFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu a {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--black);
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--emerald);
  padding-left: 6px;
}

.mobile-menu a.active {
  color: var(--black);
  font-weight: 700;
  border-bottom: 2px solid var(--black);
}

.mobile-menu .m-cta {
  background: var(--black);
  color: #fff !important;
  text-align: center;
  justify-content: center;
  margin-top: 14px;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 0;
  border: 1px solid var(--black);
  width: 100%;
}

.mobile-menu .m-cta:active {
  transform: scale(0.98);
}

body.menu-open {
  overflow: hidden;
}

/* ══════════════════════════════════════════
   HERO SECTIONS
══════════════════════════════════════════ */
.hero {
  min-height: 85vh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 68px 0 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  width: 100%;
}

.hero-full {
  grid-template-columns: 1fr;
}

.hero-left {
  padding: clamp(48px, 5.5vw, 72px) clamp(24px, 4vw, 64px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '// ';
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-bg);
  color: var(--green-dark);
  border: 1px solid var(--border);
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--green);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.2rem, 3.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-title em,
.section-title em {
  font-style: normal;
  -webkit-text-stroke: 2px var(--black);
  color: transparent;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-sub strong {
  color: var(--black);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: -0.02em;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: #27272a;
  border-color: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--border-dark);
  padding: 16px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  transition: all 0.2s;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--bg-gray);
  border-color: var(--black);
  transform: translateY(-2px);
}

.hero-right {
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--bg-gray);
}

/* ══════════════════════════════════════════
   INTERACTIVE SIMULATOR / CONSOLE
══════════════════════════════════════════ */
.simulator-card {
  background: var(--bg-dark);
  color: #f4f4f5;
  border: 1px solid var(--border-dark);
  overflow: hidden;
  font-family: var(--font);
  width: 100%;
}

.sim-bar {
  background: var(--bg-dark-card);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-dark);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
}

.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }

.window-title {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: #a1a1aa;
}

.live-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #34d399;
}

.sim-tabs {
  display: flex;
  background: var(--bg-dark-card);
  border-bottom: 1px solid var(--border-dark);
  overflow-x: auto;
}

.sim-tab {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #a1a1aa;
  border-right: 1px solid var(--border-dark);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.sim-tab:hover {
  color: #fff;
  background: #27272a;
}

.sim-tab.active {
  color: #fff;
  background: var(--bg-dark);
  font-weight: 700;
  border-bottom: 2px solid #34d399;
}

.sim-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sim-step {
  border-left: 2px solid var(--border-dark);
  padding-left: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sim-step::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: #52525b;
}

.sim-step.active::before {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.sim-step-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #a1a1aa;
  letter-spacing: 0.06em;
}

.sim-step-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fafafa;
}

.sim-step-desc {
  font-size: 0.84rem;
  color: #a1a1aa;
  line-height: 1.6;
}

.sim-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sim-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: #27272a;
  color: #e4e4e7;
  border-radius: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  width: 100%;
  margin-bottom: 28px;
  background: var(--bg);
  align-items: stretch;
}

.hero-stats.hero-stats-4 {
  grid-template-columns: repeat(4, 1fr);
}

.h-stat {
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.h-stat:last-child {
  border-right: none;
}

.h-stat-num {
  font-size: clamp(1.2rem, 1.4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 6px;
  color: var(--black);
  white-space: nowrap;
  width: 100%;
}

.h-stat-lab {
  font-size: 0.74rem;
  color: var(--gray);
  font-family: var(--mono);
  line-height: 1.38;
}

@media (max-width: 992px) {
  .hero-stats.hero-stats-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stats.hero-stats-4 .h-stat:nth-child(2) {
    border-right: none;
  }
  .hero-stats.hero-stats-4 .h-stat:nth-child(1),
  .hero-stats.hero-stats-4 .h-stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 580px) {
  .hero-stats,
  .hero-stats.hero-stats-4 {
    grid-template-columns: 1fr;
  }
  .hero-stats .h-stat {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .hero-stats .h-stat:last-child {
    border-bottom: none;
  }
}

/* ══════════════════════════════════════════
   SECTION BASE & UNIFIED SPATIAL RHYTHM
══════════════════════════════════════════ */
.section {
  padding: clamp(64px, 7vw, 100px) 0;
  max-width: 1440px;
  margin: 0 auto;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  scroll-margin-top: 68px;
}

/* First section on pages without .hero */
main > .section:first-child {
  padding-top: calc(68px + clamp(40px, 4.5vw, 64px));
}

.section-border {
  border-top: 1px solid var(--border);
}

.section-pad {
  padding-left: clamp(20px, 4.5vw, 64px);
  padding-right: clamp(20px, 4.5vw, 64px);
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-tag::before {
  content: '// ';
}

.section-title {
  font-size: clamp(2.2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 740px;
  line-height: 1.72;
  margin-bottom: 36px;
}

/* ══════════════════════════════════════════
   MATRIX & CARDS
══════════════════════════════════════════ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: none;
  background: transparent;
  gap: 20px;
  margin-top: 36px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: none;
  background: transparent;
  gap: 20px;
  margin-top: 36px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: none;
  background: transparent;
  gap: 20px;
  margin-top: 36px;
}

.feature-card {
  padding: clamp(32px, 3.2vw, 40px) clamp(24px, 2.5vw, 32px);
  background: var(--card-bg, #ffffff);
  border: var(--card-border, 1px solid var(--border));
  border-radius: var(--card-radius, 0) !important;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease,
              background 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover, 0 12px 32px rgba(0, 0, 0, 0.07));
}

.card-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 4px;
}

.card-desc {
  font-size: 0.94rem;
  color: var(--gray);
  line-height: 1.7;
  flex: 1;
}

.card-desc strong {
  color: var(--black);
  font-weight: 600;
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ══════════════════════════════════════════
   PROJECT SHOWCASE (aipsy.press, etc.)
══════════════════════════════════════════ */
.project-card {
  padding: clamp(36px, 4vw, 56px) clamp(20px, 4.5vw, 64px);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  background: var(--bg);
}

.project-card:nth-child(even) {
  background: var(--bg-gray);
}

.project-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  background: var(--black);
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
}

.project-title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 0.96rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 20px;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
}

.p-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
}

.p-stat-lab {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--gray);
}

.project-preview-box {
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid var(--border-dark);
  padding: 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  border-radius: 0;
  overflow-x: auto;
}

/* ══════════════════════════════════════════
   PRICING & FORMATS
══════════════════════════════════════════ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: none;
  background: transparent;
  gap: 20px;
  margin-top: 36px;
}

.price-grid.grid-2,
.price-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.price-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, #ffffff);
  border: var(--card-border, 1px solid var(--border));
  border-radius: var(--card-radius, 0) !important;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
  position: relative;
  height: 100%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.price-card.featured {
  background: var(--black);
  color: #fff;
}

.price-card.featured .price-period,
.price-card.featured .price-feat {
  color: rgba(255, 255, 255, 0.7);
}

.price-card.featured .price-feat strong {
  color: #fff;
}

.price-card.featured .price-divider {
  border-color: rgba(255, 255, 255, 0.15);
}

.price-card.featured .btn-price {
  background: #fff;
  color: var(--black);
  border-color: #fff;
}

.price-card.featured .btn-price:hover {
  background: #f4f4f5;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.price-badge {
  display: inline-flex;
  background: var(--green);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  font-family: var(--mono);
  margin-bottom: 16px;
  width: fit-content;
}

.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 6px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 24px;
}

.price-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

.price-feats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
  flex: 1;
}

.price-feat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gray);
}

.price-feat::before {
  content: '✓';
  font-weight: 700;
  color: var(--green-dark);
  flex-shrink: 0;
}

.price-feat strong {
  color: var(--black);
  font-weight: 600;
}

.btn-price {
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  padding: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-price:hover {
  background: #27272a;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   SPEAKING PHOTO GALLERY
══════════════════════════════════════════ */
.speaking-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s;
  filter: grayscale(15%) contrast(105%);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%) contrast(100%);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.88) 0%, rgba(9, 9, 11, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.gallery-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #34d399;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.gallery-caption {
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.25;
}

@media (max-width: 1024px) {
  .speaking-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .speaking-gallery {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   AUTHOR PHOTO CARDS
══════════════════════════════════════════ */
.author-photo-card {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.author-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  filter: contrast(105%);
}

.author-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.45) 60%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.author-photo-name {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.author-photo-role {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #34d399;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   FAQ ACCORDION (Design System Standard: Clean Horizontal Dividers, Zero Outer Box)
   ══════════════════════════════════════════ */
.faq-list {
  border-top: 1px solid var(--border);
  border-left: none;
  border-right: none;
  border-bottom: none;
  margin-top: 36px;
  border-radius: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  border-left: none;
  border-right: none;
  transition: background-color 0.25s ease;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-item.open {
  background-color: transparent;
}

.faq-q {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: inherit;
  color: var(--black);
  transition: color 0.2s ease;
}

.faq-q:hover {
  background: transparent;
  color: var(--black);
}

.faq-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              color 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
  transform: rotate(45deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  min-height: 0;
  padding: 0 0 0;
  font-size: 0.94rem;
  color: var(--gray);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-a-inner {
  opacity: 1;
  transform: translateY(0);
  padding: 0 0 24px;
}

/* ══════════════════════════════════════════
   FOOTER & FORM
══════════════════════════════════════════ */
.form-section {
  background: var(--black);
  color: #fff;
  padding: 0;
  border-top: 1px solid var(--border-dark);
}

.form-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(64px, 7vw, 100px) clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(36px, 4.5vw, 64px);
  align-items: center;
}

.form-left {
  max-width: 640px;
}

.form-title {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.form-sub {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
  margin-bottom: 28px;
}

.form-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.76rem;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: #18181b;
  border: 1px solid #27272a;
  color: #fff;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #fff;
  background: #27272a;
}

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

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

.form-check input[type="checkbox"] {
  accent-color: #fff;
  margin-top: 3px;
}

.form-check a {
  text-decoration: underline;
  color: #fff;
}

/* Honeypot field */
.hp-field {
  display: none !important;
  visibility: hidden !important;
}

.direct-contact-card {
  background: #18181b;
  border: 1px solid #27272a;
  padding: 36px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .direct-contact-card {
    padding: 24px 16px;
    max-width: 100%;
  }
}

.footer {
  background: #000;
  color: #a1a1aa;
  padding: 0;
  border-top: 1px solid #18181b;
  font-size: 0.85rem;
}

.footer-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 36px clamp(16px, 2.5vw, 48px);
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a:hover {
  color: #fff;
}

/* ══════════════════════════════════════════
   CALENDAR & BOOKING PAGE
══════════════════════════════════════════ */
.calendar-direct-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  padding: 32px 40px;
  gap: 32px;
  margin-top: 36px;
}

.calendar-embed-wrapper {
  margin-top: 36px;
  border: 1px solid var(--border);
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.calendar-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 710px;
  border: none;
  filter: grayscale(100%) contrast(108%);
  transition: filter 0.3s;
}

@media (max-width: 768px) {
  .calendar-direct-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
  }
  .calendar-embed-wrapper iframe {
    height: 800px;
  }
}

/* ══════════════════════════════════════════
   REVIEWS & FEEDBACK INFINITE CAROUSEL
══════════════════════════════════════════ */
.reviews-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 36px;
  padding: 12px 0 16px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.reviews-carousel-wrapper:active {
  cursor: grabbing;
}

.reviews-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.review-slide-card {
  width: 175px;
  height: 275px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, filter, opacity;
  cursor: pointer;
}

.review-slide-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--black);
}

.review-slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .review-slide-card {
    width: 145px;
    height: 230px;
    border-radius: 0;
  }
}

/* ══════════════════════════════════════════
   CERTIFICATES INFINITE CAROUSEL
══════════════════════════════════════════ */
.certs-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 36px;
  padding: 8px 0 16px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.certs-carousel-wrapper:active {
  cursor: grabbing;
}

.certs-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.cert-slide-card {
  width: 290px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, filter, opacity;
}

.cert-slide-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--black);
}

.cert-slide-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
}

.cert-slide-caption {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--black);
  font-weight: 600;
  background: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .cert-slide-card {
    width: 240px;
  }
  .cert-slide-card img {
    height: 170px;
  }
}

/* ══════════════════════════════════════════
   SPEAKING INFINITE CAROUSEL
══════════════════════════════════════════ */
.speaking-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 36px;
  padding: 8px 0 16px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.speaking-carousel-wrapper:active {
  cursor: grabbing;
}

.speaking-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.speaking-slide-card {
  width: 320px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  will-change: transform, filter, opacity;
  cursor: pointer;
}

.speaking-slide-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  border-color: var(--black);
}

.speaking-slide-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.speaking-slide-info {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

.speaking-slide-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.speaking-slide-caption {
  font-size: 0.82rem;
  color: var(--black);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.speaking-format-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .speaking-slide-card {
    width: 260px;
  }
  .speaking-slide-card img {
    height: 180px;
  }
  .speaking-format-feats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ══════════════════════════════════════════
   CLIENT & PARTNER LOGOS
══════════════════════════════════════════ */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 1200px) {
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.logo-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.logo-card:hover {
  border-color: var(--black);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.logo-card img {
  max-width: 130px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.72);
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.logo-card:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ══════════════════════════════════════════
   IMAGE LIGHTBOX / ZOOM MODAL & INTERACTIVE NAV
══════════════════════════════════════════ */
.review-slide-card,
.cert-slide-card,
.speaking-slide-card,
.gallery-item {
  cursor: pointer;
}

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}

.lightbox-img-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  background: #09090b;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.lightbox-meta {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 840px;
  gap: 16px;
}

.lightbox-caption-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-align: left;
}

.lightbox-caption {
  color: #f4f4f5;
  font-family: var(--mono);
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.4;
}

.lightbox-counter {
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px 12px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
}

.lightbox-hint {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: left;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 0;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  z-index: 20;
}

.lightbox-close:hover {
  background: #ffffff;
  color: #09090b;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 48px;
  height: 48px;
  border-radius: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: #ffffff;
  color: #09090b;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
  left: -68px;
}

.lightbox-next {
  right: -68px;
}

@media (max-width: 900px) {
  .lightbox-prev {
    left: 12px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .lightbox-next {
    right: 12px;
    top: auto;
    bottom: -60px;
    transform: none;
  }
  .lightbox-nav-btn:hover {
    transform: scale(1.08);
  }
  .lightbox-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ══════════════════════════════════════════
   AUTHOR INTRO GRID COMPONENT
══════════════════════════════════════════ */
.author-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.author-intro-grid.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (SWISS STARK CANON)
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS (NAV & HEADER)
══════════════════════════════════════════ */
@media (max-width: 1240px) and (min-width: 961px) {
  .nav-logo { max-width: 240px; }
  .nav-logo-badge { max-width: 100px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.82rem; }
  .nav-cta { padding: 8px 14px; font-size: 0.82rem; }
}

@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .nav-cta {
    display: none !important;
  }
  .nav-burger {
    display: flex !important;
  }
}

@media (max-width: 540px) {
  .nav-logo-badge {
    display: none !important;
  }
  .nav-inner {
    padding: 0 14px;
    height: 58px;
  }
  .nav-logo strong {
    font-size: 1.05rem;
  }
}

/* ══════════════════════════════════════════
   MOBILE & TABLET RESPONSIVE RULES (< 900px)
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .section {
    padding: 44px 0;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  main > .section:first-child {
    padding-top: calc(68px + 24px);
  }

  .section-pad {
    padding-left: 18px !important;
    padding-right: 18px !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
  }

  .section-title,
  .hero-title,
  h1, h2 {
    font-size: clamp(1.4rem, 5.8vw, 1.85rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.035em !important;
    margin-bottom: 14px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .section-title em,
  .hero-title em,
  h1 em, h2 em, h3 em {
    -webkit-text-stroke: 0 !important;
    color: var(--black) !important;
    font-style: normal;
  }

  .section-sub,
  .hero-sub {
    font-size: 0.9rem !important;
    line-height: 1.62 !important;
    margin-bottom: 18px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    max-width: 100% !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) !important;
    min-height: auto;
    border-left: none !important;
    border-right: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-left {
    padding: 24px 18px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid var(--border);
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .hero-right {
    padding: 20px 18px !important;
    width: 100% !important;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .hero-tag {
    font-size: 0.7rem;
    gap: 6px;
    margin-bottom: 14px;
  }

  .author-intro-grid,
  .author-intro-grid.reverse {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 32px !important;
  }

  .author-photo-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 320px !important;
    border-radius: 0;
    box-sizing: border-box !important;
  }

  .author-photo-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 15% !important;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-actions a {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 22px;
    font-size: 0.88rem;
    min-height: 44px;
    border-radius: 0;
    box-sizing: border-box;
  }

  /* Disable heavy scroll animations on mobile for native 60fps responsiveness */
  .reveal-init,
  .stagger-group > *,
  .hero-tag,
  .hero-author-box,
  .hero-title,
  .hero-divider,
  .hero-sub,
  .hero-actions,
  .hero-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  /* Reset sticky hover effects on touch screens */
  .feature-card:hover,
  .price-card:hover,
  .project-card:hover,
  .logo-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .hero-stats,
  .hero-stats.hero-stats-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
    border: 1px solid var(--border);
    margin-top: 16px;
    box-sizing: border-box;
  }

  .h-stat {
    padding: 12px 14px;
    border-right: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
  }

  .h-stat:nth-child(2n) {
    border-right: none !important;
  }

  .h-stat:nth-last-child(-n+2) {
    border-bottom: none !important;
  }

  .h-stat-num {
    font-size: 1.3rem;
    margin-bottom: 4px;
  }

  .h-stat-lab {
    font-size: 0.68rem;
  }

  /* Simulator component on mobile */
  .simulator-card {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .sim-bar {
    padding: 8px 12px;
    gap: 6px;
    box-sizing: border-box;
  }

  .window-title {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-status {
    font-size: 0.65rem;
  }

  .sim-tabs {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
    border-bottom: 1px solid var(--border-dark);
    width: 100%;
    box-sizing: border-box;
  }

  .sim-tabs::-webkit-scrollbar {
    display: none;
  }

  .sim-tab {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.72rem;
    padding: 8px 12px;
  }

  .sim-body {
    padding: 14px 12px;
    gap: 10px;
    box-sizing: border-box;
  }

  .sim-step {
    padding-left: 10px;
  }

  .sim-step-title {
    font-size: 0.85rem;
    line-height: 1.35;
  }

  .sim-step-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .sim-tags {
    gap: 4px;
    flex-wrap: wrap;
  }

  .sim-tag {
    font-size: 0.64rem;
    padding: 2px 6px;
  }

  /* Feature cards on mobile */
  .feature-card {
    padding: 24px 18px;
    border-radius: 0;
    box-sizing: border-box;
  }

  .card-title {
    font-size: 1.08rem;
  }

  .card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .card-footer {
    padding-top: 14px;
    justify-content: flex-start;
  }

  .card-footer .btn-secondary,
  .card-footer a {
    display: inline-flex;
    width: 100% !important;
    justify-content: center;
    padding: 11px 20px !important;
    font-size: 0.88rem !important;
    min-height: 42px !important;
    border-radius: 0;
    box-sizing: border-box;
  }

  /* Pricing cards on mobile */
  .price-card {
    padding: 24px 16px;
    box-sizing: border-box;
  }

  .price-badge {
    font-size: 0.68rem;
    padding: 3px 7px;
  }

  .price-name {
    font-size: 1.15rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .price-period {
    font-size: 0.78rem;
  }

  .price-feats {
    gap: 10px;
    margin-bottom: 24px;
  }

  .price-feat {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .btn-price {
    width: 100%;
    min-height: 46px;
  }

  /* Project Case cards on mobile - CLEAN, STREAMLINED */
  .project-card {
    padding: 24px 16px;
    gap: 16px;
    box-sizing: border-box;
  }

  .project-tag {
    font-size: 0.68rem;
    padding: 2px 6px;
    margin-bottom: 8px;
  }

  .project-title {
    font-size: 1.25rem;
    line-height: 1.22;
    margin-bottom: 8px;
  }

  .project-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .project-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 12px 10px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid var(--border);
  }

  .p-stat-val {
    font-size: 1.1rem;
  }

  .p-stat-lab {
    font-size: 0.65rem;
  }

  /* HIDE HEAVY REDUNDANT TERMINAL BOX ON MOBILE */
  .project-preview-box {
    display: none !important;
  }

  .project-card .btn-primary,
  .project-card .btn-secondary {
    width: 100% !important;
    display: inline-flex;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.88rem;
    min-height: 44px;
    box-sizing: border-box;
  }

  /* Logos Grid on mobile */
  .logos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 16px;
    box-sizing: border-box;
  }

  .logo-card {
    min-height: 52px;
    padding: 6px 8px;
    border-radius: 0;
    box-sizing: border-box;
  }

  .logo-card img {
    max-height: 28px;
    max-width: 84px;
  }

  /* Author Photo Cards on mobile */
  .author-photo-card {
    height: 240px !important;
  }

  /* FAQ Accordion on mobile */
  .faq-q {
    padding: 18px 16px;
    font-size: 0.95rem;
  }

  .faq-a-inner {
    padding: 0 16px 0;
    font-size: 0.88rem;
  }

  .faq-item.open .faq-a-inner {
    padding: 0 16px 20px;
  }

  /* Forms & Direct Contacts */
  .form-section {
    padding: 0 !important;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
  }

  .form-inner {
    grid-template-columns: 1fr !important;
    padding: clamp(48px, 6vw, 64px) 16px !important;
    gap: 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .form-left {
    max-width: 100% !important;
  }

  .direct-contact-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .form-title {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 12px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .form-sub {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px !important;
    padding: 14px 14px;
    border-radius: 0;
  }

  .form-check {
    font-size: 0.76rem;
    line-height: 1.45;
    gap: 8px;
  }

  .form-box button[type="submit"] {
    min-height: 48px;
    font-size: 0.92rem;
    width: 100%;
  }

  /* Footer on mobile */
  .footer {
    padding: 28px 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .footer-inner {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.76rem;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 36px 0;
  }

  .section-pad {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-left {
    padding: 20px 12px 16px;
  }

  .hero-right {
    padding: 16px 12px;
  }

  .hero-title {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    line-height: 1.18;
  }

  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .logo-card {
    min-height: 48px;
    padding: 4px 6px;
  }

  .logo-card img {
    max-height: 24px;
    max-width: 76px;
  }

  .form-inner {
    padding: 0 12px;
  }

  .footer-inner {
    padding: 0 12px;
  }

  .project-card {
    padding: 16px 12px;
  }

  .project-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .p-stat-val {
    font-size: 0.95rem;
  }

  .p-stat-lab {
    font-size: 0.6rem;
  }
}

/* ══════════════════════════════════════════
   SMOOTH SCROLL REVEAL & TEXT ANIMATIONS
   (Vibes Motion & Design Spells Engine)
══════════════════════════════════════════ */
.reveal-init {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation for grouped cards & grids */
.stagger-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.stagger-group.revealed > *:nth-child(1) { transition-delay: 0.03s; }
.stagger-group.revealed > *:nth-child(2) { transition-delay: 0.10s; }
.stagger-group.revealed > *:nth-child(3) { transition-delay: 0.17s; }
.stagger-group.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-group.revealed > *:nth-child(5) { transition-delay: 0.31s; }
.stagger-group.revealed > *:nth-child(6) { transition-delay: 0.38s; }
.stagger-group.revealed > *:nth-child(n+7) { transition-delay: 0.44s; }

.stagger-group.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* Hero Entrance Sequence */
.hero-animated .hero-tag {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}

.hero-animated .hero-author-box {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.hero-animated .hero-title {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.20s forwards;
}

.hero-animated .hero-divider {
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  animation: heroDividerExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

.hero-animated .hero-sub {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s forwards;
}

.hero-animated .hero-actions {
  opacity: 0;
  transform: translateY(16px);
  animation: heroFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards;
}

.hero-animated .hero-right {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDividerExpand {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.price-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover, 0 12px 32px rgba(0, 0, 0, 0.07));
  border-color: var(--border);
}

.project-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
}
.project-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.logo-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              background-color 0.25s ease;
}
.logo-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: #71717a;
  background: #ffffff;
}

/* Interactive Button Feedback */
.btn-primary,
.btn-secondary,
.btn-price {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
}

.btn-primary:active,
.btn-secondary:active,
.btn-price:active {
  transform: scale(0.97) !important;
}

/* Accessibility reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-init,
  .stagger-group > *,
  .hero-tag,
  .hero-author-box,
  .hero-title,
  .hero-divider,
  .hero-sub,
  .hero-actions,
  .hero-right {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════
   STRICT 0PX BORDER RADIUS FOR ALL BUTTONS
   (Swiss Stark Pure Modernist Architecture)
══════════════════════════════════════════ */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.btn-primary,
.btn-secondary,
.btn-price,
.nav-cta,
.m-cta,
.faq-q,
.faq-icon,
.sim-tab,
.hero-actions a,
.card-footer a,
.card-footer .btn-secondary,
.project-card a,
.project-card .btn-primary,
.project-card .btn-secondary,
.direct-contact-card a,
.direct-contact-card button,
.lightbox-close,
.lightbox-nav-btn {
  border-radius: 0;
}

/* ══════════════════════════════════════════
   FLOATING SECTION NAVIGATOR (PURE AIRY / NO CONTAINER)
   (Swiss Stark Pure Modernist Architecture)
══════════════════════════════════════════ */

.slot-text-short {
  display: none;
}

.page-scrollspy {
  position: fixed;
  right: clamp(10px, 1vw, 14px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  display: none;
  flex-direction: column;
  pointer-events: auto;
  user-select: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@media (min-width: 1240px) {
  
.slot-text-short {
  display: none;
}

.page-scrollspy {
    display: flex;
  }
}

@media (min-width: 1240px) and (max-width: 1680px) {
  .page-kp .container,
  .page-kp .kp-nav-inner,
  .page-kp .footer-inner {
    padding-right: clamp(140px, 11vw, 180px) !important;
  }
}

/* ══════════════════════════════════════════
   COMMERCIAL PROPOSALS (KP) MOBILE OPTIMIZATION
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* 1. Sleek Single-Line Confidential Bar */
  .page-kp .confidential-bar {
    position: relative !important;
    top: auto !important;
    padding: 6px 14px !important;
    font-size: 0.68rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #09090b !important;
    border-bottom: 1px solid #1f1f23 !important;
    z-index: 10 !important;
  }
  .page-kp .confidential-badge {
    font-size: 0.68rem !important;
    gap: 4px !important;
  }
  .page-kp .confidential-meta {
    gap: 8px !important;
  }
  .page-kp .confidential-meta .meta-id,
  .page-kp .confidential-meta .meta-ver {
    display: none !important;
  }
  .page-kp .slot-text-full {
    display: none !important;
  }
  .page-kp .slot-text-short {
    display: inline !important;
  }
  .page-kp .kp-client-info {
    flex: 0 0 auto !important;
  }
  .page-kp .kp-client-info a {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  /* 2. Compact Sticky Header (48px high, no content blocking) */
  .page-kp .kp-nav-bar {
    position: sticky !important;
    top: 0 !important;
    padding: 6px 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 1000 !important;
  }
  .page-kp .kp-nav-inner {
    padding: 0 14px !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .page-kp .kp-client-info {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .page-kp .kp-client-info a {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
  }
  .page-kp .kp-logo-tag {
    display: none !important;
  }
  .page-kp .kp-client-info span {
    display: none !important;
  }
  .page-kp .kp-actions {
    display: flex !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    align-items: center !important;
  }
  .page-kp .kp-actions a {
    padding: 7px 11px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
    border-radius: 4px !important;
  }
  .page-kp .kp-actions a[href*="max.ru"] {
    display: none !important;
  }

  /* 3. Hero Section Padding & Typography */
  .page-kp .kp-hero .container {
    padding-top: 24px !important;
    padding-bottom: 24px !important;
  }
  .page-kp .kp-tag {
    font-size: 0.68rem !important;
    padding: 3px 8px !important;
    margin-bottom: 10px !important;
  }
  .page-kp .kp-title {
    font-size: clamp(1.6rem, 6.8vw, 2.1rem) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.03em !important;
  }
  .page-kp .kp-desc {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    margin-top: 12px !important;
  }

  /* 4. Balanced 2x2 Meta Grid (No tall 1-column stack) */
  .page-kp .kp-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 20px !important;
  }
  .page-kp .kp-meta-card {
    padding: 12px 14px !important;
  }
  .page-kp .kp-meta-card .label {
    font-size: 0.66rem !important;
    margin-bottom: 4px !important;
  }
  .page-kp .kp-meta-card .value {
    font-size: 1.25rem !important;
  }
  .page-kp .kp-meta-card .sub {
    font-size: 0.72rem !important;
    margin-top: 2px !important;
  }

  /* 5. Sections Spacing */
  .page-kp .kp-section .container {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  .page-kp .kp-section-head {
    margin-bottom: 20px !important;
  }

  /* 6. Cards (Single Column with comfortable tap padding) */
  .page-kp .kp-grid-3,
  .page-kp .kp-grid-2 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .page-kp .kp-card {
    padding: 18px 16px !important;
  }
  .page-kp .kp-card-title {
    font-size: 1.08rem !important;
    margin-bottom: 8px !important;
  }
  .page-kp .kp-card-desc {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }
  .page-kp .kp-card-list {
    margin-top: 10px !important;
    padding-top: 10px !important;
  }
  .page-kp .kp-card-list li {
    font-size: 0.86rem !important;
    padding-left: 18px !important;
    margin-bottom: 7px !important;
    line-height: 1.45 !important;
  }

  /* 7. Stepper / Roadmap on Mobile */
  .page-kp .timeline-steps {
    gap: 12px !important;
    margin-top: 20px !important;
  }
  .page-kp .timeline-step {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    align-items: flex-start !important;
  }
  .page-kp .timeline-badge {
    font-size: 0.92rem !important;
    text-align: left !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: #f1f5f9 !important;
    padding: 3px 8px !important;
    border-radius: 3px !important;
  }
  .page-kp .timeline-badge small {
    display: inline !important;
    font-size: 0.7rem !important;
  }
  .page-kp .timeline-content h4 {
    font-size: 1.02rem !important;
    margin-bottom: 4px !important;
  }
  .page-kp .timeline-content p {
    font-size: 0.86rem !important;
    line-height: 1.45 !important;
  }
  .page-kp .timeline-meta {
    width: 100% !important;
    padding-top: 8px !important;
    border-top: 1px dashed var(--border) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
  }
  .page-kp .timeline-meta .duration {
    font-size: 0.82rem !important;
  }
  .page-kp .timeline-meta .deliverable {
    font-size: 0.74rem !important;
  }
  .page-kp .rules-banner {
    padding: 12px 14px !important;
    font-size: 0.84rem !important;
    margin-top: 16px !important;
  }

  /* 8. Pricing Tranches */
  .page-kp .tranches-box {
    gap: 16px !important;
    margin-top: 20px !important;
  }
  .page-kp .tranche-card {
    padding: 22px 16px !important;
  }
  .page-kp .tranche-price {
    font-size: 1.95rem !important;
    margin: 6px 0 4px 0 !important;
  }
  .page-kp .tranche-title {
    font-size: 1.15rem !important;
    margin-bottom: 6px !important;
  }
  .page-kp .tranche-desc {
    font-size: 0.86rem !important;
    margin-bottom: 14px !important;
  }

  /* 9. Contact Section & Direct Card on Mobile */
  .page-kp section,
  .page-kp .kp-section,
  .page-kp .form-section {
    scroll-margin-top: 70px !important;
  }
  .page-kp .form-section {
    padding: 0 !important;
  }
  .page-kp .form-inner {
    padding: 104px 16px 44px !important;
    gap: 28px !important;
  }
  .page-kp .form-title {
    font-size: clamp(1.65rem, 6.8vw, 2.1rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 12px !important;
  }
  .page-kp .form-sub {
    font-size: 0.9rem !important;
    line-height: 1.55 !important;
    margin-bottom: 16px !important;
  }
  .page-kp .direct-contact-card {
    padding: 18px 14px !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .page-kp .direct-contact-card a {
    padding: 14px 16px !important;
    font-size: 0.92rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 10. Footer */
  .page-kp .footer {
    padding: 20px 0 28px 0 !important;
  }
  .page-kp .footer-inner {
    padding: 0 14px !important;
    gap: 12px !important;
    font-size: 0.74rem !important;
  }
  .page-kp .footer-links {
    gap: 8px 14px !important;
    font-size: 0.76rem !important;
  }
}

.scrollspy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  align-items: flex-end;
}

.scrollspy-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.scrollspy-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 3px 0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrollspy-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #71717a;
  opacity: 0.65;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease, color 0.2s ease, transform 0.2s ease;
  transform: translateX(0);
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95), 0 0 2px rgba(255, 255, 255, 1);
}

.scrollspy-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #a1a1aa;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, transform 0.2s ease;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.95);
}

.scrollspy-dot {
  width: 7px;
  height: 7px;
  background: #ffffff;
  border: 1.5px solid #a1a1aa;
  border-radius: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

/* Hover States */
.scrollspy-link:hover .scrollspy-label {
  opacity: 1;
  color: var(--black);
  transform: translateX(-3px);
}

.scrollspy-link:hover .scrollspy-num {
  color: var(--black);
  transform: scale(1.08);
}

.scrollspy-link:hover .scrollspy-dot {
  background: var(--black);
  border-color: var(--black);
  transform: scale(1.15);
}

/* Active State */
.scrollspy-item.active .scrollspy-label {
  opacity: 1;
  color: var(--black);
  font-weight: 700;
  transform: translateX(-3px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95), 0 0 3px rgba(255, 255, 255, 1);
}

.scrollspy-item.active .scrollspy-num {
  color: var(--black);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
}

.scrollspy-item.active .scrollspy-dot {
  background: #34d399;
  border-color: #059669;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.65);
  transform: scale(1.25);
}

/* ══════════════════════════════════════════
   DARK SECTION ADAPTATION (When scrolling over dark footer)
══════════════════════════════════════════ */
.page-scrollspy.on-dark .scrollspy-label {
  color: #a1a1aa;
  opacity: 0.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.page-scrollspy.on-dark .scrollspy-num {
  color: #71717a;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}

.page-scrollspy.on-dark .scrollspy-dot {
  background: #18181b;
  border-color: #52525b;
}

.page-scrollspy.on-dark .scrollspy-link:hover .scrollspy-label {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.page-scrollspy.on-dark .scrollspy-link:hover .scrollspy-num {
  color: #ffffff;
}

.page-scrollspy.on-dark .scrollspy-link:hover .scrollspy-dot {
  background: #ffffff;
  border-color: #ffffff;
}

.page-scrollspy.on-dark .scrollspy-item.active .scrollspy-label {
  color: #ffffff;
  opacity: 1;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.page-scrollspy.on-dark .scrollspy-item.active .scrollspy-num {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.page-scrollspy.on-dark .scrollspy-item.active .scrollspy-dot {
  background: #34d399;
  border-color: #10b981;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.9);
}

/* ==========================================================================
   DROPDOWN NAVIGATION & KNOWLEDGE BASE STYLES
   ========================================================================== */

.nav-dropdown {
  position: relative;
  list-style: none;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none !important;
}

.nav-arrow {
  width: 10px;
  height: 6px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  color: #71717a;
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
  color: var(--black);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  padding: 8px 0;
  list-style: none;
  display: none;
  z-index: 1100;
  border-radius: 0;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover bridge to prevent menu from closing when moving mouse */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dropdown-menu a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px !important;
  font-size: 0.88rem !important;
  color: #3f3f46 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  border-left: 2px solid transparent;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: var(--bg-alt) !important;
  color: var(--black) !important;
  border-left-color: var(--green) !important;
  padding-left: 22px !important;
}

.dropdown-menu a.active {
  background: var(--bg-alt) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-left-color: var(--black) !important;
}

.dropdown-menu a.active .nav-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--black);
}

.badge-count {
  font-family: var(--mono);
  font-size: 0.7rem;
  background: var(--black);
  color: #fff;
  padding: 2px 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 8px;
  display: inline-block;
}

.badge-count.green {
  background: var(--green);
  color: #09090b;
}

/* Mobile menu grouped sections */
.mobile-menu-section {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 8px;
}

.mobile-menu-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 0.08em;
  padding: 6px 16px;
  font-weight: 700;
}

.mobile-menu-section a {
  padding-left: 24px !important;
  font-size: 0.95rem !important;
}

/* ==========================================================================
   PROMPTS LIBRARY PAGE STYLES (MATCHING SITE 1440PX FRAME)
   ========================================================================== */

.prompts-hero,
.prompts-controls,
.prompts-container {
  width: 100%;
}

.container,
.prompts-hero .container,
.prompts-controls .container,
.prompts-container .container,
.calc-main-section .container,
.sheet-matrix-section .container,
.calc-edu-section .container,
.calc-hub-section .container,
.knowledge-section .container,
.section-cta .container {
  max-width: 1440px !important;
  margin: 0 auto;
  width: 100%;
  padding-left: clamp(24px, 4vw, 64px);
  padding-right: clamp(24px, 4vw, 64px);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  box-sizing: border-box;
}

.prompts-hero {
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.prompts-hero .container {
  padding-top: 100px;
  padding-bottom: 36px;
}

.calc-hub-section {
  padding: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.calc-hub-section .container {
  padding-top: 48px;
  padding-bottom: 80px;
}

.calc-main-section {
  padding: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.calc-main-section .container {
  padding-top: 44px;
  padding-bottom: 72px;
}

.sheet-matrix-section {
  padding: 0 !important;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.sheet-matrix-section .container {
  padding-top: 64px;
  padding-bottom: 80px;
}

.calc-edu-section {
  padding: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.calc-edu-section .container {
  padding-top: 72px;
  padding-bottom: 80px;
}

.knowledge-section {
  padding: 0 !important;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.knowledge-section .container {
  padding-top: 64px;
  padding-bottom: 80px;
}

.section-cta {
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
  width: 100%;
}

.section-cta[style*="#09090b"],
.section-cta.dark {
  background: #09090b !important;
  border-bottom: 1px solid var(--border-dark) !important;
}

.section-cta .container {
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.section-cta[style*="#09090b"] .container,
.section-cta.dark .container {
  border-left: 1px solid var(--border-dark) !important;
  border-right: 1px solid var(--border-dark) !important;
}

.prompts-controls {
  padding: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
  backdrop-filter: blur(14px);
}

.prompts-controls .container {
  padding-top: 20px;
  padding-bottom: 20px;
}

.search-box-wrapper {
  margin-bottom: 18px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  font-size: 1rem;
  font-family: var(--font);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--black);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(9, 9, 11, 0.08);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: var(--gray);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: var(--mono);
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: var(--black);
  border-color: var(--black);
}

.filter-tab.active {
  background: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

.prompts-container {
  padding: 0;
  background: #ffffff;
}

.prompts-container .container {
  padding-top: 48px;
  padding-bottom: 80px;
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .prompts-grid {
    grid-template-columns: 1fr;
  }
}

.prompt-card {
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.prompt-card:hover {
  border-color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.prompt-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.prompt-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.prompt-category-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--black);
}

.prompt-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray);
}

.prompt-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--black);
}

.prompt-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.model-badge {
  font-family: var(--mono);
  font-size: 0.68rem;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  padding: 2px 6px;
  color: #71717a;
}

.prompt-card-body {
  padding: 20px 24px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.prompt-code-box {
  background: #09090b;
  color: #f4f4f5;
  border-radius: 0;
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #27272a;
  transition: border-color 0.25s ease;
}

.prompt-code-box:hover {
  border-color: #3f3f46;
}

.prompt-code-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0), rgba(9, 9, 11, 0.96));
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 1;
}

.prompt-code-box.is-expanded::after {
  opacity: 0;
}

.prompt-box-wrapper .prompt-code-box::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  height: 0 !important;
}

.prompt-box .btn-copy-prompt,
.prompt-box-header .btn-copy-prompt,
.prompt-box-wrapper .btn-copy-prompt {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: max-content !important;
  white-space: nowrap !important;
}

.prompt-code-content {
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 18px;
  max-height: 220px;
  overflow-y: hidden;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e4e4e7;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: max-height;
}

.prompt-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.prompt-actions .btn-copy-prompt,
.prompt-actions .btn-expand-prompt {
  flex: 1 1 auto;
}

.btn-copy-prompt {
  flex: 0 0 auto;
  width: auto;
  max-width: max-content;
  white-space: nowrap;
  background: var(--black);
  color: #ffffff;
  border: 1px solid var(--black);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-copy-prompt:hover {
  background: #27272a;
}

.btn-copy-prompt.copied {
  background: var(--green) !important;
  color: #09090b !important;
  border-color: var(--green) !important;
}

.btn-expand-prompt {
  background: #ffffff;
  color: var(--black);
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-expand-prompt:hover {
  background: var(--bg-alt);
  border-color: var(--black);
}

/* Toast notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #09090b;
  color: #ffffff;
  padding: 12px 20px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 3px solid var(--green);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}


/* Global Language Switcher */
.global-lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 4px 6px;
  border: 1px solid var(--border);
}

.lang-switch-label {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray);
  padding-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lang-switch-pills {
  display: flex;
  gap: 4px;
}

.lang-pill {
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font);
  border: 1px solid transparent;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-pill:hover {
  color: var(--black);
}

.lang-pill.active {
  background: var(--black);
  color: #ffffff;
}

/* Card-level Language Switcher */
.card-lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 2px;
  gap: 2px;
}

.card-lang-btn {
  border: none;
  background: transparent;
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #71717a;
  cursor: pointer;
  transition: all 0.15s ease;
}

.card-lang-btn:hover {
  color: var(--black);
}

.card-lang-btn.active {
  background: var(--black);
  color: #ffffff;
}


/* ==========================================================================
   INTERACTIVE TAX & MARKUP CALCULATOR STYLES (RESPONSIVE FIRST)
   ========================================================================== */

.calc-main-section {
  padding: 40px 0 70px;
  background: #ffffff;
}

.calc-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .calc-grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.calc-controls-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.calc-group {
  margin-bottom: 24px;
}

.calc-group:last-child {
  margin-bottom: 0;
}

.calc-label-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.calc-label-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.calc-hint {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 400;
  color: #71717a;
  line-height: 1.4;
}

.calc-rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-big-input {
  width: 100%;
  padding: 14px 44px 14px 18px;
  font-family: var(--mono);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--black);
  border: 2px solid var(--border);
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
  border-radius: 0;
}

.calc-big-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(9, 9, 11, 0.08);
}

.calc-currency {
  position: absolute;
  right: 18px;
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray);
  pointer-events: none;
}

/* Quick chips */
.calc-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.calc-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 4px;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: #52525b;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}

.calc-chip:hover {
  background: #e4e4e7;
  color: var(--black);
}

.calc-chip.active {
  background: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

/* Mode Switch */
.calc-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mode-btn {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 13px 15px;
  border: 2px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.mode-btn:hover {
  border-color: #a1a1aa;
}

.mode-btn.active {
  border-color: var(--black);
  background: #fafafa;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.mode-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--black);
  margin-bottom: 4px;
}

.mode-desc {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--gray);
}

/* Presets Grid */
.tax-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.tax-preset-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
  border-radius: 0;
}

.tax-preset-btn:hover {
  border-color: var(--black);
  background: var(--bg-alt);
}

.tax-preset-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: #ffffff;
}

.tax-preset-btn .tax-pct {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: inherit;
  min-width: 36px;
}

.tax-preset-btn .tax-desc {
  font-size: 0.78rem;
  line-height: 1.3;
  color: inherit;
  opacity: 0.85;
}

.calc-current-rate {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 0;
  white-space: nowrap;
}

/* Custom Rate Slider */
.custom-rate-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 0;
}

.custom-rate-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.custom-rate-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--black);
}

.custom-rate-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.custom-rate-percent {
  font-weight: 700;
  font-family: var(--mono);
}

.custom-rate-input {
  width: 62px;
  padding: 4px 6px;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--border);
  text-align: right;
  border-radius: 0;
}

.custom-rate-input:focus {
  outline: none;
  border-color: var(--black);
}

.calc-slider {
  width: 100%;
  accent-color: var(--black);
  cursor: pointer;
  margin-top: 4px;
}

/* RESULT PANEL */
.calc-result-panel {
  background: #09090b;
  color: #ffffff;
  padding: 32px 30px;
  border: 1px solid #27272a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* MOBILE SPECIFIC TUNING (MAX-WIDTH: 640PX) */
@media (max-width: 640px) {
  .calc-main-section {
    padding: 12px 0 36px !important;
  }

  .calc-main-section .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .calc-controls-card {
    padding: 16px 12px !important;
    border-radius: 0;
  }

  .calc-result-panel {
    padding: 20px 14px !important;
    border-radius: 0;
  }

  .calc-big-input {
    font-size: 1.45rem;
    padding: 11px 36px 11px 12px;
  }

  .calc-chips {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .calc-mode-switch {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tax-presets-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .calc-rate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .custom-rate-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}


.result-header {
  border-bottom: 1px solid #27272a;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.result-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 12px;
}

.result-badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-badge.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.result-primary-number {
  font-family: var(--mono);
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.result-sub-label {
  font-size: 0.86rem;
  line-height: 1.5;
  color: #a1a1aa;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #a1a1aa;
}

.breakdown-row.highlight {
  border-top: 1px solid #27272a;
  padding-top: 10px;
  margin-top: 4px;
  color: #ffffff;
}

.b-value {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
}

.b-value.green {
  color: #34d399;
}

.b-value.text-red {
  color: #f87171;
}

.b-value.font-bold {
  font-weight: 700;
  font-size: 1.1rem;
  color: #ffffff;
}

/* Visual Bar */
.result-visual-bar {
  height: 8px;
  background: #27272a;
  display: flex;
  overflow: hidden;
  border-radius: 0;
}

.bar-clean {
  background: var(--green);
  transition: width 0.3s ease;
}

.bar-tax {
  background: #ef4444;
  transition: width 0.3s ease;
}

/* Copy button */
.btn-copy-invoice {
  width: 100%;
  background: #ffffff;
  color: var(--black);
  border: none;
  padding: 14px 20px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-copy-invoice:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.btn-copy-invoice.copied {
  background: var(--green) !important;
  color: #09090b !important;
}

/* Formula Box */
.formula-box {
  background: #18181b;
  border: 1px solid #27272a;
  padding: 14px;
  margin-top: 20px;
}

.formula-title {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: #71717a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.formula-code {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  word-break: break-all;
  margin-bottom: 4px;
}

.formula-note {
  font-size: 0.76rem;
  color: #a1a1aa;
  line-height: 1.4;
}

/* MATRIX TABLE */
.matrix-table-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ══════════════ UNIFIED SWISS STARK CARD STANDARD ══════════════ */
/* Reference: Design System Card Standard (Image 4) */
.stark-card {
  background: var(--card-bg, #ffffff) !important;
  border: var(--card-border, 1px solid var(--border)) !important;
  border-radius: var(--card-radius, 0) !important;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.04)) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
}

.stark-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--card-shadow-hover, 0 12px 32px rgba(0, 0, 0, 0.07)) !important;
  border-color: var(--border) !important;
}

.stark-card.featured {
  background: var(--black) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-dark) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.stark-card.featured:hover {
  border-color: var(--border-dark) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.matrix-table th {
  background: #fafafa;
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.matrix-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.matrix-table tr:hover td {
  background: var(--bg-alt);
}

.matrix-table tr.matrix-row.current td {
  background: rgba(16, 185, 129, 0.06);
}

.matrix-pill {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  letter-spacing: 0.02em;
  display: inline-block;
}

.matrix-pill.top {
  background: #09090b;
  color: #ffffff;
}

.matrix-pill.inside {
  background: #e4e4e7;
  color: #18181b;
}

/* Education Cards */
.error-vs-correct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}

@media (max-width: 700px) {
  .error-vs-correct-grid {
    grid-template-columns: 1fr;
  }
}

.edu-card {
  padding: 20px 24px;
  border-radius: 0;
}

.edu-card.wrong {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.edu-card.right {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.edu-card-badge {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.edu-card.wrong .edu-card-badge {
  color: #dc2626;
}

.edu-card.right .edu-card-badge {
  color: #16a34a;
}

.edu-calc-example {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #1f2937;
}

.edu-calc-example code {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  font-weight: 600;
}


.calc-main-section,
.sheet-matrix-section,
.calc-edu-section {
  width: 100%;
  box-sizing: border-box;
}


/* ==========================================================================
   CALCULATORS HUB DIRECTORY STYLES
   ========================================================================== */

.calc-hub-section {
  width: 100%;
}

.calc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1120px) {
  .calc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .calc-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.calc-hub-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: clamp(28px, 3.5vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.calc-hub-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.calc-hub-card.featured {
  border-color: #a1a1aa;
  background: #fafafa;
}

.calc-hub-card.coming-soon {
  opacity: 0.75;
  background: #fafafa;
  border-style: dashed;
}

.hub-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hub-category-tag {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--bg-alt);
  color: var(--black);
  border: 1px solid var(--border);
  letter-spacing: 0.02em;
}

.hub-card-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
}

.hub-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--black);
}

.hub-card-title a {
  color: var(--black);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hub-card-title a:hover {
  color: var(--green);
}

.hub-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray);
  margin-bottom: 20px;
}

.hub-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.calc-hub-card.featured .hub-card-features {
  background: #ffffff;
}

.hub-feat-item {
  font-size: 0.84rem;
  color: #3f3f46;
  line-height: 1.4;
}

.hub-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-badge {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  background: var(--bg-alt);
  color: #52525b;
  border: 1px solid var(--border);
}

.hub-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.25);
  font-weight: 600;
}

.btn-open-calc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #ffffff;
  color: var(--black);
  border: 1.5px solid var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-open-calc:hover {
  background: var(--black);
  color: #ffffff;
}

.btn-open-calc.highlight {
  background: var(--black);
  color: #ffffff;
  border-color: var(--black);
}

.btn-open-calc.highlight:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn-open-calc.secondary {
  background: transparent;
  color: var(--gray);
  border-color: var(--border);
}

.btn-open-calc.secondary:hover {
  border-color: var(--black);
  color: var(--black);
}

/* Clickable Card Hover State */
.clickable-card {
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.clickable-card:hover {
  background-color: #fafafa !important;
}
.clickable-card:hover .btn-secondary {
  background: var(--black);
  color: #ffffff;
}

/* ==========================================================================
   ROADMAP & PIPELINE COMPONENT (UNIVERSAL)
   ========================================================================== */
.roadmap-pipeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.pipeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
  white-space: nowrap;
}
.pipeline-item:hover, .pipeline-item.active {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pipeline-item.active .pipeline-num {
  background: var(--black);
  color: #ffffff;
}
.pipeline-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: #e4e4e7;
  color: var(--black);
  transition: all 0.2s ease;
}
.pipeline-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
}
.pipeline-time {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
}
.pipeline-arrow {
  color: #a1a1aa;
  display: flex;
  align-items: center;
  opacity: 0.6;
}
@keyframes arrowFlow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}
.pipeline-arrow svg {
  animation: arrowFlow 2s ease-in-out infinite;
}
.roadmap-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.roadmap-card {
  background: var(--card-bg, #ffffff);
  border: var(--card-border, 1px solid var(--border));
  border-radius: var(--card-radius, 0) !important;
  box-shadow: var(--card-shadow, 0 4px 20px rgba(0, 0, 0, 0.04));
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  cursor: pointer;
  position: relative;
}
.roadmap-card:hover, .roadmap-card.active {
  border-color: var(--border);
  box-shadow: var(--card-shadow-hover, 0 12px 32px rgba(0, 0, 0, 0.07));
  transform: translateY(-3px);
}
.roadmap-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.roadmap-step-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--black);
  color: #ffffff;
  padding: 2px 8px;
}
.roadmap-time-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--gray);
  background: #f4f4f5;
  padding: 2px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.roadmap-card-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.roadmap-card-text {
  font-size: 0.86rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 16px;
}
.roadmap-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.roadmap-bullet {
  font-size: 0.82rem;
  color: #3f3f46;
  line-height: 1.45;
  display: flex;
  gap: 6px;
}
.roadmap-bullet span {
  color: var(--green-dark);
  font-weight: 800;
}
.roadmap-exit-box {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-top: auto;
  transition: background 0.2s ease;
}
.roadmap-card.active .roadmap-exit-box,
.roadmap-card:hover .roadmap-exit-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.roadmap-exit-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.roadmap-exit-content strong {
  display: block;
  font-size: 0.84rem;
  color: var(--black);
  margin-bottom: 2px;
}
.roadmap-exit-content span {
  display: block;
  font-size: 0.75rem;
  color: var(--gray);
  line-height: 1.35;
}
@media (max-width: 900px) {
  .pipeline-arrow { display: none; }
  .roadmap-pipeline-bar { flex-wrap: wrap; }
}




/* ══════════════════════════════════════════════════════════════
   UNIFIED CONTINUOUS VERTICAL BORDER FRAMES (1440px)
   Continuous vertical side-lines from top to bottom
══════════════════════════════════════════════════════════════ */
.page-frame-section,
.base-page-frame,
.prompts-page-frame,
.prompts-hero,
.prompts-controls,
.prompts-container,
.calc-main-section,
.glossary-hero-section,
.sticky-controls-bar,
.glossary-body-layout {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  border-left: 1px solid var(--border) !important;
  border-right: 1px solid var(--border) !important;
  box-sizing: border-box !important;
}

.sticky-controls-bar,
.prompts-sticky-toolbar,
.prompts-controls {
  position: sticky !important;
  top: 68px !important;
  z-index: 95 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid var(--border) !important;
}

.category-scroll-strip,
.filter-tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  gap: 8px !important;
  padding-bottom: 4px !important;
}

.category-scroll-strip::-webkit-scrollbar,
.filter-tabs::-webkit-scrollbar {
  display: none !important;
}

.cat-btn,
.filter-tab {
  flex-shrink: 0 !important;
}


/* ══════════════════════════════════════════
   STRICT NO-BORDER FOR MENU & FOOTER
══════════════════════════════════════════ */
.nav,
.nav-wrap,
.nav-inner,
.form-section,
.form-inner,
.footer,
.footer-inner,
#contact {
  border-left: none !important;
  border-right: none !important;
}

.footer {
  background: #09090b !important;
  color: #a1a1aa !important;
  border-top: 1px solid #27272a !important;
  width: 100% !important;
}

.footer-inner {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 36px clamp(16px, 2.5vw, 48px) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  box-sizing: border-box !important;
}

.footer-inner .footer-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px 22px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--mono) !important;
  font-size: 0.82rem !important;
}

.footer-inner .footer-links a {
  color: #a1a1aa !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
  white-space: nowrap !important;
}

.footer-inner .footer-links a:hover {
  color: #ffffff !important;
}

/* ══════════════════════════════════════════
   RICH MULTI-COLUMN FOOTER (.footer-container)
══════════════════════════════════════════ */
.footer-container {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 56px clamp(16px, 2.5vw, 48px) 40px !important;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important;
  gap: 40px !important;
  box-sizing: border-box !important;
}

.footer-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.footer-logo {
  font-family: var(--font-sans) !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 12px !important;
}

.footer-desc {
  font-size: 0.85rem !important;
  color: #a1a1aa !important;
  line-height: 1.6 !important;
  max-width: 280px !important;
  margin: 0 0 16px 0 !important;
}

.footer-title {
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 16px !important;
}

.footer-col .footer-links {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--font-sans) !important;
  font-size: 0.85rem !important;
  align-items: flex-start !important;
}

.footer-col .footer-links li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.footer-col .footer-links a {
  color: #a1a1aa !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  display: inline-block !important;
}

.footer-col .footer-links a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  width: 100% !important;
  max-width: 1600px !important;
  margin: 0 auto !important;
  padding: 20px clamp(16px, 2.5vw, 48px) !important;
  border-top: 1px solid #18181b !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
  color: #71717a !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 36px !important;
    padding: 44px clamp(16px, 2.5vw, 36px) 32px !important;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding: 28px clamp(16px, 2.5vw, 24px) !important;
  }
}

@media (max-width: 640px) {
  .footer-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 36px 16px 24px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 16px !important;
  }
}

@media (max-width: 540px) {
  .footer-inner,
  .footer-container,
  .footer-bottom {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* ══════════════════════════════════════════
   SAGE NEURO FAMILY // CLUB LESSONS STYLES
══════════════════════════════════════════ */
.club-lessons-section {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.club-access-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-radius: 0;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.club-access-status-banner.unlocked {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.club-access-status-banner.locked {
  background: #09090b;
  border: 1px solid #27272a;
  color: #ffffff;
}

.club-access-status-banner .banner-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.club-access-status-banner .banner-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.club-access-status-banner .banner-text strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
  font-weight: 700;
}

.club-access-status-banner .banner-text span {
  font-size: 0.88rem;
  opacity: 0.9;
  line-height: 1.45;
}

.club-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

@media (max-width: 640px) {
  .club-lessons-grid {
    grid-template-columns: 1fr;
  }
}

.club-lesson-card {
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.club-lesson-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
}

.club-lesson-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #18181b;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.club-lesson-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.club-lesson-card:hover .club-lesson-cover-wrap img {
  transform: scale(1.04);
}

.club-lesson-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 9, 11, 0.88);
  color: #ffffff;
  backdrop-filter: blur(8px);
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.04em;
  z-index: 2;
}

.club-lesson-lock-overlay {
  position: absolute;
  top: 10px;
  right: 50px;
  background: #09090b;
  color: #fbbf24;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid #27272a;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.club-lesson-fav-btn-float {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(8px);
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.club-lesson-fav-btn-float:hover {
  background: #09090b;
  border-color: #fbbf24;
  color: #fbbf24;
  transform: scale(1.08);
}
.club-lesson-fav-btn-float.active {
  background: #09090b;
  border-color: #f59e0b;
  color: #fbbf24;
}

.club-lesson-fav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #71717a;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  border-radius: 2px;
}
.club-lesson-fav-btn:hover {
  background: #fefce8;
  border-color: #fbbf24;
  color: #d97706;
  transform: scale(1.04);
}
.club-lesson-fav-btn.active {
  background: #fefce8;
  border-color: #f59e0b;
  color: #d97706;
}

.club-lesson-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.club-lesson-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gray);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.club-lesson-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 10px 0;
  color: #09090b;
  letter-spacing: -0.015em;
}

.club-lesson-desc {
  font-size: 0.88rem;
  color: #52525b;
  line-height: 1.55;
  margin: 0 0 16px 0;
  flex: 1;
}

.club-lesson-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.club-lesson-topic-chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  padding: 2px 7px;
}

.club-lesson-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Prompt Modal Items */
.guide-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.guide-modal-content {
  background: #ffffff;
  border: 2px solid #09090b;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.guide-modal-header {
  padding: 20px 24px;
  background: #09090b;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #27272a;
}

.guide-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.guide-modal-close-btn {
  background: transparent;
  border: 1px solid #3f3f46;
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.guide-modal-close-btn:hover {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

.guide-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.guide-item-row {
  background: #fafafa;
  border: 1px solid #e4e4e7;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: border-color 0.15s ease;
}

.guide-item-row:hover {
  border-color: #09090b;
  background: #ffffff;
}

.guide-item-info strong {
  display: block;
  font-size: 0.95rem;
  color: #09090b;
  margin-bottom: 4px;
}

.guide-item-info .guide-prompt-code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 3px 8px;
  display: inline-block;
  margin-top: 4px;
  word-break: break-all;
}

.guide-copy-btn {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  color: #09090b;
  border: 1px solid #09090b;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.guide-copy-btn:hover {
  background: #09090b;
  color: #ffffff;
}
