/* www.playmedshift.com — night-shift theme matching the game UI (navy night, teal/green vitals, glass cards). */
:root {
  --night-0: #050d2b;
  --night-1: #0a1a4a;
  --night-2: #10276a;
  --glass: rgba(24, 52, 130, 0.55);
  --glass-line: rgba(120, 220, 255, 0.28);
  --text: #eef4ff;
  --muted: #a9bce6;
  --teal: #2fe0c0;
  --green: #36d68a;
  --blue: #3aa0ff;
  --red: #ff4d5e;
  --amber: #ffc94a;
  --radius: 22px;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--text);
  font: 400 17px/1.6 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before { /* night sky + ECG glow behind everything */
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(58, 160, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(47, 224, 192, 0.12), transparent 60%),
    linear-gradient(180deg, var(--night-1), var(--night-0) 70%);
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ff5df; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* language switch: [data-lang] on <html> hides the other language */
html[data-lang="tr"] [lang="en"]:not(html), html[data-lang="en"] [lang="tr"]:not(html) { display: none !important; }

/* header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 13, 43, 0.72); border-bottom: 1px solid rgba(120, 220, 255, 0.12); }
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; font-weight: 600; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }
.lang { display: inline-flex; border: 1px solid var(--glass-line); border-radius: 999px; overflow: hidden; }
.lang button { all: unset; cursor: pointer; padding: 4px 10px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--teal); color: var(--night-0); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } .brand img { height: 28px; } }

/* hero */
.hero { position: relative; padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 span { background: linear-gradient(90deg, var(--teal), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.ecg { width: 100%; max-width: 420px; height: 46px; margin: 8px 0 18px; }
.ecg path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.3; }
.ecg path.pulse { opacity: 1; stroke-dasharray: 110 700; stroke-dashoffset: 810; animation: beat 2.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(47,224,192,.9)); }
@keyframes beat { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ecg path.pulse { animation: none; stroke-dasharray: none; } }
.hero-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(58, 160, 255, 0.25); }
.hero-art img { width: 100%; height: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 16px; font-weight: 800;
  text-decoration: none; color: var(--night-0); background: linear-gradient(180deg, #5ff0d4, var(--teal));
  box-shadow: 0 8px 24px rgba(47, 224, 192, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.btn:hover { color: var(--night-0); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--glass-line); box-shadow: none; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700;
  background: rgba(255, 201, 74, 0.14); color: var(--amber); border: 1px solid rgba(255, 201, 74, 0.35); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* sections */
section { padding: 48px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.card .ico { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: rgba(47, 224, 192, 0.14); margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tiles { display: flex; gap: 14px; justify-content: center; }
.tiles img { width: 46%; max-width: 220px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45)); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; }
.shots figure { margin: 0; flex: 0 0 210px; scroll-snap-align: start; }
.shots img { width: 210px; height: auto; border-radius: 20px; border: 1px solid var(--glass-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.shots figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; text-align: center; }

.note { border-left: 4px solid var(--amber); background: rgba(255, 201, 74, 0.08); padding: 14px 18px; border-radius: 12px; color: #ffe8b0; }

/* documents (privacy, deletion) */
.doc { max-width: 780px; padding-top: 40px; padding-bottom: 40px; }
.doc .card { margin-bottom: 18px; }
.doc h2 { font-size: 1.25rem; margin-top: 0.2em; }
.doc ul, .doc ol { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin-bottom: 1em; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(120, 220, 255, 0.15); }
.doc th { color: var(--muted); font-weight: 600; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0 !important; list-style: none; }
.toc a { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(58, 160, 255, 0.14); text-decoration: none; font-size: 0.88rem; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; background: var(--teal); color: var(--night-0); }
.table-wrap { overflow-x: auto; }

/* footer */
footer { border-top: 1px solid rgba(120, 220, 255, 0.12); padding: 28px 0 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--muted); }
