@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #090a0f;
  --surface: rgba(18, 20, 29, 0.72);
  --text: #f5f7fb;
  --muted: #9298aa;
  --faint: #505565;
  --line: rgba(255, 255, 255, 0.085);
  --accent: #8275ff;
  --accent-bright: #b0a7ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 71% 36%, rgba(84, 73, 221, 0.1), transparent 22rem),
    radial-gradient(circle at 20% 88%, rgba(55, 45, 124, 0.07), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  content: '';
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 30px 5vw 22px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(130, 117, 255, 0.3));
}

.brand-name {
  color: #dfe2ec;
}

.site-footer,
.footer-note,
.eyebrow,
.step-number {
  color: var(--muted);
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

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

.hero {
  position: relative;
  display: flex;
  width: min(1180px, 100%);
  flex: 1;
  min-height: min(660px, calc(100vh - 120px));
  margin: 0 auto;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(610px, 58%);
  padding: 48px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 12px var(--accent);
}

h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(2.9rem, 5.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.hero-title-product {
  display: block;
  white-space: nowrap;
  font-size: 0.72em;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

h1 em {
  display: block;
  color: var(--accent-bright);
  font-size: 0.84em;
  font-style: normal;
  white-space: nowrap;
}

.hero-description {
  max-width: 450px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 16px 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

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

.button:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.button-primary {
  background: var(--text);
  color: #11121a;
  box-shadow: 0 11px 35px rgba(194, 190, 255, 0.12);
}

.button-primary:hover {
  background: #dcd9ff;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #d7d9e3;
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.23);
  background: rgba(255, 255, 255, 0.06);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(4, 5, 10, 0.76);
  backdrop-filter: blur(12px);
}

.install-modal {
  position: relative;
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid rgba(176, 167, 255, 0.27);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(28, 28, 47, 0.98), rgba(13, 14, 23, 0.98));
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), 0 0 70px rgba(106, 94, 255, 0.16);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: border-color 180ms ease, color 180ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.modal-close:focus-visible,
.copy-button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

.install-modal h2 {
  max-width: 360px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.install-instruction {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(176, 167, 255, 0.17);
  border-radius: 13px;
  background: rgba(4, 5, 12, 0.55);
}

.install-instruction code {
  min-width: 0;
  flex: 1;
  align-self: center;
  color: #d9d5ff;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.copy-button {
  align-self: center;
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid rgba(176, 167, 255, 0.25);
  border-radius: 8px;
  background: rgba(130, 117, 255, 0.15);
  color: var(--accent-bright);
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}

.copy-button:hover {
  border-color: rgba(176, 167, 255, 0.5);
  background: rgba(130, 117, 255, 0.25);
}

.copy-status {
  min-height: 17px;
  margin: 11px 0 0;
  color: var(--accent-bright);
  font-size: 11px;
}

.button-arrow {
  color: var(--faint);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.button-primary .button-arrow {
  color: #55508e;
}

.product-preview {
  position: absolute;
  top: 50%;
  right: 0;
  width: min(43vw, 510px);
  aspect-ratio: 1.08 / 1;
  transform: translateY(-50%);
}

.product-preview-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(176, 167, 255, 0.32);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(30, 30, 51, 0.86), rgba(10, 11, 18, 0.9));
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.32), 0 0 65px rgba(106, 94, 255, 0.1);
}

.product-preview-window::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%);
  content: '';
  pointer-events: none;
}

.product-preview-toolbar {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--faint);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
}

.product-preview-toolbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.product-preview-toolbar small {
  margin-left: 7px;
  color: rgba(245, 247, 251, 0.58);
  font-size: 9px;
}

.product-preview-placeholder {
  display: grid;
  height: calc(100% - 37px);
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px dashed rgba(176, 167, 255, 0.3);
  margin: 18px;
  border-radius: 13px;
  color: rgba(223, 226, 236, 0.75);
  font-size: 13px;
}

.product-preview-logo {
  display: block;
  width: min(68%, 260px);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(130, 117, 255, 0.28));
}

.product-preview-placeholder small {
  color: var(--faint);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.hero-footer {
  position: absolute;
  right: 0;
  bottom: 27px;
  left: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.footer-note {
  margin: 0;
  font-size: 11px;
}

.process-list {
  display: flex;
  gap: clamp(27px, 5vw, 73px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--faint);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.process-step.is-active {
  color: var(--text);
}

.process-step.is-active .step-number {
  color: var(--accent-bright);
}

.step-number {
  font-size: 10px;
}

.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  justify-content: flex-start;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
}

.site-footer a {
  color: #6e7382;
  transition: color 180ms ease;
}

@media (max-width: 860px) {
  .hero-copy {
    width: 64%;
  }

  .product-preview {
    right: -10%;
    width: min(48vw, 420px);
    opacity: 0.72;
  }
}

@media (max-width: 640px) {
  .site-shell {
    min-height: 100svh;
    padding: 22px 22px 18px;
  }

  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
    padding: 76px 0 170px;
  }

  h1 {
    max-width: 480px;
    font-size: clamp(2.75rem, 12vw, 4rem);
    line-height: 1.04;
  }

  .hero-title-product {
    font-size: 0.68em;
  }

  h1 em {
    white-space: normal;
  }

  .hero-description {
    max-width: 370px;
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .product-preview {
    top: 56%;
    right: -22%;
    width: 86vw;
    opacity: 0.48;
  }

  .hero-footer {
    bottom: 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .process-list {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .site-footer {
    gap: 16px;
    line-height: 1.5;
  }

  .install-modal {
    padding: 28px 20px 24px;
  }

  .install-instruction {
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }
}

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