/* Cancord tanıtım sitesi: koyu zemin, sıcak sarı vurgu (uygulamanın varsayılan teması), başlıklar JetBrains Mono
   (markanın terminal havası), metin sistem yazısı. Bölümler aşağı kaydıkça yumuşakça belirir (site.js). */

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1E9F;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212;
}

:root {
  --bg: #0b0c0f; --panel: #121317; --raise: #1a1b20; --line: #24262c;
  --fg: #ecedf0; --muted: #a0a4ad; --faint: #6b7079;
  --accent: #f2a93b; --accent-fg: #1a1205; --ok: #4cc38a; --err: #ef5f5f; --violet: #a78bfa;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--mono); letter-spacing: -0.02em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform 0.12s, filter 0.15s, background 0.15s;
}
.btn.primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--fg) 12%, transparent); }
.btn.small { height: 38px; padding: 0 16px; font-size: 13px; }
.btn.big { height: 58px; padding: 0 32px; font-size: 17px; }
.btn.disabled { opacity: 0.55; cursor: default; }

/* ---------- Üst çubuk ---------- */
.nav {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; height: 68px;
  padding: 0 max(24px, calc(50vw - 600px)); transition: background 0.2s, box-shadow 0.2s;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.logo { font-family: var(--mono); font-size: 17px; font-weight: 800; letter-spacing: 0.06em; }
.logo b { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.nav-links { display: flex; gap: 24px; margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; }

/* ---------- Açılış ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 56px;
  min-height: calc(100vh - 68px); padding: 40px max(24px, calc(50vw - 600px)) 80px;
}
.hero-glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; filter: blur(90px); opacity: 0.55; }
.hero-glow i { position: absolute; border-radius: 50%; }
.hero-glow i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -120px; background: color-mix(in srgb, var(--accent) 45%, transparent); animation: drift 20s ease-in-out infinite alternate; }
.hero-glow i:nth-child(2) { width: 460px; height: 460px; right: -80px; top: 20%; background: color-mix(in srgb, var(--violet) 35%, transparent); animation: drift 26s ease-in-out infinite alternate-reverse; }
.hero-glow i:nth-child(3) { width: 380px; height: 380px; left: 35%; bottom: -160px; background: color-mix(in srgb, #ef5f5f 22%, transparent); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.eyebrow { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero h1 { margin: 18px 0 22px; font-size: clamp(40px, 5.4vw, 72px); font-weight: 800; }
.accent { color: var(--accent); }
.lead { max-width: 520px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; list-style: none; color: var(--muted); font-size: 13px; }
.hero-points li::before { content: "✓"; margin-right: 8px; color: var(--ok); font-weight: 800; }
.hero-shot { position: relative; }
.window {
  overflow: hidden; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 40px 100px -30px rgb(0 0 0 / 0.8),
    0 0 120px -40px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: transform 0.6s ease;
}
.hero-shot:hover .window { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--faint); font: 11px var(--mono); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--raise); }
.window-bar span { margin-left: 10px; }
.window img { width: 100%; height: auto; }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line), 0 14px 30px -12px rgb(0 0 0 / 0.7);
  font: 600 12px var(--mono); animation: float 6s ease-in-out infinite;
}
.chip img { width: 18px; height: 18px; }
.chip-a { left: -26px; top: 18%; }
.chip-b { right: -18px; top: 52%; animation-delay: -2s; }
.chip-c { left: 12%; bottom: -18px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.live { padding: 1px 6px; border-radius: 4px; background: var(--err); color: #fff; font-size: 10px; letter-spacing: 0.08em; }

/* ---------- Özellikler ---------- */
.features { display: grid; gap: 120px; padding: 80px max(24px, calc(50vw - 600px)); }
.feature { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
.feature.flip .feature-text { order: 2; }
.feature h2, .section-head h2 { margin: 14px 0 16px; font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.feature p, .section-head p { color: var(--muted); font-size: 17px; }
.ticks { display: grid; gap: 10px; margin-top: 22px; list-style: none; color: var(--fg); font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 20%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f2a93b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.feature-shot { overflow: hidden; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgb(0 0 0 / 0.8); }
.feature-shot.narrow { justify-self: center; max-width: 360px; }
.feature-shot img { width: 100%; height: auto; }

/* ---------- Oyunlar ---------- */
.games, .download { padding: 80px max(24px, calc(50vw - 600px)); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game {
  display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.game:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, var(--line)), 0 20px 40px -20px rgb(0 0 0 / 0.7); }
.game img { width: 54px; height: 54px; margin-bottom: 6px; }
.game h3 { font-size: 19px; }
.game p { color: var(--muted); font-size: 14px; }

/* ---------- İndir ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dl-card { display: grid; gap: 12px; justify-items: start; align-content: start; padding: 30px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.dl-card:first-child { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--line)), 0 0 60px -30px color-mix(in srgb, var(--accent) 70%, transparent); }
.dl-icon { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dl-card.soon .dl-icon { stroke: var(--muted); }
.dl-card:nth-child(2) .dl-icon { fill: var(--muted); stroke: none; }
.dl-card h3 { font-size: 22px; }
.dl-card p { color: var(--muted); font-size: 14px; flex: 1; margin-bottom: 8px; }

/* ---------- Kapanış ve alt bilgi ---------- */
.closing { margin: 40px max(24px, calc(50vw - 600px)) 100px; padding: 80px 24px; border-radius: 28px; text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.closing h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; }
.closing p { margin: 14px 0 32px; color: var(--muted); font-size: 17px; }
.foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; padding: 36px max(24px, calc(50vw - 600px)) 48px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.foot p { max-width: 520px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a:hover { color: var(--fg); }
.foot small { grid-column: 1 / -1; }

/* ---------- Belirme ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.game-grid .reveal:nth-child(2), .dl-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.game-grid .reveal:nth-child(3), .dl-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.game-grid .reveal:nth-child(5) { transition-delay: 0.08s; }
.game-grid .reveal:nth-child(6) { transition-delay: 0.16s; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero, .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-text { order: 0; }
  .hero { min-height: 0; padding-top: 24px; }
  .chip-a { left: 6px; } .chip-b { right: 6px; }
  .window { transform: none; }
  .game-grid, .dl-grid { grid-template-columns: 1fr 1fr; }
  .features { gap: 80px; }
}
@media (max-width: 600px) {
  .nav { gap: 12px; height: 60px; }
  #navLogin { display: none; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
  .game-grid, .dl-grid { grid-template-columns: 1fr; }
  .chip { display: none; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow i, .chip, .logo b { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
