/* Giriş yapmamış ziyaretçinin gördüğü tanıtım sayfası: yerleşim + her modüle
   özel animasyon. Yalnız bu sayfada yüklenir; dış kütüphane yoktur.

   Kural: temel (animasyonsuz) görünüm, animasyonun BİTMİŞ hâlidir. Keyframe'ler
   hep "yok"tan başlayıp bitmiş hâle gelir. Böylece prefers-reduced-motion ile
   animasyonlar kapatıldığında sahne doğru ve tamamlanmış görünür. */

/* Sınav Modülü ana paneli ile aynı içerik genişliği: oturum içi app-rail +
   modül menüsü kadar yer düşülür (landing'de bu krom yok). */
.orion-landing {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .orion-landing {
    max-width: calc(100% - var(--orion-rail-w) - var(--orion-sidebar-w));
  }
}

.orion-landing-panel {
  padding: 1.15rem 1.25rem 0.9rem;
}

/* ---------------------------------------------------------------- hero -- */

.orion-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 0 0 1rem;
  margin: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--orion-border);
}

/* Arkada yavaşça nefes alan yumuşak ışık. */
.orion-landing-hero::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 28%;
  width: 22rem;
  height: 22rem;
  margin-left: -11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, rgba(0, 120, 212, 0) 68%);
  animation: ola-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ola-breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 1; }
}

.orion-landing-hero > * {
  position: relative;
}

.orion-landing-logo {
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: min(100%, 360px);
  object-fit: contain;
  margin: 0 0 0.65rem;
  display: block;
}

.orion-landing-logo.orion-brand-wordmark {
  justify-content: flex-start;
  font-size: 1.7rem;
  height: auto;
  line-height: 1.1;
}

.orion-landing-title {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--orion-text);
}

.orion-landing-tagline {
  margin: 0.25rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  color: var(--orion-text);
}

.orion-landing-lead {
  margin: 0.4rem 0 0;
  max-width: 54rem;
  color: var(--orion-text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.orion-landing-cta {
  margin-top: 0.85rem;
}

.orion-landing-cta .btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.orion-landing-cta .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 120, 212, 0.32);
}

.orion-landing-hint {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--orion-text-secondary);
}

/* Sayfa açılışında sırayla beliren hero satırları. */
.orion-landing-hero .orion-landing-logo,
.orion-landing-hero .orion-landing-title,
.orion-landing-hero .orion-landing-tagline,
.orion-landing-hero .orion-landing-lead,
.orion-landing-hero .orion-landing-cta,
.orion-landing-hero .orion-landing-hint {
  animation: ola-enter 0.55s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}

.orion-landing-hero .orion-landing-title { animation-delay: 0.08s; }
.orion-landing-hero .orion-landing-tagline { animation-delay: 0.16s; }
.orion-landing-hero .orion-landing-lead { animation-delay: 0.24s; }
.orion-landing-hero .orion-landing-cta { animation-delay: 0.32s; }
.orion-landing-hero .orion-landing-hint { animation-delay: 0.4s; }

@keyframes ola-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------- modül çarkı -- */

.orion-landing-hub-wrap {
  margin: 0;
  text-align: center;
  min-width: 0;
}

.orion-landing-section-title-center {
  text-align: center;
  margin-top: 0;
}

.orion-landing-hub {
  position: relative;
  width: min(17.5rem, 38vw);
  aspect-ratio: 1;
  margin: 0.15rem auto 0;
}

.orion-landing-hub-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orion-landing-hub-links line {
  stroke: var(--orion-border-strong);
  stroke-width: 0.6;
  stroke-linecap: round;
}

/* Merkez ve çevresindeki halka */
.orion-landing-hub-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--orion-surface);
  border: 1px solid var(--orion-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.orion-landing-hub-core-text {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orion-blue);
  text-align: center;
  line-height: 1.15;
  padding: 0 8%;
}

.orion-landing-hub-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px dashed var(--orion-blue-soft);
  animation: ola-spin 34s linear infinite;
}

@keyframes ola-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Modül düğümleri: sırayla belirir, sonra hafifçe süzülür. */
.orion-landing-hub-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2.65rem;
  height: 2.65rem;
  margin: -1.325rem 0 0 -1.325rem;
  border-radius: 50%;
  background: var(--orion-surface);
  border: 2px solid var(--ola);
  color: var(--ola);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.09);
  z-index: 2;
  animation: ola-node-in 0.6s cubic-bezier(0.34, 1.45, 0.5, 1) both,
             ola-float 4.5s ease-in-out infinite;
}

@keyframes ola-node-in {
  from { opacity: 0; transform: scale(0.2); }
  to { opacity: 1; transform: none; }
}

@keyframes ola-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.orion-landing-hub-node:nth-of-type(1) { animation-delay: 0.55s, 0.9s; }
.orion-landing-hub-node:nth-of-type(2) { animation-delay: 0.7s, 1.4s; }
.orion-landing-hub-node:nth-of-type(3) { animation-delay: 0.85s, 1.9s; }
.orion-landing-hub-node:nth-of-type(4) { animation-delay: 1s, 2.4s; }
.orion-landing-hub-node:nth-of-type(5) { animation-delay: 1.15s, 2.9s; }
.orion-landing-hub-node:nth-of-type(6) { animation-delay: 1.3s, 3.4s; }

.ola-a-link {
  stroke-dasharray: 16;
  stroke-dashoffset: 0;
  animation: ola-link 0.5s ease-out both;
}

@keyframes ola-link {
  from { stroke-dashoffset: 16; }
  to { stroke-dashoffset: 0; }
}

.ola-a-link:nth-of-type(1) { animation-delay: 0.45s; }
.ola-a-link:nth-of-type(2) { animation-delay: 0.6s; }
.ola-a-link:nth-of-type(3) { animation-delay: 0.75s; }
.ola-a-link:nth-of-type(4) { animation-delay: 0.9s; }
.ola-a-link:nth-of-type(5) { animation-delay: 1.05s; }
.ola-a-link:nth-of-type(6) { animation-delay: 1.2s; }

/* ------------------------------------------------------------- kartlar -- */

.orion-landing-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orion-text-secondary);
  margin: 0.95rem 0 0.5rem;
}

.orion-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.orion-landing-feature {
  --ola: var(--orion-blue);
  --ola-soft: rgba(0, 120, 212, 0.14);
  --ola-bg: rgba(0, 120, 212, 0.05);
  padding: 0.6rem 0.65rem 0.75rem;
  border: 1px solid var(--orion-border);
  border-radius: var(--orion-radius);
  background: var(--orion-surface);
  animation: ola-enter 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) both;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.orion-landing-feature:nth-child(1) { animation-delay: 0.44s; }
.orion-landing-feature:nth-child(2) { animation-delay: 0.5s; }
.orion-landing-feature:nth-child(3) { animation-delay: 0.56s; }
.orion-landing-feature:nth-child(4) { animation-delay: 0.62s; }
.orion-landing-feature:nth-child(5) { animation-delay: 0.68s; }
.orion-landing-feature:nth-child(6) { animation-delay: 0.74s; }

.orion-landing-feature:hover {
  border-color: var(--ola);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.orion-landing-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--orion-text);
}

.orion-landing-feature-text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--orion-text-secondary);
}

.orion-landing-foot {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--orion-text-secondary);
}

.orion-landing-foot a {
  color: var(--orion-text-secondary);
  text-decoration: none;
}

.orion-landing-foot .orion-brand-byline-name {
  font-weight: 700;
}

.orion-landing-foot a:hover {
  text-decoration: underline;
}

.orion-landing-foot-sep {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* ---------------------------------------------------- animasyon sahnesi -- */

.orion-landing-anim {
  border-radius: 6px;
  background: var(--ola-bg);
  overflow: hidden;
  margin-bottom: 0.5rem;
  line-height: 0;
}

.orion-landing-anim svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Ortak parçalar */
.ola-sheet { fill: #fff; stroke: rgba(0, 0, 0, 0.1); stroke-width: 1.4; }
.ola-track { fill: rgba(0, 0, 0, 0.08); }
.ola-line { fill: rgba(0, 0, 0, 0.12); }
.ola-accent { fill: var(--ola); }
.ola-accent-soft { fill: var(--ola-soft); }
.ola-stroke { fill: none; stroke: var(--ola); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* SVG içi dönüşümler kendi kutusuna göre hesaplanır. */
.orion-landing-anim [class*="ola-a-"] {
  transform-box: fill-box;
}

/* Modül renkleri */
.ola-exam { --ola: #0078d4; --ola-soft: rgba(0, 120, 212, 0.16); --ola-bg: rgba(0, 120, 212, 0.05); }
.ola-report { --ola: #107c10; --ola-soft: rgba(16, 124, 16, 0.16); --ola-bg: rgba(16, 124, 16, 0.05); }
.ola-automation { --ola: #b146c2; --ola-soft: rgba(177, 70, 194, 0.16); --ola-bg: rgba(177, 70, 194, 0.05); }
.ola-bank { --ola: #ca5010; --ola-soft: rgba(202, 80, 16, 0.16); --ola-bg: rgba(202, 80, 16, 0.05); }
.ola-timetable { --ola: #038387; --ola-soft: rgba(3, 131, 135, 0.16); --ola-bg: rgba(3, 131, 135, 0.05); }
.ola-iam { --ola: #5b5fc7; --ola-soft: rgba(91, 95, 199, 0.16); --ola-bg: rgba(91, 95, 199, 0.05); }

/* 1 ▸ Sınav: optik formdaki kabarcıklar sırayla dolar, sonra puan onayı gelir. */
.ola-a-bubble {
  transform-origin: center;
  animation: ola-bubble 5s ease-in-out infinite;
}

@keyframes ola-bubble {
  0%, 6% { opacity: 0; transform: scale(0.3); }
  14%, 82% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.3); }
}

.ola-a-bubble:nth-of-type(1) { animation-delay: 0s; }
.ola-a-bubble:nth-of-type(2) { animation-delay: 0.35s; }
.ola-a-bubble:nth-of-type(3) { animation-delay: 0.7s; }
.ola-a-bubble:nth-of-type(4) { animation-delay: 1.05s; }

.ola-a-check {
  stroke-dasharray: 30;
  stroke-dashoffset: 0;
  animation: ola-check 5s ease-in-out infinite;
}

@keyframes ola-check {
  0%, 34% { stroke-dashoffset: 30; opacity: 0; }
  36% { opacity: 1; }
  48%, 84% { stroke-dashoffset: 0; opacity: 1; }
  92%, 100% { stroke-dashoffset: 30; opacity: 0; }
}

.ola-a-scan {
  animation: ola-scan 5s ease-in-out infinite;
}

@keyframes ola-scan {
  0%, 4% { opacity: 0; transform: translateY(0); }
  10% { opacity: 0.85; }
  46% { opacity: 0.85; transform: translateY(52px); }
  54%, 100% { opacity: 0; transform: translateY(52px); }
}

/* 2 ▸ Karne: çubuklar yükselir, üstünden eğilim çizgisi geçer. */
.ola-a-bar {
  transform-origin: bottom;
  animation: ola-bar 5s cubic-bezier(0.34, 1.3, 0.5, 1) infinite;
}

@keyframes ola-bar {
  0%, 6% { transform: scaleY(0.04); }
  30%, 84% { transform: scaleY(1); }
  94%, 100% { transform: scaleY(0.04); }
}

.ola-a-bar:nth-of-type(1) { animation-delay: 0s; }
.ola-a-bar:nth-of-type(2) { animation-delay: 0.12s; }
.ola-a-bar:nth-of-type(3) { animation-delay: 0.24s; }
.ola-a-bar:nth-of-type(4) { animation-delay: 0.36s; }
.ola-a-bar:nth-of-type(5) { animation-delay: 0.48s; }

.ola-a-trend {
  stroke-dasharray: 150;
  stroke-dashoffset: 0;
  animation: ola-trend 5s ease-in-out infinite;
}

@keyframes ola-trend {
  0%, 24% { stroke-dashoffset: 150; }
  55%, 86% { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: 150; }
}

/* 3 ▸ Otomasyon: taksitler sırayla onaylanır, tahsilat çubuğu dolar. */
.ola-a-tick {
  transform-origin: center;
  animation: ola-tick 5s cubic-bezier(0.34, 1.5, 0.5, 1) infinite;
}

@keyframes ola-tick {
  0%, 10% { opacity: 0; transform: scale(0.2); }
  22%, 84% { opacity: 1; transform: scale(1); }
  93%, 100% { opacity: 0; transform: scale(0.2); }
}

.ola-a-tick:nth-of-type(1) { animation-delay: 0s; }
.ola-a-tick:nth-of-type(2) { animation-delay: 0.5s; }
.ola-a-tick:nth-of-type(3) { animation-delay: 1s; }

.ola-a-fill {
  transform-origin: left;
  animation: ola-fill 5s ease-in-out infinite;
}

@keyframes ola-fill {
  0%, 8% { transform: scaleX(0); }
  20% { transform: scaleX(0.34); }
  40% { transform: scaleX(0.67); }
  60%, 86% { transform: scaleX(1); }
  95%, 100% { transform: scaleX(0); }
}

/* 4 ▸ Soru bankası: sorular havuzdan kitapçığa uçar. */
.ola-a-card {
  animation: ola-card 5s cubic-bezier(0.3, 0.9, 0.3, 1) infinite;
}

@keyframes ola-card {
  0%, 8% { opacity: 0; transform: translate(-58px, 14px) scale(0.8); }
  20% { opacity: 1; }
  46%, 84% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: translate(-58px, 14px) scale(0.8); }
}

.ola-a-card:nth-of-type(1) { animation-delay: 0s; }
.ola-a-card:nth-of-type(2) { animation-delay: 0.4s; }
.ola-a-card:nth-of-type(3) { animation-delay: 0.8s; }

.ola-a-pool {
  transform-origin: center;
  animation: ola-pool 5s ease-in-out infinite;
}

@keyframes ola-pool {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 5 ▸ Ders programı: bloklar boş ızgaraya sırayla oturur. */
.ola-a-slot {
  transform-origin: center;
  animation: ola-slot 5s cubic-bezier(0.34, 1.45, 0.5, 1) infinite;
}

@keyframes ola-slot {
  0%, 8% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
  20%, 84% { opacity: 1; transform: none; }
  93%, 100% { opacity: 0; transform: scale(0.2) rotate(-12deg); }
}

.ola-a-slot:nth-of-type(1) { animation-delay: 0s; }
.ola-a-slot:nth-of-type(2) { animation-delay: 0.22s; }
.ola-a-slot:nth-of-type(3) { animation-delay: 0.44s; }
.ola-a-slot:nth-of-type(4) { animation-delay: 0.66s; }
.ola-a-slot:nth-of-type(5) { animation-delay: 0.88s; }
.ola-a-slot:nth-of-type(6) { animation-delay: 1.1s; }

/* 6 ▸ Yetki: kalkan çizilir, kilit kapanır, koruma dalgası yayılır. */
.ola-a-shield {
  stroke-dasharray: 210;
  stroke-dashoffset: 0;
  animation: ola-shield 5s ease-in-out infinite;
}

@keyframes ola-shield {
  0%, 4% { stroke-dashoffset: 210; }
  40%, 86% { stroke-dashoffset: 0; }
  96%, 100% { stroke-dashoffset: 210; }
}

.ola-a-shackle {
  transform-origin: bottom;
  animation: ola-shackle 5s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}

@keyframes ola-shackle {
  0%, 42% { opacity: 0; transform: translateY(-7px) scaleY(0.3); }
  56%, 86% { opacity: 1; transform: none; }
  95%, 100% { opacity: 0; transform: translateY(-7px) scaleY(0.3); }
}

.ola-a-body {
  transform-origin: center;
  animation: ola-tick 5s cubic-bezier(0.34, 1.5, 0.5, 1) infinite;
  animation-delay: 0.9s;
}

.ola-a-wave {
  transform-origin: center;
  opacity: 0;
  animation: ola-wave 5s ease-out infinite;
}

@keyframes ola-wave {
  0%, 58% { opacity: 0; transform: scale(0.6); }
  64% { opacity: 0.55; }
  86%, 100% { opacity: 0; transform: scale(1.35); }
}

/* --------------------------------------------------------------- uyum -- */

@media (max-width: 991.98px) {
  .orion-landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .orion-landing-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .orion-landing-logo.orion-brand-wordmark {
    justify-content: center;
  }

  .orion-landing-tagline,
  .orion-landing-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .orion-landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orion-landing-hub {
    width: min(16rem, 100%);
  }
}

@media (max-width: 575.98px) {
  .orion-landing-panel {
    padding: 0.9rem 0.85rem 0.75rem;
  }

  .orion-landing-hero {
    padding-bottom: 0.85rem;
  }

  .orion-landing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .orion-landing-hub {
    width: min(14.5rem, 100%);
  }

  .orion-landing-logo {
    max-height: 40px;
    height: auto;
  }

  .orion-landing-logo.orion-brand-wordmark {
    font-size: 1.45rem;
  }

  .orion-landing-title {
    font-size: 1.2rem;
  }
}

/* Hareket azaltma tercihi: her şey bitmiş hâliyle, sabit durur. */
@media (prefers-reduced-motion: reduce) {
  .orion-landing-hero::before,
  .orion-landing-hero > *,
  .orion-landing-feature,
  .orion-landing-hub-ring,
  .orion-landing-hub-node,
  .orion-landing-anim [class*="ola-a-"],
  .orion-landing-hub [class*="ola-a-"] {
    animation: none !important;
  }

  .ola-a-wave {
    opacity: 0.35;
  }
}
