/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — Navbar, Buttons, Cards, Badges, Forms
   ═══════════════════════════════════════════════════════════════ */

/* ════════════════════════════════
   NAVBAR
   ════════════════════════════════ */
.navbar {
  position: fixed;
  top: var(--sp-5);
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: var(--z-nav);
  width: max-content;
  min-width: 320px;
  max-width: calc(100% - var(--sp-8));
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-5);
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  box-shadow: var(--shadow-nav);
  transition: background var(--dur-normal) var(--ease-out),
              border-color var(--dur-normal) var(--ease-out);
}

.navbar__inner.scrolled {
  background: rgba(8, 8, 8, 0.92);
  border-color: var(--border-lo);
}

/* Logo */
.navbar__logo {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: var(--sp-2);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.navbar__logo:hover { opacity: 0.7; }

.navbar__logo-dot {
  color: var(--accent);
}

/* Center Group */
.navbar__center {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

/* Nav Links */
.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.navbar__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-full);
  transition:
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--text);
  background: var(--white-05);
}

.navbar__link.active {
  color: var(--text);
}

/* Right Group */
.navbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: var(--sp-2);
}

/* Lang toggle */
.navbar__lang {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
}

.lang-btn {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.lang-btn:hover       { color: var(--text); }
.lang-btn.active      { color: var(--text); background: var(--white-10); }
.lang-btn:focus-visible { outline-offset: 2px; }

.lang-sep {
  width: 1px;
  height: 10px;
  background: var(--border-hi);
}

/* CTA button in nav */
.navbar__cta {
  flex-shrink: 0;
}

/* Mobile toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 14px;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  flex-shrink: 0;
}

.navbar__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text-sub);
  border-radius: 1px;
  transition: transform var(--dur-normal) var(--ease-out),
              opacity var(--dur-normal) var(--ease-out),
              width var(--dur-normal) var(--ease-out);
  transform-origin: left center;
}

.navbar__toggle.open span:nth-child(1) { transform: rotate(38deg) scaleX(1.1); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.navbar__toggle.open span:nth-child(3) { transform: rotate(-38deg) scaleX(1.1); }

/* Mobile menu */
.navbar__mobile {
  position: absolute;
  top: calc(100% + var(--sp-3));
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(var(--blur-xl));
  -webkit-backdrop-filter: blur(var(--blur-xl));
  padding: var(--sp-3);
  display: none;
  flex-direction: column;
  gap: var(--sp-1);
  overflow: hidden;
  transform-origin: top center;
  box-shadow: var(--shadow-lg);
}

.navbar__mobile.open {
  display: flex;
  animation: scaleIn 200ms var(--ease-out) both;
}

.navbar__mobile-link {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.navbar__mobile-link:hover {
  color: var(--text);
  background: var(--white-05);
}

.navbar__mobile-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-2) 0;
}


/* ════════════════════════════════
   BUTTONS
   ════════════════════════════════ */

/* Base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  height: 42px;
  padding: 0 var(--sp-6);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-tight);
  border-radius: var(--r-full);
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    opacity var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97) !important;
}

/* Primary — white */
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: var(--white);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(255,255,255,0.12);
}

/* Secondary — glass */
.btn--secondary {
  background: var(--white-05);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn--secondary:hover {
  background: var(--white-10);
  border-color: var(--white-20);
  transform: scale(1.02);
}

/* Accent — ivory */
.btn--accent {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid transparent;
}
.btn--accent:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Ghost — text only */
.btn--ghost {
  background: transparent;
  color: var(--text-sub);
  border: 1px solid transparent;
  padding: 0 var(--sp-4);
  height: 38px;
}
.btn--ghost:hover {
  color: var(--text);
  background: var(--white-05);
}

/* Size variants */
.btn--sm {
  height: 34px;
  padding: 0 var(--sp-4);
  font-size: var(--text-xs);
}
.btn--lg {
  height: 52px;
  padding: 0 var(--sp-10);
  font-size: var(--text-base);
}
.btn--xl {
  height: 60px;
  padding: 0 var(--sp-12);
  font-size: var(--text-md);
  letter-spacing: -0.01em;
}

/* Arrow icon helper */
.btn__arrow {
  display: inline-flex;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Disabled */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ════════════════════════════════
   BADGE / CHIP
   ════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  border-radius: var(--r-full);
  background: var(--white-05);
  border: 1px solid var(--border);
  color: var(--text-sub);
  white-space: nowrap;
}

.badge--accent {
  background: var(--accent-dim);
  border-color: rgba(200, 184, 154, 0.25);
  color: var(--accent);
}

.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* Skill chip */
.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-normal);
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.skill-chip:hover {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--border-hi);
}

/* ════════════════════════════════
   CARD
   ════════════════════════════════ */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition:
    transform var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
  position: relative;
  will-change: transform, box-shadow;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px var(--border-hi);
}

/* Subtle inner highlight */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.025) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

.card__body {
  padding: var(--sp-8);
  position: relative;
  z-index: 2;
}

.card__media {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* ════════════════════════════════
   FORMS
   ════════════════════════════════ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
  color: var(--text);
  outline: none;
  cursor: text;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

/* Dark-themed select */
select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5A5A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

select.form-input option {
  background-color: #1a1a1a;
  color: var(--text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:hover,
.form-textarea:hover {
  border-color: var(--border-hi);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(200, 184, 154, 0.4);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: var(--lh-relaxed);
}

/* ════════════════════════════════
   DIVIDER WITH LABEL
   ════════════════════════════════ */
.labeled-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: var(--text-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
}
.labeled-divider::before,
.labeled-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ════════════════════════════════
   PRICING CARDS
   ════════════════════════════════ */
.pricing-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
  will-change: transform;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    140deg,
    rgba(255,255,255,0.02) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.pricing-card--featured {
  background: var(--surface-3);
  border-color: var(--border-hi);
  box-shadow: 0 0 0 1px var(--border-hi), 0 8px 40px rgba(0,0,0,0.5);
}

.pricing-card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 184, 154, 0.5),
    transparent
  );
}

.pricing-tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  display: block;
}

.pricing-price {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tightest);
  color: var(--text);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.pricing-period {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  display: block;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: var(--lh-snug);
}

.pricing-feature__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-muted);
}

.pricing-feature--muted {
  color: var(--text-muted);
}
.pricing-feature--muted .pricing-feature__icon {
  opacity: 0.4;
}

/* ════════════════════════════════
   FAQ ACCORDION
   ════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-6) 0;
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--dur-fast) var(--ease-out);
}

.faq-question:hover {
  color: var(--text);
}

.faq-question__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur-normal) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-slow) var(--ease-out);
}

.faq-answer__inner {
  padding-bottom: var(--sp-6);
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: var(--lh-relaxed);
  max-width: 680px;
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

/* ════════════════════════════════
   PROJECT CARD
   ════════════════════════════════ */
/* ════════════════════════════════
   PROJECT CARD — High-Fidelity Showcase
   ════════════════════════════════ */
.project-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-opacity: 0;
  --parallax-x: 0px;
  --parallax-y: 0px;

  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transform-style: preserve-3d;
  transition:
    border-color var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
  outline: none;
}

.project-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 20px 60px rgba(0,0,0,0.65);
}

.project-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 24px 70px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.08);
}

/* Moving Specular Border Highlight */
.project-card__border-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    400px circle at var(--mouse-x) var(--mouse-y),
    rgba(200, 184, 154, 0.45),
    transparent 50%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity var(--dur-fast) var(--ease-out);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  z-index: 5;
}

/* Ambient Inner Spotlight */
.project-card__spotlight {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    500px circle at var(--mouse-x) var(--mouse-y),
    rgba(200, 184, 154, 0.08),
    transparent 70%
  );
  opacity: var(--spotlight-opacity);
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: 4;
}

/* Precision Media Frame */
.project-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #09090C;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-card--featured .project-card__frame {
  aspect-ratio: 16/7;
}

/* Multi-layer Parallax Media Layer */
.project-card__media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.02);
  transition: transform 0.2s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform var(--dur-slower) var(--ease-out);
}

.project-card:hover .project-card__img {
  transform: scale(1.03);
}

/* Contextual Badge Overlay */
.project-card__badge-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.7) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out);
  z-index: 3;
}

.project-card:hover .project-card__badge-overlay {
  opacity: 1;
}

.project-card__badge-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(10, 10, 12, 0.85);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-full);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transform: translateY(8px);
  transition: transform var(--dur-normal) var(--ease-out);
}

.project-card:hover .project-card__badge-pill {
  transform: translateY(0);
}

/* Content Area */
.project-card__content {
  padding: var(--sp-6);
  position: relative;
  z-index: 2;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.project-card__sep {
  color: var(--text-ghost);
}

.project-card__title {
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-tight);
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.project-card__desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-4);
  max-width: 680px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.project-card__cta {
  cursor: pointer;
}

/* ════════════════════════════════
   CUSTOM CONTEXTUAL CURSOR
   ════════════════════════════════ */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: normal;
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
  will-change: transform;
}

.custom-cursor.is-active {
  opacity: 1;
}

.custom-cursor__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  position: absolute;
  top: -4px;
  left: -4px;
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

.custom-cursor__badge {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(18, 18, 22, 0.88);
  border: 1px solid rgba(200, 184, 154, 0.4);
  border-radius: var(--r-full);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%);
}

.custom-cursor.is-hovering-project .custom-cursor__dot {
  opacity: 0;
}

.custom-cursor.is-hovering-project .custom-cursor__badge {
  display: flex;
}

.custom-cursor__text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* ════════════════════════════════
   CASE STUDY MODAL DIALOG
   ════════════════════════════════ */
.case-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.case-modal[open] {
  opacity: 1;
  pointer-events: auto;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.84);
  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
}

.case-modal__container {
  position: relative;
  width: 90%;
  max-width: 920px;
  max-height: 88vh;
  overflow-y: auto;
  background: #0E0E12;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
  box-shadow: 0 24px 80px rgba(0,0,0,0.85);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--dur-slow) var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-4) transparent;
}

.case-modal[open] .case-modal__container {
  transform: translateY(0) scale(1);
}

.case-modal__close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  z-index: 10;
}

.case-modal__close:hover {
  background: rgba(255,255,255,0.14);
  color: var(--text);
  transform: scale(1.08);
}

.case-modal__header {
  margin-bottom: var(--sp-6);
}

.case-modal__category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  display: block;
}

.case-modal__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tightest);
  color: var(--text);
  line-height: var(--lh-tight);
}

.case-modal__media-wrapper {
  margin: var(--sp-6) 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #08080A;
}

.case-modal__media-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.case-modal__metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.case-modal__metric-val {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tightest);
}

.case-modal__metric-lbl {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.case-modal__section {
  margin-bottom: var(--sp-8);
}

.case-modal__section-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  margin-bottom: var(--sp-3);
  letter-spacing: var(--ls-tight);
}

.case-modal__text {
  font-size: var(--text-base);
  color: var(--text-sub);
  line-height: var(--lh-relaxed);
}

.case-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ════════════════════════════════
   STAT / METRIC
   ════════════════════════════════ */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.stat__value {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tightest);
  color: var(--text);
  line-height: 1;
}

.stat__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: var(--ls-normal);
}

/* ════════════════════════════════
   FOOTER
   ════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--sp-12) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: var(--sp-8);
}

.footer__brand {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__link:hover { color: var(--text); }

/* ════════════════════════════════
   AVAILABILITY INDICATOR
   ════════════════════════════════ */
.availability {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
}

.availability__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ════════════════════════════════
   TOOLTIP
   ════════════════════════════════ */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface-4);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: var(--text-xs);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: var(--z-overlay);
}
[data-tooltip]:hover::after {
  opacity: 1;
}

/* ════════════════════════════════
   CURRENCY SWITCHER
   ════════════════════════════════ */
.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.currency-btn {
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  color: var(--text-muted);
  border-radius: var(--r-full);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}

.currency-btn.is-active,
.currency-btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ════════════════════════════════
   LAUNCH CLIENT PROGRAM BANNER
   ════════════════════════════════ */
.launch-banner {
  background: linear-gradient(135deg, rgba(200, 184, 154, 0.08) 0%, rgba(18, 18, 24, 0.6) 100%);
  border: 1px solid rgba(200, 184, 154, 0.25);
  border-radius: var(--r-xl);
  padding: var(--sp-8) var(--sp-10);
  margin-bottom: var(--sp-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.launch-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(200, 184, 154, 0.15);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-widest);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.launch-banner__title {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

.launch-banner__desc {
  font-size: var(--text-sm);
  color: var(--text-sub);
  max-width: 620px;
  line-height: var(--lh-normal);
  margin-top: var(--sp-1);
}

.launch-banner__badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
}

.launch-banner__spots {
  font-size: var(--text-2xl);
  font-weight: var(--fw-black);
  color: var(--accent);
  letter-spacing: var(--ls-tightest);
}

.launch-banner__spots-lbl {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ════════════════════════════════
   PROJECT CONFIGURATOR COMPONENT
   ════════════════════════════════ */
.configurator {
  background: var(--surface-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-2xl);
  padding: clamp(var(--sp-6), 4vw, var(--sp-12));
  box-shadow: 0 20px 70px rgba(0,0,0,0.7);
}

.config-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--sp-10);
  align-items: start;
}

.config-step {
  margin-bottom: var(--sp-8);
}

.config-step:last-child {
  margin-bottom: 0;
}

.config-step__header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.config-step__num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(200, 184, 154, 0.15);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-step__title {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

.config-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.config-pill {
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-sub);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.config-pill:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--surface-3);
}

.config-pill.is-selected {
  background: rgba(200, 184, 154, 0.12);
  border-color: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 0 16px rgba(200, 184, 154, 0.15);
}

.config-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-2);
}

.config-feature-btn {
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-sub);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
}

.config-feature-btn:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.config-feature-btn.is-selected {
  background: rgba(200, 184, 154, 0.12);
  border-color: var(--accent);
  color: #FFFFFF;
}

.config-feature-btn .config-check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid var(--border-hi);
  display: flex;
  align-items: center;
  justify-content: center;
}

.config-feature-btn.is-selected .config-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* Configurator Sticky Output Summary Card */
.config-summary-card {
  position: sticky;
  top: calc(var(--sp-24) + 20px);
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: 0 16px 50px rgba(0,0,0,0.8);
}

.config-summary-card__tag {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  display: block;
}

.config-summary-card__price {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--fw-black);
  color: var(--text);
  letter-spacing: var(--ls-tightest);
  line-height: 1.1;
  margin-bottom: var(--sp-1);
}

.config-summary-card__time {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.config-summary-card__specs {
  font-size: var(--text-xs);
  color: var(--text-sub);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

/* ════════════════════════════════
   ENGINEERING LAB SIMULATORS
   ════════════════════════════════ */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
}

/* Telegram Simulator Frame */
.tg-sim {
  background: #0E0E14;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.tg-sim__header {
  background: #14141E;
  padding: var(--sp-3) var(--sp-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.tg-sim__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.tg-sim__name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.tg-sim__status {
  font-size: 11px;
  color: var(--success);
}

.tg-sim__feed {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  scrollbar-width: thin;
}

.tg-msg {
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.tg-msg--bot {
  align-self: flex-start;
}

.tg-msg--user {
  align-self: flex-end;
}

.tg-msg__bubble {
  padding: var(--sp-3) var(--sp-4);
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.tg-msg--bot .tg-msg__bubble {
  background: #181824;
  color: #E2E8F0;
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom-left-radius: 4px;
}

.tg-msg--user .tg-msg__bubble {
  background: var(--accent);
  color: #08080A;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.tg-msg__btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tg-inline-btn {
  padding: 7px 12px;
  background: #1C1C28;
  border: 1px solid rgba(200, 184, 154, 0.25);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
  display: block;
}

.tg-inline-btn:hover {
  background: rgba(200, 184, 154, 0.2);
  border-color: var(--accent);
}

.tg-sim__quick-bar {
  padding: var(--sp-2) var(--sp-4);
  background: #111118;
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
}

.tg-quick-cmd {
  padding: 4px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-sub);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}

.tg-quick-cmd:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.tg-sim__input-bar {
  padding: var(--sp-3) var(--sp-4);
  background: #14141E;
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--sp-2);
}

.tg-sim__input {
  flex: 1;
  background: #0C0C12;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 8px 14px;
  color: #FFF;
  font-size: 12.5px;
  outline: none;
}

/* Python Terminal Simulator */
.py-terminal {
  background: #0A0A0E;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 540px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  font-family: var(--font-mono);
}

.py-terminal__header {
  background: #121218;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.py-terminal__dots {
  display: flex;
  gap: 6px;
}

.py-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.py-dot--red { background: #EF4444; }
.py-dot--yellow { background: #F59E0B; }
.py-dot--green { background: #10B981; }

.py-terminal__title {
  font-size: 11px;
  color: var(--text-muted);
}

.py-terminal__tabs {
  padding: var(--sp-2) var(--sp-4);
  background: #0E0E14;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--sp-2);
}

.py-tab-btn {
  padding: 4px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.py-tab-btn.is-active {
  background: rgba(255,255,255,0.06);
  border-color: var(--border);
  color: var(--text);
}

.py-terminal__body {
  flex: 1;
  padding: var(--sp-4);
  overflow-y: auto;
  font-size: 12px;
  line-height: 1.65;
  color: #D1D5DB;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.py-line {
  word-break: break-all;
}

.py-prompt { color: #FBBF24; font-weight: 600; }
.py-dim { color: #6B7280; }
.py-info { color: #60A5FA; }
.py-success { color: #34D399; font-weight: 600; }
.py-gold { color: #C8B89A; }

/* ════════════════════════════════
   COMMERCIAL STARTING ANCHORS TABLE
   ════════════════════════════════ */
.anchors-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-1);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: var(--sp-8);
}

.anchors-table th,
.anchors-table td {
  padding: var(--sp-4) var(--sp-6);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.anchors-table th {
  background: var(--surface-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}

.anchors-table tr:last-child td {
  border-bottom: none;
}

.anchors-table tr:hover td {
  background: var(--surface-2);
}

.anchors-service-name {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.anchors-price {
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  color: var(--accent);
  font-family: var(--font-mono);
}

.anchors-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

