:root {
  color-scheme: dark;
  --surface-primary: #0a0a0f;
  --surface-elevated: #12121a;
  --surface-raised: #181823;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.66);
  --text-tertiary: rgba(255, 255, 255, 0.42);
  --brand-primary: #ae5dff;
  --brand-border: #bd7aff;
  --brand-glow: rgba(174, 93, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-brand: 0 10px 15px -3px rgba(174, 93, 255, 0.2), 0 4px 6px -4px rgba(174, 93, 255, 0.2);
  --radius-sm: 12px;
  --radius-md: 16px;
  --content: 1150px;
  --wide: 1420px;
  --gutter: max(20px, calc((100vw - var(--content)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--surface-primary);
  color: var(--text-primary);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(174, 93, 255, 0.08), transparent 32%),
    var(--surface-primary);
  background-size: 56px 56px, 56px 56px, auto, auto;
}

a {
  color: inherit;
}

.bot-link {
  color: var(--brand-border);
  font-weight: 700;
  text-decoration-color: currentColor;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.bot-link:hover,
.bot-link:focus-visible {
  color: #ffffff;
  text-decoration-color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 15, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(189, 122, 255, 0.45);
  border-radius: 50%;
  background: #ffffff url("/assets/cheshr-secure-logo.jpg?v=20260626-10") center 55% / 168% auto no-repeat;
  box-shadow: 0 0 38px rgba(174, 93, 255, 0.18);
}

.nav {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  border-radius: 999px;
  padding: 9px 11px;
  text-decoration: none;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.74fr);
  grid-template-areas:
    "copy map"
    "facts facts";
  min-height: clamp(680px, 82svh, 860px);
  overflow: hidden;
  align-items: end;
  gap: clamp(28px, 5vw, 70px);
  padding: clamp(68px, 11vw, 132px) var(--gutter) clamp(28px, 5vw, 58px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
}

.hero-image img {
  width: 100%;
  height: 100%;
  filter: saturate(0.82) contrast(1.08);
  object-fit: cover;
  object-position: 58% center;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.88) 46%, rgba(10, 10, 15, 0.5) 100%),
    linear-gradient(0deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.26) 46%, rgba(10, 10, 15, 0.72) 100%);
}

.hero-content {
  grid-area: copy;
  width: min(100%, 780px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 7.2vw, 88px);
  line-height: 0.98;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.02;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.1;
  font-weight: 700;
}

.hero-copy,
.section-heading p {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
}

.hero-actions,
.support-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 220ms cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: var(--brand-border);
  background: var(--brand-primary);
  color: #ffffff;
  box-shadow: var(--shadow-brand);
}

.button.primary:hover {
  box-shadow:
    var(--shadow-brand),
    0 0 56px rgba(174, 93, 255, 0.18);
}

.button.secondary,
.text-link {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  backdrop-filter: blur(20px);
}

.button.secondary:hover,
.text-link:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--glass-hover);
}

.button:focus-visible,
.text-link:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.device-tab:focus-visible,
.device-panel a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(174, 93, 255, 0.58);
  outline-offset: 3px;
}

.connection-map {
  grid-area: map;
  display: grid;
  gap: 14px;
  width: min(100%, 470px);
  justify-self: end;
  margin-bottom: 18px;
}

.connection-node {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.connection-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 3px solid var(--brand-primary);
  opacity: 0.95;
  pointer-events: none;
}

.connection-node > * {
  position: relative;
}

.connection-node span,
.step,
.mode-card span,
.plan span {
  color: var(--brand-border);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.connection-node strong {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
}

.connection-node small {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.connection-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-inline: 22px;
}

.connection-rail span {
  height: 2px;
  border-radius: 999px;
  background: rgba(174, 93, 255, 0.38);
  animation: pulse-rail 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.connection-rail span:nth-child(2) {
  animation-delay: 140ms;
}

.connection-rail span:nth-child(3) {
  animation-delay: 280ms;
}

.quick-facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 930px);
  margin: 18px 0 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--glass-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.quick-facts div {
  min-height: 92px;
  padding: 18px;
  background: rgba(18, 18, 26, 0.78);
}

.quick-facts dt {
  margin-bottom: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.quick-facts dd {
  margin-bottom: 0;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.14;
  font-weight: 700;
}

.strip {
  display: flex;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 17px var(--gutter);
  border-block: 1px solid var(--glass-border);
  background: rgba(18, 18, 26, 0.9);
  color: var(--text-secondary);
  text-align: center;
  backdrop-filter: blur(20px);
}

.strip strong {
  color: var(--text-primary);
}

.section {
  padding: clamp(64px, 8vw, 112px) var(--gutter);
  scroll-margin-top: 88px;
}

.section-heading {
  max-width: 940px;
  margin-bottom: 32px;
}

.section-heading p {
  max-width: 780px;
  margin: 18px 0 0;
}

.intro,
.device-guides,
.faq {
  background: rgba(255, 255, 255, 0.025);
}

.flow,
.mode-grid,
.plans {
  display: grid;
  gap: 16px;
}

.flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile,
.mode-card,
.plan,
.device-panels,
.faq-list details {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.tile,
.mode-card,
.plan,
.faq-list details {
  transition:
    transform 220ms cubic-bezier(0.25, 0.8, 0.25, 1),
    border-color 220ms ease,
    background 220ms ease;
}

.tile:hover,
.mode-card:hover,
.plan:hover,
.faq-list details:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--glass-hover);
}

.tile {
  min-height: 230px;
  padding: 24px;
}

.tile p,
.mode-card p,
.plan p,
.device-panel li,
.faq-list p {
  color: var(--text-secondary);
  line-height: 1.58;
}

.step {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(174, 93, 255, 0.44);
  border-radius: 999px;
  background: rgba(174, 93, 255, 0.08);
}

.modes,
.support {
  border-block: 1px solid var(--glass-border);
  background: rgba(18, 18, 26, 0.68);
}

.mode-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-card {
  position: relative;
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
}

.mode-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(174, 93, 255, 0.2);
  border-radius: 24px;
  transform: rotate(12deg);
}

.mode-card span,
.plan span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
  border: 1px solid rgba(174, 93, 255, 0.34);
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(174, 93, 255, 0.08);
}

.subscription {
  display: grid;
  gap: 8px;
}

.plans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}

.plan {
  padding: 28px;
}

.plan h3 {
  font-size: clamp(30px, 4vw, 46px);
}

.text-link {
  width: fit-content;
  margin-top: 18px;
}

.device-guide-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.device-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.device-tab {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  background: var(--glass-bg);
  color: var(--text-secondary);
  cursor: pointer;
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.device-tab:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--glass-hover);
  color: var(--text-primary);
}

#tab-ios:checked ~ .device-tabs label[for="tab-ios"],
#tab-android:checked ~ .device-tabs label[for="tab-android"],
#tab-windows:checked ~ .device-tabs label[for="tab-windows"],
#tab-mac:checked ~ .device-tabs label[for="tab-mac"],
#tab-tv:checked ~ .device-tabs label[for="tab-tv"] {
  border-color: rgba(174, 93, 255, 0.5);
  background: rgba(174, 93, 255, 0.16);
  color: var(--text-primary);
}

#tab-ios:focus-visible ~ .device-tabs label[for="tab-ios"],
#tab-android:focus-visible ~ .device-tabs label[for="tab-android"],
#tab-windows:focus-visible ~ .device-tabs label[for="tab-windows"],
#tab-mac:focus-visible ~ .device-tabs label[for="tab-mac"],
#tab-tv:focus-visible ~ .device-tabs label[for="tab-tv"] {
  outline: 3px solid rgba(174, 93, 255, 0.58);
  outline-offset: 3px;
}

.device-panels {
  background: rgba(18, 18, 26, 0.72);
}

.device-panel {
  display: none;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  min-height: 250px;
  padding: clamp(22px, 4vw, 36px);
}

#tab-ios:checked ~ .device-panels #guide-ios,
#tab-android:checked ~ .device-panels #guide-android,
#tab-windows:checked ~ .device-panels #guide-windows,
#tab-mac:checked ~ .device-panels #guide-mac,
#tab-tv:checked ~ .device-panels #guide-tv {
  display: grid;
}

.device-panel h3 {
  margin-bottom: 0;
}

.device-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.device-panel a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration-color: var(--brand-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 700;
}

.faq-list p {
  margin: 0;
  padding: 0 22px 22px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.footer a {
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}

[data-reveal] {
  animation: reveal-up 0.75s cubic-bezier(0.25, 0.8, 0.25, 1) both;
  animation-timeline: view();
  animation-range: entry 0% cover 28%;
}

.hero [data-reveal] {
  animation-timeline: auto;
}

.hero .connection-map {
  animation-delay: 90ms;
}

.hero .quick-facts {
  animation-delay: 160ms;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes pulse-rail {
  0%,
  100% {
    opacity: 0.28;
    transform: scaleX(0.62);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (min-width: 1700px) {
  :root {
    --content: 1480px;
    --wide: 1880px;
  }

  h1 {
    font-size: 98px;
  }

  h2 {
    font-size: 72px;
  }

  .hero-copy,
  .section-heading p {
    font-size: 23px;
  }

  .connection-map {
    width: min(100%, 540px);
  }
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "map"
      "facts";
    align-items: start;
  }

  .connection-map {
    justify-self: start;
    width: min(100%, 760px);
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.9) 62%, rgba(10, 10, 15, 0.62) 100%),
      linear-gradient(0deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.38) 54%, rgba(10, 10, 15, 0.72) 100%);
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav a {
    padding-inline: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 58px;
  }

  .hero-image img {
    object-position: 47% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(10, 10, 15, 0.98) 0%, rgba(10, 10, 15, 0.86) 58%, rgba(10, 10, 15, 0.64) 100%),
      rgba(10, 10, 15, 0.48);
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hero-actions,
  .support-actions,
  .button {
    width: 100%;
  }

  .connection-node {
    min-height: 104px;
  }

  .quick-facts,
  .flow,
  .mode-grid,
  .plans {
    grid-template-columns: 1fr;
  }

  .quick-facts div {
    min-height: 76px;
  }

  .tile,
  .mode-card {
    min-height: 0;
  }

  .device-panel {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
