/* ============================================================
   Riobits — shared site styles
   Used across: index, hizmetler, hakkimizda, iletisim, gizlilik
   ============================================================ */
:root {
  --void: #06070A;
  --void-elev: #0E0F13;
  --cream: #F5F2EC;
  --cream-muted: #A8A39A;
  --champagne: #E8DCC0;
  --champagne-deep: #C9B98A;
  --hair: rgba(245, 242, 236, 0.08);
}
html { scroll-behavior: smooth; }
body {
  background: #06070A;
  color: #F5F2EC;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(245,242,236,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,242,236,0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 30%, transparent 70%);
}
.orb { position: absolute; border-radius: 9999px; filter: blur(140px); will-change: transform; }
.orb-a {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,220,192,0.10) 0%, transparent 60%);
  top: -250px; left: -180px;
  animation: drift-a 38s ease-in-out infinite alternate;
}
.orb-b {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,242,236,0.06) 0%, transparent 60%);
  top: 40%; right: -220px;
  animation: drift-b 44s ease-in-out infinite alternate;
}
@keyframes drift-a { 100% { transform: translate3d(60px, 50px, 0) scale(1.06); } }
@keyframes drift-b { 100% { transform: translate3d(-50px, 70px, 0) scale(1.04); } }

/* ---------- Type ---------- */
.display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #F5F2EC;
  font-variation-settings: 'opsz' 96;
}
.display em {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #E8DCC0;
}
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8A39A;
}
.lead {
  color: #C9C5BD;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  font-weight: 400;
}

/* ---------- Hero word reveal ---------- */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 0.04em; margin: 0 -0.04em; }
.word-reveal > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes rise { to { transform: translateY(0); opacity: 1; } }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px;
  color: #06070A;
  font-weight: 500;
  font-size: 15px;
  background: #F5F2EC;
  border-radius: 999px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s ease;
  box-shadow: 0 0 0 1px rgba(245,242,236,0.1), 0 30px 60px -20px rgba(232,220,192,0.25);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(245,242,236,0.18), 0 40px 80px -20px rgba(232,220,192,0.4); }
.cta-arrow {
  width: 32px; height: 32px;
  background: #06070A;
  color: #F5F2EC;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta:hover .cta-arrow { transform: translateX(4px) rotate(-45deg); }
.ghost-link {
  color: #C9C5BD;
  border-bottom: 1px solid rgba(168,163,154,0.25);
  padding-bottom: 4px;
  font-size: 15px;
  transition: color .2s ease, border-color .2s ease;
}
.ghost-link:hover { color: #E8DCC0; border-color: rgba(232,220,192,0.5); }

/* ---------- Nav ---------- */
.nav-scrolled {
  background: rgba(6,7,10,0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--hair);
}
.nav-link {
  position: relative;
  font-size: 14px;
  color: #C9C5BD;
  font-weight: 400;
  transition: color .2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #F5F2EC; }
.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -6px;
  height: 1px; width: 0; background: #E8DCC0;
  transition: width .3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Card ---------- */
.card {
  position: relative;
  background: #0A0B0E;
  border: 1px solid var(--hair);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color .35s cubic-bezier(0.22, 1, 0.36, 1), transform .35s cubic-bezier(0.22, 1, 0.36, 1), background .35s ease;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(232,220,192,0.08), transparent 40%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover { border-color: rgba(232,220,192,0.30); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-luxe {
  background: linear-gradient(180deg, #0E0D0A 0%, #0A0908 100%);
  border: 1px solid rgba(232,220,192,0.18);
}
.card-luxe:hover { border-color: rgba(232,220,192,0.42); }

.chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 6px;
  background: #16171C;
  color: #C9C5BD;
  border: 1px solid var(--hair);
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(0.22, 1, 0.36, 1), transform .9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Marquee ---------- */
.marquee-track { display: flex; gap: 64px; animation: marquee 55s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Form ---------- */
.field {
  background: #0A0B0E;
  border: 1px solid rgba(245,242,236,0.10);
  border-radius: 10px;
  color: #F5F2EC;
  transition: border-color .2s ease, background .2s ease;
}
.field:focus {
  outline: none;
  border-color: rgba(232,220,192,0.45);
  background: #0E0F13;
  box-shadow: 0 0 0 4px rgba(232,220,192,0.06);
}
.field::placeholder { color: #5C5851; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(10,11,14,0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--hair);
}

/* ---------- Luxury section wash ---------- */
.luxe-section { position: relative; }
.luxe-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(800px circle at 80% 0%, rgba(201,185,138,0.06), transparent 60%),
    radial-gradient(900px circle at 10% 80%, rgba(232,220,192,0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page hero band (for sub-pages) ---------- */
.page-hero {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
  border-bottom: 1px solid var(--hair);
}
.breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A8A39A;
}
.breadcrumb a { color: #A8A39A; transition: color .2s ease; }
.breadcrumb a:hover { color: #E8DCC0; }
.breadcrumb span.sep { color: #5C5851; }

/* ---------- World map arcs ---------- */
.map-arc {
  fill: none;
  stroke: url(#arcGrad);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: arc-draw 5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.map-arc-2 { animation-delay: .8s; }
.map-arc-3 { animation-delay: 1.6s; }
.map-arc-4 { animation-delay: 2.4s; }
.map-arc-5 { animation-delay: 3.2s; }
@keyframes arc-draw {
  0% { stroke-dashoffset: 200; opacity: 0; }
  20% { opacity: 1; }
  65% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -200; opacity: 0; }
}
.city-ping { transform-origin: center; animation: ping 2.6s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.city-ping-2 { animation-delay: .4s; }
.city-ping-3 { animation-delay: .8s; }
.city-ping-4 { animation-delay: 1.2s; }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

/* ---------- Pulse line ---------- */
.pulse-line {
  stroke: #E8DCC0;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 800;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(232,220,192,0.5));
  animation: pulse-draw 4s ease-in-out infinite;
}
@keyframes pulse-draw {
  0% { stroke-dashoffset: 800; }
  60% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -800; }
}

/* ---------- CRM mockup ---------- */
.crm-mock { background: #0A0B0E; border: 1px solid rgba(232,220,192,0.18); border-radius: 22px; box-shadow: 0 60px 120px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,220,192,0.05); overflow: hidden; }
.crm-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; transition: background .2s ease; }
.crm-row.active { background: rgba(232,220,192,0.06); border: 1px solid rgba(232,220,192,0.2); }
.crm-row:not(.active) { border: 1px solid transparent; }
.crm-row:hover { background: rgba(245,242,236,0.04); }

/* ---------- Section rhythm: raised band ---------- */
.section-raised {
  background:
    radial-gradient(1200px 380px at 50% 0%, rgba(232,220,192,0.05), transparent 70%),
    #0A0B0E;
  border-top: 1px solid rgba(232,220,192,0.10);
  border-bottom: 1px solid rgba(232,220,192,0.10);
}

/* ---------- KVKK / cookie consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  width: min(1100px, calc(100% - 32px));
  z-index: 200;
  background: rgba(10,11,14,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(232,220,192,0.18);
  border-radius: 18px;
  box-shadow: 0 40px 90px -24px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,220,192,0.04);
  opacity: 0;
  transition: transform .5s cubic-bezier(0.22,1,0.36,1), opacity .4s ease;
}
.consent-banner.consent-in { transform: translate(-50%, 0); opacity: 1; }
.consent-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 20px 24px;
}
.consent-copy { flex: 1; min-width: 0; }
.consent-title {
  font-size: 15px; font-weight: 600; color: #F5F2EC;
  letter-spacing: -0.01em; margin-bottom: 5px;
}
.consent-body { font-size: 12.5px; line-height: 1.6; color: #A8A39A; max-width: 78ch; }
.consent-body a { color: #E8DCC0; text-decoration: none; white-space: nowrap; }
.consent-body a:hover { text-decoration: underline; }
.consent-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.consent-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.02em;
  padding: 11px 18px; border-radius: 999px;
  cursor: pointer; white-space: nowrap;
  border: 1px solid var(--hair); background: transparent; color: #C9C5BD;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.consent-btn:hover { color: #E8DCC0; border-color: rgba(232,220,192,0.4); }
.consent-accept {
  background: #E8DCC0; color: #06070A; border-color: #E8DCC0; font-weight: 500;
}
.consent-accept:hover { background: #F0E8D4; color: #06070A; }
html[dir="rtl"] .consent-body a { white-space: normal; }
@media (max-width: 760px) {
  .consent-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 18px; }
  .consent-actions { flex-direction: row; }
  .consent-btn { flex: 1; text-align: center; }
}

/* ---------- Selection & scrollbar ---------- */
::selection { background: rgba(232,220,192,0.3); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #06070A; }
::-webkit-scrollbar-thumb { background: #1E2026; border-radius: 12px; border: 3px solid #06070A; }
::-webkit-scrollbar-thumb:hover { background: #2c2e36; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .map-arc, .city-ping, .pulse-line, .marquee-track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .word-reveal > span { transform: none; opacity: 1; animation: none; }
}
@media (max-width: 768px) {
  .orb { filter: blur(80px); }
  .display { letter-spacing: -0.035em; }
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: #0A0B0E;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .3s ease, background .3s ease;
}
.faq-item[open] { border-color: rgba(232,220,192,0.30); background: #0E0F13; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 17px; font-weight: 600; color: #F5F2EC; letter-spacing: -0.01em; }
.faq-item summary:hover .faq-q { color: #E8DCC0; }
.faq-icon {
  width: 28px; height: 28px; flex: none;
  border: 1px solid var(--hair);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #E8DCC0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; line-height: 1;
  transition: transform .3s cubic-bezier(0.22,1,0.36,1), border-color .3s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); border-color: rgba(232,220,192,0.4); }
.faq-a { padding: 0 26px 24px; color: #C9C5BD; font-size: 15px; line-height: 1.65; max-width: 62ch; }

/* ---------- Testimonial quote ---------- */
.quote-mark {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
  font-size: 48px;
  line-height: 0.6;
  color: #C9B98A;
}

/* ---------- Prose (for legal pages) ---------- */
.prose h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #F5F2EC;
  margin-top: 56px;
  margin-bottom: 20px;
}
.prose h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: #F5F2EC;
  margin-top: 32px;
  margin-bottom: 12px;
}
.prose p {
  color: #C9C5BD;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.prose ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}
.prose ul li {
  color: #C9C5BD;
  font-size: 16px;
  line-height: 1.7;
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 8px;
  background: #E8DCC0;
}
.prose a { color: #E8DCC0; text-decoration: underline; text-decoration-color: rgba(232,220,192,0.3); text-underline-offset: 4px; }
.prose a:hover { text-decoration-color: #E8DCC0; }
.prose strong { color: #F5F2EC; font-weight: 600; }
