:root {
  --navy-deep: #0d1b2a;
  --navy: #1b263b;
  --slate: #415a77;
  --muted: #778da9;
  --deep-teal: #264653;
  --teal: #2a9d8f;
  --teal-bright: #3cb8a9;
  --surface: #f3f6f5;
  --text: #0d1b2a;
  --text-soft: #415a77;
  --border: rgba(13, 27, 42, 0.12);
  --focus-ring: rgba(42, 157, 143, 0.35);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 157, 143, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(38, 70, 83, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f2 0%, var(--surface) 40%, #e6edeb 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

body.locked {
  overflow: hidden;
}

.login-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(42, 157, 143, 0.22), transparent 60%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.94) 0%, rgba(27, 38, 59, 0.9) 45%, rgba(38, 70, 83, 0.92) 100%);
}

.login-gate[hidden] {
  display: none;
}

.login-panel {
  width: 100%;
  max-width: 24rem;
  padding: 2rem 1.75rem 1.85rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  animation: rise-in 700ms var(--ease) both;
}

.login-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.login-heading {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep-teal);
  margin-bottom: 0.4rem;
}

.login-lede {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 1.35rem;
}

.login-form {
  display: grid;
  gap: 1rem;
}

.login-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--deep-teal);
}

.login-field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(42, 157, 143, 0.55);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  translate: 0 -50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}

.password-toggle:hover {
  color: var(--deep-teal);
  background: rgba(38, 70, 83, 0.06);
}

.password-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
}

.login-error {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #b42318;
}

.login-error[hidden] {
  display: none;
}

.login-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.app-content[hidden] {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-bright);
}

.btn-secondary {
  background: #fff;
  color: var(--deep-teal);
  border-color: var(--border);
}

.btn-secondary:hover,
.btn-secondary[data-copied="true"] {
  border-color: rgba(42, 157, 143, 0.45);
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 242, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-teal);
}

.header-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-link {
  font-weight: 600;
  color: var(--slate);
}

.header-link:hover {
  color: var(--deep-teal);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 3.5rem 1.5rem 5.5rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(42, 157, 143, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(13, 27, 42, 0.92) 0%, rgba(27, 38, 59, 0.88) 45%, rgba(38, 70, 83, 0.9) 100%);
  animation: atmosphere-shift 12s var(--ease) infinite alternate;
}

@keyframes atmosphere-shift {
  from {
    filter: saturate(1);
    transform: scale(1);
  }
  to {
    filter: saturate(1.08);
    transform: scale(1.02);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  color: #e8f4f2;
  animation: rise-in 700ms var(--ease) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 14ch;
  margin-bottom: 0.85rem;
}

.hero-lede {
  max-width: 36rem;
  font-size: 1.08rem;
  color: rgba(232, 244, 242, 0.86);
  margin-bottom: 1.6rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-cta .btn-primary {
  animation: cta-pulse 2.8s var(--ease) 1.1s infinite;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(60, 184, 169, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(60, 184, 169, 0);
  }
}

.hero-meta {
  font-size: 0.92rem;
  color: rgba(232, 244, 242, 0.62);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(232, 244, 242, 0.78);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: #fff;
}

.scroll-cue:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 6px;
  border-radius: 4px;
}

.scroll-cue-label {
  white-space: nowrap;
}

.scroll-cue-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 2.1rem;
  margin-top: 0.1rem;
}

.scroll-cue-arrow {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.28rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0;
  animation: scroll-arrow-fall 1.6s var(--ease) infinite;
}

.scroll-cue-arrow:nth-child(2) {
  animation-delay: 0.22s;
}

.scroll-cue-arrow:nth-child(3) {
  animation-delay: 0.44s;
}

@keyframes scroll-arrow-fall {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-4px, -4px);
  }
  35% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.25;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(6px, 6px);
  }
}

.section {
  padding: 3.25rem 1.5rem;
}

.section-quiet {
  padding-top: 0.5rem;
  padding-bottom: 4rem;
}

.section-inner {
  max-width: 880px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--deep-teal);
  margin-bottom: 0.55rem;
}

.section-lede {
  color: var(--text-soft);
  max-width: 36rem;
  margin-bottom: 1.25rem;
}

.smartscreen-steps {
  list-style: none;
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin: 0 0 1.25rem;
  counter-reset: ss-step;
}

.smartscreen-steps li {
  position: relative;
  padding-left: 2.75rem;
  color: var(--text-soft);
}

.smartscreen-steps li::before {
  counter-increment: ss-step;
  content: counter(ss-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--deep-teal);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.smartscreen-steps strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.smartscreen-steps em {
  font-style: normal;
  color: var(--teal);
  font-weight: 700;
}

.warn-subhead {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 1.75rem 0 0.45rem;
}

.warn-copy {
  color: var(--text-soft);
  max-width: 40rem;
  margin-bottom: 1rem;
}

.ui-mocks {
  display: grid;
  gap: 1.5rem;
  margin: 0.35rem 0 0.5rem;
  max-width: 28rem;
}

.ui-mock {
  margin: 0;
}

.ui-mock figcaption {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* Chrome download panels */
.chrome-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(32, 33, 36, 0.16);
  border: 1px solid rgba(32, 33, 36, 0.08);
  overflow: hidden;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #202124;
}

.chrome-panel-head,
.chrome-panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.chrome-panel-head {
  font-weight: 500;
}

.chrome-x {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1a73e8;
  font-size: 1.15rem;
  line-height: 1;
}

.chrome-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
}

.chrome-warn-icon {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.2rem;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: #444746;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding-top: 0.28rem;
}

.chrome-row-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.15rem;
}

.chrome-row-text strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-row-text span {
  font-size: 0.82rem;
  color: #5f6368;
}

.chrome-chevron {
  color: #757575;
  font-size: 1.35rem;
  line-height: 1;
}

.chrome-panel-foot {
  color: #202124;
  font-size: 0.9rem;
}

.chrome-ext {
  color: #757575;
  font-size: 0.95rem;
}

.chrome-panel-detail {
  padding-bottom: 1rem;
}

.chrome-detail-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem 0.55rem;
}

.chrome-detail-head strong {
  font-size: 0.92rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chrome-back,
.chrome-close {
  color: #444746;
  font-size: 1.1rem;
  line-height: 1;
}

.chrome-detail-body {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 1rem 1rem;
  font-size: 0.92rem;
  color: #1f1f1f;
  line-height: 1.4;
}

.chrome-detail-body p {
  margin: 0 0 0.35rem;
}

.chrome-detail-body a {
  color: #0b57d0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.88rem;
  pointer-events: none;
}

.chrome-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0 1rem;
}

.chrome-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
}

.chrome-btn-primary {
  background: #0b57d0;
  color: #fff;
}

.chrome-btn-keep {
  background: #d3e3fd;
  color: #041e49;
}

/* Windows SmartScreen dialogs */
.ss-dialog {
  background: #3c3a39;
  color: #fff;
  border-radius: 2px;
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.22);
  font-family: "Segoe UI", system-ui, sans-serif;
}

.ss-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ss-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ss-close {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  background: #fff;
  color: #1b1a19;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 1px;
}

.ss-text {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  max-width: 36ch;
}

.ss-more {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #fff;
}

.ss-meta {
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.ss-meta > div {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.ss-meta dt {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

.ss-meta dd {
  margin: 0;
  color: #fff;
  word-break: break-word;
}

.ss-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.45rem 0.95rem;
  background: #fff;
  color: #1b1a19;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 1px;
}

.smartscreen-steps kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(13, 27, 42, 0.16);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.82em;
  color: var(--navy);
}

.license-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.license-key {
  display: inline-block;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.85rem, 2.4vw, 1.05rem);
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px dashed rgba(42, 157, 143, 0.45);
  border-radius: 10px;
  color: var(--navy-deep);
  user-select: all;
  word-break: break-all;
}

.license-limit {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.license-limit a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.license-limit a:hover {
  color: var(--deep-teal);
}

.section-note {
  min-height: 1.4em;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--teal);
}

.privacy-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 1.75rem;
  color: var(--text-soft);
}

.privacy-list li {
  position: relative;
  padding-left: 1.15rem;
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
}

.support-line {
  color: var(--slate);
  font-weight: 500;
}

.support-line a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-line a:hover {
  color: var(--deep-teal);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  padding: 1.75rem 1.5rem 2.25rem;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 0.65rem;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 40rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-atmosphere,
  .hero-copy,
  .hero-cta .btn-primary,
  .scroll-cue-arrow {
    animation: none;
  }

  .scroll-cue-arrow {
    opacity: 0.7;
  }

  .btn:hover {
    transform: none;
  }
}
