:root {
  --bg: #f6f8ff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(15, 30, 70, 0.09);
  --text: #0b1220;
  --muted: #5a6478;
  --primary: #1d4ed8;
  --secondary: #3b82f6;
  --tertiary: #60a5fa;
  --deep: #1e3a8a;
  --radius: 20px;
  --max: 1160px;
  --shadow: 0 1px 2px rgba(10, 20, 50, 0.04), 0 12px 40px -12px rgba(30, 64, 175, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Animated background ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  will-change: transform;
}
.blob.b1 { width: 620px; height: 620px; background: #c7d7fe; top: -180px; left: -120px; animation: drift1 22s var(--ease) infinite alternate; }
.blob.b2 { width: 540px; height: 540px; background: #dbeafe; top: 10%; right: -160px; animation: drift2 26s var(--ease) infinite alternate; }
.blob.b3 { width: 480px; height: 480px; background: #bfdbfe; bottom: -160px; left: 30%; animation: drift3 30s var(--ease) infinite alternate; }
.blob.b4 { width: 360px; height: 360px; background: #e0e9ff; top: 45%; left: -100px; animation: drift2 34s var(--ease) infinite alternate-reverse; opacity: 0.4; }
@keyframes drift1 { to { transform: translate(180px, 140px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-200px, 120px) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-140px, -180px) scale(1.2); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(29, 78, 216, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 78, 216, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 70%);
}
#particles { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(246, 248, 255, 0.75);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom-color: var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  background-size: 200% 200%; animation: shimmer 6s ease infinite;
  display: grid; place-items: center; font-size: 17px; color: #fff;
  box-shadow: 0 6px 18px -6px rgba(29, 78, 216, 0.6);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(29, 78, 216, 0.08); }
.lang-toggle {
  margin-left: 6px; border: 1px solid var(--border); background: var(--surface-solid); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.lang-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
@media (max-width: 760px) { .nav a.hide-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 110px 0 140px; text-align: center; position: relative; }
.hero-stage > *:not(#orb) { position: relative; z-index: 1; }
#orb {
  position: absolute; left: 50%; top: 50%; width: min(760px, 110vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none; opacity: .7;
  mask-image: radial-gradient(circle, #000 45%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--primary); background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 0 rgba(59, 130, 246, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  margin: 28px auto 24px; max-width: 980px;
}
.gradient-text {
  background: linear-gradient(90deg, var(--deep), var(--primary), var(--secondary), var(--deep));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 40px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-solid);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--deep), var(--primary) 50%, #3b82f6);
  background-size: 200% 200%; animation: shimmer 6s ease infinite;
  box-shadow: 0 10px 30px -10px rgba(29, 78, 216, 0.7);
}

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker {
  display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--deep), var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -0.035em; line-height: 1.1; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  overflow: hidden;
}
.card::before {
  /* soft spotlight that follows the cursor (see site.js) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(29, 78, 216, 0.10), transparent 40%);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(10,20,50,.04), 0 24px 60px -16px rgba(30, 64, 175, 0.28); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  color: #fff; font-size: 22px; transition: transform .5s var(--ease);
}
.card:hover .icon { transform: rotate(-8deg) scale(1.08); }
.g-1 { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.g-2 { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.g-3 { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.g-4 { background: linear-gradient(135deg, #3b82f6, #93c5fd); }
.card h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Tinted band sections ---------- */
section.band { position: relative; }
section.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(29, 78, 216, 0.05) 20%, rgba(29, 78, 216, 0.05) 80%, transparent);
}
.mono, code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative; padding: 28px 24px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); overflow: hidden;
  transition: transform .4s var(--ease);
}
.pillar:hover { transform: translateY(-6px); }
.pillar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--deep), var(--secondary), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s;
}
.pillar.in::after { transform: scaleX(1); }
.pillar-tag { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--primary); }
.pillar h3 { margin: 14px 0 10px; font-size: 19px; letter-spacing: -0.02em; line-height: 1.3; }
.pillar p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- AI infrastructure ---------- */
.engine { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .engine { grid-template-columns: 1fr; gap: 36px; } }
.engine-copy h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; line-height: 1.12; margin: 12px 0 16px; }
.engine-copy > p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.caps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.caps li {
  position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 15px;
}
.caps li::before {
  content: ""; position: absolute; left: 4px; top: 18px; width: 14px; height: 14px; border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .1);
}
.caps b { display: block; color: var(--text); font-size: 16px; margin-bottom: 2px; }

.code-card, .window {
  background: #0b1220; color: #e2e8f0; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 70px -25px rgba(10, 20, 50, 0.55); border: 1px solid rgba(255,255,255,.06);
}
.pipeline-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 12px; color: #94a3b8; }
.pipeline-head .dots { display: inline-flex; gap: 6px; }
.pipeline-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.pipeline-head .dots i:first-child { background: #3b82f6; }
.code { margin: 0; padding: 22px 22px 18px; font-size: 13.5px; line-height: 1.75; overflow-x: auto; color: #cbd5e1; }
@media (max-width: 640px) { .code { font-size: 11px; padding: 18px 16px 14px; } .trace { padding: 12px 16px 16px; } }
.c-k { color: #93c5fd; } .c-f { color: #60a5fa; font-weight: 600; } .c-s { color: #a5b4fc; } .c-n { color: #7dd3fc; } .c-c { color: #64748b; }
.trace { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 22px 18px; display: grid; gap: 8px; font-size: 13px; color: #94a3b8; }
.trace-row { display: grid; grid-template-columns: 14px 84px 1fr; align-items: center; gap: 10px; opacity: .35; animation: traceStep 6s infinite; }
.trace-row:nth-child(2) { animation-delay: .9s; }
.trace-row:nth-child(3) { animation-delay: 1.8s; }
.trace-row:nth-child(4) { animation-delay: 2.7s; }
.trace-row .mono { color: #e2e8f0; }
.t-dot { width: 8px; height: 8px; border-radius: 50%; background: #3b82f6; }
@keyframes traceStep {
  0% { opacity: .35; } 8% { opacity: 1; } 70% { opacity: 1; } 85%, 100% { opacity: .35; }
}
.trace-row .t-dot { animation: dotPulse 6s infinite; animation-delay: inherit; }
@keyframes dotPulse { 0% { box-shadow: none; } 8% { box-shadow: 0 0 0 5px rgba(59,130,246,.25), 0 0 14px #3b82f6; } 30%, 100% { box-shadow: none; } }

/* ---------- Tech stack ---------- */
.stack { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.layer {
  display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 18px;
  padding: 18px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 640px) { .layer { grid-template-columns: 1fr; } }
.layer-name { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile {
  font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(29,78,216,.35); box-shadow: 0 8px 20px -10px rgba(29,78,216,.4); }

/* ---------- Product card ---------- */
.product-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  max-width: 900px; margin: 0 auto; padding: 28px 32px; border-radius: 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(10,20,50,.04), 0 24px 60px -16px rgba(30, 64, 175, 0.28); }
.pc-mark { width: 84px; height: 84px; border-radius: 24px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; padding: 18px; }
.pc-body .wordmark { height: 30px; width: auto; margin-bottom: 8px; }
.pc-body p { margin: 0; color: var(--muted); font-size: 16px; }
.pc-link { font-weight: 600; color: var(--primary); white-space: nowrap; }
.pc-link .arrow { display: inline-block; transition: transform .25s var(--ease); }
.product-card:hover .pc-link .arrow { transform: translateX(4px); }
@media (max-width: 640px) { .product-card { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Contact ---------- */
.contact-card { max-width: 880px; margin: 0 auto; text-align: center; padding: 56px 40px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 40px; text-align: left; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.info-item { padding: 16px 0; border-top: 1px solid var(--border); }
.info-item dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.info-item dd { margin: 0; font-weight: 600; }
.info-item a { color: var(--primary); text-decoration: none; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; font-size: 14px; color: var(--muted); background: rgba(255,255,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--text); font-size: 14px; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--primary); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 100px; }
.legal .container { max-width: 840px; }
.legal .paper {
  background: rgba(255,255,255,.85); border: 1px solid var(--border); border-radius: 28px;
  padding: clamp(28px, 5vw, 56px); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.legal h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.03em; line-height: 1.2; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; margin: 40px 0 14px; letter-spacing: -0.015em; }
.legal p, .legal li { color: #334155; font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--primary); }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: rgba(29, 78, 216, 0.05); }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.back-link:hover { color: var(--primary); }

/* ---------- i18n ---------- */
html[lang="tr"] [lang="en"]:not(html) { display: none !important; }
html[lang="en"] [lang="tr"]:not(html) { display: none !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  #particles { display: none; }
}
