/* ==========================================================================
   ADK DNS — adkdns.com
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #050a17;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);
  --text: #e6edf7;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --green: #34d399;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, var(--cyan), var(--blue) 55%, var(--indigo));
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --container: 1200px;
}

html { -webkit-text-size-adjust: 100%; height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { height: 100%; overflow: hidden; overscroll-behavior: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(40% 45% at 50% 42%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(35% 40% at 15% 10%, rgba(34, 211, 238, .10), transparent 70%),
    radial-gradient(35% 40% at 85% 90%, rgba(99, 102, 241, .12), transparent 70%);
  pointer-events: none;
  z-index: -2;
}

.bg-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 20%, transparent 70%);
}

a { color: inherit; }
img, svg { display: block; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

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

/* ---------- Tek ekran düzeni ---------- */

.screen {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-top: env(safe-area-inset-top);
}

/* ---------- Header / brand ---------- */

.site-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.6vh, 24px) 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; filter: drop-shadow(0 6px 18px rgba(59, 130, 246, .35)); }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand-name span { font-weight: 500; color: var(--cyan); margin-left: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 600 14px/1 var(--font);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }

.btn--ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .08); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .75);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(59, 130, 246, .9); }

/* ---------- Ortak tipografi ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  margin: clamp(10px, 1.8vh, 18px) auto clamp(6px, 1.2vh, 12px);
  font-size: clamp(26px, min(5.2vw, 5.6vh), 56px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, min(1.8vw, 2.1vh), 18px);
  text-wrap: pretty;
}
.lead a { color: var(--text); text-decoration-color: rgba(34, 211, 238, .5); text-underline-offset: 3px; }
.lead a:hover { text-decoration-color: var(--cyan); }

/* ---------- Sahne (DNS + sunucu animasyonu) ---------- */

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.scene {
  position: relative;
  flex: 1;
  min-height: 0;
}
.scene canvas { position: absolute; inset: 0; }

.core {
  position: absolute;
  top: 50%; left: 50%;
  width: var(--core, 80px);
  height: var(--core, 80px);
  transform: translate(-50%, -50%);
  transition: transform .35s ease-out;
  pointer-events: none;
}
.core::before {
  content: "";
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .45), rgba(34, 211, 238, .12) 45%, transparent 70%);
  animation: core-glow 3.2s ease-in-out infinite;
}
.core svg {
  position: relative;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(59, 130, 246, .55));
}
.core.is-hit { transform: translate(-50%, -50%) scale(1.07); }
.core.is-hit::before { animation: none; opacity: 1; transform: scale(1.15); }

@keyframes core-glow {
  0%, 100% { opacity: .65; transform: scale(.95); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

.intro {
  flex: none;
  padding: clamp(4px, 1vh, 12px) 0 calc(clamp(16px, 4vh, 40px) + env(safe-area-inset-bottom));
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: clamp(10px, 1.8vh, 18px) 0 calc(clamp(10px, 1.8vh, 18px) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--cyan); }
.org-link { color: var(--text) !important; text-decoration: none; white-space: nowrap; transition: color .2s; }
.org-link:hover { color: var(--cyan) !important; }
.org-link strong { font-weight: 700; }

.intro-legal {
  margin: clamp(10px, 1.8vh, 16px) 0 0;
  color: var(--muted);
  font-size: clamp(14px, min(2vw, 2.4vh), 19px);
}

/* ---------- 404 (NXDOMAIN) ---------- */

.nx {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 12px 0 24px;
  text-align: center;
}

.radar {
  position: relative;
  width: clamp(120px, 20vh, 180px);
  aspect-ratio: 1;
  margin: 0 auto clamp(14px, 3vh, 28px);
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .3);
  background:
    radial-gradient(circle, transparent 0 29%, rgba(34, 211, 238, .18) 29.5% 30%, transparent 30.5% 59%, rgba(34, 211, 238, .14) 59.5% 60%, transparent 60.5%),
    radial-gradient(circle, rgba(34, 211, 238, .08), transparent 70%);
  overflow: hidden;
}
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(34, 211, 238, .14); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.radar::after  { top: 50%; left: 0; right: 0; height: 1px; }

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, .45), rgba(34, 211, 238, 0) 70deg, transparent 360deg);
  animation: sweep 3s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 26%; height: 26%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.radar-blip {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  animation: blip 3s linear infinite;
}
.radar-blip:nth-of-type(1) { top: 22%; left: 64%; animation-delay: .25s; }
.radar-blip:nth-of-type(2) { top: 70%; left: 76%; animation-delay: 1.05s; }
.radar-blip:nth-of-type(3) { top: 62%; left: 18%; animation-delay: 2.1s; }
@keyframes blip {
  0%   { opacity: 0; }
  4%   { opacity: 1; box-shadow: 0 0 12px var(--cyan); }
  40%  { opacity: 0; }
  100% { opacity: 0; }
}

.nx-code { margin: 0; font: 800 clamp(40px, min(10vw, 11vh), 104px)/1 var(--mono); letter-spacing: -.04em; }
.nx h1 { font-size: clamp(22px, min(3.6vw, 4vh), 34px); }

.nx-term {
  max-width: 560px;
  margin: clamp(14px, 3vh, 28px) auto 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, .72);
  color: #cbd5e1;
  font: 12.5px/1.8 var(--mono);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.c-prompt { color: var(--green); }
.c-muted  { color: var(--dim); }
.c-warn   { color: var(--amber); font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(14px, 3vh, 24px);
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 18px; }
  .site-header .btn { padding: 9px 12px; font-size: 13px; }
  .eyebrow { font-size: 11px; padding: 5px 10px; }
  .site-footer { font-size: 12px; }
}

@media (max-height: 640px) {
  .lead { display: none; }
}
@media (max-height: 480px) {
  .eyebrow { display: none; }
  .site-footer { display: none; }
}

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