:root {
  --bg: #02040a;
  --surface: #060b16;
  --surface-2: #0c1222;
  --line: rgba(129, 152, 214, 0.24);
  --text: #f4f7ff;
  --muted: #b7c4e8;
  --muted-2: #8a9cc8;
  --accent-cyan: #35c8ff;
  --accent-blue: #4d79ff;
  --accent-violet: #8a42ff;
  --pill-bg: rgba(41, 28, 70, 0.86);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img,
video,
canvas {
  max-width: 100%;
}

a {
  text-decoration: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) 0 0 / 100% 110px,
    linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)) 0 0 / 110px 100%;
  opacity: 0.28;
}

.bg-aurora {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(74px);
  opacity: 0.35;
  animation: drift 12s ease-in-out infinite alternate;
}

.bg-aurora-left {
  width: 420px;
  height: 420px;
  left: -150px;
  top: 180px;
  background: radial-gradient(circle at 40% 40%, rgba(53, 200, 255, 0.72), rgba(53, 200, 255, 0));
}

.bg-aurora-right {
  width: 560px;
  height: 560px;
  right: -220px;
  top: 120px;
  background: radial-gradient(circle at 40% 40%, rgba(135, 66, 255, 0.68), rgba(135, 66, 255, 0));
  animation-delay: 1.2s;
}

.landing-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 16px auto 48px;
  position: relative;
  z-index: 1;
}

.nav-pill {
  min-height: 74px;
  border-radius: 22px;
  border: 1px solid rgba(137, 111, 210, 0.28);
  background: var(--pill-bg);
  box-shadow: 0 20px 56px rgba(6, 8, 17, 0.52);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f9fbff;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(12, 17, 35, 0.45);
}

.brand-name {
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-width: 0;
}

.nav-actions {
  min-width: 0;
}

.nav-link {
  color: #5eb4ff;
  font-size: 22px;
  font-weight: 500;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.nav-link:hover {
  opacity: 0.82;
}

.nav-link-icon {
  display: none;
}

.mobile-cta {
  display: none;
}

.hero {
  margin-top: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: start;
  gap: 24px;
}

.hero-copy {
  max-width: 100%;
  min-width: 0;
}

.hero-showcase {
  border-radius: 20px;
  border: 1px solid rgba(138, 161, 228, 0.28);
  background:
    radial-gradient(circle at 14% 8%, rgba(62, 152, 255, 0.26), transparent 48%),
    radial-gradient(circle at 84% 12%, rgba(139, 69, 255, 0.24), transparent 52%),
    rgba(9, 14, 29, 0.9);
  box-shadow: 0 24px 58px rgba(5, 10, 21, 0.58);
  padding: 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
  align-self: start;
}

.showcase-card {
  border: 1px solid rgba(122, 147, 221, 0.28);
  border-radius: 16px;
  background: rgba(10, 18, 35, 0.82);
  padding: 14px;
  display: grid;
  gap: 10px;
}

.showcase-kicker {
  margin: 0;
  color: #96b3eb;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-card h2 {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.15;
}

.showcase-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.showcase-list li {
  border-radius: 12px;
  border: 1px solid rgba(111, 132, 199, 0.3);
  background: rgba(15, 22, 42, 0.76);
  color: #c4d2f2;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.34;
  font-weight: 600;
}

.showcase-mini {
  border-radius: 14px;
  border: 1px solid rgba(114, 135, 207, 0.3);
  background: rgba(14, 22, 41, 0.74);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.showcase-mini strong {
  color: #ecf2ff;
  font-size: 13px;
}

.showcase-mini p {
  margin: 0;
  color: #a9bbe8;
  font-size: 12px;
  line-height: 1.35;
}

.hero-tag {
  margin: 0;
  color: var(--muted-2);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-copy h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue) 55%, var(--accent-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 580px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 28px);
  line-height: 1.33;
  font-weight: 500;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-badges span {
  border: 1px solid rgba(120, 148, 221, 0.34);
  border-radius: 999px;
  background: rgba(12, 19, 36, 0.82);
  color: #d0ddfa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 11px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
}

.auth-info {
  margin-top: 18px;
  max-width: 760px;
  border: 1px solid rgba(127, 146, 212, 0.3);
  border-radius: 16px;
  background: rgba(9, 14, 29, 0.84);
  box-shadow: 0 14px 34px rgba(5, 10, 20, 0.42);
  padding: 12px 14px;
}

.auth-info h2 {
  margin: 0 0 10px;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(14px, 1.5vw, 20px);
  font-weight: 700;
}

.auth-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.auth-info-table th,
.auth-info-table td {
  border: 1px solid rgba(116, 136, 202, 0.26);
  background: rgba(13, 20, 38, 0.74);
  text-align: left;
  vertical-align: top;
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.36;
  overflow-wrap: anywhere;
  word-break: normal;
}

.auth-info-table th {
  color: #eaf1ff;
  font-weight: 800;
}

.auth-info-table td {
  color: #b9c7ea;
  font-weight: 600;
}

.auth-info-note {
  margin: 10px 0 0;
  color: #9db1de;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border-radius: 14px;
  padding: 11px 16px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  color: #f7f9ff;
  background: linear-gradient(130deg, var(--accent-blue), var(--accent-violet));
  box-shadow: 0 16px 44px rgba(77, 121, 255, 0.34);
}

.btn-ghost {
  color: #dce5ff;
  background: rgba(18, 26, 44, 0.78);
  border-color: rgba(139, 162, 222, 0.35);
}

.hero-metrics {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-metrics li {
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 30, 0.78);
  padding: 13px 12px;
  display: grid;
  gap: 4px;
}

.hero-metrics strong {
  color: #eaf1ff;
  font-size: 14px;
}

.hero-metrics span {
  color: var(--muted-2);
  font-size: 12px;
}

.screens-block {
  margin-top: 34px;
  border: 1px solid rgba(131, 153, 213, 0.26);
  border-radius: 20px;
  background: rgba(8, 14, 27, 0.8);
  box-shadow: 0 26px 70px rgba(2, 5, 11, 0.58);
  padding: 18px;
}

.screens-block h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.1vw, 28px);
  font-family: Unbounded, Manrope, sans-serif;
}

.screens-note {
  margin: 12px 0 0;
  color: #90a4d5;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.carousel {
  position: relative;
  padding: 0 28px;
}

.carousel-mobile {
  display: none;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 0;
  background: transparent;
}

.carousel-track {
  display: flex;
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  margin: 0;
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: transparent;
}

.carousel-mobile .carousel-slide {
  aspect-ratio: 9 / 16;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(5, 9, 20, 0.45);
}

.carousel-desktop .carousel-slide {
  aspect-ratio: auto;
  min-height: clamp(280px, 42vw, 560px);
}

.carousel-desktop .carousel-slide img {
  width: 100%;
  height: auto;
  max-height: clamp(280px, 42vw, 560px);
  margin: 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(125, 151, 226, 0.45);
  background: rgba(12, 20, 38, 0.84);
  color: #d9e4ff;
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.carousel-btn:hover {
  background: rgba(19, 29, 53, 0.92);
}

.carousel-btn-prev {
  left: 10px;
}

.carousel-btn-next {
  right: 10px;
}

.carousel-dots {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(113, 133, 195, 0.52);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.active {
  background: linear-gradient(130deg, var(--accent-cyan), var(--accent-violet));
  transform: scale(1.25);
}

.links-strip {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.links-strip article {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(9, 14, 27, 0.86);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.links-strip span {
  color: #8ea1cf;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.links-strip a {
  color: #dbe6ff;
  font-size: 13px;
  word-break: break-all;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.reveal-delay-1 {
  animation-delay: 0.1s;
}

.reveal-delay-2 {
  animation-delay: 0.22s;
}

.reveal-delay-3 {
  animation-delay: 0.34s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.08);
    opacity: 0.82;
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(18px, -16px, 0);
  }
}

@media (max-width: 1220px) {
  .brand-name {
    font-size: 24px;
  }

  .nav-link {
    font-size: 18px;
  }

  .hero {
    margin-top: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.8fr);
    gap: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 5.1vw, 52px);
  }
}

@media (max-width: 980px) {
  .hero {
    margin-top: 24px;
    display: block;
    text-align: left;
  }

  .hero-showcase {
    margin-top: 16px;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .landing-shell {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 20px;
    padding: 0 12px 86px;
  }

  .nav-pill {
    min-height: 68px;
    border-radius: 18px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(39, 27, 67, 0.9);
    border-color: rgba(117, 98, 184, 0.38);
    box-shadow: 0 16px 36px rgba(7, 10, 20, 0.62);
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 19px;
  }

  .nav-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .nav-link {
    width: auto;
    min-width: 0;
    max-width: min(56vw, 220px);
    min-height: 42px;
    height: auto;
    border-radius: 11px;
    border: 1px solid rgba(113, 142, 223, 0.34);
    background: rgba(14, 22, 43, 0.7);
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    white-space: normal;
    text-wrap: balance;
  }

  .nav-link-text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
  }

  .nav-link-icon {
    display: none;
  }

  .hero {
    margin-top: 26px;
    display: block;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-showcase {
    margin: 16px auto 0;
    max-width: 96%;
    text-align: left;
    padding: 12px;
    gap: 10px;
  }

  .showcase-card {
    padding: 11px;
    gap: 8px;
  }

  .showcase-card h2 {
    font-size: 17px;
  }

  .showcase-list li {
    font-size: 12px;
    padding: 8px 9px;
  }

  .showcase-mini {
    padding: 10px;
  }

  .showcase-mini strong {
    font-size: 12px;
  }

  .showcase-mini p {
    font-size: 11px;
  }

  .hero-copy h1 {
    margin-top: 12px;
    font-size: clamp(30px, 10.4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  .hero-lead {
    margin: 14px auto 0;
    max-width: 94%;
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.42;
  }

  .hero-badges {
    margin-top: 12px;
    justify-content: center;
  }

  .hero-badges span {
    font-size: 11px;
    padding: 7px 10px;
  }

  .auth-info {
    margin: 14px auto 0;
    max-width: 96%;
    padding: 10px 10px;
    border-radius: 14px;
    text-align: left;
  }

  .auth-info h2 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .auth-info-table th,
  .auth-info-table td {
    font-size: 12px;
    padding: 8px 8px;
  }

  .auth-info-note {
    margin-top: 8px;
    font-size: 11px;
  }

  .hero-tag {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .hero-metrics {
    display: none;
  }

  .screens-block {
    margin-top: 22px;
    border-radius: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .screens-block h2 {
    display: none;
  }

  .screens-note {
    margin-top: 10px;
    font-size: 11px;
  }

  .carousel-desktop {
    display: none;
  }

  .carousel-mobile {
    display: block;
  }

  .carousel {
    padding: 0 8px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .carousel-viewport {
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .carousel-mobile .carousel-slide {
    aspect-ratio: auto;
    min-height: clamp(360px, 68vh, 620px);
    background: transparent;
  }

  .carousel-mobile .carousel-slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(360px, 68vh, 620px);
    margin: 0 auto;
    border-radius: 22px;
  }

  .carousel-mobile .carousel-btn {
    display: none;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }

  .carousel-dots {
    margin-top: 8px;
  }

  .mobile-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(90deg, #1dc3e2, #5c38ff);
    box-shadow: 0 14px 34px rgba(18, 28, 64, 0.62);
  }
}

@media (max-width: 560px) {
  .bg-grid {
    opacity: 0.18;
  }

  .bg-aurora {
    display: none;
  }

  .landing-shell {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 14px;
    padding: 0 12px 82px;
  }

  .nav-pill {
    min-height: 62px;
    border-radius: 15px;
    padding: 8px 10px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 8px;
  }

  .brand-name {
    font-size: 17px;
  }

  .nav-link {
    width: auto;
    min-width: 0;
    max-width: min(58vw, 188px);
    min-height: 38px;
    height: auto;
    border-radius: 10px;
    padding: 7px 10px;
    font-size: 13px;
    line-height: 1.15;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 9.8vw, 38px);
    margin-top: 10px;
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 96%;
  }

  .hero-showcase {
    max-width: 100%;
    margin-top: 14px;
    padding: 10px;
  }

  .showcase-card h2 {
    font-size: 15px;
  }

  .showcase-list li {
    font-size: 11px;
    padding: 7px 8px;
  }

  .showcase-mini p {
    font-size: 10px;
  }

  .hero-badges span {
    font-size: 10px;
    padding: 6px 8px;
  }

  .auth-info {
    max-width: 100%;
    padding: 9px 8px;
  }

  .auth-info h2 {
    font-size: 13px;
  }

  .auth-info-table th,
  .auth-info-table td {
    font-size: 11px;
    padding: 7px 6px;
  }

  .screens-block {
    margin-top: 18px;
  }

  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .carousel {
    padding: 0 6px;
  }

  .carousel-dots {
    margin-top: 10px;
    gap: 7px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .mobile-cta {
    left: 12px;
    right: 12px;
    bottom: 8px;
    min-height: 46px;
    border-radius: 14px;
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .bg-aurora,
  .stage-glow {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
