:root {
  --midnight: #090304;
  --midnight-soft: #120607;
  --surface: #1a090b;
  --surface-hover: #2a0d11;
  --text: #fff5f5;
  --muted: #b89c9f;
  --line: rgba(255, 92, 98, 0.16);
  --line-strong: rgba(255, 92, 98, 0.42);
  --accent: #ff4048;
  --protection-accent: #56a8ff;
  --life-color: color-mix(in srgb, var(--accent) 46%, transparent);
  --page-width: 570px;
  --footer-height: 54px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--midnight);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-column {
  width: min(var(--page-width), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  min-height: 100vh;
  padding: 42px 0 calc(var(--footer-height) + 24px);
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
}

.logo-stage {
  width: 100%;
  display: grid;
  place-items: start center;
  padding: clamp(22px, 4vw, 64px) clamp(22px, 8vw, 150px) 30px;
}

.logo-lockup {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.hero-logo {
  display: block;
  width: min(62vw, 1080px);
  max-height: 34vh;
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
}

.hero-tagline {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.intro-wrap {
  padding-bottom: 12px;
}

.intro-copy,
.section-intro,
.section-note,
.closing > p {
  color: var(--muted);
}

.intro-copy {
  max-width: 550px;
}

.intro-copy p {
  margin: 0;
}

.intro-copy strong {
  color: var(--text);
  font-weight: 500;
}

.news {
  padding-top: 78px;
  padding-bottom: 84px;
}

.news-copy {
  margin: 0;
  color: var(--muted);
}

.news-copy strong {
  color: var(--text);
  font-weight: 500;
}

.news-copy a,
.closing-actions a {
  color: var(--text);
  text-underline-offset: 4px;
}

.news-copy a:hover,
.news-copy a:focus-visible,
.closing-actions a:hover,
.closing-actions a:focus-visible {
  color: var(--muted);
}

.news-signal {
  display: inline-block;
  margin-right: 10px;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: 0.08em;
  animation: news-blink 1.1s step-end infinite;
}

@keyframes news-blink {
  50% {
    opacity: 0;
  }
}

.projects {
  padding-top: 30px;
  padding-bottom: 92px;
}

.protect {
  padding-top: 0;
  padding-bottom: 92px;
}

.protect h2 {
  color: var(--protection-accent);
}

html:has(.footer-text) {
  --footer-height: 78px;
}

.protect .section-intro {
  color: color-mix(in srgb, var(--protection-accent) 58%, var(--muted));
}

.protect .project-card {
  --life-color: color-mix(in srgb, var(--protection-accent) 48%, transparent);
  border-color: color-mix(in srgb, var(--protection-accent) 20%, transparent);
  background:
    radial-gradient(circle at 25% 18%, color-mix(in srgb, var(--protection-accent) 16%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--protection-accent) 22%, var(--surface)), var(--midnight-soft));
}

.protect .project-card:nth-child(2) {
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--protection-accent) 17%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--protection-accent) 26%, var(--surface)), var(--midnight-soft));
}

.protect .project-card:nth-child(3) {
  background:
    radial-gradient(circle at 50% 68%, color-mix(in srgb, var(--protection-accent) 15%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--protection-accent) 20%, var(--surface)), var(--midnight-soft));
}

.protect .project-card--static:hover {
  border-color: color-mix(in srgb, var(--protection-accent) 48%, transparent);
}

.protect .project-meta p,
.protect .project-kicker,
.protect .project-status {
  color: color-mix(in srgb, var(--protection-accent) 55%, var(--muted)) !important;
}

.projects h2,
.protect h2,
.closing h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-intro {
  margin: 0 0 26px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  --life-color: color-mix(in srgb, var(--accent) 46%, transparent);
  position: relative;
  min-height: 285px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 25% 18%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 36%),
    linear-gradient(145deg, var(--surface-hover), var(--surface));
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
  outline: none;
}

.project-card:nth-child(2) {
  background:
    radial-gradient(circle at 72% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--midnight-soft));
}

.project-card:nth-child(3) {
  background:
    radial-gradient(circle at 50% 68%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 38%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 13%, var(--surface)), var(--midnight-soft));
}

.life-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 260ms ease;
}

.project-card:hover .life-canvas,
.project-card:focus-visible .life-canvas {
  opacity: 0.72;
}

.project-card--interactive {
  cursor: pointer;
}

.project-card--interactive:hover,
.project-card--interactive:focus-visible {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.project-card--static:hover {
  border-color: color-mix(in srgb, var(--text) 20%, transparent);
}

.project-number {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 20px;
  color: color-mix(in srgb, var(--text) 45%, transparent);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

.project-status {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.project-meta {
  position: absolute;
  z-index: 2;
  inset: auto 20px 20px;
}

.project-kicker {
  margin: 0 0 8px !important;
  color: color-mix(in srgb, var(--text) 45%, transparent) !important;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px !important;
  text-transform: uppercase;
}

.project-meta h3 {
  margin: 0 0 7px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.section-note {
  margin-top: 28px;
}

.section-note p {
  margin: 0 0 18px;
}

.section-note p:last-child {
  margin-bottom: 0;
}

.closing {
  padding-top: 0;
  padding-bottom: 150px;
}

.closing > p {
  margin: 0;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 22px;
}

.closing-actions a {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.site-footer {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--footer-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 11px 30px;
  background: color-mix(in srgb, var(--midnight) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-company {
  display: flex;
  align-items: center;
  justify-self: start;
}

.footer-company img {
  display: block;
  width: 112px;
  height: 28px;
  object-fit: contain;
  object-position: left center;
}

.footer-text {
  max-width: 420px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 36px);
}

.footer-links a {
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.footer-links .login-link,
.footer-links .login-link:hover,
.footer-links .login-link:focus-visible {
  color: var(--accent);
}

.product-modal {
  width: min(900px, calc(100% - 40px));
  max-width: none;
  height: min(780px, calc(100dvh - 40px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.58);
}

.product-modal::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 80% 0, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%),
    linear-gradient(145deg, var(--surface-hover), var(--surface) 42%);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-eyebrow,
.modal-index,
.modal-status {
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.modal-eyebrow {
  margin: 0 0 7px;
  color: var(--muted);
}

.modal-header h2 {
  margin: 0 0 7px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.modal-subtitle {
  margin: 0;
  color: var(--muted);
}

.modal-close {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--muted);
}

.modal-content {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 32px 42px;
  scrollbar-color: var(--line-strong) transparent;
}

.modal-content > section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.modal-content > section:last-child {
  border-bottom: 0;
}

.modal-content h3,
.modal-content h4 {
  font-weight: 500;
}

.modal-content h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.modal-content h4 {
  margin: 0 0 7px;
  font-size: 15px;
}

.modal-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

.modal-content p:last-child {
  margin-bottom: 0;
}

.modal-content ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  columns: 2;
  column-gap: 34px;
}

.modal-content li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.modal-step,
.agent-section {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
}

.modal-index {
  margin: 2px 0 0 !important;
  color: color-mix(in srgb, var(--text) 42%, transparent) !important;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.detail-list article {
  min-height: 150px;
  padding: 20px;
  background: var(--midnight-soft);
}

.detail-list--two article {
  min-height: 180px;
}

.pricing-section:focus {
  outline: 0;
}

.pricing-section:focus-visible {
  outline: 1px solid var(--line-strong);
  outline-offset: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.pricing-card {
  display: flex;
  min-height: 235px;
  padding: 22px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface-hover) 80%, transparent), color-mix(in srgb, var(--midnight-soft) 95%, transparent));
}

.pricing-card h4 {
  margin-bottom: 12px;
  font-size: 18px;
}

.pricing-card__amount {
  display: flex;
  margin-bottom: 14px !important;
  align-items: baseline;
  gap: 7px;
}

.pricing-card__amount strong {
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.pricing-card__amount span,
.pricing-card__capacity {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-transform: uppercase;
}

.pricing-card__capacity {
  margin-top: auto !important;
  padding-top: 18px;
}

.pricing-card__action {
  display: inline-flex;
  min-height: 40px;
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--text);
  border-radius: 999px;
  color: var(--midnight);
  background: var(--text);
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.pricing-card__action:hover,
.pricing-card__action:focus-visible {
  color: var(--text);
  background: transparent;
}

.pricing-state {
  grid-column: 1 / -1;
  margin: 0 !important;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  text-align: center;
}

.modal-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--midnight) 64%, transparent);
}

.modal-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: "Courier New", Courier, monospace;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.modal-action:hover,
.modal-action:focus-visible {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.modal-action--primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--midnight);
}

.modal-action--primary:hover,
.modal-action--primary:focus-visible {
  background: transparent;
  color: var(--text);
}

.modal-status {
  margin-right: auto;
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
  }

  .logo-stage {
    align-items: start;
  }
}

@media (max-width: 720px) {
  :root {
    --footer-height: 78px;
  }

  html:has(.footer-text) {
    --footer-height: 108px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 24px;
  }

  .logo-stage {
    padding-inline: 20px;
  }

  .hero-logo {
    width: 78vw;
    max-height: 28vh;
  }

  .hero-tagline {
    max-width: min(380px, 84vw);
  }

  .news {
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .projects {
    padding-top: 20px;
    padding-bottom: 76px;
  }

  .protect {
    padding-bottom: 76px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 265px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "company"
      "links";
    row-gap: 7px;
    padding: 8px 16px 10px;
  }

  .site-footer:has(.footer-text) {
    grid-template-areas:
      "company"
      "text"
      "links";
  }

  .footer-company {
    grid-area: company;
    justify-self: center;
  }

  .footer-links {
    grid-area: links;
    gap: 22px;
  }

  .footer-text {
    grid-area: text;
    max-width: calc(100vw - 32px);
    justify-self: center;
    font-size: 11px;
  }

  .footer-links a {
    font-size: 11px;
  }

  .footer-company img {
    width: 90px;
    height: 22px;
    object-position: center;
  }

  .product-modal {
    width: calc(100% - 20px);
    height: calc(100dvh - 20px);
    border-radius: 22px;
  }

  .modal-header {
    gap: 18px;
    padding: 22px 20px 19px;
  }

  .modal-content {
    padding: 0 20px 32px;
  }

  .modal-content > section {
    padding: 25px 0;
  }

  .modal-content ul {
    columns: 1;
  }

  .modal-step,
  .agent-section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .detail-list article,
  .detail-list--two article {
    min-height: 0;
  }

  .modal-actions {
    padding: 14px 20px;
  }
}

@media (max-width: 400px) {
  .footer-links {
    gap: 16px;
  }

  .closing-actions {
    display: grid;
    gap: 10px;
  }

  .modal-action {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card {
    transition: none;
  }

  .news-signal,
  .life-canvas {
    animation: none;
    transition: none;
  }
}
