:root { --body-width: 1136px; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-background);
  font: 16px/1.6 var(--body-font);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display-font); text-wrap: balance; }
p { color: var(--text-2); }
.landing-shell {
  width: min(100%, var(--body-width));
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 36px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr .94fr;
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding-top: clamp(28px, 8vw, 96px);
  padding-bottom: clamp(36px, 8vw, 90px);
}
.hero-copy { min-width: 0; }
.hero h1, .guide h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 780;
}
.hero h1 { max-width: 13.5ch; }
.hero h1 span, .guide h1 span {
  background: var(--accent-heading);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.hero p {
  max-width: 43ch;
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 19px);
}

.actions, .section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.action--primary {
  background: var(--action-fill);
  color: var(--action-text);
  box-shadow: var(--action-shadow);
}
.action--primary:hover { box-shadow: var(--action-shadow-hover); }
.action--secondary { border-color: var(--line-hover); background: var(--surface-lift); }
.action--secondary:hover { background: #222238; }
.action:hover { transform: translateY(-2px); }
.action:active { transform: translateY(0); }
.plain-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 620;
  text-underline-offset: 4px;
}

.hero-art {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  min-width: 0;
  aspect-ratio: 1.08;
  isolation: isolate;
  overflow: clip;
  border: 1px solid #302946;
  border-radius: 28px;
  background: radial-gradient(ellipse at 54% 45%, #201738 0%, #10101d 55%, #080812 100%);
  box-shadow: inset 0 0 70px #141026, 0 18px 68px #0006;
}
.hero-art::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: '';
  opacity: .32;
  background-image: linear-gradient(#b2bbff1e 1px, transparent 1px), linear-gradient(90deg, #b2bbff18 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: linear-gradient(#000, transparent 40%, transparent 70%, #000);
}
.hero-halo {
  position: absolute;
  z-index: -1;
  inset: 20% 12%;
  border-radius: 50%;
  background: #6546db55;
  filter: blur(55px);
  animation: hero-glow 8s ease-in-out infinite alternate;
}
.hero-float {
  position: absolute;
  z-index: -1;
  inset: -6%;
  transform: perspective(750px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.hero-float img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-image: radial-gradient(ellipse at center, #000 57%, transparent 86%);
  animation: hero-float 8s ease-in-out infinite;
}
.hero-plane {
  position: absolute;
  top: 52%;
  left: 50%;
  z-index: 1;
  width: 89%;
  aspect-ratio: 2.7;
  border: 1px solid #a497ff2b;
  border-radius: 50%;
  opacity: .56;
  transform: translate(-50%, -50%) rotate(-20deg);
  pointer-events: none;
}

.section {
  padding-top: clamp(36px, 6vw, 66px);
  padding-bottom: clamp(34px, 6vw, 64px);
  scroll-margin-top: 26px;
}
.section-heading { margin-bottom: 25px; }
.section h2, .guide-section h2 {
  font-size: clamp(31px, 4.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.section-heading p { max-width: 55ch; margin-top: 12px; }
.tariff-grid, .connect-grid, .app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tariff, .app-grid article {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2.8vw, 26px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--panel-fill);
}
.tariff {
  transition: transform 240ms ease, border-color 240ms ease, background 240ms ease;
}
.tariff:hover {
  border-color: #765bbd;
  transform: translateY(-4px);
}
.tariff--discount {
  border-color: #7a5cd388;
  background: radial-gradient(ellipse at top right, #33234e, transparent 66%), #181525;
}
.tariff h3, .connect-grid h3, .app-grid h3 {
  font-size: 17px;
  line-height: 1.3;
  font-weight: 720;
}
.tariff-price {
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(31px, 4.3vw, 48px);
  line-height: 1.1;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}
.tariff-equivalent { margin-top: 7px; font-size: 14px; }
.tariff-discount {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 9px;
  border-radius: 6px;
  color: #d7cfff;
  background: #44336b;
  font-size: 13px;
  font-weight: 720;
}
.section-actions { margin-top: 20px; }

.connect-grid {
  padding: 0;
  margin: 0;
  list-style: none;
}
.connect-grid li {
  border-top: 1px solid #3d3a58;
  padding: 17px 10px 0 0;
}
.connect-grid p, .app-grid p { margin-top: 8px; }

.faq-list {
  border-top: 1px solid var(--line);
}
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: block;
  min-height: 50px;
  padding: 15px 34px 15px 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 670;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  position: absolute;
  top: 25px;
  right: 8px;
  width: 13px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  content: '';
}
.faq-list summary::after { transform: rotate(90deg); transition: transform .22s ease; }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list p {
  max-width: 63ch;
  padding-bottom: 17px;
}
.faq-list details[open] p { animation: enter .35s ease both; }
.faq-list p a, .guide-section p a, .app-grid a {
  color: var(--accent-2);
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px auto 0;
  padding-top: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
}
.site-footer > span { padding-block: 11px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-footer nav a:hover { color: var(--text); }

.guide { padding-top: clamp(32px, 8vw, 84px); padding-bottom: 42px; }
.guide-heading { padding-bottom: clamp(26px, 5vw, 54px); }
.guide-heading p { margin-top: 16px; font-size: 18px; }
.guide-section { padding-top: 25px; padding-bottom: 27px; border-top: 1px solid var(--line); }
.guide-section h2 { font-size: clamp(24px, 3.6vw, 34px); }
.guide-section > p { max-width: 66ch; margin-top: 13px; }
.app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 19px; }
.app-grid a { display: block; margin-top: 8px; min-height: 29px; overflow-wrap: anywhere; }
.guide-section > .action { margin-top: 20px; }

@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(2px) rotate(-1.5deg) scale(.99); }
  50% { transform: translateY(-9px) rotate(1deg) scale(1.025); }
}
@keyframes hero-glow {
  from { opacity: .5; transform: translate(-7px, -3px); }
  to { opacity: .94; transform: translate(9px, 6px) scale(1.1); }
}
.hero-copy, .hero-art { animation: enter .7s cubic-bezier(.16,1,.3,1) both; }
.hero-art { animation-delay: .09s; }
[data-reveal] { transition: opacity .56s ease, transform .56s cubic-bezier(.16,1,.3,1); }
[data-reveal-pending]:not(:focus-within) { opacity: 0; transform: translateY(16px); }

@media (max-width: 790px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 35px; padding-bottom: 34px; gap: 24px; }
  .hero h1 { max-width: 18ch; }
  .hero p { margin-top: 14px; }
  .hero-art { aspect-ratio: 1.38; width: min(100%, 540px); border-radius: 22px; }
  .hero-float { inset: -17% -5%; }
  .actions { margin-top: 21px; }
}
@media (max-width: 550px) {
  .tariff-grid, .connect-grid, .app-grid { grid-template-columns: minmax(0, 1fr); }
  .connect-grid { gap: 14px; }
  .tariff-discount { position: absolute; top: 16px; right: 16px; margin-top: 0; }
  .tariff h3 { padding-right: 70px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 37px; }
  .hero .actions { gap: 8px; }
  .hero .action { padding-inline: 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal-pending] { opacity: 1 !important; transform: none !important; }
}
