/* Migramentors — Modern static preview
   Brand tokens mirrored from production + custom modern utilities. */

@font-face {
  font-family: "TT Interphases";
  src: url("./fonts/tt-interphases-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Interphases";
  src: url("./fonts/tt-interphases-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Interphases";
  src: url("./fonts/tt-interphases-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Interphases";
  src: url("./fonts/tt-interphases-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-25: #f5f3ff;
  --primary-50: #ede9fe;
  --primary-100: #ddd6fe;
  --primary-200: #c4b5fd;
  --primary-300: #a78bfa;
  --primary-400: #8b5cf6;
  --primary-500: #7c3aed;
  --primary-600: #6d28d9;
  --primary-700: #5b21b6;
  --primary-800: #4c1d95;
  --primary-900: #40108a;

  --secondary-25: #effef7;
  --secondary-50: #dafeed;
  --secondary-100: #b7fbdd;
  --secondary-300: #70efb8;
  --secondary-500: #16d181;
  --secondary-700: #0d8854;
  --secondary-900: #0f583b;

  --neutral-50: #f9fafb;
  --neutral-100: #eef0f3;
  --neutral-200: #e4e7ec;
  --neutral-700: #344054;

  --zinc-400: #71717a;
  --zinc-500: #52525b;
  --zinc-700: #27272a;

  --color-primary: var(--zinc-700);
  --color-secondary: var(--zinc-400);
  --color-disable: var(--zinc-400);
}

html {
  font-family: "TT Interphases", system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: var(--neutral-50);
  color: var(--color-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Sayt kənarları üçün əlavə breathing room */
  padding-left: 0;
  padding-right: 0;
}
@media (min-width: 768px) {
  body { padding-left: 12px; padding-right: 12px; }
}
@media (min-width: 1024px) {
  body { padding-left: 20px; padding-right: 20px; }
}
@media (min-width: 1280px) {
  body { padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 1536px) {
  body { padding-left: 40px; padding-right: 40px; }
}

::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

/* ── Brand text helpers ─────────────────────────────────────────── */
.text-primary       { color: var(--color-primary); }
.text-secondary     { color: var(--color-secondary); }
.text-disable       { color: var(--color-disable); }
.text-primary-default { color: var(--primary-400); }
.text-primary-700   { color: var(--primary-700); }
.text-secondary-700 { color: var(--secondary-700); }

.bg-surface-brand   { background: var(--primary-25); }
.bg-primary-25      { background: var(--primary-25); }
.bg-primary-50      { background: var(--primary-50); }
.bg-primary-100     { background: var(--primary-100); }
.bg-secondary-100   { background: var(--secondary-100); }
.bg-secondary-500   { background: var(--secondary-500); }

.border-primary-100 { border-color: var(--primary-100); }
.border-secondary-100 { border-color: var(--secondary-100); }

/* ── Typography (slightly larger for better hierarchy) ───────────── */
.display-200  { font-size: 68px; line-height: 1.04; letter-spacing: -0.025em; }
.display-300  { font-size: 48px; line-height: 1.08; letter-spacing: -0.02em; }
.display-400  { font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
.headline-100 { font-size: 34px; line-height: 1.2; letter-spacing: -0.012em; }
.headline-200 { font-size: 24px; line-height: 1.35; letter-spacing: -0.005em; }
.headline-300 { font-size: 18px; line-height: 1.45; }
.paragraph-100 { font-size: 18px; line-height: 1.6; }
.paragraph-200 { font-size: 15px; line-height: 1.55; letter-spacing: -0.005em; }
.paragraph-300 { font-size: 13px; line-height: 1.5; }
.paragraph-400 { font-size: 12px; line-height: 1.4; letter-spacing: 0.02em; }

@media (max-width: 767px) {
  .display-200  { font-size: 44px; }
  .display-300  { font-size: 36px; }
  .display-400  { font-size: 28px; }
  .headline-100 { font-size: 28px; }
  .headline-200 { font-size: 20px; }
  .paragraph-100 { font-size: 16px; }
}

/* ── Gradients ──────────────────────────────────────────────────── */
.packages-top-bg {
  background: linear-gradient(180deg, var(--primary-25) 0%, var(--neutral-50) 100%);
}
.cta-gradient {
  background:
    radial-gradient(ellipse at top right, rgba(199, 169, 255, .35), transparent 50%),
    linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 60%, var(--primary-800) 100%);
  background-size: 200% 200%;
  animation: gradient-pan 12s ease-in-out infinite;
}

/* Animated mesh blobs background */
.mesh-bg {
  position: relative;
  isolation: isolate;
}
.mesh-bg::before,
.mesh-bg::after {
  content: "";
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
  animation: float-slow 18s ease-in-out infinite;
}
.mesh-bg::before {
  top: -120px;
  right: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--primary-200), transparent 70%);
}
.mesh-bg::after {
  bottom: -160px;
  left: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--secondary-100), transparent 70%);
  animation-delay: -9s;
}

/* Testimonials hero card with image + dark overlay */
.review-bg {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--primary-900) 87.31%),
    url("./review-bg.jpg") #d9d9d9 50% / cover no-repeat;
}

/* Booking step active badge */
.step-active {
  background: linear-gradient(160deg, var(--primary-200) -5.15%, var(--primary-500) 87.35%);
  box-shadow:
    0 2px 5px 0 rgba(74, 58, 255, 0.25),
    0 -2px 2px 0 rgba(0, 66, 137, 0.15) inset,
    0 1px 1px 0 rgba(255, 255, 255, 0.1) inset;
  color: white;
}

/* ── Cards & Hover ──────────────────────────────────────────────── */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow:
    0 32px 64px -20px rgba(76, 29, 149, 0.22),
    0 8px 20px -8px rgba(76, 29, 149, 0.10);
}

/* Subtle 3D tilt on mentor cards */
.mentor-tilt {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.group:hover .mentor-tilt {
  transform: translateY(-4px) rotate(-0.5deg);
}

/* Avatar zoom + gradient overlay reveal */
.avatar-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.group:hover .avatar-zoom {
  transform: scale(1.08);
}
.group:hover .name-overlay {
  opacity: 1;
  transform: translateY(0);
}
.name-overlay {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* ── Form helpers ───────────────────────────────────────────────── */
.select-wrap {
  position: relative;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
}
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--zinc-400);
  border-bottom: 2px solid var(--zinc-400);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ── KEYFRAMES ──────────────────────────────────────────────────── */
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-25px, 25px) scale(0.95); }
}

@keyframes float-particle {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-200px) translateX(40px); opacity: 0; }
}

@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.8; }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(22, 209, 129, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(22, 209, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 209, 129, 0); }
}

@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes draw-underline {
  from { stroke-dashoffset: 240; }
  to   { stroke-dashoffset: 0; }
}

@keyframes scroll-cue {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Animation utilities ─────────────────────────────────────────── */
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-pulse-ring { animation: pulse-ring 2s ease-out infinite; }
.animate-shimmer    {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.animate-spin-slow  { animation: spin-slow 24s linear infinite; }

/* Underline draw on hero highlight */
.underline-draw path {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw-underline 1.4s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Marquee */
.marquee {
  display: flex;
  gap: 4rem;
  animation: marquee-x 30s linear infinite;
  width: max-content;
}
.marquee-pause:hover .marquee {
  animation-play-state: paused;
}

/* ── Hero floating mentor cards (right side) ─────────────────────── */
@keyframes float-card {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0, -10px); }
}

.mentor-float-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 169, 255, 0.5);
  border-radius: 14px;
  padding: 8px 14px 8px 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 12px 32px -12px rgba(76, 29, 149, 0.18),
    0 4px 12px -4px rgba(76, 29, 149, 0.08);
  animation: float-card 7s ease-in-out infinite;
  will-change: transform;
}
.mentor-float-card img {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}
.mentor-float-card .bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 110px;
}
.mentor-float-card .bars span {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ede9fe 0%, #ddd6fe 100%);
}
.mentor-float-card .bars span:first-child { width: 75%; }
.mentor-float-card .bars span:last-child  { width: 50%; }

.mentor-float-card.dot-purple::after,
.mentor-float-card.dot-green::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  bottom: -4px;
  left: 36px;
}
.mentor-float-card.dot-purple { position: relative; }
.mentor-float-card.dot-purple::after { background: var(--primary-500); }
.mentor-float-card.dot-green { position: relative; }
.mentor-float-card.dot-green::after { background: var(--secondary-500); }

/* Animated dashed connection line drawn between cards */
@keyframes dash-flow {
  to { stroke-dashoffset: -100; }
}
.connection-line {
  fill: none;
  stroke: var(--primary-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  animation: dash-flow 4s linear infinite;
  opacity: 0.6;
}
.connection-line.green {
  stroke: var(--secondary-500);
  opacity: 0.5;
}

/* Pulse rings on map dots */
@keyframes pulse-ring-soft {
  0%   { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(124, 58, 237, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}
@keyframes pulse-ring-green {
  0%   { box-shadow: 0 0 0 0 rgba(22, 209, 129, 0.5); }
  70%  { box-shadow: 0 0 0 12px rgba(22, 209, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 209, 129, 0); }
}
.map-dot          { animation: pulse-ring-soft 2.5s ease-out infinite; }
.map-dot.green    { animation: pulse-ring-green 2.5s ease-out infinite; }

/* Floating particles container */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.particles span {
  position: absolute;
  bottom: -20px;
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--primary-300);
  opacity: 0;
  animation: float-particle 14s linear infinite;
}
.particles span:nth-child(1)  { left: 6%;  animation-delay: 0s;   width: 6px;  height: 6px; }
.particles span:nth-child(2)  { left: 18%; animation-delay: 2s;   width: 8px;  height: 8px;  background: var(--primary-200); }
.particles span:nth-child(3)  { left: 32%; animation-delay: 4s;   width: 12px; height: 12px; }
.particles span:nth-child(4)  { left: 48%; animation-delay: 6s;   width: 5px;  height: 5px;  background: var(--secondary-300); }
.particles span:nth-child(5)  { left: 64%; animation-delay: 8s;   width: 9px;  height: 9px; }
.particles span:nth-child(6)  { left: 78%; animation-delay: 10s;  width: 7px;  height: 7px;  background: var(--primary-200); }
.particles span:nth-child(7)  { left: 92%; animation-delay: 12s;  width: 6px;  height: 6px;  background: var(--secondary-300); }

/* (live-dot & scroll-cue removed — not part of original design) */

/* IntersectionObserver scroll-fade */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar at the very top of the page */
.scroll-progress {
  position: fixed;
  top: 40px;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-400), var(--primary-700), var(--secondary-500));
  z-index: 90;
  transition: width 0.05s linear;
}

/* ── Preview / role-switcher top bar ─────────────────────────────── */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 16px;
  background: linear-gradient(90deg, #1f1135 0%, #2e1a4a 50%, #1f1135 100%);
  border-bottom: 1px solid rgba(199, 169, 255, 0.15);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  height: 40px;
  margin: 0 -8px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.preview-bar::-webkit-scrollbar { display: none; }
.preview-bar .pb-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-transform: uppercase;
  font-size: 10px;
  flex-shrink: 0;
}
.preview-bar .pb-brand::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--primary-400);
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.5);
  animation: pulse-ring-soft 2s ease-out infinite;
}
.preview-bar nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.preview-bar nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 12px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.preview-bar nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.preview-bar nav a.is-active {
  background: rgba(167, 139, 250, 0.2);
  color: #ddd6fe;
  font-weight: 600;
}

/* ── Generic dashboard layout (admin / operator / panel pages) ───── */
.dashboard-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 40px);
  background: var(--neutral-50);
}
@media (max-width: 768px) {
  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-shell .ds-sidebar { display: none; }
}
.ds-sidebar {
  background: white;
  border-right: 1px solid var(--neutral-100);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ds-sidebar .ds-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}
.ds-sidebar .ds-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-sidebar .ds-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--zinc-500);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.ds-sidebar .ds-nav a:hover {
  background: var(--primary-25);
  color: var(--primary-700);
}
.ds-sidebar .ds-nav a.is-active {
  background: var(--primary-50);
  color: var(--primary-700);
  font-weight: 600;
}
.ds-sidebar .ds-section-label {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--zinc-400);
  margin-top: 8px;
}
.ds-main {
  padding: 24px;
  overflow-x: hidden;
}
@media (min-width: 768px) {
  .ds-main { padding: 32px; }
}
.ds-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--neutral-100);
}
.ds-card {
  background: white;
  border: 1px solid var(--neutral-100);
  border-radius: 16px;
  padding: 20px;
}
.ds-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ds-stat .label {
  font-size: 12px;
  font-weight: 600;
  color: var(--zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ds-stat .value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
}
.ds-stat .delta {
  font-size: 12px;
  font-weight: 600;
}
.ds-stat .delta.up   { color: var(--secondary-700); }
.ds-stat .delta.down { color: #b91c1c; }

/* Role badge (used in dashboard topbar) */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.role-badge.director { background: #fef3c7; color: #92400e; }
.role-badge.admin    { background: #fee2e2; color: #991b1b; }
.role-badge.operator { background: #dbeafe; color: #1e40af; }
.role-badge.mentor   { background: var(--primary-50); color: var(--primary-700); }
.role-badge.expert   { background: var(--secondary-50); color: var(--secondary-700); }
.role-badge.user     { background: var(--neutral-100); color: var(--neutral-700); }

/* Step timeline (horizontal connecting line on desktop) */
.timeline-line {
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary-200) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}

/* (ribbon removed — not in original site) */

/* Tabs (packages) */
.tab-active {
  background: white;
  color: var(--primary-700);
  box-shadow: 0 4px 12px -4px rgba(76, 29, 149, 0.15);
}

/* (mobile sticky CTA & available-pill removed — added by design system, not in original site) */

/* btn-glow removed — too noisy; use plain buttons with subtle shadow */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
