/* Ana sayfa — yalnızca index.html kullanır. Alt sayfalar style.css'te kalır. */
:root {
  --bg: #08090b;
  --panel: #0d0f12;
  --surface: #12151a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #ecebe7;
  --mute: #8d9098;
  --faint: #5c6068;
  --accent: #ff7a2e;
  --accent-ink: #1a0b02;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 2.2vw, 28px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
}
.skip-link:focus { top: 16px; }

.shell { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.rule-label {
  display: flex; align-items: center; gap: 14px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
}
.rule { width: 32px; height: 1px; background: var(--line-2); flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  font: 500 14px/1 var(--sans); letter-spacing: -0.005em; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ff8b47; }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); }

/* ───────────── Sahne (hero) ───────────── */
.stage {
  position: relative;
  margin: 12px;
  height: calc(100svh - 24px);
  min-height: 660px;
  max-height: 1000px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 66% 58%, rgba(255, 122, 46, 0.07), transparent 70%),
    radial-gradient(ellipse 80% 70% at 62% 55%, #14171d 0%, #0a0b0e 62%, #08090b 100%);
  isolation: isolate;
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 65% at 62% 55%, #000 10%, transparent 75%);
}

.stage-head {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-text small { font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }

.head-right { display: flex; align-items: center; gap: 28px; }
.stage-status {
  display: flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
}
.stage-status .faint { color: var(--faint); padding-left: 10px; border-left: 1px solid var(--line-2); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(255,122,46,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,46,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,122,46,0); } }

.site-nav { display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--mute); transition: color .2s, background-color .2s; }
.site-nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.site-nav .nav-contact { color: var(--text); border: 1px solid var(--line-2); margin-left: 6px; }
.site-nav .language-switch { font: 500 11px/1 var(--mono); letter-spacing: .08em; padding: 9px 10px; }

.hero-copy {
  position: absolute; z-index: 5;
  left: var(--gutter); top: 50%;
  width: min(540px, 38%);
  transform: translateY(-54%);
  display: grid; gap: 22px;
  transition: opacity .45s ease, transform .45s ease;
}
.hero-copy.is-hidden { opacity: 0; transform: translateY(-50%); pointer-events: none; }
.hero-copy h1 {
  font-weight: 500; font-size: clamp(36px, 3.7vw, 58px); line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy .lead { color: var(--mute); font-size: 16.5px; max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.scene { position: absolute; inset: 0; z-index: 2; }
.scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; touch-action: pan-y; }
.scene.is-ready canvas { opacity: 1; }
.scene-loader {
  position: absolute; left: 62%; top: 52%; transform: translate(-50%, -50%);
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--faint);
  transition: opacity .4s ease;
}
.scene.is-ready .scene-loader, .stage.no-webgl .scene-loader { opacity: 0; }
.stage.no-webgl .controls, .stage.no-webgl .foot-hint { display: none; }

/* Etiketler — 3B istasyonların üstünde, JS konumlandırır */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  --c: var(--accent);
  position: absolute; left: 0; top: 0;
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 13px 9px 10px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: rgba(15, 17, 21, 0.86);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-align: left; white-space: nowrap; cursor: pointer; pointer-events: auto;
  translate: -50% calc(-100% - 30px);
  opacity: 0;
  transition: opacity .5s ease, border-color .2s ease, background-color .2s ease;
}
.scene.is-ready .tag { opacity: 1; }
.scene.is-ready .tag.is-hidden { opacity: 0; pointer-events: none; }
.tag.is-tall { translate: -50% calc(-100% - 66px); }
.tag.is-tall::after { height: 66px; }
.tag.is-tall::before { top: calc(100% + 64px); }
.tag-app { padding: 6px 10px 7px 8px; }
.tag-app .tag-text b { font-size: 12px; }
.tag::after {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 1px; height: 30px; background: linear-gradient(var(--line-2), rgba(255,255,255,.04));
}
.tag::before {
  content: ""; position: absolute; left: calc(50% - 2.5px); top: calc(100% + 28px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--c);
}
.tag.is-below { translate: -50% 30px; }
.tag.is-below::after { top: auto; bottom: 100%; background: linear-gradient(rgba(255,255,255,.04), var(--line-2)); }
.tag.is-below::before { top: auto; bottom: calc(100% + 28px); }
.tag:hover, .tag.is-active { border-color: color-mix(in srgb, var(--c) 70%, transparent); background: rgba(20, 22, 27, 0.94); }
.tag-num { font: 500 10px/1.6 var(--mono); color: var(--c); }
.tag-text { display: grid; gap: 1px; }
.tag-text b { font-weight: 500; font-size: 13px; line-height: 1.3; letter-spacing: -0.01em; }
.tag-text small { font-size: 11px; line-height: 1.3; color: var(--mute); }

/* Seçilen uygulama paneli */
.app-panel {
  position: absolute; z-index: 7;
  left: var(--gutter); top: 50%;
  width: min(420px, 34%);
  transform: translateY(-50%);
  padding: 24px;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(13, 15, 18, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  display: grid; gap: 16px;
  animation: panel-in .45s cubic-bezier(.2,.7,.2,1);
}
.app-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-46%); } }
.panel-close {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: transparent; cursor: pointer;
}
.panel-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.panel-close:hover { border-color: var(--line-2); }
.panel-meta { display: flex; gap: 12px; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.panel-status { display: inline-flex; align-items: center; gap: 7px; color: var(--mute); }
.panel-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ad08b; }
.panel-status.is-soon::before { background: var(--accent); }
.panel-title { display: flex; gap: 14px; align-items: center; }
.panel-icon { width: 56px; height: 56px; border-radius: 14px; }
.panel-name { font-weight: 500; font-size: 24px; line-height: 1.15; letter-spacing: -0.025em; }
.panel-cat { font: 500 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--app, var(--accent)); }
.panel-desc { color: var(--mute); font-size: 14.5px; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-links:empty, .panel-status:empty, .panel-icon[hidden] { display: none; }
.panel-links button { font: inherit; font-size: 13px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.panel-links button:hover { border-color: var(--accent); }
.panel-links a, .panel-links span {
  white-space: nowrap;
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; border: 1px solid var(--line-2);
}
.panel-links a:first-child { background: var(--text); color: #0b0c0f; border-color: var(--text); }
.panel-links span { color: var(--faint); border-style: dashed; }

/* Alt kontrol çubuğu: mod (üst sıra) + kamera görünümü (alt sıra) */
.controls {
  position: absolute; z-index: 6; left: 50%; bottom: 50px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.segmented {
  display: flex; gap: 4px; padding: 5px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(16, 18, 22, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.segmented button {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mute); font-size: 13px; cursor: pointer; white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px #0d0f12, 0 0 0 3px rgba(255,122,46,.55); }
.segmented svg, .ctrl-pause svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.view-row { display: flex; align-items: center; gap: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.view-label { color: var(--faint); margin-right: 8px; }
.view-row button[data-view] {
  position: relative; padding: 6px 9px; border: 0; background: transparent; cursor: pointer;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--faint); transition: color .2s;
}
.view-row button[data-view]:hover { color: var(--mute); }
.view-row button[data-view].is-active { color: var(--text); }
.view-row button[data-view].is-active::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.ctrl-pause {
  display: grid; place-items: center; width: 28px; height: 24px; margin-left: 8px; padding: 0;
  border: 0; border-left: 1px solid var(--line-2); border-radius: 0; background: transparent; color: var(--mute); cursor: pointer;
}
.ctrl-pause:hover { color: var(--text); }
.ctrl-pause svg { width: 13px; height: 13px; }
.ctrl-pause .i-play { display: none; }
.ctrl-pause[aria-pressed="true"] .i-pause { display: none; }
.ctrl-pause[aria-pressed="true"] .i-play { display: block; }

.side-text {
  position: absolute; z-index: 4; right: 18px; top: 50%;
  writing-mode: vertical-rl; transform: translateY(-50%);
  font: 500 10px/1 var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--faint);
}
.stage-foot {
  position: absolute; z-index: 4; left: var(--gutter); right: var(--gutter); bottom: 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center;
  font: 500 10.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  pointer-events: none;
}
.stage-foot .foot-center { letter-spacing: .3em; }
.stage-foot .foot-hint { text-align: right; text-transform: none; letter-spacing: .02em; font-family: var(--sans); font-size: 12px; }

/* ───────────── Hakkımda ───────────── */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px);
  padding: clamp(80px, 10vw, 130px) 0;
}
.about-copy { display: grid; gap: 22px; align-content: start; }
.about h2 { font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
.about-copy > p { color: var(--mute); font-size: 16.5px; max-width: 46ch; }
.mail-link {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start; margin-top: 6px;
  padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 14.5px;
  transition: border-color .2s;
}
.mail-link span { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.mail-link:hover { border-color: var(--accent); }
.process { display: grid; gap: 22px; align-content: start; }
.process ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process li {
  display: grid; grid-template-columns: 56px 150px 1fr; gap: 16px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.step-num { font: 500 11px/1 var(--mono); color: var(--accent); }
.process strong { font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.process li p { color: var(--mute); font-size: 14.5px; }

/* ───────────── Kapalı test ───────────── */
.beta { padding-bottom: clamp(60px, 8vw, 100px); }
.beta-inner {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 100%, rgba(255,122,46,.14), transparent 70%),
    var(--panel);
}
.beta-inner > div { display: grid; gap: 18px; max-width: 640px; }
.beta h2 { font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.035em; }
.beta-inner p:not(.rule-label) { color: var(--mute); font-size: 15.5px; }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 34px; border-top: 1px solid var(--line);
  font: 500 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.footer strong { color: var(--mute); font-weight: 500; }

/* ───────────── Duyarlı ───────────── */
@media (max-width: 1100px) {
  .stage-status { display: none; }
}

@media (max-width: 900px) {
  .stage { height: auto; max-height: none; min-height: 0; display: flex; flex-direction: column; margin: 8px; border-radius: 18px; }
  .stage-head { position: relative; }
  .hero-copy { position: relative; left: auto; top: auto; width: auto; transform: none; padding: 26px var(--gutter) 0; }
  .hero-copy.is-hidden { opacity: 1; transform: none; pointer-events: auto; }
  .scene { position: relative; inset: auto; height: min(104vw, 600px); margin-top: 0; }
  .scene-loader { left: 50%; }
  .app-panel { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; transform: none; padding: 16px; gap: 12px; animation: none; }
  .panel-icon { width: 46px; height: 46px; border-radius: 12px; }
  .panel-name { font-size: 20px; }
  .panel-desc, .panel-links span { display: none; }
  .scene.is-focused .controls { display: none; }
  .controls { bottom: 12px; gap: 6px; }
  .view-label { display: none; }
  .side-text { display: none; }
  .stage-foot { position: relative; left: auto; right: auto; bottom: auto; padding: 4px var(--gutter) 18px; grid-template-columns: 1fr auto; }
  .stage-foot .foot-center { display: none; }
  .tag { padding: 6px 9px; translate: -50% calc(-100% - 22px); }
  .tag.is-below { translate: -50% 22px; }
  .tag::after { height: 22px; }
  .tag::before { top: calc(100% + 20px); }
  .tag.is-below::before { top: auto; bottom: calc(100% + 20px); }
  .tag-text small { display: none; }
  .tag-text b { font-size: 12px; }
  .about { grid-template-columns: 1fr; }
  .beta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .brand-text small { display: none; }
  .site-nav a:not(.nav-contact):not(.language-switch) { display: none; }
  .process li { grid-template-columns: 40px 1fr; }
  .process li p { grid-column: 2; }
  .tag-text { display: none; }
  .tag { padding: 5px 7px; }
  .stage-foot .foot-hint { display: none; }
  .segmented { gap: 2px; padding: 4px; }
  .segmented button { padding: 0 9px; font-size: 12px; gap: 6px; height: 34px; }
  .segmented svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
