/* ==========================================================================
   SalonLink Design System — Production Stylesheet
   Forge-ratified tokens and responsive rules
   ========================================================================== */

:root {
  --bg: #0c0a10;
  --surface: #16121c;
  --surface-2: #201a27;
  --surface-inset: #0e0b13;
  --band-bg: rgba(22, 18, 28, 0.62);

  --p-300: #f0abfc;
  --p-400: #e879f9;
  --p-500: #d946ef;
  --p-600: #c026d3;

  --cyan-400: #38bdf8;

  --text: #fdf4ff;
  --text-2: #e4d3e8;
  --text-3: #867a8e;

  --line: rgba(217, 70, 239, 0.18);
  --line-bright: rgba(217, 70, 239, 0.35);
  --line-strong: rgba(217, 70, 239, 0.55);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 26px;
  --r-full: 9999px;
}

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

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a {
  color: var(--p-300);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--text);
}

/* Background Canvas */
.site-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}

/* Page Wrapper */
.page-wrapper {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  z-index: 1;
}

/* Buttons */
.btn-primary {
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(232, 121, 249, 0.35);
}
.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  transform: translateY(-1px);
  background: var(--surface-2) !important;
  border-color: var(--p-400) !important;
  color: var(--text) !important;
}
.btn-secondary:active {
  transform: translateY(1px);
}

/* Contact 2-Column Hero & Refined Channels */
.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
}

.contact-intro-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(232, 121, 249, 0.3);
  background: rgba(232, 121, 249, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: #f0abfc;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0abfc;
  box-shadow: 0 0 8px #f0abfc;
}

.contact-title {
  font-family: 'Noto Serif Georgian', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: #fdf4ff;
  margin: 0 0 16px 0;
  text-wrap: balance;
}

.contact-title .gradient-text {
  background: linear-gradient(135deg, #f0abfc 0%, #e879f9 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-description {
  font-size: 16px;
  line-height: 1.65;
  color: #c4b5ce;
  margin: 0 0 28px 0;
}

.contact-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.contact-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(217, 70, 239, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.contact-feat-item:hover {
  border-color: rgba(217, 70, 239, 0.25);
  transform: translateX(3px);
}

.feat-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232, 121, 249, 0.1);
  border: 1px solid rgba(232, 121, 249, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feat-title {
  font-size: 15px;
  font-weight: 700;
  color: #fdf4ff;
  margin-right: 6px;
}

.feat-desc {
  font-size: 14.5px;
  color: #bdaec6;
  line-height: 1.5;
}

/* Contact Card (Right Console) */
.contact-card-box {
  background: linear-gradient(145deg, rgba(37, 24, 46, 0.9) 0%, rgba(22, 17, 28, 0.96) 100%);
  border: 1px solid rgba(232, 121, 249, 0.32);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(217, 70, 239, 0.1), inset 0 1px 0 rgba(240, 171, 252, 0.16);
  position: relative;
  backdrop-filter: blur(16px);
}

.card-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(217, 70, 239, 0.14);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-text {
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.2px;
}

.reply-time {
  font-size: 12.5px;
  color: #a496af;
}

.card-heading {
  font-family: 'Noto Serif Georgian', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: #fdf4ff;
  margin: 18px 0 16px 0;
  text-align: left;
}

.card-channels-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-btn {
  text-decoration: none;
  border-radius: 15px;
  display: flex;
  align-items: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  user-select: none;
}

/* WhatsApp Primary */
.channel-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.13) 0%, rgba(26, 20, 32, 0.8) 100%);
  border: 1.5px solid rgba(37, 211, 102, 0.42);
  padding: 14px 18px;
  gap: 14px;
}
.channel-whatsapp:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22) 0%, rgba(26, 20, 32, 0.95) 100%);
  border-color: rgba(37, 211, 102, 0.8);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.2), 0 0 16px rgba(37, 211, 102, 0.15);
}

.channel-whatsapp .channel-btn-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-whatsapp .channel-btn-label {
  font-size: 14.5px;
  font-weight: 700;
  color: #fdf4ff;
}

.channel-whatsapp .channel-btn-val {
  font-size: 13px;
  font-weight: 600;
  color: #86efac;
}

.channel-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #86efac;
  transition: transform 0.16s ease;
}
.channel-whatsapp:hover .channel-arrow {
  transform: translateX(4px);
}

/* Sub-grid: Instagram & Messenger */
.channels-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.channel-sub {
  background: rgba(28, 22, 35, 0.75);
  border: 1px solid rgba(217, 70, 239, 0.22);
  padding: 12px 14px;
  gap: 10px;
}
.channel-sub:hover {
  transform: translateY(-2px);
  background: rgba(38, 28, 48, 0.95);
  border-color: rgba(217, 70, 239, 0.5);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.icon-ig {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-fb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0, 132, 255, 0.15);
  border: 1px solid rgba(0, 132, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-sub .channel-btn-label {
  font-size: 13px;
  font-weight: 700;
  color: #fdf4ff;
  line-height: 1.25;
}

.channel-sub .channel-btn-val {
  font-size: 11.5px;
  font-weight: 500;
  color: #c4b5ce;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-btn-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

/* Phone Call */
.channel-phone {
  background: rgba(28, 22, 35, 0.75);
  border: 1px solid rgba(217, 70, 239, 0.22);
  padding: 12px 16px;
  gap: 12px;
}
.channel-phone:hover {
  transform: translateY(-2px);
  background: rgba(38, 28, 48, 0.95);
  border-color: rgba(217, 70, 239, 0.55);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(232, 121, 249, 0.12);
}

.icon-phone {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(217, 70, 239, 0.14);
  border: 1px solid rgba(217, 70, 239, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-phone .channel-btn-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #fdf4ff;
}

.channel-phone .channel-btn-val {
  font-size: 12.5px;
  font-weight: 600;
  color: #f0abfc;
}

.phone-call-badge {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(232, 121, 249, 0.12);
  border: 1px solid rgba(232, 121, 249, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: #f0abfc;
  transition: all 0.16s ease;
}
.channel-phone:hover .phone-call-badge {
  background: rgba(232, 121, 249, 0.22);
  border-color: rgba(232, 121, 249, 0.5);
  color: #ffffff;
}

/* Card footer */
.card-footer-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(217, 70, 239, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
}
.card-footer-links a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.15s ease;
}
.card-footer-links a:hover {
  color: #f0abfc;
  text-decoration: underline;
}
.card-footer-links .dot-sep {
  color: rgba(217, 70, 239, 0.3);
}

@media (max-width: 920px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-title {
    font-size: 28px;
  }
}

@media (max-width: 540px) {
  .channels-subgrid {
    grid-template-columns: 1fr;
  }
  .contact-card-box {
    padding: 22px 18px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(12, 10, 16, 0.75);
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 18, 28, 0.75);
  border: 1px solid rgba(217, 70, 239, 0.28);
  border-radius: var(--r-full);
  padding: 3px;
  gap: 2px;
  margin-left: 6px;
}

.lang-btn {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-3);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.lang-btn.active {
  background: var(--p-400);
  color: var(--bg);
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.35);
}

.mobile-header-right {
  display: none;
  align-items: center;
  gap: 8px;
}

/* FAQ Accordions */
.faq-item {
  cursor: pointer;
  outline: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] {
  background: #1b1424 !important;
  border-color: rgba(217, 70, 239, 0.45) !important;
  box-shadow: 0 0 30px rgba(232, 121, 249, 0.08);
}
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: rgba(232, 121, 249, 0.28) !important;
  color: #fff !important;
}

/* Mobile Bottom Dock */
.mobile-bottom-dock {
  display: none;
}

@media (max-width: 900px) {
  /* Disable heavy canvas on mobile for instant 60/120fps scrolling */
  #bg-canvas {
    display: none !important;
  }
  .page-wrapper {
    background: radial-gradient(circle at 50% 0%, #1e1226 0%, #0c0a10 70%) !important;
  }

  /* Rendering containment: only render sections close to viewport */
  .story-section-box,
  .features-quad-box,
  .guarantees-box,
  .pricing-card-box,
  .faq-section-box,
  .closing-section-box {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
  }

  html, body {
    -webkit-overflow-scrolling: touch;
  }

  /* Disable header backdrop filter on mobile to avoid fixed position containing block trap */
  .site-header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(12, 10, 16, 0.95) !important;
  }

  .site-header .header-inner {
    padding: 14px 20px !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .mobile-header-right {
    display: inline-flex !important;
  }

  .mobile-trial-pill {
    display: inline-block !important;
  }

  /* Floating Bottom Dock - GPU layer promoted */
  .mobile-bottom-dock {
    display: flex !important;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    will-change: transform;
    z-index: 9999;
    background: rgba(22, 18, 28, 0.96) !important;
    border: 1px solid var(--line-bright);
    border-radius: var(--r-full);
    padding: 6px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(232,121,249,0.15);
  }

  .faq-section-box {
    padding: 16px 20px 56px !important;
  }
  .faq-item {
    padding: 18px 20px !important;
  }

  .dock-btn {
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-2);
    border-radius: var(--r-full);
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    white-space: nowrap;
  }

  .dock-btn.active, .dock-btn:hover {
    background: var(--p-400);
    color: var(--bg);
  }

  @media (max-width: 400px) {
    .mobile-bottom-dock {
      padding: 4px !important;
      gap: 2px !important;
      width: calc(100% - 24px) !important;
      max-width: 360px !important;
      justify-content: space-around !important;
    }
    .dock-btn {
      padding: 8px 10px !important;
      font-size: 12px !important;
    }
  }

  /* Section Paddings */
  div[style*="padding: 88px 80px"],
  div[style*="padding: 80px 80px"],
  div[style*="padding: 72px 80px"],
  div[style*="padding: 40px 80px"],
  div[style*="padding: 0 80px"],
  div[style*="padding: 24px 80px"],
  div[style*="padding: 64px 80px"],
  div[style*="padding: 96px 80px"],
  div[style*="padding: 32px 80px"],
  div[style*="padding: 8px 80px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Hero adjustments */
  .home-hero-wrap {
    padding: 48px 20px 40px !important;
  }

  h1 {
    font-size: clamp(28px, 6.5vw, 44px) !important;
    line-height: 1.25 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 18px 0 0 !important;
  }

  p {
    font-size: clamp(15px, 4vw, 18px) !important;
    max-width: 100% !important;
  }

  /* Product Shot */
  .product-shot-outer {
    padding: 0 20px 48px !important;
  }

  .guarantees-box {
    padding: 0 20px 64px !important;
  }

  .story-card {
    padding: 28px 20px !important;
  }

  .closing-section-box {
    padding: 24px 20px 64px !important;
  }

  .closing-section-box > div {
    padding: 36px 20px !important;
  }

  .day-sheet-box {
    display: none !important;
  }

  .phone-modal-box {
    margin-left: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .phone-modal-box > div {
    width: 100% !important;
  }

  .phone-modal-box > div > div {
    width: 100% !important;
    height: auto !important;
  }

  /* Grids collapse to 1 column */
  div[style*="grid-template-columns: repeat(2"],
  div[style*="grid-template-columns: repeat(3"],
  div[style*="grid-template-columns: 1.05fr"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Pricing hero big card */
  div[style*="font-size: 96px"],
  div[style*="font-size: 72px"] {
    font-size: clamp(34px, 8.5vw, 64px) !important;
    line-height: 1.15 !important;
  }

  div[style*="padding: 56px 72px"] {
    padding: 32px 20px !important;
  }

  /* Contact boxes */
  .contact-section-box {
    padding: 40px 16px 80px !important;
  }

  /* Footer */
  .site-footer {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 24px 20px 100px !important;
    text-align: center !important;
  }

  /* Hero Video & Features Showcase */
  .hero-video-flex-wrap {
    flex-direction: column !important;
    gap: 40px !important;
  }
  .phone-mockup-wrap {
    width: 290px !important;
  }
  .video-features-list {
    width: 100% !important;
    max-width: 100% !important;
  }

  .footer-nav {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}

@media (max-width: 400px) {
  .phone-modal-box {
    max-width: 100% !important;
  }
}
