/* ============================================================
   RAY Robotics — tek dosya stil
   Gamma sayfasının koyu temasının yeniden kurulmuş hâli.
   ============================================================ */

/* ---- koyu tema (varsayılan) ---- */
:root {
  color-scheme: dark;

  --bg:          #191919;
  --bg-alt:      #1e1e1e;
  --card:        #232323;
  --panel:       #2b2b2b;
  --border:      rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text:        #ededed;
  --text-strong: #ffffff;
  --muted:       #a9a9a9;
  --muted-dim:   #8a8a8a;

  --btn-bg:       #ffffff;
  --btn-bg-hover: #e9e9e9;
  --btn-fg:       #111111;
  --topbar-bg:    rgba(20, 20, 20, 0.82);
  --hero-fade:    rgba(25, 25, 25, 0.9);
  --icon:         #d0d0d0;
  --feature-title:#d6d6d6;
  --diamond-bg:   #333333;
  --quote-bar:    #6d6d6d;
  --quote-text:   #dedede;
  --ph-a:         #2e2e2e;
  --ph-b:         #232323;
  --ph-text:      #6d6d6d;
  --nf-code:      #2f2f2f;
  --focus:        #ffffff;

  --radius:      18px;
  --radius-sm:   12px;
  --wrap:        1180px;
  --topbar-h:    60px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- açık tema ---- */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:          #f7f7f8;
  --bg-alt:      #f1f1f3;
  --card:        #ffffff;
  --panel:       #f4f4f6;
  --border:      rgba(0, 0, 0, 0.14);
  --border-soft: rgba(0, 0, 0, 0.09);
  --text:        #26262a;
  --text-strong: #0e0e10;
  --muted:       #55555c;
  --muted-dim:   #7a7a82;

  --btn-bg:       #1b1b1f;
  --btn-bg-hover: #35353c;
  --btn-fg:       #ffffff;
  --topbar-bg:    rgba(255, 255, 255, 0.86);
  --hero-fade:    transparent;
  --icon:         #3b3b42;
  --feature-title:#26262a;
  --diamond-bg:   #e7e7ea;
  --quote-bar:    #c6c6cd;
  --quote-text:   #2a2a30;
  --ph-a:         #ececef;
  --ph-b:         #e1e1e6;
  --ph-text:      #8a8a92;
  --nf-code:      #e3e3e7;
  --focus:        #111111;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-strong); font-weight: 600; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: #fff;
  color: #111;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color 0.25s ease;
}

.topbar-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--text-strong);
  white-space: nowrap;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #0d0d12;
}

.nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14.5px;
}

/* ---- tema düğmesi (en sağ) ---- */

.theme-toggle {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.theme-toggle:hover {
  color: var(--text-strong);
  border-color: var(--muted-dim);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease;
}
.nav a:hover { color: var(--text-strong); }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}
.btn:hover { background: var(--btn-bg-hover); transform: translateY(-1px); }

.btn-sm { padding: 8px 17px; font-size: 13.5px; }

.icon-inline {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);

  background-color: #0b0b0e;
}

/* Zemin: takım logosu. Büyütmeden kaynaklı yumuşamayı gizlemek ve
   başlığın net okunması için hafif blur + karartma uygulanır. */
.hero::before {
  content: "";
  position: absolute;
  inset: -60px;
  background: url("assets/logo.jpeg") center / cover no-repeat;
  filter: blur(5px) brightness(0.62) saturate(1.15);
  transform: scale(1.04);
  pointer-events: none;
}

/* Metnin oturduğu taraf ekstra karartılır ki kontrast her ekranda yetsin. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 6, 9, 0.92) 0%, rgba(6, 6, 9, 0.72) 42%, rgba(6, 6, 9, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 30%, var(--hero-fade) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
  padding: 96px 28px;
}

.hero-eyebrow {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #dcdcdc;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  max-width: 15ch;
  margin-bottom: 22px;
  color: #e9e9e9;
}

/* hero her iki temada da koyu kalır; içindeki renkler temadan bağımsız */
.hero-sub {
  color: #a9a9a9;
  font-size: 15px;
  margin-bottom: 30px;
}

.hero .btn { background: #fff; color: #111; }
.hero .btn:hover { background: #e9e9e9; }

/* ---------------------------------------------------------- sections */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 60px 56px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.card h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-bottom: 26px;
}

.card h3.sub {
  font-size: 22px;
  margin: 44px 0 20px;
}

.lead {
  color: var(--muted);
  max-width: 78ch;
  margin-bottom: 34px;
}

/* Blok ortalanır, satırlar sola yaslı kalır — ortalanmış başlığın altında
   simetrik dursun ama metin okunaklı olsun. */
.prose {
  color: var(--muted);
  max-width: 78ch;
  margin-left: auto;
  margin-right: auto;
}

.closing {
  color: var(--muted);
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}

/* ---------------------------------------------------------- ortalama

   Bölüm başlıkları, kısa giriş metinleri ve kısa kartlar ortalanır.
   Uzun paragraflar (.prose, .closing, .panel, ikonlu .feature) sola yaslı
   kalır — ortalanmış uzun metin satır başlarını kaydırdığı için okumayı
   yavaşlatır.
   ------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.card > h2,
.card > h3.sub {
  text-align: center;
}

.card > .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* emoji'li kısa kartlar (Takım Kültürü + Katılmak İster Misin?) */
.feature-emoji { text-align: center; }

/* bölümü kapatan tek cümlelik ifade */
.closing-statement {
  text-align: center;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------------------------------------------------------- split + panel */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 30px 32px;
}

.panel h3 { font-size: 19px; margin-bottom: 20px; }
.panel p { color: var(--muted); font-size: 15px; }

.arrow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

.arrow-list li {
  position: relative;
  padding-left: 40px;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--text);
}

.arrow-list li::before {
  content: "→";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: inherit;
}

.facts { margin: 0 0 22px; display: grid; gap: 14px; }
.facts > div { display: flex; gap: 10px; font-size: 15px; }
.facts dt { color: var(--muted-dim); min-width: 82px; }
.facts dd { margin: 0; color: var(--text); font-weight: 500; }

.fine { font-size: 14px; color: var(--muted-dim); }

/* ---------------------------------------------------------- feature grids */

.grid-3, .grid-4 {
  display: grid;
  gap: 44px 40px;
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.feature h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--feature-title);
  margin: 16px 0 12px;
}

.feature p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.icon {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--icon);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emoji { font-size: 26px; margin: 0; line-height: 1; }
.feature-emoji h3 { margin-top: 14px; }

/* ---------------------------------------------------------- numbered list */

.numbered {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 80ch;
}

.numbered li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 15.5px;
}
.numbered li:last-child { border-bottom: 0; padding-bottom: 0; }

.num {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-dim);
  letter-spacing: 0.06em;
  flex: none;
  min-width: 26px;
}

/* ---------------------------------------------------------- stats */

.stats {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.stat { text-align: center; }

.stat-num {
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  line-height: 1;
}

.stat-label { font-size: 15px; font-weight: 500; margin: 0 0 4px; color: var(--text); }
.stat-sub   { font-size: 13.5px; color: var(--muted-dim); margin: 0; }

/* ---------------------------------------------------------- süreç görseli */

.flow {
  margin: 0;
  background: #141414;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Şema 1536×864; dar ekranlarda okunabilir kalması için yatay kaydırılır. */
.flow-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.flow img {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

/* ---------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--ph-a) 0%, var(--ph-b) 100%);
  border: 1px solid var(--border-soft);
  /* fotoğrafların çoğu dikey (1536×2048); dikey kutu yüzleri kırpmıyor */
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery figure:hover img { transform: scale(1.03); }

/* dosya henüz eklenmemişse kırık görsel ikonu yerine düzgün bir yer tutucu */
.gallery figure.img-missing img { display: none; }

.gallery figure.img-missing::after {
  content: "Görsel eklenecek";
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ph-text);
}

/* ---------------------------------------------------------- quote */

blockquote {
  margin: 0 0 34px;
  padding: 34px 40px;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-top: 3px solid var(--quote-bar);
  border-radius: var(--radius-sm);
  text-align: center;
}

blockquote p {
  margin: 0 auto;
  max-width: 62ch;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: var(--quote-text);
  font-weight: 500;
}

/* ---------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-alt);
  margin-top: 34px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 42px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: center;
}

.footer-logo {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #0d0d12;
}

.footer-logo-okul { background: #fff; }

.footer-copy { min-width: 0; }

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 14px;
  color: var(--text-strong);
  margin: 0 0 10px;
}

.footer-text { font-size: 14px; color: var(--muted-dim); margin: 0 0 6px; }
.footer-text a { color: var(--muted); text-decoration: none; }
.footer-text a:hover { color: var(--text-strong); text-decoration: underline; }

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split  { grid-template-columns: 1fr; gap: 30px; }
  .stats  { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 44px 36px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .topbar-inner { padding: 0 18px; gap: 14px; }
  .brand { margin-right: auto; }

  .hero { min-height: 460px; }
  .hero-inner { padding: 72px 20px; }
  .hero h1 { max-width: none; }

  .wrap { padding: 18px 14px; }
  .card { padding: 34px 22px; border-radius: 14px; }
  .card h2 { margin-bottom: 20px; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 34px; }
  .gallery { grid-template-columns: 1fr; }
  .panel { padding: 24px 22px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* footer: iki logo yan yana, yazı altta tam genişlik */
  .footer-inner {
    display: grid;
    grid-template-areas:
      "ray okul"
      "copy copy";
    justify-content: center;
    gap: 20px 24px;
    padding: 36px 18px;
  }
  .footer-logo      { grid-area: ray;  width: 60px; height: 60px; }
  .footer-logo-okul { grid-area: okul; }
  .footer-copy      { grid-area: copy; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .topbar, .skip { display: none; }
  body { background: #fff; color: #000; }
  .card, .panel, .flow { background: #fff; border-color: #ccc; }
  h1, h2, h3, strong { color: #000; }
  p, .lead, .prose { color: #333; }
}
