:root {
  --bg: #ffffff;
  --bg-elevated: #f5f7fa;
  --bg-card: #ffffff;
  --border: #e2e6ee;
  --border-soft: #edf0f5;
  --text: #12151c;
  --text-dim: #5b6472;
  --text-faint: #8892a0;
  --accent: #3d7dc0;
  --accent-strong: #2c5c93;
  --accent-soft: rgba(61, 125, 192, 0.08);
  --ok: #1f9d63;
  --radius: 14px;
  --max-w: 1180px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  /* The hero terminal/code blocks stay dark regardless of theme, on purpose —
     a code "window" is expected to look like a terminal. */
  --code-bg: #0d1117;
  --code-bg-elevated: #161b22;
  --code-border: #262c37;
  --code-text: #c7d0dd;
  --code-text-faint: #6b7383;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--font-mono); }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61,125,192,0.10), transparent),
    linear-gradient(rgba(18,21,28,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,21,28,0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}

main, header, footer { position: relative; z-index: 1; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  margin-right: auto;
}
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { font-size: 14px; padding: 8px 16px; }

@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #06111c;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 64px;
  text-align: center;
}
.hero-inner { max-width: 860px; margin: 0 auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}
h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.grad-text {
  background: linear-gradient(90deg, var(--accent), #8fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero-terminal {
  text-align: left;
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(18,21,28,0.25);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--code-border);
  background: var(--code-bg-elevated);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); opacity: 0.85; }
.term-title { margin-left: 8px; font-size: 12.5px; color: var(--code-text-faint); font-family: var(--font-mono); }
.term-body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--code-text);
}
.tk-comment { color: var(--code-text-faint); font-style: italic; }
.tk-fn { color: #7cc4f5; }
.tk-str { color: #e3c878; }
.tk-punc { color: var(--code-text-faint); }
.tk-ok { color: #4ad38f; }

/* ---------- STATS ---------- */
.stats { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--bg-elevated); }
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num, .stat-text {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--text);
}
.stat-label { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- SECTION HEAD ---------- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -0.01em; margin: 0 0 12px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; margin: 0; }

/* ---------- FEATURES ---------- */
.features { max-width: var(--max-w); margin: 0 auto; padding: 100px 24px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }
.feature-card code { font-size: 13px; background: var(--bg-elevated); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

/* ---------- CATEGORIES ---------- */
.categories { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 100px; }
.cat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
}
@media (max-width: 760px) { .cat-layout { grid-template-columns: 1fr; } }

.cat-list {
  border-right: 1px solid var(--border-soft);
  max-height: 480px;
  overflow-y: auto;
}
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--text-dim);
  transition: background 0.15s ease, color 0.15s ease;
}
.cat-item:hover { background: var(--bg-elevated); color: var(--text); }
.cat-item.active { background: var(--accent-soft); color: var(--text); }
.cat-item .cat-count {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.cat-item.active .cat-count { color: var(--accent); }

.cat-detail { padding: 32px; max-height: 480px; overflow-y: auto; }
.cat-hint { color: var(--text-faint); }
.cat-detail h4 { margin: 0 0 6px; font-size: 20px; }
.cat-detail .cat-detail-count { color: var(--accent); font-family: var(--font-mono); font-size: 14px; margin-bottom: 18px; display: block; }
.cat-detail > p { color: var(--text-dim); font-size: 15px; margin: 0 0 20px; }

.tool-rows { display: flex; flex-direction: column; }
.tool-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.tool-row:last-child { border-bottom: none; }
.tool-row-main { min-width: 0; flex: 1; }
.tool-row-name {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.tool-row-desc { font-size: 13.5px; color: var(--text-dim); margin: 5px 0 0; }
.op-badge {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.op-read { color: var(--text-dim); background: var(--bg-elevated); border-color: var(--border); }
.op-write { color: var(--accent); background: var(--accent-soft); border-color: rgba(61,125,192,0.3); }
.op-destructive { color: #c0304a; background: rgba(192,48,74,0.08); border-color: rgba(192,48,74,0.3); }

/* ---------- PRICING ---------- */
.pricing { max-width: var(--max-w); margin: 0 auto; padding: 100px 24px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 840px;
  margin: 0 auto 56px;
}
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, 0 8px 40px -12px rgba(61,125,192,0.18);
}
.price-card-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.price-card-head { text-align: center; margin-bottom: 28px; }
.price-card-head h3 { font-size: 22px; margin: 0 0 8px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-sub { font-size: 14px; color: var(--text-dim); margin: 6px 0 0; }

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-features li {
  font-size: 14.5px;
  padding-left: 26px;
  position: relative;
  color: var(--text-dim);
}
.price-features li.included::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.price-features li.excluded::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}
.price-features li.excluded { color: var(--text-faint); }
.price-features li strong { color: var(--text); }

.price-btn { width: 100%; justify-content: center; }
.price-note-byok {
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
  margin: 14px 0 0;
}

.pricing-faq {
  max-width: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 620px) { .pricing-faq { grid-template-columns: 1fr; } }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 24px;
}
.faq-item h4 { font-size: 15px; margin: 0 0 8px; }
.faq-item p { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.55; }
.faq-item code { font-size: 12.5px; background: var(--bg-elevated); padding: 1px 6px; border-radius: 5px; color: var(--accent); }

/* ---------- HOW IT WORKS ---------- */
.how { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 60px; }
.how-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.how-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 26px;
  text-align: center;
  min-width: 180px;
}
.how-node-accent { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 30px -10px var(--accent); }
.how-node-small { min-width: unset; padding: 14px 20px; }
.how-node-title { font-weight: 700; font-size: 15px; }
.how-node-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; font-family: var(--font-mono); }
.how-arrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  position: relative;
  padding: 0 6px;
}
.how-arrow::before {
  content: "→";
  display: block;
  text-align: center;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 2px;
}
@media (max-width: 760px) {
  .how-diagram { flex-direction: column; }
  .how-arrow::before { content: "↓"; }
}
.how-branch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 32px;
}
.how-branch-line {
  width: 1px;
  height: 28px;
  background: var(--border);
  display: none;
}
.how-note {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- GET STARTED ---------- */
.get-started { max-width: var(--max-w); margin: 0 auto; padding: 40px 24px 120px; }

.steps-vertical {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 44px;
}
.step-row {
  display: flex;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.step-row .step-content { flex: 1; min-width: 0; }
@media (max-width: 620px) { .step-row { flex-direction: column; } }

.step-num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.step h3 { font-size: 16.5px; margin: 0 0 10px; }
.step p { font-size: 14.5px; color: var(--text-dim); margin: 0; }
.step code { font-size: 13px; background: var(--bg-elevated); padding: 1px 6px; border-radius: 5px; color: var(--accent); }
.step-details {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-details li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.step-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
}
.step-alt {
  font-size: 12.5px !important;
  color: var(--text-faint) !important;
  margin-top: 12px !important;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.step-prereq {
  font-size: 12.5px;
  color: var(--text-dim);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 6px;
  margin: 10px 0 16px;
  border-left: 3px solid var(--accent);
}
.step-prereq a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.code-block {
  background: var(--code-bg);
  border: 1px solid var(--code-border);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--code-text);
  overflow-x: auto;
  margin: 0;
  line-height: 1.6;
}
.cta-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- PLATFORM TABS (Get started, step 2) ---------- */
.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 16px;
}
.platform-tab {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.platform-tab:hover { color: var(--text); border-color: var(--accent); }
.platform-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.platform-panel-path {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.platform-panel-path code {
  font-size: 12.5px;
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent);
}
.platform-panel-note {
  font-size: 13px;
  color: var(--text-faint);
  margin: 10px 0 0;
}

/* ---------- LAUNCH BANNER ---------- */
.launch-banner {
  position: relative; z-index: 100;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #fff; font-size: 14px;
}
.launch-banner-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 12px 24px; display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.launch-tag {
  background: rgba(255,255,255,0.2); padding: 3px 12px; border-radius: 20px;
  font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  white-space: nowrap;
}
.launch-text { font-weight: 400; }
.launch-text strong { font-weight: 700; }
.launch-text s { opacity: 0.6; }
.launch-cta {
  color: #fff; font-weight: 600; text-decoration: none;
  background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 6px;
  white-space: nowrap; line-height: 1.4;
}
.launch-cta:hover { background: rgba(255,255,255,0.25); }

.price-original {
  font-size: 0.55em; color: var(--text-faint); text-decoration: line-through;
  font-weight: 400; margin-left: 6px;
}

/* ---------- FOOTER ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 40px 24px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { font-weight: 700; font-size: 15px; }
.footer-note, .footer-copy { color: var(--text-faint); font-size: 13px; margin: 0; }
.footer-links { display: flex; gap: 20px; font-size: 13px; }
.footer-links a { color: var(--text-faint); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

/* Official iyzico assets, kept at their original aspect ratios. */
.payment-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  width: 100%;
  margin: 8px 0 20px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-sizing: border-box;
}
.payment-logos img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.payment-logos .iyzico-pay-logo { width: 210px; }
.payment-logos .payment-card-logos { width: 429px; }
.checkout-card .payment-logos { margin: 24px 0; }

.desktop-download { max-width: var(--max-w); margin: 0 auto; padding: 64px 24px; scroll-margin-top: 100px; }
.desktop-download-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.desktop-download-card h2 { margin: 12px 0; font-size: 30px; line-height: 1.2; }
.desktop-download-card p { color: var(--text-dim); }
.desktop-download-card .btn { margin-top: 12px; }
.desktop-download-steps ol { padding-left: 22px; color: var(--text-dim); }
.desktop-download-steps li { margin: 8px 0; }
.desktop-download-card .download-note { font-size: 13px; }
@media (max-width: 700px) {
  .desktop-download-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
}
