:root {
  --bg: #060914;
  --bg-2: #0b1022;
  --ink: #f4f7ff;
  --muted: #9aa6c4;
  --line: rgba(168, 196, 255, 0.16);
  --cyan: #22d3ff;
  --blue: #3b7bff;
  --violet: #8b5cf6;
  --brand-gradient: linear-gradient(110deg, #22d3ff 0%, #3b7bff 48%, #8b5cf6 100%);
  --card: rgba(12, 18, 38, 0.72);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sans: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --wordmark: "Michroma", "Outfit", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(91, 76, 246, 0.3), transparent 60%),
    radial-gradient(700px 480px at -10% 20%, rgba(34, 160, 255, 0.16), transparent 55%),
    var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(34, 211, 255, 0.28); color: white; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  background: white;
  color: #06101c;
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Header + logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 9, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex: none; filter: drop-shadow(0 4px 14px rgba(59, 123, 255, 0.4)); }
.brand-lockup { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-lockup strong {
  font-family: var(--wordmark);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.brand-lockup small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.34em;
}
.brand-lockup small::before,
.brand-lockup small::after {
  content: "";
  width: 10px;
  height: 1px;
  background: var(--blue);
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: white; }
.nav-cta {
  color: var(--ink) !important;
  border: 1px solid rgba(59, 123, 255, 0.45);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(59, 123, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: rgba(59, 123, 255, 0.22); border-color: rgba(34, 211, 255, 0.6); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: white;
  transition: transform 0.25s var(--ease);
}
.nav-open .menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-open .menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 40px);
  min-height: calc(100svh - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
#webgl, .hero-fallback, .hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#webgl { z-index: 0; opacity: 0; transition: opacity 1.2s ease; }
#webgl.is-ready { opacity: 1; }
.hero-fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 72% 46%, rgba(34, 211, 255, 0.2), transparent 22%),
    radial-gradient(circle at 64% 58%, rgba(139, 92, 246, 0.28), transparent 26%);
  opacity: 0;
}
.no-webgl .hero-fallback { opacity: 1; }
.hero-scrim {
  z-index: 1;
  background: linear-gradient(90deg, rgba(6, 9, 20, 0.92) 0%, rgba(6, 9, 20, 0.55) 46%, rgba(6, 9, 20, 0.08) 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 640px);
  padding: 88px 0 72px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--cyan);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 255, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.94;
}
h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.button-primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 10px 30px rgba(59, 123, 255, 0.3);
}
.button-primary:hover { box-shadow: 0 14px 36px rgba(59, 123, 255, 0.45); }
.button-ghost {
  color: white;
  border-color: var(--line);
  background: rgba(8, 12, 28, 0.35);
}
.button-ghost:hover { border-color: rgba(34, 211, 255, 0.45); }
.button:hover { transform: translateY(-1px); }
.index {
  margin: 0;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  background: rgba(8, 12, 24, 0.55);
}
.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 14px 0;
  animation: drift 32s linear infinite;
}
.marquee span {
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}
.marquee span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  transform: translateY(-1px);
}
@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding-top: 20px; }
.section-head {
  display: grid;
  grid-template-columns: 180px 1fr minmax(220px, 320px);
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2, .approach h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 0.98; }
.section-head p:last-child { margin: 0; color: var(--muted); }

/* Projects — js/projects.js listesinden üretilir */
.project-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(34, 211, 255, 0.07), transparent 32%),
    linear-gradient(340deg, rgba(139, 92, 246, 0.11), transparent 40%),
    rgba(9, 13, 28, 0.8);
  box-shadow: var(--shadow);
}
.project:hover { border-color: rgba(59, 123, 255, 0.38); }
.project-featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #bff3ff;
  border: 1px solid rgba(34, 211, 255, 0.35);
  background: rgba(34, 211, 255, 0.08);
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-beta { color: #d6c8ff; border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.1); }
.status-soon { color: var(--muted); border-color: var(--line); background: transparent; }
.project-copy h3 { margin: 12px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.02; }
.project-copy p { color: var(--muted); max-width: 480px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 22px; list-style: none; }
.tags li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #d5def3;
  font-size: 13px;
}
.project-shot {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
}
.project-shot img { width: 100%; height: auto; transition: transform 0.6s var(--ease); }
.project-shot:hover img { transform: scale(1.025); }
.project-shot span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6, 9, 20, 0.78);
  font-size: 13px;
}
.project-next {
  grid-column: 1 / -1;
  padding: 22px 24px;
  border-style: dashed;
  box-shadow: none;
  background: rgba(9, 13, 28, 0.45);
}
.project-next h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 8px 0 6px; }
.project-next p:last-child { margin: 0; }
/* Ürün sayısı çift olduğunda "sıradaki ürün" kartı yanındaki boşluğa yerleşir */
.project-list[data-count="2"] .project-next,
.project-list[data-count="4"] .project-next,
.project-list[data-count="6"] .project-next { grid-column: auto; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.service {
  min-height: 230px;
  padding: 18px 16px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 30, 0.66);
}
.service:hover { border-color: rgba(34, 211, 255, 0.4); }
.service svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { margin: 28px 0 8px; font-size: 22px; }
.service p { margin: 0; color: var(--muted); font-size: 14px; }

/* Approach */
.approach {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: 40px;
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 30, 0.55);
}
.steps span {
  font-family: var(--display);
  font-size: 22px;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.steps h3 { margin: 0 0 6px; font-size: 22px; }
.steps p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 18px; }
.footer-grid, .footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-grid p { margin: 0; color: var(--muted); }
.footer-nav { display: flex; gap: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--ink); }
.footer-meta {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-meta a { color: var(--muted); }

/* Reveal: yalnızca JS varken gizlenir; JS yoksa içerik her zaman görünür */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease), border-color 0.3s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section-head, .project-featured, .approach, .hero-grid { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .project-list .project-next { grid-column: auto; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .hero-scrim { background: linear-gradient(180deg, rgba(6, 9, 20, 0) 0%, rgba(6, 9, 20, 0.1) 28%, rgba(6, 9, 20, 0.82) 52%, var(--bg)); }
  .section-head p:last-child { max-width: 460px; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(6, 9, 20, 0.97);
  }
  .nav-open .site-nav { display: flex; }
  .brand-lockup strong { font-size: 13px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .service h3 { margin-top: 16px; }
  .section { padding: 72px 0; }
  .project { padding: 18px; border-radius: 22px; }
  .footer-grid, .footer-meta { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 100vh; min-height: 100svh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
