/* Fallback theme tokens if Tailwind @theme fails to load */
.bg-ink { background-color: #0f172a; }
.text-ink { color: #0f172a; }
.bg-brand { background-color: #0f766e; }
.text-brand { color: #0f766e; }
.text-signal { color: #e11d48; }
.hover\:bg-brand:hover { background-color: #0f766e; }
.hover\:text-brand:hover { color: #0f766e; }
.ring-brand\/40 { --tw-ring-color: rgb(15 118 110 / 0.4); }

/* Custom layer on top of Tailwind 4 */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.mesh-bg {
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(13, 148, 136, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(14, 165, 233, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(225, 29, 72, 0.06), transparent 55%),
    #f4f7fb;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #0e0f12 0%, #171a22 45%, #121820 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 70%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: heroDrift 12s ease-in-out infinite;
}

.hero-orb-a {
  width: 420px;
  height: 420px;
  background: rgba(15, 118, 110, 0.32);
  top: -10%;
  right: 5%;
}

.hero-orb-b {
  width: 320px;
  height: 320px;
  background: rgba(225, 29, 72, 0.18);
  bottom: -5%;
  left: 8%;
  animation-delay: -5s;
}

@keyframes heroDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero-layout {
  touch-action: pan-y;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-visual {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
}

.hero-stage-devices {
  position: relative;
  padding: 0 2.2rem 1rem 0;
}

.browser-frame {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #1a1d24;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.3s ease;
}

.browser-frame:hover {
  transform: perspective(1400px) rotateY(-4deg) rotateX(2deg) translateY(-4px);
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

.browser-frame__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.browser-frame__bar i:first-child { background: #ff5f57; }
.browser-frame__bar i:nth-child(2) { background: #febc2e; }
.browser-frame__bar i:nth-child(3) { background: #28c840; }

.browser-frame__bar span {
  margin-left: 0.45rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__screen {
  aspect-ratio: 16 / 10;
  background: #0a0b0e;
}

.browser-frame__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: min(34%, 148px);
  padding: 10px 8px 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a1d24;
  box-shadow:
    0 28px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: perspective(1200px) rotateY(-8deg) rotateX(2deg);
  transition: transform 0.3s ease;
}

.hero-phone:hover {
  transform: perspective(1200px) rotateY(-5deg) rotateX(1deg) translateY(-6px);
}

.hero-phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 38%;
  height: 8px;
  border-radius: 999px;
  background: #0a0b0e;
  transform: translateX(-50%);
}

.hero-phone__screen {
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border-radius: 18px;
  background: #0a0b0e;
}

.hero-phone__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.hero-new-badge.is-hidden {
  display: none;
}

.hero-new-badge__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #fb7185;
  box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55);
  animation: heroNewPulse 1.6s ease-out infinite;
}

.hero-new-badge__text {
  animation: heroNewShine 2.4s ease-in-out infinite;
}

@keyframes heroNewPulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(251, 113, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}

@keyframes heroNewShine {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(255, 255, 255, 0.35); }
}

.hero-alt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12rem;
  padding: 0.25rem 0;
}

.hero-alt__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.9);
}

.hero-alt__title {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-alt__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-alt__list li {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-alt__list strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.hero-alt__list span {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.72);
}

.hero-stage.is-broadcast .hero-orb-a {
  background: rgba(14, 165, 233, 0.22);
}

.hero-stage.is-broadcast .hero-orb-b {
  background: rgba(15, 118, 110, 0.28);
}

.hero-switcher {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  width: 100%;
  max-width: 40rem;
  z-index: 3;
}

@media (min-width: 480px) {
  .hero-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 48rem;
  }
}

.hero-tab {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.8rem 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero-tab.is-active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-tab-label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-tab-desc {
  font-size: 0.68rem;
  line-height: 1.25;
  color: rgba(226, 232, 240, 0.75);
}

.hero-tab-bar {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-tab-progress {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transform-origin: left center;
}

.hero-tab.is-active .hero-tab-progress {
  animation: heroProgress 7s linear forwards;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Mobile-first hero refinements */
@media (max-width: 1023px) {
  .hero-stage {
    min-height: 100svh;
  }

  .hero-layout {
    min-height: 100svh;
    gap: 1.1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .hero-switcher { order: 3; margin-top: auto; }

  .hero-visual {
    max-width: none;
  }

  .hero-stage-devices {
    padding: 0 1.35rem 0.35rem 0;
    max-width: 22rem;
    margin-inline: auto;
  }

  .browser-frame {
    border-radius: 14px;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  }

  .browser-frame:hover {
    transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) translateY(-2px);
  }

  .browser-frame__bar {
    padding: 0.55rem 0.7rem;
    font-size: 0.65rem;
  }

  .hero-phone {
    width: min(32%, 104px);
    padding: 7px 6px 8px;
    border-radius: 22px;
    transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  }

  .hero-phone__notch {
    top: 10px;
    height: 6px;
  }

  .hero-phone__screen {
    border-radius: 14px;
  }

  .hero-alt {
    min-height: 0;
    max-width: 26rem;
  }

  .hero-alt__title br {
    display: none;
  }

  .hero-alt__list li {
    padding: 0.65rem 0;
  }

  .hero-orb-a,
  .hero-orb-b {
    width: 240px;
    height: 240px;
    filter: blur(60px);
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-stage-devices {
    max-width: 28rem;
    padding-right: 1.8rem;
  }

  .hero-phone {
    width: min(30%, 124px);
  }

  .hero-tab-label { font-size: 0.95rem; }
  .hero-tab-desc { font-size: 0.78rem; }
}

@media (min-width: 1024px) {
  .hero-layout {
    display: grid;
  }

  .hero-copy,
  .hero-visual,
  .hero-switcher {
    order: unset;
  }

  .hero-switcher {
    grid-column: 1;
    margin-top: 2.25rem;
  }

  .hero-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .hero-tab {
    padding: 1rem 1.1rem 1.15rem;
  }

  .hero-tab-label { font-size: 0.95rem; }
  .hero-tab-desc { font-size: 0.8rem; }
  .hero-tab-bar { margin-top: 0.75rem; }

  .hero-alt {
    min-height: 18rem;
    padding: 1.75rem 0 1.75rem 0.25rem;
  }

  .hero-alt__list {
    margin-top: 1.75rem;
  }

  .hero-alt__list li {
    padding: 1rem 0;
  }

  .hero-alt__list strong { font-size: 1rem; }
  .hero-alt__list span { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .browser-frame,
  .hero-phone,
  .hero-tab-progress,
  .hero-new-badge__dot,
  .hero-new-badge__text {
    transition: none !important;
    animation: none !important;
  }
}

.glass-nav {
  background: rgba(244, 247, 251, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.glass-nav.is-solid {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.text-stroke {
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
  color: transparent;
}

.swiper-pagination-bullet {
  background: #94a3b8 !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: #0f766e !important;
  width: 22px !important;
  border-radius: 999px !important;
}

[data-animate] {
  opacity: 0;
  transform: translateY(28px);
}

.mobile-nav {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.is-open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* YouTube embeds — geniş, sabit oran */
.yt-gallery {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  grid-template-columns: 1fr;
}

iframe.yt-embed {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 480px !important;
  max-height: 480px !important;
  border: 0 !important;
  border-radius: 16px;
  background: #000;
}

@media (max-width: 900px) {
  iframe.yt-embed {
    height: 360px !important;
    max-height: 360px !important;
  }
}

@media (max-width: 620px) {
  iframe.yt-embed {
    height: 220px !important;
    max-height: 220px !important;
  }
}

/* Görseller galerisi — sabit grid, animasyon/swiper yok */
.img-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .img-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .img-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.img-gallery-item {
  overflow: hidden;
  border-radius: 1rem;
  background: #e2e8f0;
  height: 200px;
  max-height: 200px;
  cursor: zoom-in;
}

.img-gallery-item img {
  display: block !important;
  width: 100% !important;
  height: 200px !important;
  max-height: 200px !important;
  object-fit: cover !important;
  transform: none !important;
  transition: opacity 0.2s ease !important;
  animation: none !important;
}

.img-gallery-item:hover img {
  opacity: 0.9;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0f172a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
