@font-face {
  font-family: 'Comfortaa';
  src: url('../assets/fonts/comfortaa-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Comfortaa';
  src: url('../assets/fonts/comfortaa-latin-ext.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-latin-ext.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
  unicode-range: U+0100-0130, U+0132-0151, U+0154-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #00134c;
  --navy-deep: #000a2c;
  --blue: #0068ff;
  --blue-soft: #6fa6ff;
  --mist: #eef1f2;
  --white: #ffffff;
  --text: #eef1f2;
  --muted: rgba(238, 241, 242, 0.68);
  --line: rgba(238, 241, 242, 0.14);
  --glass: rgba(4, 22, 82, 0.5);
  --gutter: clamp(20px, 5vw, 72px);
  --display: 'Comfortaa', 'Nunito Sans', system-ui, sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 4px; border-radius: 6px; }

/* ---------- arka plan katmanları ---------- */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.fallback-art {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    url('../assets/emblem.svg') no-repeat right 12% center / auto 52vh,
    radial-gradient(60% 60% at 72% 50%, #0a3aa8 0%, transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.no-webgl #scene { display: none; }
.no-webgl .fallback-art { display: block; }

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 104, 255, 0.16) 0%, transparent 62%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- yükleme ekranı ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: var(--navy);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.js .preloader { display: grid; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s var(--ease) forwards;
}
.preloader path + path { animation-delay: 0.18s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- üst çubuk ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 28px) var(--gutter);
}
.brand img { display: block; height: clamp(34px, 4vw, 46px); width: auto; }
.nav-right { display: flex; align-items: center; gap: clamp(12px, 2vw, 24px); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7);
  animation: ping 2s infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(0, 104, 255, 0); } }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.lang a {
  display: inline-block;
  text-align: center;
  min-width: 44px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.35s var(--ease), color 0.35s;
}
.lang a[aria-current='true'] { background: var(--blue); color: var(--white); }

/* ---------- bölüm noktaları ---------- */

.dots {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  z-index: 20;
  display: grid;
  gap: 6px;
  transform: translateY(-50%);
}
.dots a { display: grid; place-items: center; width: 24px; height: 24px; }
.dots a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  transition: height 0.4s var(--ease), background 0.4s;
}
.dots a.active::before { height: 22px; background: var(--blue); }

/* ---------- ortak bölüm düzeni ---------- */

main { position: relative; z-index: 2; }

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(96px, 14vh, 140px) var(--gutter) clamp(64px, 10vh, 96px);
}

.eyebrow {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 10, 44, 0.9);
}

.lead { text-shadow: 0 1px 14px rgba(0, 10, 44, 0.9); color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 34em; text-wrap: pretty; }

/* dil değişim geçişi */
[data-i18n] { transition: opacity 0.26s ease, filter 0.26s ease; }
.lang-switching [data-i18n] { opacity: 0; filter: blur(8px); }

/* ---------- açılış ---------- */

.hero-inner { width: min(100%, 620px); display: grid; gap: clamp(16px, 2.4vh, 26px); }

.title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(0, 104, 255, 0.55);
  perspective: 600px;
}
.title .word { display: inline-block; white-space: nowrap; }
.title .char { display: inline-block; transform-origin: 50% 100%; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  margin-top: clamp(4px, 1vh, 12px);
  max-width: 540px;
}
.cd-unit {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: clamp(12px, 1.8vw, 20px) 6px clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  backdrop-filter: blur(14px);
}
.cd-num {
  position: relative;
  display: block;
  width: 100%;
  height: 1.15em;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.15;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cd-digit {
  position: absolute;
  inset: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.cd-digit.enter { transform: translateY(70%); opacity: 0; }
.cd-digit.leave { transform: translateY(-70%); opacity: 0; }
.cd-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--blue-soft);
}
.launch { font-size: 14px; letter-spacing: 0.06em; color: var(--muted); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue i {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blue-soft);
  transform: translateX(-100%);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 60%, 100% { transform: translateX(100%); } }

/* ---------- hizmetler ---------- */

.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/emblem.svg') 0 0 / 92px auto;
  opacity: 0.035;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}
.services-inner { position: relative; width: min(100%, 1180px); margin: 0 auto; display: grid; gap: 18px; }
.services h2 { max-width: 16em; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(16px, 4vh, 40px);
  perspective: 1200px;
}
.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(240px circle at var(--mx) var(--my), rgba(0, 104, 255, 0.28), transparent 70%),
    var(--glass);
  backdrop-filter: blur(16px);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease), border-color 0.4s;
  will-change: transform;
}
.card:hover { border-color: rgba(111, 166, 255, 0.55); }
.card-no {
  position: absolute;
  top: 18px;
  right: 20px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.card-icon, .link svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--blue-soft);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-top: 10px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }
.card p { color: var(--muted); font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags li {
  padding: 4px 10px;
  border: 1px solid rgba(111, 166, 255, 0.4);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-soft);
}

/* ---------- iletişim ---------- */

.contact { justify-content: flex-end; }
.contact-inner { width: min(100%, 680px); display: grid; gap: 18px; }

.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(8px, 2vh, 20px); }
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
  will-change: transform;
}
.link:hover { border-color: rgba(111, 166, 255, 0.6); background: rgba(0, 104, 255, 0.22); }
.link svg { flex: none; width: 30px; height: 30px; }
.link span { display: grid; min-width: 0; }
.link small { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.link b { font-family: var(--display); font-weight: 600; font-size: 0.98rem; overflow-wrap: anywhere; }

.footer { margin-top: clamp(16px, 4vh, 40px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- duyarlı düzen ---------- */

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .status { display: none; }
  .dots { display: none; }
  .cards { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .cursor-glow { display: none; }
}

/* Dikey ekran: amblem üstte durur, içerik altına yerleşir. */
@media (max-aspect-ratio: 21/20) {
  .hero, .contact { align-items: flex-end; justify-content: flex-start; }
  .hero { padding-top: 46vh; padding-top: 46svh; }
  .contact { padding-top: 30vh; padding-top: 30svh; }
  .fallback-art { background-position: center 16%, center, center; background-size: auto 26vh, auto, auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .preloader { display: none !important; }
  .cursor-glow { display: none; }
}
