/* =====================================================
   BUTEOR — V2 BOLD MODERN
   Charcoal + Coral + Cream
   ===================================================== */

:root {
  /* Surfaces — neutral dark slate (no violet/pink tint in bg) */
  --bg: #1d1e25;          /* main background — neutral mid-dark */
  --bg-2: #16171d;        /* alt sections, footer (sunken) */
  --bg-3: #282933;        /* slightly lighter — for inputs */
  --surface: #2d2e38;     /* cards (elevated) */
  --surface-2: #383a47;   /* hover (lifted further) */
  --border: rgba(245, 240, 232, 0.08);
  --border-strong: rgba(245, 240, 232, 0.16);

  /* Text */
  --text: #f5f0e8;
  --text-muted: #999094;
  --text-faint: #5f595d;

  /* Accent — original BUTEOR pink */
  --pink: #f378a9;
  --pink-soft: #f893bc;
  --pink-dark: #e85d97;
  --on-pink: #16171d;

  /* Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1240px;
}

/* Hide native scrollbar — we render a custom one via JS (consistent across all browsers) */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* Custom scrollbar — flat pink rectangle on black track, mirrors the .progress bar style */
.scrollbar-rail {
  position: fixed;
  top: 0; right: 0;
  width: 10px;
  height: 100vh;
  background: #000;
  z-index: 9998;
  pointer-events: none;
}
.scrollbar-thumb {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--pink);
  border-radius: 0;
  will-change: transform, height;
}
@media (max-width: 640px) {
  .scrollbar-rail { width: 6px; }
}

* { box-sizing: border-box; }
*::selection { background: var(--pink); color: var(--on-pink); }

html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body {
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(243, 120, 169, .06), transparent 70%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
  border-radius: 4px;
}

.accent { color: var(--pink); }

/* Progress */
.progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0; z-index: 9999;
  background: var(--pink);
  transition: width .15s ease;
}

/* =====================================================
   Navbar
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0;
  width: 100%; z-index: 100;
  background: rgba(29, 30, 37, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.navbar .nav-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.navbar.scrolled {
  background: rgba(22, 23, 29, 0.94);
  border-bottom: 1px solid var(--border-strong);
}

.logo { display: inline-flex; align-items: center; }
.logo-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: .32em;
  color: var(--text);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav { gap: .35rem; }
.nav a {
  position: relative;
  padding: .65rem 1.1rem;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); }
.nav a::after {
  content: '';
  position: absolute;
  left: 1.1rem; right: 1.1rem;
  bottom: .25rem;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }

.actions { display: flex; align-items: center; gap: .6rem; }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .65rem;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s, background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn.primary {
  background: var(--pink); color: var(--on-pink);
  box-shadow: 0 10px 30px -8px rgba(243, 120, 169, .55);
}
.btn.primary:hover {
  background: var(--pink-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(243, 120, 169, .7);
}
.btn.ghost {
  background: rgba(245, 240, 232, .04);
  color: var(--text);
  border: 1px solid rgba(245, 240, 232, .14);
}
.btn.ghost:hover {
  background: rgba(245, 240, 232, .08);
  border-color: rgba(245, 240, 232, .28);
  transform: translateY(-2px);
}
.btn.sm { padding: .6rem 1.05rem; font-size: .8rem; }
.btn.lg { padding: 1.2rem 2rem; font-size: 1rem; }
.btn.lang-btn {
  padding: .55rem .9rem;
  font-size: .76rem;
  letter-spacing: .02em;
  gap: .4rem;
}
.btn.lang-btn span { font-weight: 700; }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================
   Hero
   ===================================================== */
#header {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
#header-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  transform: scale(1.05);
  filter: saturate(.95) contrast(1) brightness(.95);
  opacity: .9;
}
.overlay-grad {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 35%, transparent 0%, rgba(29, 30, 37, .12) 60%, rgba(29, 30, 37, .6) 88%, var(--bg) 100%),
    linear-gradient(180deg, rgba(29, 30, 37, .15) 0%, transparent 25%, transparent 60%, rgba(29, 30, 37, .8) 94%, var(--bg) 100%);
}

.hero {
  position: relative; z-index: 2;
  display: grid; place-items: center;
  min-height: 100vh; min-height: 100svh;
  text-align: center;
  padding: 8rem 1.2rem 6rem;
}
.hero-inner { max-width: 1080px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(245, 240, 232, .04);
  border: 1px solid rgba(245, 240, 232, .12);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em;
  color: var(--text);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--pink);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
}
.hero h1 .line-1 {
  display: block;
  font-size: .42em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: .65rem;
  white-space: nowrap;
  line-height: 1.2;
}
.hero h1 .line-2 {
  display: block;
  font-weight: 700;
}
@media (max-width: 480px) {
  .hero h1 .line-1 { white-space: normal; font-size: .5em; }
}
.hero-sub {
  margin: 5.5rem auto 0;
  color: var(--text);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  max-width: 620px;
  font-weight: 400;
}
.hero-sub strong {
  color: var(--text);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 62%, rgba(245, 240, 232, .16) 62%, rgba(245, 240, 232, .16) 92%, transparent 92%);
  padding: 0 .18em;
}

.cta-wrap {
  margin-top: 2.6rem;
  display: inline-flex; flex-wrap: wrap;
  gap: 1rem; justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--text-muted);
  font-size: .65rem; font-weight: 600;
  letter-spacing: .35em;
  z-index: 3;
  transition: color .2s;
}
.scroll-cue:hover { color: var(--pink); }
.scroll-cue svg {
  width: 20px; height: 20px;
  animation: bounce 2.4s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* =====================================================
   Marquee
   ===================================================== */
.marquee {
  background: var(--pink);
  color: var(--on-pink);
  padding: 1.2rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(29, 30, 37, .15);
  border-bottom: 1px solid rgba(29, 30, 37, .15);
  position: relative;
  z-index: 5;
}
.marquee-track {
  display: flex; gap: 2rem;
  align-items: center;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .14em;
  animation: marquee 35s linear infinite;
}
.marquee-track .dot { font-size: .7rem; opacity: .6; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =====================================================
   Sections
   ===================================================== */
.section {
  position: relative;
  padding: clamp(5rem, 9vw, 8rem) 1.2rem;
  width: min(var(--container), 92%);
  margin: 0 auto;
}
.section.alt {
  background: var(--bg-2);
  margin: 0;
  width: 100%;
  padding-left: 0; padding-right: 0;
}
.section.alt .section-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  padding: 0 1.2rem;
}

.heading {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.4rem;
  margin-bottom: 4rem;
}
.heading .eyebrow {
  font-size: 1rem; font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pink);
  font-family: 'Space Grotesk', sans-serif;
}
.heading h2 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin: 0;
  text-wrap: balance;
  max-width: 980px;
}
.heading .lead {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.1rem; line-height: 1.65;
  margin: 0;
}

/* =====================================================
   Stats
   ===================================================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(var(--container), 92%);
  margin: 4rem auto 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  text-align: center;
  padding: 2.4rem 1rem;
  border-right: 1px solid var(--border);
  transition: background .25s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg-3); }
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat-label {
  margin-top: .8rem;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
}

/* =====================================================
   Cards
   ===================================================== */
.grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  position: relative;
  transition: border-color .3s, background .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}
.card.featured {
  border: 2px solid var(--pink);
  background: var(--surface-2);
}
.card-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--pink); color: var(--on-pink);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .2em;
  padding: .4rem .8rem;
  border-radius: 999px;
}
.card-head {
  display: flex; align-items: baseline; gap: .8rem;
  margin-bottom: 1.2rem;
}
.card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: -0.02em;
}
.card h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card > p {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0 0 1.6rem;
}
.card ul {
  list-style: none; padding: 1.4rem 0 0; margin: 0;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .8rem;
}
.card li {
  font-size: .94rem;
  color: var(--text);
  display: flex; align-items: center; gap: .7rem;
}
.card .check {
  width: 18px; height: 18px;
  background: rgba(243, 120, 169, .15);
  color: var(--pink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
@media (max-width: 980px) { .grid { grid-template-columns: 1fr; } }

/* =====================================================
   Process
   ===================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: border-color .3s, background .3s, transform .3s;
}
.step:hover {
  border-color: var(--pink);
  background: var(--surface-2);
  transform: translateY(-4px);
}
.step-head {
  display: flex; align-items: baseline; gap: .9rem;
  margin-bottom: .8rem;
}
.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: .1em;
  flex-shrink: 0;
  line-height: 1;
}
.step h4 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
}
.step p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* =====================================================
   Contact
   ===================================================== */
.contact { text-align: center; }
.contact-actions {
  display: flex; justify-content: center;
  margin-bottom: 4rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
}
.contact-item {
  background: var(--surface);
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.contact-label {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .8rem;
  font-weight: 600;
}
.contact-item a, .contact-item span {
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s;
  word-break: break-word;
}
.contact-item a:hover { color: var(--pink); }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  padding: 5rem 1.2rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: 0;
}
.footer-inner {
  width: min(var(--container), 92%);
  margin: 0 auto;
  display: grid; gap: 3rem;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer .brand-col p {
  color: var(--text-muted);
  margin: 1.2rem 0 0;
  max-width: 320px; line-height: 1.7;
  font-size: .95rem;
}
.footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .8rem; letter-spacing: .12em;
  color: var(--text);
  margin: 0 0 1.2rem; font-weight: 700;
  text-transform: uppercase;
}
.footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .6rem;
}
.footer a {
  color: var(--text-muted);
  transition: color .2s;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer a:hover { color: var(--pink); }
.footer-bottom {
  width: min(var(--container), 92%);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  color: var(--text-faint); font-size: .85rem;
}
.footer-bottom .muted { color: var(--text-faint); }
.socials { flex-direction: row !important; gap: .65rem !important; }
.socials a {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all .25s;
}
.socials a:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--on-pink);
  transform: translateY(-2px);
}
.socials svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer .brand-col { grid-column: span 2; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer .brand-col { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* =====================================================
   Mobile nav
   ===================================================== */
.hamburger {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(245, 240, 232, .14);
  background: rgba(245, 240, 232, .04);
  color: var(--text); cursor: pointer; padding: 0;
  transition: background .2s, border-color .2s;
}
.hamburger:hover { background: rgba(245, 240, 232, .08); border-color: var(--pink); }
.hamburger svg { width: 20px; height: 20px; }
.hamburger .icon-close { display: none; }
.hamburger.open .icon-open { display: none; }
.hamburger.open .icon-close { display: inline-block; }

@media (max-width: 860px) {
  .navbar .nav-inner { padding: .8rem 0; }
  .nav {
    position: fixed;
    top: 70px; left: 50%;
    transform: translateX(-50%) translateY(-12px);
    width: min(94vw, 420px);
    background: rgba(29, 30, 37, 0.96);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: .55rem;
    flex-direction: column;
    gap: 0;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.open {
    opacity: 1; pointer-events: auto; visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav a {
    padding: .9rem 1rem; font-size: .9rem;
    border-radius: 10px;
  }
  .hamburger { display: inline-flex; }
}

@media (max-width: 640px) {
  .actions .btn.primary { display: none; }
  .hero { padding: 7rem 1rem 5rem; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1; }
  .section { padding: 4rem 1rem; }
  .heading { margin-bottom: 2.6rem; }
  .heading h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .marquee-track { font-size: .9rem; }
  .card { padding: 2rem 1.5rem; }
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #header-video { display: none; }
  .marquee-track { animation: none; }
}
