/* ============================================================
   Gabungin — Turkish legal pages (gizlilik-politikasi, iletisim,
   hakkimizda). Premium dark-purple SaaS design (Visuo/Mufi).
   Gradient orbs, glassmorphism, entrance animations.
   Zero frameworks, zero remote assets.
   Fonts: Plus Jakarta Sans (OFL), self-hosted latin + latin-ext
   (Turkish: ğ ş İ ı ç ö ü) in assets/fonts/.
   Design tokens from the homepage-premium system.
   ============================================================ */

/* ---------- self-hosted fonts ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* brand — deep purple-black, violet, orange accent */
  --bg-950: #12101d;
  --bg-900: #181527;
  --bg-800: #1f1b33;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --violet-700: #6d28d9;
  --orange-400: #fb923c;
  --orange-500: #f97316;

  --ink: #f4f2fb;
  --muted: #a9a3c7;
  --faint: #7c76a0;
  --line: rgba(139, 92, 246, 0.22);
  --card: rgba(31, 27, 51, 0.72);
  --card-solid: #1f1b33;
  --danger: #f87171;
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.10);
  --warning: #fbbf24;

  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.45);
  --shadow-lift: 0 18px 50px -12px rgba(139, 92, 246, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-950);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 100;
  background: var(--violet-500); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top 0.15s ease; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 16s ease-in-out infinite alternate; }
.orb-a { width: 480px; height: 480px; left: -140px; top: -140px; background: radial-gradient(circle, rgba(139,92,246,0.55), transparent 65%); }
.orb-b { width: 420px; height: 420px; right: -120px; top: 30%; background: radial-gradient(circle, rgba(249,115,22,0.28), transparent 65%); animation-delay: -8s; }
.orb-c { width: 380px; height: 380px; left: 20%; bottom: -160px; background: radial-gradient(circle, rgba(167,139,250,0.35), transparent 65%); animation-delay: -4s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,36px) scale(1.1); } }

/* ---------- entrance animations ---------- */
@keyframes float-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) rotateX(6deg); } to { opacity: 1; transform: none; } }
@keyframes orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, 28px) scale(1.12); } }

/* ---------- header / hero ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 29, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand {
  font-size: 1.35rem; font-weight: 800; margin: 0; letter-spacing: -0.02em; text-decoration: none;
  background: linear-gradient(120deg, var(--violet-400), var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand:hover { opacity: 0.9; }
.tagline { margin: 0; color: var(--muted); font-size: 0.88rem; }

.hero { text-align: center; padding: 52px 0 8px; position: relative; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; }
.hero-orb-a {
  width: 340px; height: 340px; left: -90px; top: -40px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 70%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}
.hero-orb-b {
  width: 280px; height: 280px; right: -70px; top: 30px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 70%);
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 0.82rem; font-weight: 700; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: float-in 0.7s var(--ease-out) both;
}
.hero .kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,0.15); }
.hero h1 {
  font-size: clamp(1.9rem, 4.8vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12;
  margin: 20px 0 14px;
  background: linear-gradient(120deg, #f4f2fb 20%, var(--violet-400) 60%, var(--orange-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: float-in 0.7s var(--ease-out) 0.08s both;
}
.lede { color: var(--muted); font-size: 1.06rem; margin: 0 auto; max-width: 36rem; animation: float-in 0.7s var(--ease-out) 0.14s both; }

/* ---------- breadcrumbs ---------- */
.crumbs { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.85rem; color: var(--faint); animation: float-in 0.7s var(--ease-out) 0.18s both; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--faint); }
.crumbs a { color: var(--violet-400); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { color: var(--muted); }

/* ---------- legal card ---------- */
.legal-card {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.06), transparent 32%), var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px; margin: 24px 0 12px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px -18px rgba(0,0,0,0.65), 0 0 0 1px rgba(139,92,246,0.12), 0 0 44px -12px rgba(139,92,246,0.28);
  animation: card-in 0.8s var(--ease-out) 0.15s backwards;
}

/* ---------- content sections ---------- */
.content-section { margin: 30px 0; }
.content-section:first-child { margin-top: 0; }
.content-section h2 { font-size: 1.32rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.content-section h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.content-section p { color: var(--muted); margin: 0 0 12px; }
.content-section p strong, .content-section li strong { color: var(--ink); }
.content-section a { color: var(--violet-400); text-decoration: underline; text-underline-offset: 3px; }
.content-section a:hover { color: var(--orange-400); }
.check-list { margin: 10px 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 16px; height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.plain-list { margin: 10px 0 14px; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.updated-note { font-size: 0.88rem; color: var(--faint); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; }
.updated { color: var(--faint); font-size: 0.88rem; margin-top: 24px; }

/* ---------- legal note box ---------- */
.legal-note {
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0;
}
.legal-note p { margin: 6px 0; color: var(--muted); }
.legal-note p strong { color: var(--ink); }

/* ---------- highlight box ---------- */
.highlight-box {
  background: linear-gradient(135deg, rgba(139,92,246,0.14), rgba(249,115,22,0.07));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin: 24px 0;
  animation: card-in 0.8s var(--ease-out) 0.2s backwards;
}
.highlight-box h2 { margin: 0 0 10px; font-size: 1.18rem; }
.highlight-box p { margin: 0 0 10px; color: var(--muted); }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box p strong { color: var(--ink); }

/* ---------- contact form ---------- */
.contact-form { margin: 20px 0 0; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: 0.94rem; }
.field .hint { font-size: 0.82rem; color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  background: rgba(18, 16, 29, 0.7);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; min-height: 52px; width: 100%;
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9a3c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 44px;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; box-shadow: var(--focus-ring); border-color: var(--violet-400);
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-note { font-size: 0.86rem; color: var(--faint); margin: 4px 0 0; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer;
  padding: 13px 22px; border: 1px solid transparent; min-height: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn-primary {
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700)); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(139, 92, 246, 0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-large { font-size: 1.05rem; padding: 15px 30px; width: 100%; }

/* ---------- mailto fallback ---------- */
.mailto-box {
  border: 1px dashed rgba(139, 92, 246, 0.45); border-radius: var(--radius);
  background: rgba(139, 92, 246, 0.07); padding: 20px; margin-top: 18px;
  text-align: center;
}
.mailto-box p { color: var(--muted); font-size: 0.92rem; margin: 0 0 10px; }
.mailto-box a.mail-link { font-size: 1.05rem; font-weight: 800; color: var(--violet-400); text-decoration: none; overflow-wrap: anywhere; }
.mailto-box a.mail-link:hover { color: var(--orange-400); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--faint); font-size: 0.88rem; }
.site-footer .container { max-width: 880px; }
.footer-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--violet-400); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--orange-400); text-decoration: underline; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-nav a:hover { color: var(--violet-400); text-decoration: underline; text-underline-offset: 3px; }
.site-footer p { margin: 4px 0; }
.footer-tech { font-size: 0.8rem; }
.site-footer a.plain { color: var(--faint); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .legal-card { padding: 38px; }
  .btn-large { width: auto; min-width: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

body { overflow-x: hidden; }
html, body { overflow-x: clip; }
