/* ============================================
   DOPO CREATIVE — shared base styles
   ============================================ */

:root {
  --bg: #0b0b0f;
  --bg-soft: #121218;
  --ink: #f2f0ea;
  --ink-dim: rgba(242, 240, 234, 0.55);
  --ink-faint: rgba(242, 240, 234, 0.28);
  --line: rgba(242, 240, 234, 0.12);
  --accent: #6e5cf0;
  --accent-2: #ffb86b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Clash Display", "Helvetica Neue", sans-serif;
  --font-body: "Satoshi", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- layout ---------- */
.container {
  width: min(1280px, 92vw);
  margin-inline: auto;
}

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s;
}

.site-nav.scrolled {
  padding: 14px 0;
  background: rgba(11, 11, 15, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.nav-logo img {
  height: 30px;
  width: auto;
  filter: invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* language switch */
.lang-switch {
  position: relative;
  z-index: 111;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background 0.3s;
}
.lang-toggle:hover { border-color: var(--ink); }
.lang-toggle .chev {
  width: 10px;
  height: 10px;
  transition: transform 0.35s var(--ease-out);
}
.lang-switch.open .lang-toggle .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(242, 240, 234, 0.16);
  background: #16161d;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s var(--ease-out), visibility 0.18s;
}
.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-dim);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: background 0.25s, color 0.25s;
}
.lang-menu button:hover { background: rgba(242, 240, 234, 0.06); color: var(--ink); }
.lang-menu button.active { color: var(--ink); }
.lang-menu button.active::after {
  content: "●";
  font-size: 8px;
  color: var(--accent);
}

/* burger */
.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-burger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out), opacity 0.3s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
body.menu-open .nav-burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(11, 11, 15, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease-out), visibility 0.45s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
body.menu-open .mobile-menu a { opacity: 1; transform: none; }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.08s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.2s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu .mm-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  opacity: 0;
  transition: opacity 0.5s 0.05s;
  font-family: var(--font-body);
}
body.menu-open .mobile-menu .mm-label { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.35s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 12px 40px rgba(242, 240, 234, 0.18); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 12px 40px rgba(110, 92, 240, 0.45); }

.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand img { height: 44px; filter: invert(1); margin-bottom: 20px; }
.footer-brand p { color: var(--ink-dim); font-size: 15px; max-width: 320px; }

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-dim); font-size: 15px; transition: color 0.3s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 13px;
  flex-wrap: wrap;
}

.footer-watermark {
  position: absolute;
  bottom: -0.18em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(80px, 16vw, 240px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(242, 240, 234, 0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---------- custom cursor (desktop only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  display: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(242, 240, 234, 0.35);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
body.cursor-hover .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(242, 240, 234, 0.1);
  background: rgba(242, 240, 234, 0.06);
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring { display: block; }
  /* özel imleç aktifken sistem imlecini gizle */
  html.has-cursor,
  html.has-cursor * { cursor: none !important; }
}

/* ---------- reveal helpers (GSAP targets) ---------- */
.reveal { opacity: 0; }
.no-js .reveal, html.reduced-motion .reveal { opacity: 1; }

/* split lines */
.line-mask { overflow: hidden; display: block; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  user-select: none;
}
.marquee-track {
  display: inline-flex;
  gap: 56px;
  padding-right: 56px;
  will-change: transform;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-track span::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.7em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-right { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
