:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-deep: #050a10;
  --panel: rgba(11, 20, 29, 0.78);
  --panel-solid: #0d1721;
  --panel-soft: #111f2c;
  --line: rgba(151, 174, 204, 0.2);
  --line-strong: rgba(151, 174, 204, 0.34);
  --text: #f5f8fc;
  --muted: #a8b4c4;
  --soft: #79879a;
  --blue: #2d8cff;
  --blue-2: #53a4ff;
  --red: #f0444f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --max: 1180px;
  --hero-max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Offset in-page anchor jumps so the sticky header doesn't cover the target. */
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 18%, rgba(45, 140, 255, 0.18), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(34, 105, 185, 0.13), transparent 32%),
    linear-gradient(180deg, #07111b 0%, #061018 48%, #07111a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 80px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Skip link: visually hidden until focused by keyboard */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 50;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 0 0 8px 0;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Skip-link target: move focus here without a full-width outline box.
   The content below exposes its own focus indicators on interactive elements. */
#main:focus {
  outline: none;
}

/* Visible focus indicator for all interactive controls */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 2px;
  border-radius: 4px;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 36px;
  padding: 22px clamp(26px, 4vw, 48px);
  background: rgba(5, 10, 16, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img,
.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand strong,
.footer-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.brand small,
.footer-brand span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 40px);
  color: #c7d0dc;
  font-size: 14px;
  font-weight: 650;
}

.nav a,
.footer a {
  text-decoration: none;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.header-cta,
.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #2f94ff, #1878ea);
  border-color: rgba(92, 166, 255, 0.45);
  box-shadow: 0 12px 30px rgba(45, 140, 255, 0.22);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.header-cta:active,
.button:active {
  transform: scale(0.96);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.42fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  width: min(var(--hero-max), calc(100% - 56px));
  min-height: 720px;
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero-copy {
  max-width: 430px;
  min-width: 0;
}

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

h1,
h2 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(40px, 4.2vw, 54px);
  font-weight: 830;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-highlight {
  margin-bottom: 22px;
  color: var(--blue-2);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 820;
  line-height: 1.15;
}

.hero-tagline {
  margin-bottom: 26px;
  color: #f7f9fd;
  font-size: 24px;
  font-weight: 790;
  line-height: 1.2;
}

.hero-tagline span {
  color: var(--muted);
  font-weight: 660;
}

.hero-body {
  margin-bottom: 36px;
  color: #bac4d2;
  font-size: 17px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 18px;
  margin-bottom: 36px;
}

.button {
  min-width: 188px;
  min-height: 56px;
}

.button i {
  font-size: 27px;
}

.trust-note {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: #b9c4d0;
  font-size: 14px;
  line-height: 1.45;
}

.trust-note i {
  color: #c8d4e2;
  font-size: 19px;
}

.demo-panel {
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(78, 141, 208, 0.12), transparent 36%),
    rgba(9, 18, 27, 0.82);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.demo-topbar,
.demo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.demo-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.demo-topbar strong {
  font-size: 17px;
}

.demo-topbar > div:first-child {
  flex: 0 0 auto;
}

.demo-topbar span {
  margin-left: 8px;
  color: var(--soft);
  font-size: 13px;
}

.demo-footer div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-small,
.demo-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 8px;
  color: #e8eef6;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.demo-small:active,
.demo-danger:active {
  transform: scale(0.96);
}

.demo-footer .demo-small,
.demo-footer .demo-danger {
  padding-right: 11px;
  padding-left: 11px;
  font-size: 13px;
}

.demo-danger {
  color: #fff;
  background: linear-gradient(180deg, #f04752, #cf2b35);
  border-color: rgba(255, 255, 255, 0.12);
}

.row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row-check input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.demo-list {
  padding: 12px 12px 0;
}

.demo-row {
  display: grid;
  grid-template-columns: 28px 132px minmax(0, 1fr) auto 20px;
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.demo-row.is-selected {
  background: rgba(45, 140, 255, 0.05);
}

.demo-row img {
  width: 132px;
  height: 74px;
  object-fit: cover;
  border-radius: 5px;
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

.row-text h3 {
  display: -webkit-box;
  margin-bottom: 6px;
  overflow: hidden;
  color: #f5f7fb;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.row-text p,
.duration {
  margin: 0;
  color: #9ea9b7;
  font-size: 12px;
}

.duration {
  color: #d7dee8;
}

.section-inner {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
}

.pain-section,
.workflow,
.privacy-callout,
.faq {
  padding: 48px 0 54px;
  border-top: 1px solid var(--line);
}

.pain-section h2,
.workflow h2 {
  margin-bottom: 42px;
  text-align: center;
}

h2 {
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 820;
  line-height: 1.16;
}

h3 {
  font-size: 18px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 16px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  text-align: center;
}

.pain-grid article {
  padding: 8px 20px;
}

.pain-grid i {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 47px;
  line-height: 1;
}

.pain-grid p {
  margin-bottom: 0;
  font-size: 14px;
}

.workflow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
  text-align: center;
}

.workflow-grid article {
  position: relative;
}

.workflow-grid article:not(:last-child)::after {
  position: absolute;
  top: 68px;
  left: calc(50% + 54px);
  width: calc(100% - 70px);
  height: 2px;
  content: "";
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 50%, transparent 0);
  background-size: 10px 2px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 800;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  color: #adb8c7;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 42px;
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.025);
}

.step-icon.danger {
  color: var(--red);
}

.workflow-grid p {
  max-width: 190px;
  margin-right: auto;
  margin-left: auto;
  font-size: 15px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 30px;
  align-items: center;
  padding: 34px 42px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--blue);
  border: 2px solid rgba(45, 140, 255, 0.72);
  border-radius: 16px;
  font-size: 46px;
}

.privacy-panel h2 {
  margin-bottom: 10px;
}

.privacy-panel p {
  margin-bottom: 0;
}

.privacy-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #cbd4df;
  font-size: 15px;
}

.privacy-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-panel li i,
.policy-list i {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.faq-grid {
  max-width: 760px;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 24px;
  color: #d9e1ea;
}

code {
  padding: 2px 5px;
  color: #d8ecff;
  background: rgba(45, 140, 255, 0.12);
  border: 1px solid rgba(45, 140, 255, 0.22);
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.faq-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 42px;
}

details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  color: #f3f7fb;
  font-weight: 760;
}

details p {
  margin: 12px 0 0;
}

.footer {
  padding: 34px 0 22px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr;
  gap: 46px;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: grid;
  gap: 4px;
  align-content: start;
  color: var(--muted);
  font-size: 14px;
}

.footer nav strong {
  margin-bottom: 8px;
  color: var(--text);
}

.disclaimer {
  width: min(var(--max), calc(100% - 56px));
  margin: 28px auto 0;
  color: var(--soft);
  text-align: center;
  font-size: 14px;
}

.policy-page {
  background:
    radial-gradient(circle at 25% 0%, rgba(45, 140, 255, 0.16), transparent 32%),
    var(--bg);
}

.policy-main {
  padding: clamp(56px, 8vw, 100px) 0;
}

.policy-content {
  width: min(820px, calc(100% - 56px));
  margin: 0 auto;
}

.policy-content h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}

.policy-content h2 {
  margin-top: 40px;
}

.policy-content ul {
  color: var(--muted);
  font-size: 17px;
}

.policy-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.policy-list li {
  display: flex;
  gap: 10px;
}

.updated,
.policy-trademark {
  color: var(--soft);
}

.demo-swipe-cue {
  display: none;
}

@media (max-width: 1100px) {
  .demo-topbar,
  .demo-footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .demo-footer div {
    gap: 4px;
  }

  .demo-topbar strong {
    font-size: 15px;
  }

  .demo-topbar span {
    margin-left: 4px;
    font-size: 12px;
  }

  .demo-small,
  .demo-danger {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 11px;
  }

}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 48px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .demo-panel {
    max-width: 760px;
    overflow-x: auto;
  }

  .demo-topbar,
  .demo-footer,
  .demo-list {
    min-width: 700px;
  }

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

  .workflow-grid article::after {
    display: none;
  }

  .privacy-panel {
    grid-template-columns: 80px 1fr;
  }

  .privacy-panel ul {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 18px 20px;
  }

  .header-cta {
    width: 100%;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .hero,
  .section-inner,
  .disclaimer,
  .policy-content {
    width: min(100% - 40px, var(--max));
  }

  .hero {
    gap: 38px;
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .button {
    min-width: 0;
  }

  .demo-panel {
    overflow-x: auto;
  }

  .demo-topbar,
  .demo-footer {
    min-width: 680px;
  }

  .demo-list {
    min-width: 680px;
  }

  .demo-swipe-cue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }

  .pain-grid,
  .workflow-grid,
  .privacy-panel,
  .footer-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid article {
    padding-right: 0;
    padding-left: 0;
  }

  .privacy-panel {
    padding: 28px 24px;
  }

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

/* Respect reduced-motion preference: disable non-essential animation */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
