/* ==========================================================================
   Oyster — Bileşenler (Components)
   Buton, header, footer, kart, rozet, hero arka planı, animasyonlar
   ========================================================================== */

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t-fast),
    color var(--t-fast);
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-sunrise);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 122, 26, 0.42);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--oyster-orange);
  color: var(--oyster-orange-dark);
  transform: translateY(-2px);
}

.btn--light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.12rem;
}

/* App Store rozet butonu */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--space-navy);
  color: #fff;
  padding: 10px 22px;
  border-radius: 14px;
  transition: transform var(--t), box-shadow var(--t);
  box-shadow: var(--shadow-sm);
}

.store-badge:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-badge__icon {
  height: 24px;
  width: auto;
  flex: none;
}

.store-badge .store-badge__small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 2px;
}

.store-badge .store-badge__big {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1;
}

.store-badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 242, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand__logo {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 10px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}

.nav__menu a:hover,
.nav__menu a[aria-current="page"] {
  background: rgba(255, 122, 26, 0.1);
  color: var(--oyster-orange-dark);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dil değiştirici */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-switch a {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.lang-switch a[aria-current="true"] {
  background: var(--oyster-orange);
  color: #fff;
}

/* Mobil menü butonu */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: var(--t);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 940px) {
  .nav__toggle {
    display: flex;
  }
  .nav__menu {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--cloud-soft);
    padding: 16px 24px 28px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform var(--t);
  }
  .nav__menu.is-open {
    transform: translateY(0);
  }
  .nav__menu a {
    padding: 13px 14px;
    font-size: 1.1rem;
  }
}

/* ---------- Kartlar ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 122, 26, 0.12);
  font-size: 1.8rem;
  margin-bottom: 18px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Kitle kartı (renkli üst şerit) */
.audience-card {
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: var(--grad-sunrise);
}

.audience-card__list {
  list-style: none;
  margin: 16px 0 24px;
  padding: 0;
}

.audience-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.audience-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success);
  font-weight: 800;
}

/* ---------- Rozet / istatistik ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 209, 102, 0.18);
  color: var(--oyster-orange-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 7px 16px;
  border-radius: 999px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: var(--grad-sunrise);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.stat__label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grad-space);
  color: #fff;
  padding: clamp(70px, 11vw, 130px) 0 clamp(90px, 14vw, 160px);
  overflow: hidden;
}

.hero h1,
.hero h2 {
  color: #fff;
}

.hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  max-width: 540px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero__planet {
  width: clamp(220px, 30vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 68% 64%, rgba(120, 50, 0, 0.18) 0 7%, transparent 8%),
    radial-gradient(circle at 40% 76%, rgba(120, 50, 0, 0.14) 0 4.5%, transparent 5.5%),
    radial-gradient(circle at 58% 38%, rgba(120, 50, 0, 0.1) 0 3.5%, transparent 4.5%),
    radial-gradient(circle at 32% 30%, #ffb066, #ff7a1a 55%, #e9650a);
  box-shadow: 0 0 0 18px rgba(255, 122, 26, 0.12),
    0 30px 70px rgba(255, 122, 26, 0.45);
  position: relative;
  z-index: 2;
}

/* Saturn benzeri ince halka */
.hero__planet::after {
  content: "";
  position: absolute;
  inset: -22% -34%;
  border-radius: 50%;
  border: 3px solid rgba(255, 209, 102, 0.5);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(28deg);
  pointer-events: none;
}

/* Yörünge + uydu */
.hero__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(300px, 42vw, 470px);
  aspect-ratio: 1;
  margin: 0;
  translate: -50% -50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  z-index: 1;
  animation: spin 24s linear infinite;
}

.hero__moon {
  position: absolute;
  top: -16px;
  left: 50%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff, #d7dcff 58%, #9aa6e6);
  box-shadow: 0 0 20px rgba(180, 200, 255, 0.65);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Yüzen matematik sembolleri */
.hero__chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: var(--shadow-sm);
  animation: float 6s ease-in-out infinite;
}

.hero__chip--a {
  top: 6%;
  left: 2%;
  color: var(--star-gold);
  animation-delay: 0.2s;
}
.hero__chip--b {
  bottom: 10%;
  left: 8%;
  animation-delay: 1.4s;
}
.hero__chip--c {
  top: 24%;
  right: 0;
  color: var(--star-gold);
  animation-delay: 0.8s;
}

@media (max-width: 860px) {
  .hero__visual {
    margin-top: 12px;
    min-height: 300px;
  }
  .hero__chip {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__cta {
    justify-content: center;
  }
}

/* Bulutlar + yıldızlar */
.stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 70% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(2px 2px at 85% 60%, #ffd166, transparent),
    radial-gradient(1.5px 1.5px at 55% 45%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, #fff, transparent);
  opacity: 0.7;
  animation: twinkle 4s ease-in-out infinite alternate;
  z-index: 1;
}

@keyframes twinkle {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 0.85;
  }
}

.cloud {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.cloud svg {
  width: 100%;
  height: auto;
  display: block;
}

.float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* ---------- Sınıf seçici (gezegen durakları) ---------- */
.grade-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 700px) {
  .grade-picker {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grade-card {
  display: block;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 18px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t-fast);
}

.grade-card:hover {
  transform: translateY(-6px);
  border-color: var(--oyster-orange);
  box-shadow: var(--shadow);
}

.grade-card__planet {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}

.grade-card:nth-child(1) .grade-card__planet {
  background: linear-gradient(135deg, #ff9d4d, #ff7a1a);
}
.grade-card:nth-child(2) .grade-card__planet {
  background: linear-gradient(135deg, #ffd166, #ff9d4d);
}
.grade-card:nth-child(3) .grade-card__planet {
  background: linear-gradient(135deg, #6c8cff, #4a5fd6);
}
.grade-card:nth-child(4) .grade-card__planet {
  background: linear-gradient(135deg, #b388ff, #7c4dff);
}

.grade-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.grade-card span {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- Adım / metod ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 28px 84px;
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 28px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-sunrise);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-orange);
}

/* ---------- CTA bandı ---------- */
.cta-band {
  background: var(--grad-sunrise);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 26px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--space-navy);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 820px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer__col h4 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.96rem;
}

.footer__col a:hover {
  color: var(--star-gold);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

/* ---------- Fiyat kartları ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .price-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.price-card.is-featured {
  border-color: var(--oyster-orange);
  box-shadow: var(--shadow-orange);
  position: relative;
}

.price-card.is-featured::before {
  content: attr(data-label);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-sunrise);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.price-card__price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--ink);
  line-height: 1.1;
}

.price-card__price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.price-card__list {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  flex: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
}

/* ---------- Form ---------- */
.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--oyster-orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}

/* ---------- Prose (yasal / blog metni) ---------- */
.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 1.6em;
}

.prose h3 {
  margin-top: 1.2em;
}

.prose ul {
  padding-left: 1.2em;
  color: var(--ink-soft);
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  text-decoration: underline;
}

/* ---------- Blog kartı ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  height: 100%;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.post-card__cover {
  aspect-ratio: 16 / 9;
  background: var(--grad-space);
  display: grid;
  place-items: center;
  font-size: 2.6rem;
}

.post-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card__tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--oyster-orange-dark);
  margin-bottom: 8px;
}

.post-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.post-card p {
  flex: 1;
}

/* ---------- Reveal animasyonu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}
