/* ============ Tokens ============ */
:root {
  --bg: #10151F;        /* gece  */
  --surface: #171E2B;   /* panel */
  --line: #232C3D;      /* hat   */
  --text: #E8ECF4;      /* kar   */
  --muted: #8B96A9;     /* sis   */
  --accent: #FFB454;    /* amber */
  --key: #7AA2C7;       /* json anahtar */
  --ok: #7FCB9B;        /* boolean/status */

  --font-display: "Archivo", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }

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

.dot { color: var(--accent); }

/* ============ Nav ============ */
.nav {
  max-width: var(--w);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  padding: 4px 2px;
}

.lang-switch button[aria-pressed="true"] {
  color: var(--accent);
  font-weight: 500;
}

/* ============ Hero ============ */
.hero {
  max-width: var(--w);
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 60% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero > * { position: relative; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ok);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 28px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(127, 203, 155, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(127, 203, 155, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 203, 155, 0); }
}

h1 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 118;
  font-weight: 750;
  font-size: clamp(56px, 8.5vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 36px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--muted); }

/* ============ Terminal card ============ */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.traffic { display: flex; gap: 6px; }

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.terminal-cmd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.terminal-cmd::before { content: "$ "; color: var(--accent); }

.terminal-body {
  padding: 20px 22px 24px;
  overflow-x: auto;
}

.terminal-body code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text);
}

.t-status { color: var(--ok); }
.t-key { color: var(--key); }
.t-str { color: var(--accent); }
.t-bool { color: var(--ok); font-weight: 500; }

.cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 6px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ============ Sections ============ */
.section {
  max-width: var(--w);
  margin: 0 auto;
  padding: 72px 24px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 110;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-3px);
}

.card h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108;
  font-weight: 650;
  font-size: 20px;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 15.5px; }

/* Chips */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--surface);
}

/* Contact */
.contact-sub { color: var(--muted); margin: -20px 0 32px; max-width: 50ch; }

.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112;
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 44px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 6px;
  transition: color 0.15s ease;
}

.contact-mail:hover { color: var(--accent); }

.contact-links { display: flex; gap: 22px; margin-top: 36px; }

.contact-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-links a:hover { color: var(--accent); }

.contact-links a::before { content: "↗ "; color: var(--accent); }

/* ============ Footer ============ */
.footer {
  max-width: var(--w);
  margin: 0 auto;
  padding: 32px 24px 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
}

.footer code { font-family: var(--font-mono); font-size: 12.5px; }

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.6s ease forwards;
    animation-delay: calc(var(--d, 0) * 120ms);
  }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .cursor { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .cards { grid-template-columns: 1fr; }

  .nav { gap: 20px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 560px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }

  .section { padding: 52px 20px; }

  .contact-links { flex-wrap: wrap; }

  .footer { flex-direction: column; gap: 8px; }
}
