:root {
  --bg: #0b0d12;
  --bg-deep: #05070b;
  --panel: rgba(16, 19, 27, 0.78);
  --panel-strong: rgba(18, 22, 31, 0.92);
  --text: #edf2ff;
  --muted: #9ca8c3;
  --line: rgba(125, 144, 184, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
  --font-display: "Manrope", sans-serif;
  --xcode-blue: #4aa8ff;
  --xcode-cyan: #67e8f9;
  --xcode-green: #7ee787;
  --xcode-pink: #ff7ab2;
  --xcode-orange: #ffb86b;
  --xcode-violet: #c792ea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-display);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 122, 178, 0.14), transparent 22%),
    radial-gradient(circle at 82% 12%, rgba(74, 168, 255, 0.18), transparent 24%),
    radial-gradient(circle at 78% 72%, rgba(126, 231, 135, 0.12), transparent 22%),
    linear-gradient(180deg, #0f1118 0%, var(--bg) 48%, var(--bg-deep) 100%);
}

body.has-fancy-cursor,
body.has-fancy-cursor a,
body.has-fancy-cursor button {
  cursor: none;
}

button,
a {
  font: inherit;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  background: rgba(103, 232, 249, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.32);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(74, 168, 255, 0.14);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    width 180ms ease,
    height 180ms ease,
    backdrop-filter 180ms ease,
    background 180ms ease;
}

.cursor-glow.is-visible {
  opacity: 1;
}

.cursor-glow.is-hovering {
  width: 28px;
  height: 28px;
  background: rgba(255, 122, 178, 0.12);
  border-color: rgba(255, 122, 178, 0.28);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(1.04);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-one {
  top: 90px;
  left: 2%;
  width: 280px;
  height: 280px;
  background: rgba(255, 122, 178, 0.18);
}

.ambient-two {
  top: 120px;
  right: 4%;
  width: 360px;
  height: 360px;
  background: rgba(74, 168, 255, 0.2);
}

.ambient-three {
  bottom: -40px;
  left: 35%;
  width: 260px;
  height: 260px;
  background: rgba(126, 231, 135, 0.14);
}

.hero {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 56px));
  min-height: auto;
  margin: 0 auto;
  padding: 32px 0 72px;
  display: block;
}

.brand-strip {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding-top: 22px;
}

.brand-strip-inner {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  position: relative;
  padding-right: 0;
  padding-left: 18px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 2px;
  height: 180px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0) 0%, rgba(103, 232, 249, 0.9) 26%, rgba(255, 122, 178, 0.74) 72%, rgba(255, 122, 178, 0) 100%);
  box-shadow: 0 0 22px rgba(74, 168, 255, 0.22);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-logo {
  display: block;
  width: min(100%, 146px);
  height: auto;
  filter:
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14))
    drop-shadow(0 0 8px rgba(74, 168, 255, 0.04));
  opacity: 0.88;
}

h1 {
  margin: 28px 0 0;
  margin-left: -2px;
  max-width: 420px;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  color: #f3f6ff;
  text-shadow: 0 0 32px rgba(74, 168, 255, 0.1);
}

h1 span {
  display: block;
  padding-bottom: 4px;
  opacity: 0;
  transform: translateY(-10px);
  animation: heroLineIn 420ms ease forwards;
}

h1 span:nth-child(1) {
  animation-delay: 0s;
}

h1 span:nth-child(2) {
  animation-delay: 0.1s;
}

h1 span:nth-child(3) {
  animation-delay: 0.2s;
}

h1 span:nth-child(2) {
  color: var(--xcode-cyan);
  text-shadow: 0 0 24px rgba(103, 232, 249, 0.16);
}

h1 span:nth-child(3) {
  color: #ffffff;
  text-shadow:
    0 0 30px rgba(255, 122, 178, 0.12),
    0 0 18px rgba(74, 168, 255, 0.08);
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  margin: 28px 0 0;
  max-width: 470px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-text::before {
  content: "// ";
  color: var(--xcode-pink);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(135deg, #143a5c 0%, #255c88 55%, #2d7db6 100%);
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(11, 18, 29, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(14, 54, 92, 0.42);
}

.app-selector,
.showcase-frame {
  border: 1px solid rgba(112, 129, 167, 0.18);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.app-selector {
  margin-top: 40px;
  padding: 24px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(300px, 0.84fr) minmax(320px, 1.16fr);
  gap: 34px;
  align-items: start;
}

.selector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  grid-column: 1 / -1;
}

.selector-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  color: var(--xcode-cyan);
}

.selector-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.selector-count {
  margin: 0;
  min-width: 72px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(28, 34, 48, 0.92);
  border: 1px solid rgba(115, 138, 184, 0.18);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #d8e1f6;
}

.app-list {
  display: grid;
  gap: 14px;
  align-self: start;
}

.app-item {
  width: 100%;
  border: 1px solid rgba(111, 128, 164, 0.18);
  background: rgba(20, 24, 34, 0.86);
  border-radius: 20px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  position: relative;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.app-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.app-item:hover {
  transform: scale(1.02);
  border-color: rgba(74, 168, 255, 0.3);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.26);
}

.app-item:hover .app-name {
  color: var(--xcode-cyan);
}

.app-item:hover .app-category,
.app-item:hover .app-arrow {
  color: #d9e6ff;
}

.app-item.active {
  color: white;
  border-color: transparent;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28);
  padding-left: 18px;
}

.app-item.active::before {
  background: var(--xcode-cyan);
  opacity: 1;
}

.app-item-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.app-number {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #08111d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  flex: 0 0 auto;
}

.app-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #eff4ff;
  line-height: 1.2;
  word-break: break-word;
}

.app-name::before {
  content: "APP ";
  margin-right: 8px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--xcode-green);
}

.app-category {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #a4b0cb;
  max-width: 28ch;
}

.app-item.active .app-category {
  color: rgba(255, 255, 255, 0.74);
}

.app-arrow {
  font-size: 12px;
  font-weight: 800;
  color: var(--xcode-orange);
  white-space: nowrap;
  flex: 0 0 auto;
}

.app-item.active .app-arrow {
  color: white;
}

.showcase-panel {
  position: relative;
  min-width: 0;
}

.showcase-panel::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 48px;
  background: rgba(74, 168, 255, 0.12);
  filter: blur(70px);
}

.showcase-frame {
  position: relative;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(300px, 356px) 1fr;
  gap: 32px;
  align-items: start;
}

.phone-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  padding-left: 2px;
}

.phone-shadow {
  position: absolute;
  inset: 54px 42px 38px 10px;
  border-radius: 66px;
  background: rgba(74, 168, 255, 0.08);
  filter: blur(26px);
}

.iphone {
  position: relative;
  width: min(100%, 332px);
  padding: 12px;
  border-radius: 58px;
  background:
    linear-gradient(145deg, #1d2331 0%, #0d1018 100%);
  box-shadow: 0 14px 34px rgba(10, 14, 24, 0.16);
  transition: box-shadow 220ms ease;
}

.iphone-bezel {
  position: relative;
  border-radius: 46px;
  padding: 8px;
  background: #050608;
}

.iphone-notch {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 126px;
  height: 28px;
  border-radius: 999px;
  background: #0f1117;
  z-index: 3;
}

.screen {
  height: 680px;
  min-height: 680px;
  padding: 0;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff 0%, #f6efe8 100%);
  overflow: hidden;
  transition: background 220ms ease;
}

.screen-preview {
  width: 100%;
  height: 680px;
  min-height: 680px;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(17, 22, 32, 0.94) 0%, rgba(24, 29, 41, 0.92) 100%);
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 250ms ease,
    transform 250ms ease,
    background 220ms ease;
}

.screen-preview.is-switching-out {
  opacity: 0;
  transform: scale(0.985);
  transition-duration: 150ms;
}

.screen-preview.is-switching-in {
  opacity: 1;
  transform: scale(1);
  transition-duration: 250ms;
}

.live-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 44px;
  padding: 14px 22px 0;
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.86) 0%, rgba(10, 12, 18, 0.28) 70%, transparent 100%);
  pointer-events: none;
}

.live-time {
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.preview-image,
.preview-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 38px;
}

.preview-image {
  display: none;
  object-fit: cover;
  object-position: center top;
}

.preview-image.is-visible {
  display: block;
}

.preview-placeholder {
  display: none;
  align-content: center;
  gap: 10px;
  padding: 24px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at top right, rgba(199, 146, 234, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(21, 25, 37, 0.96) 0%, rgba(31, 25, 51, 0.92) 100%);
  border: 1px solid rgba(122, 114, 182, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview-placeholder.is-visible {
  display: grid;
}

.preview-placeholder-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
  font-weight: 800;
  color: var(--xcode-cyan);
}

.preview-placeholder-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #f5f2ff;
}

.preview-placeholder-note {
  margin: 0;
  max-width: 24ch;
  font-size: 12px;
  line-height: 1.6;
  color: #bac4de;
}

.showcase-copy h3 {
  margin: 16px 0 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--xcode-pink);
  text-wrap: balance;
}

.detail-description {
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.store-card {
  margin-top: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #143a5c 0%, #255c88 55%, #2d7db6 100%);
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(11, 18, 29, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 36px rgba(14, 54, 92, 0.42);
}

.store-link.is-disabled {
  pointer-events: none;
  opacity: 0.56;
  box-shadow: none;
}

.support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(115, 138, 184, 0.24);
  color: #dce8ff;
  text-decoration: none;
  background: rgba(19, 25, 37, 0.62);
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(8, 12, 20, 0.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.support-link:hover {
  transform: translateY(-1px);
  border-color: rgba(103, 232, 249, 0.36);
  box-shadow: 0 18px 30px rgba(8, 12, 20, 0.28);
}

.support-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px 0;
}

.support-page {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
}

.support-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
  color: #dce8ff;
  text-decoration: none;
  font-weight: 700;
}

.support-card {
  border: 1px solid rgba(112, 129, 167, 0.18);
  background: rgba(15, 19, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 36px;
}

.support-card h1 {
  margin: 14px 0 0;
  max-width: none;
  font-size: clamp(34px, 5vw, 56px);
}

.support-lead {
  margin: 28px 0 0;
  font-size: 18px;
  line-height: 1.75;
  color: #eef4ff;
}

.support-text {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.support-contact {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(115, 138, 184, 0.18);
  background: rgba(18, 24, 35, 0.72);
}

.support-contact-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  color: var(--xcode-cyan);
}

.support-email {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.hero-notes {
  margin-top: 8px;
  display: grid;
  gap: 18px;
  align-self: start;
}

.about-card,
.trust-card {
  border: 1px solid rgba(112, 129, 167, 0.18);
  background: rgba(15, 19, 27, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.about-card {
  padding: 34px;
  border-radius: 26px;
}

.about-card h2,
.trust-card h3 {
  margin: 12px 0 0;
  letter-spacing: -0.05em;
}

.about-card h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.08;
}

.about-lead {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.68;
  color: var(--xcode-blue);
}

.about-text,
.trust-card p {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.trust-card {
  padding: 24px 26px;
  border-radius: 24px;
  align-self: start;
}

.trust-card h3 {
  font-size: 24px;
  line-height: 1.1;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
  padding: 10px 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #8995b1;
  font-size: 12px;
  font-weight: 700;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1160px) {
  .hero-top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-strip {
    width: min(100% - 28px, 1240px);
    padding-top: 16px;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero-copy {
    padding-right: 0;
    padding-left: 0;
  }

  .hero-copy::before {
    display: none;
  }

  .app-selector,
  .showcase-stage {
    grid-template-columns: 1fr;
  }

  .phone-wrapper {
    justify-content: center;
    padding-left: 0;
  }

  .showcase-copy h3 {
    font-size: 36px;
  }

}

@media (max-width: 720px) {
  .hero {
    width: min(100% - 28px, 1240px);
    padding: 28px 0 40px;
  }

  h1 {
    font-size: 28px;
    margin-left: 0;
    max-width: 320px;
  }

  .brand-mark {
    padding: 0;
  }

  .brand-logo {
    width: min(100%, 128px);
  }

  .hero-text {
    font-size: 16px;
  }

  .app-selector,
  .showcase-frame {
    padding: 18px;
    border-radius: 24px;
  }

  .selector-header,
  .site-footer {
    flex-direction: column;
  }

  .screen {
    height: 560px;
    min-height: 560px;
  }

  .screen-preview,
  .preview-image,
  .preview-placeholder {
    height: 560px;
    min-height: 560px;
  }

  .live-statusbar {
    padding: 14px 18px 0;
  }

  .showcase-copy h3 {
    font-size: 24px;
  }

  .support-card {
    padding: 24px;
  }

  .support-email {
    font-size: 18px;
  }

  .detail-description {
    font-size: 14px;
  }

  .hero-notes,
  .site-footer {
    width: min(100% - 28px, 1240px);
  }

  .about-card,
  .trust-card {
    padding: 24px;
  }

  .about-lead,
  .about-text,
  .trust-card p {
    font-size: 16px;
  }

  .trust-card h3 {
    font-size: 26px;
  }
}

@media (pointer: coarse) {
  .cursor-glow {
    display: none;
  }

  body.has-fancy-cursor,
  body.has-fancy-cursor a,
  body.has-fancy-cursor button {
    cursor: auto;
  }
}
