:root {
  --bg: #07090f;
  --text: #e8ecf3;
  --muted: #9aa4b5;
  --line: #242a3a;
  --card: #0f131d;
  --card-2: #131927;
  
  --brand-a: #5e6ad2;
  --brand-b: #3f8cff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(84, 106, 210, 0.24), transparent 36%),
    radial-gradient(circle at 88% 0%, rgba(63, 140, 255, 0.2), transparent 30%),
    var(--bg);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border: 1px solid #2b3348;
  border-radius: 18px;
  background: rgba(10, 14, 23, 0.82);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.brand {
  text-decoration: none;
  color: #f1f5ff;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.header-nav a {
  text-decoration: none;
  color: #b4bfd4;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}

.header-nav a:hover {
  background: #1d2538;
  color: #e6ebfb;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 40;
}

.language-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  color: #eef3ff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #33405d;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(29, 37, 57, 0.96), rgba(15, 22, 37, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.language-button:hover,
.language-button:focus {
  border-color: #5b73b7;
  outline: none;
}

.language-globe,
.language-globe svg {
  width: 17px;
  height: 17px;
  display: inline-flex;
}

.language-current {
  min-width: 18px;
}

.language-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #c7d2ff;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 8px;
  border: 1px solid #273452;
  border-radius: 10px;
  background: rgba(12, 19, 36, 0.98);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
}

.language-option {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #d8e2f8;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.language-option:hover,
.language-option.is-active {
  background: rgba(61, 84, 132, 0.42);
  color: #ffffff;
}

.language-check {
  color: #5f7cff;
  opacity: 0;
  font-weight: 900;
}

.language-option.is-active .language-check {
  opacity: 1;
}

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

.hero {
  margin-top: 34px;
}

.showcase-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas: "copy visual";
  gap: clamp(14px, 2.2vw, 24px);
  align-items: stretch;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid #1e2b48;
  border-radius: 18px;
  background:
    radial-gradient(circle at 67% 26%, rgba(106, 86, 224, 0.36), transparent 37%),
    radial-gradient(circle at 44% 58%, rgba(41, 125, 255, 0.26), transparent 48%),
    linear-gradient(105deg, #040c1f 0%, #050a18 49%, #080e1f 100%);
  box-shadow: 0 16px 34px rgba(2, 8, 21, 0.62);
}

.showcase-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1px),
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px);
  background-size: 220px 220px, 240px 240px;
  opacity: 0.2;
}

.showcase-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding-right: 8px;
}

.eyebrow {
  margin: 0;
  width: fit-content;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #354060;
  background: rgba(82, 109, 210, 0.18);
  color: #c7d2ff;
}

h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
  color: #f5f7fb;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 5vw, 3.78rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
}

.showcase-copy h1 span {
  background: linear-gradient(92deg, #63a8ff, #6c86ff 42%, #8b6bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.showcase-copy p {
  margin: 14px 0 0;
  max-width: 52ch;
  color: #aab5c9;
  font-size: 1.06rem;
  line-height: 1.58;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  font-weight: 800;
  border-radius: 11px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  white-space: nowrap;
}

.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.btn-main {
  color: #eef3ff;
  border: 1px solid rgba(131, 161, 255, 0.75);
  background: linear-gradient(135deg, #4f70ff, #5b64ff);
  box-shadow: 0 8px 22px rgba(73, 106, 255, 0.35);
}

.btn-ghost {
  color: #dde6ff;
  border: 1px solid #314667;
  background: rgba(7, 20, 44, 0.54);
}

.showcase-visual {
  grid-area: visual;
  position: relative;
  z-index: 2;
  min-height: clamp(330px, 34vw, 430px);
  overflow: hidden;
}

.visual-glow {
  position: absolute;
  inset: auto 0 -14% 0;
  height: 65%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 77, 224, 0.52) 0%, rgba(34, 61, 130, 0.14) 56%, transparent 76%);
  filter: blur(14px);
  pointer-events: none;
}

.showcase-devices {
  position: absolute;
  inset: 0;
}

.device-card {
  position: absolute;
  bottom: 0;
  margin: 0;
  width: clamp(152px, 17.5vw, 212px);
  aspect-ratio: 9 / 19.5;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.device-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-card.left {
  left: 10%;
  transform: rotate(-11deg) translateY(12px) scale(0.9);
  z-index: 1;
}

.device-card.center {
  left: 50%;
  width: clamp(168px, 19.8vw, 236px);
  transform: translateX(-50%);
  z-index: 3;
}

.device-card.right {
  right: 4%;
  transform: rotate(10deg) translateY(10px) scale(0.9);
  z-index: 2;
}

.apps {
  margin-top: 40px;
}

.apps-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.apps-toolbar .section-head {
  max-width: 72ch;
}

.apps-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.apps-tab {
  border: 1px solid #2d3955;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #b7c2d7;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1;
  padding: 10px 14px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.apps-tab:hover {
  border-color: #52699f;
  color: #f1f5ff;
}

.apps-tab.is-active {
  border-color: rgba(126, 161, 255, 0.82);
  background: linear-gradient(135deg, #4f70ff, #5b64ff);
  color: #f8fbff;
  box-shadow: 0 8px 18px rgba(73, 106, 255, 0.25);
}

.apps-tab:focus-visible {
  outline: 2px solid #7ea1ff;
  outline-offset: 2px;
}

.section-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

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

.apps-track {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  flex: 0 0 100%;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
}

.card[hidden] {
  display: none;
}

.js-row-reveal .apps-track .card {
  opacity: 0;
  transform: translateX(-24px);
  filter: blur(4px);
  transition:
    opacity 0.56s ease,
    transform 0.56s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.56s ease;
  transition-delay: calc(var(--row-order, 0) * 120ms);
  will-change: opacity, transform, filter;
}

.js-row-reveal .apps-track .card.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.card:focus-visible {
  outline: 2px solid #7ea1ff;
  outline-offset: 2px;
}

.thumb {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #30384d;
  background: #101621;
}

.card h3 {
  margin: 12px 0 7px;
  font-size: 1.13rem;
}

.card p {
  margin: 0;
  color: #9ca7b8;
  line-height: 1.65;
}

.links {
  margin-top: 11px;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.links a {
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 700;
  color: #cdd8ff;
  border: 1px solid #39456d;
  background: #151d30;
  border-radius: 999px;
  padding: 6px 10px;
}

.store-links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.store-badge-link {
  display: inline-flex;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.store-badge-link.is-disabled {
  opacity: 0.45;
  filter: grayscale(1) saturate(0.3);
  cursor: not-allowed;
  pointer-events: none;
}

.store-badge {
  width: 160px;
  height: auto;
  display: block;
}

@media (max-width: 920px) {
  .site-header {
    top: 0;
  }

  .header-inner {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 10px 0;
    background: rgba(10, 14, 23, 0.9);
  }

  h1 {
    font-size: clamp(1.92rem, 8.2vw, 3rem);
  }

  .showcase-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual";
  }

  .showcase-copy p {
    font-size: 1rem;
  }

  .showcase-visual {
    min-height: 410px;
  }

  .device-card {
    width: clamp(144px, 29vw, 210px);
  }

  .device-card.left {
    left: 14%;
    transform: rotate(-11deg) translateY(12px) scale(0.88);
  }

  .device-card.center {
    width: clamp(162px, 34vw, 224px);
  }

  .device-card.right {
    right: 8%;
    transform: rotate(10deg) translateY(10px) scale(0.88);
  }

  .apps-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .apps-tabs {
    justify-content: flex-start;
  }

  .apps-track {
    grid-template-columns: 1fr;
  }

  .thumb {
    height: 240px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-left: 1px solid #2b3348;
    border-right: 1px solid #2b3348;
    border-radius: 14px;
  }

  .brand {
    display: block;
    width: 100%;
    text-align: center;
    font-size: clamp(1.5rem, 7.2vw, 2rem);
  }

  .header-actions {
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .header-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .header-nav a {
    text-align: center;
    padding: 9px 6px;
    font-size: 0.96rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .language-switcher,
  .language-button {
    width: 100%;
  }

  .language-switcher {
    display: flex;
  }

  .language-button {
    justify-content: center;
  }

  .language-menu {
    left: 0;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-row-reveal .apps-track .card {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 620px) {
  .header-inner {
    padding: 10px;
    gap: 8px;
  }

  .header-nav a {
    padding: 8px 4px;
    font-size: 0.9rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .showcase-visual {
    min-height: 340px;
  }

  .device-card {
    width: clamp(126px, 36vw, 164px);
  }

  .device-card.left {
    left: 6%;
  }

  .device-card.center {
    width: clamp(142px, 41vw, 190px);
  }

  .device-card.right {
    right: 2%;
  }
}

.site-footer {
  margin-top: 38px;
  border-top: 1px solid #252c3d;
  padding: 16px 0 24px;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: #8f9bb2;
  font-size: 0.9rem;
  line-height: 1.5;
}
