:root {
  --bg: #0b1220;
  --bg-2: #0f172a;
  --panel: #111a2e;
  --line: #1e2a44;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #22d3ee;
  --accent-2: #0e7490;
  --warn: #fbbf24;
  --radius: 14px;
  --maxw: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(34, 211, 238, .14), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(14, 116, 144, .18), transparent 60%),
              var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: #04161c; font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }
:where(h1, h2, h3) code { font-size: .86em; font-weight: 700; letter-spacing: -.01em; }
p code, li code, td code, .tier code { font-size: .9em; padding: .08em .35em; border-radius: 5px; background: rgba(148, 163, 184, .1); border: 1px solid rgba(148, 163, 184, .14); color: #e2e8f0; white-space: nowrap; }
.term code, .copy code { background: none; border: 0; padding: 0; }
code, pre { font-family: var(--mono); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(160%) blur(12px);
  background: rgba(11, 18, 32, .78);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 20px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; color: var(--muted); padding: 6px 12px; font: inherit; font-size: 13px;
  font-weight: 700; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: #062029; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }

/* hero */
.hero { padding: 88px 0 56px; text-align: center; }
.badge {
  display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, .35); background: rgba(34, 211, 238, .08); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px); line-height: 1.08; margin: 22px auto 18px; max-width: 900px;
  letter-spacing: -.02em;
}
.grad { background: linear-gradient(120deg, #7dd3fc, #22d3ee 40%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 760px; margin: 0 auto; }
.stack { margin: 18px auto 0; color: #cbd5e1; font-size: 14px; letter-spacing: .02em; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 700;
  border: 1px solid var(--line); color: var(--text); background: var(--panel); transition: transform .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: #334155; }
.btn.primary { background: linear-gradient(135deg, #22d3ee, #0891b2); color: #04161c; border: 0; box-shadow: 0 10px 30px rgba(34, 211, 238, .25); }
.btn svg { width: 18px; height: 18px; }
.hero-shot {
  margin: 56px auto 0; max-width: 1060px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0, 0, 0, .55), 0 0 0 1px rgba(34, 211, 238, .08);
}

/* sections */
section { padding: 80px 0; }
section.alt { background: linear-gradient(180deg, rgba(15, 23, 42, .6), rgba(15, 23, 42, .2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 8px 0 14px; letter-spacing: -.01em; text-wrap: balance; }
h3 { line-height: 1.3; }
.hero h1 { text-wrap: balance; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.card {
  background: linear-gradient(180deg, rgba(17, 26, 46, .95), rgba(15, 23, 42, .9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: #2b3b5c; }
.card h3 { margin: 12px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(34, 211, 238, .1); color: var(--accent); border: 1px solid rgba(34, 211, 238, .25);
}
.icon svg { width: 22px; height: 22px; }

.faces .card { text-align: left; }
.faces .tag { font-family: var(--mono); font-size: 13px; color: var(--accent); }

/* gallery */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0 24px; }
.tabs button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; flex: none;
  transition: color .15s, border-color .15s;
}
.tabs button:hover { color: var(--text); border-color: #334155; }
.tabs button[aria-selected="true"] { color: #04161c; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.viewer { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); max-width: 1060px; margin: 0 auto; background: #0a0f1c; }
.viewer img { width: 100%; aspect-ratio: 1360 / 860; object-fit: cover; object-position: top; }
.caption { text-align: center; color: var(--muted); margin-top: 14px; font-size: 15px; }
.mobile-row { display: grid; grid-template-columns: 230px minmax(0, 420px) 230px; gap: 48px; justify-content: center; align-items: center; margin-top: 72px; }
.phone { width: 100%; max-width: 230px; margin: 0 auto; border-radius: 32px; overflow: hidden; border: 8px solid #1e293b; background: #0a0f1c; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(148, 163, 184, .12); }
.phone img { width: 100%; aspect-ratio: 780 / 1688; object-fit: cover; }
.mobile-text h2 { font-size: 28px; }
.mobile-text p { color: var(--muted); margin: 0; }

/* terminal */
.term { background: #070b14; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.term-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: center; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #334155; display: block; }
.term-bar span { margin-left: 8px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.term pre { margin: 0; white-space: pre; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; color: #cbd5e1; }
.term .c { color: #64748b; }
.term .p { color: var(--accent); }

/* install */
.os { display: flex; flex-direction: column; gap: 10px; }
.os h3 { display: flex; gap: 10px; align-items: center; margin: 0; }
.os ul { flex: 1; }
.os ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.copy {
  display: flex; align-items: flex-start; gap: 10px; background: #070b14; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 13px; color: #cbd5e1;
}
.copy code { flex: 1; min-width: 0; white-space: pre-wrap; word-break: break-all; line-height: 1.55; }
.copy button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 10px;
  font: inherit; font-size: 12px; cursor: pointer; flex: none;
}
.copy button:hover { color: var(--text); }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.note strong { color: var(--warn); }

/* mcp */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tier { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel); }
.tier b { display: block; font-size: 14px; font-family: var(--mono); color: var(--accent); margin-bottom: 2px; }
.tier span { color: var(--muted); font-size: 13px; }
.clients { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.clients span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #cbd5e1; background: var(--panel); }

/* platform table */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
td.y { color: #4ade80; }
td.n { color: #94a3b8; font-family: var(--mono); font-size: 13px; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(148, 163, 184, .04); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* docs */
.docs a.card { display: block; position: relative; color: var(--text); padding-right: 44px; }
.docs a.card:hover { text-decoration: none; border-color: rgba(34, 211, 238, .45); transform: translateY(-2px); }
.docs a.card .arrow { color: var(--accent); position: absolute; top: 22px; right: 22px; transition: transform .15s; }
.docs a.card:hover .arrow { transform: translateX(3px); }
.docs a.card h3 { margin-top: 0; }

footer { padding: 48px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .brand { margin-bottom: 6px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { gap: 14px; }
  .g3 .card { padding: 20px; }
  .g2 { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .nav-links { gap: 16px; }
  .mobile-row { grid-template-columns: repeat(2, minmax(0, 230px)); gap: 32px; }
  .mobile-text { grid-column: 1 / -1; grid-row: 1; text-align: center; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .nav .wrap { gap: 12px; }
  .brand { font-size: 14px; white-space: nowrap; }
  .lang { margin-left: auto; }
  .menu-btn { display: inline-block; }
  .g4, .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 40px; }
  .hero-shot { margin-top: 40px; border-radius: 10px; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  section { padding: 56px 0; }
  .sub { margin-bottom: 28px; }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 8px -18px 20px; padding: 0 18px 6px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .viewer { border-radius: 10px; }
  .mobile-row { gap: 18px; margin-top: 48px; }
  .phone { border-width: 6px; border-radius: 24px; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 20px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
  .brand { font-size: 13px; letter-spacing: .04em; }
  .lang button { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .card, .tabs button, .docs a.card .arrow { transition: none; } .btn:hover, .docs a.card:hover { transform: none; } }

/* bilingual: <span class="en">…</span><span class="tr">…</span> */
html[data-lang="en"] .tr, html[data-lang="tr"] .en { display: none !important; }
