:root {
  --navy: #0b1f44;
  --navy-2: #12306a;
  --blue: #2f6bff;
  --orange: #ff8a1f;
  --ink: #0f172a;
  --muted: #5b6478;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(11, 31, 68, 0.08);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}

.brand b {
  color: var(--blue);
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--blue);
}

/* Buttons */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 138, 31, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(255, 138, 31, 0.45);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-ghost.dark {
  color: var(--navy);
  border-color: var(--line);
  background: #fff;
}

.btn-ghost.dark:hover {
  border-color: var(--blue);
}

.play-ico {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 10px 20px 10px 16px;
  border-radius: 12px;
  line-height: 1.1;
  font-size: 1.15rem;
  font-weight: 600;
  transition: transform 0.15s;
}

.btn-play .play-ico {
  width: 28px;
  height: 28px;
}

.btn-play small {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-play:hover {
  transform: translateY(-1px);
}

.btn-play.block {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(47, 107, 255, 0.45), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0 90px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd2a8;
  background: rgba(255, 138, 31, 0.14);
  border: 1px solid rgba(255, 138, 31, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero-text > p {
  font-size: 1.15rem;
  color: #c9d4ea;
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 40px;
}

.stats {
  display: flex;
  gap: 40px;
  margin: 0;
}

.stats div {
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  padding-left: 14px;
}

.stats dt {
  font-size: 1.8rem;
  font-weight: 800;
}

.stats dd {
  margin: 0;
  color: #a9b6d3;
  font-size: 0.9rem;
}

.hero-phones {
  position: relative;
  height: 520px;
}

.phone {
  position: absolute;
  width: 220px;
  border-radius: 30px;
  padding: 8px;
  background: #0a0f1d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 0 2px #2a3550;
}

.phone img {
  border-radius: 23px;
}

.phone-0 {
  left: 0;
  top: 60px;
  transform: rotate(-8deg);
}

.phone-1 {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
  width: 240px;
}

.phone-2 {
  right: 0;
  top: 60px;
  transform: rotate(8deg);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 680px;
  margin-bottom: 36px;
}

.section-head h2,
.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--navy);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.filter {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.filter span {
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.filter.active span {
  color: #a9b6d3;
}

/* App cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #c8d5f2;
}

.app-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.app-card-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(11, 31, 68, 0.12);
  flex: none;
}

.app-card h3 {
  font-size: 1.12rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.app-card > p {
  color: var(--muted);
  margin: 0 0 16px;
  flex: 1;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-2);
  background: #eef3ff;
  padding: 3px 9px;
  border-radius: 999px;
}

.star {
  width: 13px;
  height: 13px;
  fill: #f5a623;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips li {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink);
}

.app-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.more {
  font-weight: 600;
  color: var(--blue);
}

.mini-play {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #000;
  padding: 6px 12px;
  border-radius: 8px;
}

.mini-play .play-ico {
  width: 16px;
  height: 16px;
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.why-item h3 {
  font-size: 1.1rem;
  color: var(--navy);
}

.why-item p {
  color: var(--muted);
  margin: 0;
}

.why-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 18px;
  background: var(--m) center / 26px no-repeat, linear-gradient(135deg, var(--blue), var(--navy));
}

.ico-pdf {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l5 5v15H6zM13 2v6h6M9 13h7M9 17h7'/%3E%3C/svg%3E");
}

.ico-offline {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M2 8.5a15 15 0 0 1 20 0M5.5 12a10 10 0 0 1 13 0M9 15.5a5 5 0 0 1 6 0'/%3E%3Ccircle cx='12' cy='19' r='1.3' fill='white'/%3E%3Cpath d='M3 3l18 18'/%3E%3C/svg%3E");
}

.ico-lang {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2c3 3.2 3 16.8 0 20M12 2c-3 3.2-3 16.8 0 20'/%3E%3C/svg%3E");
}

.ico-lock {
  --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #eef3ff, #fff4ea);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px;
}

.contact p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* App detail page */
.app-hero {
  color: #fff;
  padding: 36px 0 44px;
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(47, 107, 255, 0.45), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--navy);
}

.crumbs {
  font-size: 0.88rem;
  color: #a9b6d3;
  margin-bottom: 28px;
}

.crumbs a {
  color: #dbe4f7;
}

.crumbs span {
  margin: 0 8px;
  opacity: 0.5;
}

.app-hero-inner {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.app-hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  flex: none;
}

.app-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 4px;
}

.store-name {
  margin: 0 0 12px;
  color: #a9b6d3;
  font-size: 0.92rem;
}

.tagline {
  font-size: 1.2rem;
  color: #dbe4f7;
  max-width: 640px;
  margin: 0 0 16px;
}

.app-hero .pill {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.app-hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.updated {
  color: #a9b6d3;
  font-size: 0.9rem;
}

.chips-light {
  margin: 32px 0 0;
}

.chips-light li {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 0.88rem;
  padding: 6px 12px;
}

.gallery-section {
  padding: 40px 0 0;
}

.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
}

.shot {
  flex: none;
  width: 220px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.shot:hover img {
  transform: translateY(-3px);
}

.detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.detail-main h2 {
  font-size: 1.7rem;
  color: var(--navy);
  margin-top: 0.4em;
}

.detail-main > p {
  font-size: 1.08rem;
  color: #334155;
  margin: 0 0 1em;
}

.detail-main h2 + p {
  margin-top: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}

.feature h3 {
  font-size: 1.05rem;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.feature ul,
.audience {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.feature li,
.audience li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
  color: #334155;
}

.feature li::before,
.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e5edff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f6bff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.note {
  border-left: 4px solid var(--orange);
  background: #fff7ef;
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  color: #7a4a17;
  font-size: 0.95rem;
}

.detail-side {
  position: sticky;
  top: 90px;
}

.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-alt);
}

.side-card h3 {
  color: var(--navy);
}

.langs {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 16px 0 0;
}

.all-link {
  margin: 28px 0 0;
  font-weight: 600;
}

.notfound {
  text-align: center;
  padding: 60px 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 12, 28, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 20px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.lb-close {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 20px;
}

.lb-next {
  right: 20px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #a9b6d3;
  padding: 56px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
}

.brand-light {
  color: #fff;
}

.brand-light b {
  color: var(--orange);
}

.site-footer p {
  max-width: 340px;
}

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

.site-footer li {
  margin: 6px 0;
}

.site-footer a {
  color: #dbe4f7;
}

.footer-mail,
.footer-play {
  display: block;
  margin-bottom: 10px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 0 40px;
  }

  .hero-phones {
    height: 420px;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .phone {
    width: 170px;
  }

  .phone-1 {
    width: 190px;
  }

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

  .detail {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 16px;
  }

  .nav a:nth-child(2) {
    display: none;
  }

  .stats {
    gap: 22px;
  }

  .hero-phones {
    height: 330px;
  }

  .phone {
    width: 130px;
    border-radius: 22px;
    padding: 5px;
  }

  .phone img {
    border-radius: 18px;
  }

  .phone-1 {
    width: 150px;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .app-hero-inner {
    flex-direction: column;
    gap: 18px;
  }

  .app-hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .shot {
    width: 170px;
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 20px;
  }
}

/* ===== Home page ===== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent, var(--blue));
  margin-bottom: 12px;
}

.kicker b {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent, var(--blue));
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Header over dark hero */
.is-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
  transition: background 0.3s, border-color 0.3s;
}

.is-home .site-header .brand,
.is-home .site-header .nav a {
  color: #fff;
}

.is-home .site-header.scrolled {
  background: rgba(8, 20, 46, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Hero */
.hero2 {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: #060f24;
  padding: 110px 0 80px;
}

.hero2-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  animation: drift 18s ease-in-out infinite alternate;
}

.o1 {
  width: 520px;
  height: 520px;
  background: #2f6bff;
  top: -120px;
  right: -80px;
}

.o2 {
  width: 420px;
  height: 420px;
  background: #7c5cff;
  bottom: -160px;
  left: 30%;
  animation-delay: -6s;
}

.o3 {
  width: 300px;
  height: 300px;
  background: #ff8a1f;
  top: 30%;
  left: -120px;
  opacity: 0.35;
  animation-delay: -12s;
}

@keyframes drift {
  to {
    transform: translate(60px, 40px) scale(1.15);
  }
}

.hero2-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  align-items: center;
}

.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(61, 220, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
  }
}

.hero2 h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.rotator {
  display: inline-block;
  background: linear-gradient(90deg, #ffb066, #ff8a1f 40%, #ff5f6d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.35s, transform 0.35s;
}

.rotator.out {
  opacity: 0;
  transform: translateY(-14px);
}

.hero2-text > p {
  font-size: 1.18rem;
  color: #b9c6e2;
  max-width: 560px;
}

.hero-cta.center {
  justify-content: center;
}

.trust {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b9c6e2;
  font-size: 0.92rem;
}

.trust b {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
}

.trust b .star {
  width: 15px;
  height: 15px;
}

.trust span {
  display: block;
}

.avatars {
  display: flex;
}

.avatars img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 2px solid #060f24;
  margin-left: -10px;
}

.avatars img:first-child {
  margin-left: 0;
}

.hero-stage {
  position: relative;
  height: 600px;
  perspective: 1200px;
}

.stage-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

.hphone {
  position: absolute;
  width: 230px;
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(145deg, #2a3550, #0a0f1d);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}

.hphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: #111;
}

.hphone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s ease, transform 3.5s ease;
}

.hphone-screen img.active {
  opacity: 1;
  transform: scale(1);
}

.hphone-0 {
  left: 2%;
  top: 90px;
  transform: rotate(-9deg) translateZ(-40px);
  animation: bob 7s ease-in-out infinite;
}

.hphone-1 {
  left: 50%;
  top: 10px;
  width: 260px;
  margin-left: -130px;
  z-index: 2;
  animation: bob 7s ease-in-out -2.3s infinite;
}

.hphone-2 {
  right: 2%;
  top: 110px;
  transform: rotate(9deg) translateZ(-40px);
  animation: bob 7s ease-in-out -4.6s infinite;
}

@keyframes bob {
  50% {
    translate: 0 -16px;
  }
}

.floater {
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.f0 { top: 0; left: 6%; animation-delay: -1s; }
.f1 { top: 40%; left: -4%; width: 48px; height: 48px; animation-delay: -3s; }
.f2 { bottom: 4%; left: 18%; animation-delay: -2s; }
.f3 { top: -2%; right: 8%; width: 50px; height: 50px; animation-delay: -4s; }
.f4 { top: 48%; right: -3%; animation-delay: -5s; }
.f5 { bottom: 0; right: 24%; width: 46px; height: 46px; animation-delay: -1.5s; }

@keyframes float {
  50% {
    transform: translateY(-18px) rotate(6deg);
  }
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: wheel 1.8s infinite;
}

@keyframes wheel {
  to {
    transform: translateY(14px);
    opacity: 0;
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  background: #081633;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.mq-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.marquee:hover .mq-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.mq-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dbe4f7;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}

.mq-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mq-item img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

/* Stats */
.stats-band {
  background: linear-gradient(180deg, #081633, #0b1f44);
  color: #fff;
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, #9fb6e8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: #a9b6d3;
}

/* Spotlights */
.spot-intro {
  text-align: center;
  padding: 100px 0 20px;
  max-width: 720px;
}

.spot-intro h2,
.cats h2,
#uygulamalar h2,
#neden h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.spot-intro p {
  color: var(--muted);
  font-size: 1.1rem;
}

.spot {
  position: relative;
  padding: 70px 0;
  overflow: hidden;
}

.spot::before {
  content: "";
  position: absolute;
  inset: 8% -10%;
  background: radial-gradient(600px 300px at 25% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.spot-rev::before {
  background: radial-gradient(600px 300px at 75% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}

.spot-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.spot-rev .spot-media {
  order: 2;
}

.spot-media {
  position: relative;
  height: 520px;
}

.spot-glow {
  position: absolute;
  inset: 12% 14%;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #0b1f44));
  transform: rotate(-6deg);
  opacity: 0.9;
}

.sphone {
  position: absolute;
  width: 220px;
  border-radius: 30px;
  padding: 7px;
  background: #0a0f1d;
  box-shadow: 0 30px 60px rgba(11, 31, 68, 0.35);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sphone img {
  border-radius: 24px;
  width: 100%;
}

.sphone-front {
  left: 50%;
  top: 30px;
  z-index: 2;
}

.sphone-back {
  left: 16%;
  top: 70px;
  transform: rotate(-8deg) scale(0.92);
  opacity: 0.95;
}

.spot-media:hover .sphone-front {
  transform: translateY(-10px) rotate(2deg);
}

.spot-media:hover .sphone-back {
  transform: rotate(-12deg) scale(0.92) translateX(-14px);
}

.spot-icon {
  position: absolute;
  z-index: 3;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  right: 6%;
  bottom: 40px;
  box-shadow: 0 16px 36px rgba(11, 31, 68, 0.35);
  border: 4px solid #fff;
  animation: float 6s ease-in-out infinite;
}

.spot-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.spot-tag {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 14px;
}

.spot-text > p:not(.spot-tag) {
  color: var(--muted);
  font-size: 1.04rem;
  margin: 16px 0;
}

.spot-text .pill {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  color: color-mix(in srgb, var(--accent) 70%, #0b1f44);
}

.spot-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spot-points li {
  position: relative;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
}

.spot-points li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.spot-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-accent:hover {
  transform: translateY(-2px);
}

.btn-accent span {
  transition: transform 0.2s;
}

.btn-accent:hover span {
  transform: translateX(4px);
}

.spot-cta .mini-play {
  padding: 10px 16px;
  border-radius: 999px;
}

/* Categories */
.cats .section-head,
#uygulamalar .section-head,
#neden .section-head {
  text-align: center;
  margin-inline: auto;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cat-tile {
  position: relative;
  border-radius: 24px;
  padding: 30px;
  color: #fff;
  overflow: hidden;
}

.cat-tile::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cat-muhendislik {
  background: linear-gradient(150deg, #2f6bff, #0b1f44);
}

.cat-is {
  background: linear-gradient(150deg, #ff8a1f, #b4380f);
}

.cat-araclar {
  background: linear-gradient(150deg, #7c5cff, #2b1a6b);
}

.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.cat-head h3 {
  font-size: 1.5rem;
  margin: 0;
}

.cat-head span {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cat-tile p {
  opacity: 0.85;
  margin: 10px 0 18px;
}

.cat-tile ul {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.cat-tile li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s, transform 0.2s;
}

.cat-tile li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.cat-tile li img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.cat-tile li span {
  margin-left: auto;
  opacity: 0.7;
}

/* Card glow follows the cursor */
.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 255, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.app-card:hover::before {
  opacity: 1;
}

/* Final CTA */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(600px 300px at 20% 0%, rgba(124, 92, 255, 0.5), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgba(47, 107, 255, 0.55), transparent 70%),
    #060f24;
}

.final-inner {
  max-width: 760px;
}

.final-cta h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
}

.final-cta p {
  color: #b9c6e2;
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .hero2-inner,
  .spot-inner {
    grid-template-columns: 1fr;
  }

  .hero2 {
    padding-top: 100px;
  }

  .hero-stage {
    height: 480px;
    max-width: 560px;
    width: 100%;
    margin-inline: auto;
  }

  .hphone {
    width: 180px;
  }

  .hphone-1 {
    width: 205px;
    margin-left: -102px;
  }

  .spot-rev .spot-media {
    order: 0;
  }

  .spot-media {
    height: 460px;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }
}

@media (max-width: 640px) {
  .hero-stage {
    height: 380px;
  }

  .hphone {
    width: 140px;
    border-radius: 24px;
    padding: 5px;
  }

  .hphone-screen {
    border-radius: 20px;
  }

  .hphone-1 {
    width: 160px;
    margin-left: -80px;
  }

  .floater {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .scroll-hint {
    display: none;
  }

  .spot {
    padding: 40px 0;
  }

  .spot-media {
    height: 400px;
  }

  .sphone {
    width: 170px;
  }

  .sphone-front {
    left: 42%;
  }

  .sphone-back {
    left: 6%;
  }

  .spot-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .spot-points {
    grid-template-columns: 1fr;
  }

  .is-home .nav a:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Language switch */
.header-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.4;
}

.lang-switch a.active {
  background: var(--navy);
  color: #fff;
}

.is-home .lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.is-home .lang-switch a {
  color: #c9d4ea;
}

.is-home .lang-switch a.active {
  background: #fff;
  color: var(--navy);
}

@media (max-width: 640px) {
  .header-right {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .nav a:nth-child(n + 2),
  .is-home .nav a:nth-child(n + 2) {
    display: none;
  }
}

/* Arabic (right-to-left) */
html[lang="ar"] body {
  font-family: "SF Arabic", "Segoe UI", "Noto Sans Arabic", "Geeza Pro", Tahoma, -apple-system, sans-serif;
  line-height: 1.8;
}

html[lang="ar"] *,
html[lang="ar"] *::before,
html[lang="ar"] *::after {
  letter-spacing: 0 !important;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 {
  line-height: 1.35;
}

html[lang="ar"] .hero2 h1 {
  line-height: 1.25;
}

[dir="rtl"] .feature li,
[dir="rtl"] .audience li {
  padding-left: 0;
  padding-right: 26px;
}

[dir="rtl"] .feature li::before,
[dir="rtl"] .audience li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .spot-points li {
  padding: 12px 40px 12px 14px;
}

[dir="rtl"] .spot-points li::before {
  left: auto;
  right: 14px;
}

[dir="rtl"] .note {
  border-left: 0;
  border-right: 4px solid var(--orange);
  border-radius: 12px 0 0 12px;
}

[dir="rtl"] .eyebrow .dot {
  margin-right: 0;
  margin-left: 8px;
}

[dir="rtl"] .avatars img {
  margin-left: 0;
  margin-right: -10px;
}

[dir="rtl"] .avatars img:first-child {
  margin-right: 0;
}

[dir="rtl"] .cat-tile li span {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .cat-tile li a:hover {
  transform: translateX(-4px);
}

[dir="rtl"] .btn-accent:hover span {
  transform: translateX(-4px);
}

[dir="rtl"] .filter span {
  margin-left: 0;
  margin-right: 4px;
}

[dir="rtl"] .lb-prev {
  left: auto;
  right: 20px;
}

[dir="rtl"] .lb-next {
  right: auto;
  left: 20px;
}

[dir="rtl"] .lang-switch,
[dir="rtl"] .app-meta,
[dir="rtl"] .chips {
  direction: rtl;
}

[dir="rtl"] .lang-switch a {
  direction: ltr;
}

/* Hindi (Devanagari) */
html[lang="hi"] body {
  font-family: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", "Mangal", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.75;
}

html[lang="hi"] *,
html[lang="hi"] *::before,
html[lang="hi"] *::after {
  letter-spacing: 0 !important;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3 {
  line-height: 1.4;
}

html[lang="hi"] .hero2 h1 {
  line-height: 1.3;
}

@media (max-width: 420px) {
  .lang-switch a {
    padding: 4px 7px;
  }
}

/* Long German words in headings and buttons */
html[lang="de"] h1,
html[lang="de"] h2,
html[lang="de"] h3,
html[lang="de"] .cat-head h3 {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

html[lang="de"] .hero2 h1 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
}

/* Flag language switch */
.lang-switch {
  gap: 2px;
  padding: 3px;
}

.lang-switch a {
  display: inline-flex;
  padding: 5px 6px;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch a.active,
.is-home .lang-switch a.active {
  opacity: 1;
  background: rgba(47, 107, 255, 0.14);
}

.is-home .lang-switch a.active {
  background: rgba(255, 255, 255, 0.2);
}

.lang-switch img {
  display: block;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 31, 68, 0.12);
}

@media (max-width: 420px) {
  .lang-switch a {
    padding: 4px;
  }

  .lang-switch img {
    width: 21px;
    height: 16px;
  }
}
