/* ==========================================================================
   SOLOSYNC — Solo Travel Platform Design System
   Aesthetic: Wanderlust Editorial — colorful, tactile, premium
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colorful, travel-inspired palette */
  --sunset:        #FF5E62;   /* coral sunset */
  --mango:         #FFB347;   /* mango warmth */
  --turquoise:     #00C9B7;   /* lagoon */
  --indigo:        #2D3FE7;   /* deep sky */
  --plum:          #6E2EB7;   /* twilight */
  --lime:          #B4E33D;   /* fresh */
  --rose:          #FF7AB6;   /* cherry blossom */
  --sand:          #F5E9D7;   /* warm paper */
  --ink:           #14122C;   /* deep ink */
  --ink-soft:      #2A2748;
  --paper:         #FAF7F2;

  /* Semantic light theme */
  --bg:            var(--paper);
  --bg-alt:        #FFFFFF;
  --bg-elevated:   #FFFFFF;
  --surface:       rgba(255,255,255,0.55);
  --surface-strong:rgba(255,255,255,0.75);
  --text:          var(--ink);
  --text-muted:    #4A4869;
  --text-soft:     #767393;
  --border:        rgba(20,18,44,0.10);
  --border-strong: rgba(20,18,44,0.18);
  --shadow-sm:     0 2px 8px rgba(20,18,44,0.06);
  --shadow-md:     0 8px 28px rgba(20,18,44,0.10);
  --shadow-lg:     0 24px 60px rgba(20,18,44,0.14);
  --shadow-glow:   0 18px 50px rgba(255,94,98,0.28);

  /* Brand gradients */
  --grad-warm:     linear-gradient(135deg, #FF5E62 0%, #FFB347 100%);
  --grad-cool:     linear-gradient(135deg, #00C9B7 0%, #2D3FE7 100%);
  --grad-twilight: linear-gradient(135deg, #6E2EB7 0%, #FF5E62 100%);
  --grad-mesh:     radial-gradient(at 20% 20%, rgba(255,94,98,0.18) 0px, transparent 50%),
                   radial-gradient(at 80% 10%, rgba(0,201,183,0.18) 0px, transparent 50%),
                   radial-gradient(at 60% 90%, rgba(110,46,183,0.18) 0px, transparent 50%),
                   radial-gradient(at 10% 80%, rgba(255,179,71,0.18) 0px, transparent 50%);

  /* Type */
  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --header-h: 76px;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
  --bg:            #0B0A1F;
  --bg-alt:        #14122C;
  --bg-elevated:   #1B1839;
  --surface:       rgba(27,24,57,0.55);
  --surface-strong:rgba(27,24,57,0.85);
  --text:          #F5F1E8;
  --text-muted:    #BFB9D9;
  --text-soft:     #8A85AD;
  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:     0 8px 28px rgba(0,0,0,0.45);
  --shadow-lg:     0 24px 60px rgba(0,0,0,0.55);
  --shadow-glow:   0 18px 50px rgba(255,94,98,0.35);
  --grad-mesh:     radial-gradient(at 20% 20%, rgba(255,94,98,0.22) 0px, transparent 50%),
                   radial-gradient(at 80% 10%, rgba(0,201,183,0.20) 0px, transparent 50%),
                   radial-gradient(at 60% 90%, rgba(110,46,183,0.25) 0px, transparent 50%),
                   radial-gradient(at 10% 80%, rgba(255,179,71,0.15) 0px, transparent 50%);
}

/* ---------- RESET / BASE ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image: var(--grad-mesh);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out);
  overflow-x: hidden;
}

::selection { background: var(--sunset); color: #fff; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.25rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
h4 { font-size: 1.5rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  display: inline-block;
}
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 300; }

p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; transition: color .2s ease; }

/* ---------- LAYOUT UTILITIES ---------- */
.container-x {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
}
.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section-sm { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------- GLASSMORPHISM ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.glass-strong {
  background: var(--surface-strong);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ---------- BUTTONS ---------- */
.btn-v {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s ease, background .25s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-v:active { transform: scale(.97); }

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover { background: var(--sunset); transform: translateY(-2px); box-shadow: var(--shadow-glow); color: #fff; }

.btn-accent {
  background: var(--grad-warm);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,94,98,0.30);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255,94,98,0.45); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--text); color: var(--bg); }

.btn-glass {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
}
.btn-glass:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
  transition: all .25s ease;
}
.btn-icon:hover { background: var(--text); color: var(--bg); transform: rotate(8deg); }

/* ---------- BADGES / CHIPS ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
}
.chip-warm { background: rgba(255,94,98,.12); color: var(--sunset); border-color: rgba(255,94,98,.20); }
.chip-cool { background: rgba(0,201,183,.14); color: #00897b; border-color: rgba(0,201,183,.22); }
[data-theme="dark"] .chip-cool { color: var(--turquoise); }
.chip-warm-yellow { background: rgba(255,179,71,.18); color: #C97A12; border-color: rgba(255,179,71,.28); }
[data-theme="dark"] .chip-warm-yellow { color: var(--mango); }
.chip-purple { background: rgba(110,46,183,.14); color: var(--plum); border-color: rgba(110,46,183,.22); }
[data-theme="dark"] .chip-purple { color: #B583E8; }
.chip-pink { background: rgba(255,122,182,.16); color: #C73E83; border-color: rgba(255,122,182,.26); }
[data-theme="dark"] .chip-pink { color: var(--rose); }
.chip-verified {
  background: var(--turquoise);
  color: #fff;
  padding: 4px 10px;
  font-size: .7rem;
}

/* ---------- NAVBAR ---------- */
.v-nav {
  position: fixed;
  top: 14px; left: 14px; right: 14px;
  z-index: 1000;
  border-radius: var(--r-pill);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  transition: all .35s var(--ease-out);
}
.v-nav.scrolled {
  background: var(--surface-strong);
  box-shadow: var(--shadow-md);
}

.v-logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.v-logo-mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(255,94,98,.4);
  position: relative;
}
.v-logo-mark::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed var(--sunset);
  opacity: .5;
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.v-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0; margin: 0;
}
.v-nav-links a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: .92rem;
  color: var(--text-muted);
  transition: all .2s ease;
  position: relative;
}
.v-nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.v-nav-links a.active { color: var(--text); }
.v-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--sunset);
}

.v-nav-cta {
  display: flex; align-items: center; gap: var(--space-3);
}

.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: all .3s ease;
}
.theme-toggle:hover { transform: rotate(180deg); }

.mobile-toggle { display: none; }

@media (max-width: 968px) {
  .v-nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .v-nav-cta .btn-v.btn-primary { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 90px; left: 14px; right: 14px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s var(--ease-out);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--bg-alt); }

/* ---------- FOOTER ---------- */
.v-footer {
  background: var(--ink);
  color: #F5F1E8;
  padding: 80px 0 32px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}
.v-footer::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(at 80% 0%, rgba(255,94,98,.2), transparent 50%),
              radial-gradient(at 20% 100%, rgba(0,201,183,.18), transparent 50%);
  pointer-events: none;
}
.v-footer * { position: relative; z-index: 1; }
.v-footer h5 {
  font-family: var(--font-body);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(245,241,232,.5);
  margin-bottom: 18px;
}
.v-footer-links { list-style: none; padding: 0; }
.v-footer-links li { margin-bottom: 10px; }
.v-footer-links a { color: rgba(245,241,232,.85); font-size: .95rem; }
.v-footer-links a:hover { color: var(--mango); }
.v-footer-bottom {
  margin-top: 60px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(245,241,232,.5);
  font-size: .85rem;
}
.v-footer .mega-word {
  font-family: var(--font-display);
  font-size: clamp(4rem, 14vw, 12rem);
  font-style: italic;
  font-weight: 300;
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: .9;
  letter-spacing: -.04em;
  margin-top: 40px;
  text-align: center;
  opacity: .9;
}

/* ---------- CARDS ---------- */
.card-v {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all .35s var(--ease-out);
  position: relative;
}
.card-v:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- MARQUEE ---------- */
.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 32px;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- FORMS ---------- */
.input-v, .select-v, .textarea-v {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .95rem;
  transition: all .2s ease;
}
.input-v:focus, .select-v:focus, .textarea-v:focus {
  outline: none;
  border-color: var(--sunset);
  box-shadow: 0 0 0 4px rgba(255,94,98,.12);
}
.label-v {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ---------- UTILITY ---------- */
.text-gradient {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-cool {
  background: var(--grad-cool);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.divider-soft {
  height: 1px;
  background: var(--border);
  border: 0;
  margin: var(--space-7) 0;
}
.flex-c { display:flex; align-items:center; }
.flex-b { display:flex; align-items:center; justify-content:space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

/* Decorative wavy underline used in headlines */
.wavy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' fill='none'%3E%3Cpath d='M0 4Q15 -2 30 4T60 4' stroke='%23FF5E62' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: 0 100%;
  background-size: 60px 8px;
  padding-bottom: 12px;
}
[data-theme="dark"] .wavy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8' fill='none'%3E%3Cpath d='M0 4Q15 -2 30 4T60 4' stroke='%23FFB347' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Sticker labels (rotated) */
.sticker {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transform: rotate(-3deg);
  text-transform: uppercase;
}
.sticker-warm { background: var(--sunset); }
.sticker-cool { background: var(--turquoise); color: var(--ink); }

/* Stats number */
.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.03em;
}

/* Floating decorative shapes used in hero */
.float-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(20px,-30px); }
}

/* Avatar stacks */
.av-stack { display: flex; align-items: center; }
.av-stack > * + * { margin-left: -10px; }
.av {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background-size: cover; background-position: center;
  display: inline-block;
}

/* Section heading layout */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 12px 0 0; max-width: 720px; }
.section-head p { margin: 0; max-width: 420px; }

@media (max-width: 700px) {
  .v-nav { padding: 10px 16px; }
  .v-logo { font-size: 1.3rem; }
}

/* ===== ACCESSIBILITY & PERFORMANCE LAYERS ===== */

/* Global mobile-safety: never allow horizontal page scroll */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
body { position: relative; }

/* Visible focus by default (keyboard); hidden when using mouse only */
:focus-visible {
  outline: 3px solid var(--turquoise);
  outline-offset: 2px;
  border-radius: 6px;
}
body.using-mouse :focus { outline: none; }

/* Skip-link for screen readers */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* Reduced motion overrides */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Low-data mode tweaks */
.low-data .marquee-track,
.low-data .mesh-bg { display: none !important; }
.low-data [data-decorative] { display: none !important; }

/* Screen-reader-only helper */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Print styles */
@media print {
  .v-nav, .v-footer, .reveal, video, iframe { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
  .card-v, .glass { box-shadow: none !important; border: 1px solid #ccc !important; }
}
