:root {
  --ink: #12121d;
  --text: #242431;
  --muted: #686877;
  --line: #e8e7ed;
  --paper: #ffffff;
  --soft: #f7f7fa;
  --night: #0e0e13;
  --night-2: #15151c;
  --night-line: rgba(255, 255, 255, .09);
  --violet: #7C4DE9;
  --violet-bright: #A34DE9;
  --blue: #4ba8ee;
  --gradient: linear-gradient(135deg, #7C4DE9 0%, #A34DE9 100%);
  --shadow: 0 28px 80px rgba(17, 8, 34, .18);
  --shadow-sm: 0 16px 38px rgba(23, 14, 46, .09);
  --shadow-btn: 0 14px 30px rgba(124, 77, 233, .32);
  --amber: #F5A93F;
  --amber-bright: #FF8A3D;
  --radius-lg: 32px;
  --radius-md: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 5vw, 5rem); }
h2 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { color: var(--muted); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 118px 0; }
.skip-link { position: fixed; top: -100px; left: 18px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; }
.skip-link:focus { top: 18px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px); transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(18, 18, 29, .05); }
.nav-shell { display: flex; height: 78px; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; }
.brand img { width: 138px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: #484853; font-size: 1.04rem; font-weight: 650; }
.site-nav a:hover { color: var(--violet); }
.site-nav a[aria-current="page"] { color: var(--violet); }
.nav-item { position: relative; display: flex; align-items: center; padding-bottom: 16px; margin-bottom: -16px; }
.nav-item > a { font-size: 1.04rem; font-weight: 650; }
.nav-item > a::after { margin-left: 7px; content: "▾"; font-size: .65em; }
.nav-item-toggle { display: none; }
.nav-submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 60; min-width: 210px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 20px 45px rgba(18,18,29,.12); }
@media (min-width: 901px) {
  .nav-item:hover .nav-submenu, .nav-item:focus-within .nav-submenu { display: block; }
}
.nav-submenu a { display: block; padding: 10px 12px; border-radius: 8px; color: #55555f; font-size: .96rem; font-weight: 600; white-space: nowrap; }
.nav-submenu a:hover { background: var(--soft); color: var(--violet); }
.nav-submenu a[aria-current="page"] { color: var(--violet); background: var(--soft); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); transition: .2s; }

.button { display: inline-flex; min-height: 62px; align-items: center; justify-content: center; gap: 11px; padding: 0 33px; border: 1px solid transparent; border-radius: 16px; font-size: 1.05rem; font-weight: 760; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { border: 0; color: #fff; background: linear-gradient(115deg, #7C4DE9 0%, #A34DE9 100%); box-shadow: var(--shadow-btn); }
.button-primary:hover { background: linear-gradient(115deg, #6941C6 0%, #8B41C6 100%); box-shadow: 0 18px 38px rgba(124, 77, 233, .4); }
.button-ghost { border-color: rgba(255,255,255,.14); color: #fff; background: rgba(255,255,255,.055); }
.button-white { color: var(--ink); background: #fff; box-shadow: 0 14px 30px rgba(17, 8, 34, .16); }
.nav-cta { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: .88rem; box-shadow: 0 10px 22px rgba(124, 77, 233, .3); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--violet); font-weight: 760; }
.text-link.light { color: #c687ff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #c783f7; font-size: .79rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 2px; background: currentColor; }
.eyebrow.dark { color: var(--violet); }
.section-heading { margin-bottom: 55px; }
.section-heading.narrow { max-width: 780px; }
.section-heading > p { max-width: 650px; font-size:1.0625rem; }
.download-cta { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.download-switch { display: inline-block; margin: 0; color: var(--muted); font-size: .9375rem; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.download-switch:hover { color: var(--violet); }
.download-os-icon { font-size: .95em; }
.split-heading { display: grid; grid-template-columns: 1.05fr .75fr; align-items: end; gap: 80px; }
.split-heading h2 { margin-bottom: 0; }
.split-heading > p, .split-heading > div:last-child p { margin-bottom: 20px; }

.site-footer { padding: 72px 0 30px; color: #a0a0ad; background: #0b0b10; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 45px; padding-bottom: 62px; }
.footer-brand img { width: 142px; height: auto; }
.footer-brand p { max-width: 320px; margin: 20px 0 12px; color: #92929e; font-size:1.0625rem; }
.footer-brand > a { color: #d1d1d9; font-size: .94rem; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: grid; width: 36px; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; color: #d1d1d9; background: rgba(255,255,255,.04); font-size: .85rem; font-weight: 700; transition: border-color .2s, color .2s, background .2s; }
.footer-social a:hover { border-color: rgba(197,111,255,.5); color: #fff; background: rgba(197,111,255,.12); }
.footer-grid .footer-heading { margin: 6px 0 20px; color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) a { display: block; margin: 10px 0; color: #9a9aa6; font-size: .98rem; }
.footer-grid a:hover { color: #fff !important; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); color: #858590; font-size: .86rem; }

@media (max-width: 900px) {
  .nav-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; z-index: 2; }
  .site-nav { position: fixed; inset: 78px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 28px; border-bottom: 1px solid var(--line); background: #fff; box-shadow: 0 20px 40px rgba(18,18,29,.1); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-item { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-bottom: 0; margin-bottom: 0; border-bottom: 1px solid var(--line); }
  .nav-item > a { grid-column: 1; grid-row: 1; border-bottom: 0; }
  .nav-item > a::after { display: none; }
  .nav-item-toggle { display: flex; grid-column: 2; grid-row: 1; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #55555f; font-size: .95rem; cursor: pointer; transition: transform .2s; }
  .nav-item-toggle:active { background: var(--soft); }
  .nav-item.open .nav-item-toggle { transform: rotate(180deg); color: var(--violet); }
  .nav-submenu { display: none; grid-column: 1 / -1; grid-row: 2; position: static; margin: 4px 0 8px; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .nav-item.open .nav-submenu { display: block; }
  .nav-submenu a { padding: 10px 4px; border-bottom: 0; color: #6b6b78; font-size: .94rem; }
  .menu-open .menu-toggle span:first-child { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 86px 0; }
  h1 { font-size: clamp(2.55rem, 11.5vw, 3.55rem); }
  h2 { font-size: clamp(1.7rem, 6vw, 2.1rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===========================
   Back to Top Button Styles
   =========================== */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #7C4DE9 0%, #A34DE9 100%);
  box-shadow: 0 4px 14px rgba(124, 77, 233, 0.4);

  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  box-shadow: 0 6px 20px rgba(163, 77, 233, 0.55);
  transform: translateY(-4px) scale(1.05);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.97);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }
  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}
