:root {
  --navy-950: #090c16;
  --navy-900: #0e1424;
  --navy-850: #131b30;
  --navy-800: #1a233c;
  --line: #24304e;
  --azure-500: #3d7eff;
  --azure-300: #8ab4ff;
  --azure-glow: rgba(61, 126, 255, 0.35);
  --amber-500: #f5a623;
  --amber-300: #ffcb66;
  --ink-50: #f4f6fb;
  --ink-300: #b8c1da;
  --ink-500: #7c88a8;
  --radius: 14px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink-50);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea, a, [tabindex] { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--azure-glow);
  border-radius: 6px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(244,246,251,0.45), transparent),
    radial-gradient(1px 1px at 65% 15%, rgba(244,246,251,0.3), transparent),
    radial-gradient(1.5px 1.5px at 80% 60%, rgba(244,246,251,0.35), transparent),
    radial-gradient(1px 1px at 40% 75%, rgba(244,246,251,0.25), transparent),
    radial-gradient(1px 1px at 90% 35%, rgba(244,246,251,0.25), transparent),
    radial-gradient(1.5px 1.5px at 10% 85%, rgba(244,246,251,0.3), transparent),
    radial-gradient(60% 40% at 15% 0%, rgba(61,126,255,0.08), transparent 60%),
    radial-gradient(50% 40% at 90% 90%, rgba(245,166,35,0.06), transparent 60%);
  opacity: 0.7;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(9, 12, 22, 0.7);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.wordmark.small { font-size: 15px; }

.dot-pair { display: inline-flex; gap: 4px; }
.dot-pair span { width: 7px; height: 7px; border-radius: 50%; }
.dot-pair span:first-child { background: var(--azure-500); }
.dot-pair span:last-child { background: var(--amber-500); }

nav { display: flex; gap: 28px; }
nav a {
  font-size: 14px;
  color: var(--ink-300);
  transition: color 0.15s ease;
}
nav a:hover { color: var(--ink-50); }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 64px; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 14px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

.accent-azure { color: var(--azure-300); }
.accent-amber { color: var(--amber-300); }

.lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-300);
  max-width: 460px;
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 13px 22px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--azure-500), #2f63d9);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:active { transform: translateY(1px); }
.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-300);
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-ghost:hover { border-color: var(--azure-500); color: var(--ink-50); }

/* ---------- Yörünge imzası ---------- */

.orbit-wrap { position: relative; }
.orbit-wrap svg { width: 100%; height: auto; overflow: visible; }

.orbit-path { fill: none; stroke: var(--line); stroke-width: 1; }

.node-azure, .node-amber { filter: drop-shadow(0 0 6px currentColor); }
.node-azure { color: var(--azure-500); fill: var(--azure-500); }
.node-amber { color: var(--amber-500); fill: var(--amber-500); }

.orbit-azure { animation: orbitA 6s linear infinite; transform-origin: 210px 150px; }
.orbit-amber { animation: orbitB 6s linear infinite; transform-origin: 210px 150px; }

@keyframes orbitA { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitB { from { transform: rotate(180deg); } to { transform: rotate(540deg); } }

.sync-flash {
  fill: none; stroke: var(--ink-50); stroke-width: 1.4; opacity: 0;
  animation: flash 6s linear infinite;
}
@keyframes flash { 0%, 46% { opacity: 0; } 50% { opacity: 0.9; } 54%, 100% { opacity: 0; } }

.caption-row {
  display: flex; gap: 22px; justify-content: center; margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-500);
}
.caption-row span { display: flex; align-items: center; gap: 6px; }
.caption-row i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.caption-row .c-azure { background: var(--azure-500); }
.caption-row .c-amber { background: var(--amber-500); }

@media (prefers-reduced-motion: reduce) {
  .orbit-azure, .orbit-amber, .sync-flash { animation: none; }
}

/* ---------- Section head ---------- */

.section-head { max-width: 560px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-head .lead { margin: 0 auto; text-align: center; }

/* ---------- How it works ---------- */

.how { padding: 64px 0; border-top: 1px solid var(--line); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.how-card {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--azure-300);
  margin-bottom: 12px;
}

.how-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
}

.how-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-300);
  margin: 0;
}

/* ---------- Açık Beta / indirme ---------- */

.download { padding: 72px 0; border-top: 1px solid var(--line); }
.download-inner { max-width: 420px; margin: 0 auto; }

.download-panel {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.download-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 20px;
}

.download-badge {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--navy-950);
  border: 1px solid var(--line);
  color: var(--azure-300);
}
.download-badge svg { width: 22px; height: 22px; }

.download-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.version-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--amber-300);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
}
.download-sub {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 2px;
}

.download-note {
  font-size: 12.5px;
  color: var(--ink-500);
  margin: 14px 0 0;
  line-height: 1.5;
}

/* ---------- Forms ---------- */

.beta, .contact { padding: 72px 0; border-top: 1px solid var(--line); }

.beta-inner, .contact-inner { max-width: 480px; margin: 0 auto; }

.panel-form {
  background: var(--navy-900);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.form-row { margin-bottom: 16px; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-300);
  margin-bottom: 7px;
}
label .optional { color: var(--ink-500); font-weight: 400; }

input, textarea {
  width: 100%;
  background: var(--navy-950);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink-50);
  font-family: var(--font-body);
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-500); }
input:focus-visible, textarea:focus-visible {
  border-color: var(--azure-500);
  box-shadow: 0 0 0 3px var(--azure-glow);
}

.form-row-checkbox { margin-bottom: 18px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-500);
  line-height: 1.5;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--azure-500);
  cursor: pointer;
}
.checkbox-label a { color: var(--azure-300); text-decoration: underline; }

.form-status {
  min-height: 18px;
  font-size: 13px;
  margin: 12px 0 0;
  text-align: center;
}
.form-status.is-success { color: var(--azure-300); }
.form-status.is-error { color: var(--amber-300); }

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

.site-footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-note { font-size: 12.5px; color: var(--ink-500); }

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

@media (max-width: 860px) {
  nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
}
