:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: #11141c;
  --surface-2: #171b25;
  --line: rgba(216, 225, 242, .12);
  --text: #f1f3f9;
  --muted: #a0a7b7;
  --red: #e72d3d;
  --red-bright: #ff5867;
  --font: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
::selection { background: #bb2837; color: white; }

.ambient { position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(70px); }
.ambient-one { top: 60px; right: -150px; width: 570px; height: 570px; background: radial-gradient(circle, rgba(165, 14, 34, .22), transparent 70%); }
.ambient-two { top: 610px; left: -300px; width: 570px; height: 570px; background: radial-gradient(circle, rgba(91, 16, 31, .13), transparent 70%); }
.grid-overlay { position: absolute; inset: 0 0 auto; height: 940px; pointer-events: none; z-index: 0; opacity: .18; background-image: linear-gradient(rgba(220, 226, 243, .11) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 226, 243, .11) 1px, transparent 1px); background-size: 66px 66px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.shell { position: relative; z-index: 1; width: min(100% - 80px, 1350px); margin: 0 auto; }

.topbar { height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: var(--red-bright); filter: drop-shadow(0 0 13px rgba(231, 45, 61, .36)); }
.brand-mark svg { width: 42px; height: 42px; }
.brand-name { font-size: 23px; font-weight: 950; font-style: italic; letter-spacing: -.055em; line-height: .82; }
.brand-name > span { color: var(--red-bright); }
.brand-name small { display: block; margin-top: 8px; color: #afb5c4; font-size: 8px; letter-spacing: .46em; font-style: normal; font-weight: 700; }
nav { display: flex; align-items: center; gap: 38px; font-size: 13px; color: #bec3ce; font-weight: 600; }
nav > a:hover { color: white; }
.logout-form { margin: 0; }
.logout-form button { padding: 0; color: #bec3ce; background: none; border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; }
.logout-form button:hover { color: white; }
nav .nav-cta { padding: 12px 17px; color: white; background: rgba(231, 45, 61, .10); border: 1px solid rgba(231, 45, 61, .42); border-radius: 8px; transition: background .2s, transform .2s; }
nav .nav-cta:hover { background: rgba(231, 45, 61, .22); transform: translateY(-2px); }
nav .nav-cta span { margin-left: 10px; color: var(--red-bright); }

.hero { min-height: 635px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 20px; padding: 76px 0 95px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker, .bottom-kicker { color: var(--red-bright); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.eyebrow { display: flex; align-items: center; gap: 13px; }
.eyebrow-line { display: block; width: 30px; height: 2px; background: var(--red); box-shadow: 0 0 16px var(--red); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 28px 0 24px; font-size: clamp(47px, 5.4vw, 82px); font-weight: 900; letter-spacing: -.07em; line-height: .99; }
h1 em { color: var(--red-bright); font-style: normal; }
.hero-copy > p { max-width: 570px; color: var(--muted); line-height: 1.76; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.button { min-height: 52px; padding: 14px 23px; display: inline-flex; justify-content: center; align-items: center; gap: 13px; border-radius: 8px; font-size: 13px; font-weight: 750; white-space: nowrap; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: linear-gradient(135deg, #fa4251, #c51a2d); color: white; box-shadow: 0 14px 32px rgba(211, 28, 49, .23); }
.button-primary:hover { background: linear-gradient(135deg, #ff6570, #df2839); box-shadow: 0 17px 39px rgba(211, 28, 49, .31); }
.button-secondary { border: 1px solid #343a48; background: rgba(19, 22, 30, .85); color: white; }
.button-secondary:hover { background: #222733; border-color: #5b6271; }
.button-icon { font-size: 17px; font-weight: 400; }
.hero-meta { margin-top: 46px; display: flex; align-items: center; gap: 9px; color: #8e96a7; font-size: 11px; letter-spacing: .05em; }
.meta-dot { width: 7px; height: 7px; border-radius: 50%; background: #e64151; box-shadow: 0 0 0 5px rgba(230, 65, 81, .13), 0 0 12px rgba(230, 65, 81, .5); }
.meta-separator { margin: 0 5px; color: #535969; }

.hero-art { position: relative; justify-self: center; width: min(100%, 565px); aspect-ratio: 1; display: grid; place-items: center; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 12%; z-index: -2; border-radius: 50%; background: radial-gradient(circle, rgba(213, 27, 49, .25) 0%, rgba(126, 12, 31, .11) 42%, transparent 69%); filter: blur(11px); }
.hero-art::after { content: ""; position: absolute; inset: 16%; z-index: -1; border-radius: 50%; background: repeating-conic-gradient(from -15deg, rgba(244, 62, 79, .14) 0deg 1deg, transparent 1deg 24deg); mask-image: radial-gradient(circle, transparent 53%, black 54% 58%, transparent 59%); }
.art-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-outer { inset: 4%; border: 1px solid rgba(225, 44, 64, .16); box-shadow: inset 0 0 38px rgba(193, 23, 44, .06), 0 0 50px rgba(193, 23, 44, .06); }
.ring-outer::before, .ring-outer::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid transparent; transform: rotate(-27deg); }
.ring-outer::before { border-top-color: rgba(255, 78, 92, .70); border-right-color: rgba(255, 78, 92, .12); }
.ring-outer::after { border-bottom-color: rgba(255, 78, 92, .42); transform: rotate(15deg); }
.ring-inner { inset: 15%; border: 1px dashed rgba(248, 70, 87, .22); }
.dragon { position: relative; width: 85%; height: 85%; overflow: visible; filter: drop-shadow(0 20px 24px rgba(0, 0, 0, .64)) drop-shadow(0 0 35px rgba(205, 21, 44, .17)); transform: rotate(-5deg); }
.art-index, .art-label { position: absolute; color: #727a8c; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.art-index { top: 11%; right: 8%; }
.art-label { bottom: 11%; left: 8%; }
.art-crosshair { position: absolute; width: 9px; height: 9px; border: 1px solid #a63242; transform: rotate(45deg); }
.crosshair-top { top: 8%; left: 19%; }
.crosshair-bottom { right: 14%; bottom: 14%; }

.downloads-section, .connection-section, .steps-section { padding: 91px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-heading h2 { margin: 12px 0 0; font-size: clamp(29px, 3.3vw, 43px); letter-spacing: -.055em; line-height: 1.1; }
.section-heading h2 span { color: #aab1c0; }
.section-heading > p { max-width: 290px; margin: 0 0 3px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.section-heading > p strong { color: #e9edf5; font-weight: 700; }
.downloads-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.download-card { display: flex; flex-direction: column; min-width: 0; min-height: 300px; padding: 25px; background: linear-gradient(150deg, rgba(26, 29, 39, .96), rgba(14, 17, 24, .98)); border: 1px solid var(--line); border-radius: 13px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.download-card:hover { border-color: rgba(231, 45, 61, .47); transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .19); }
.download-icon { display: grid; place-items: center; width: 49px; height: 49px; margin-bottom: 23px; color: var(--red-bright); background: rgba(231, 45, 61, .10); border: 1px solid rgba(231, 45, 61, .27); border-radius: 11px; font-size: 12px; font-weight: 900; letter-spacing: -.06em; }
.download-platform { color: var(--red-bright); font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.download-card h3 { margin: 6px 0 10px; font-size: 20px; letter-spacing: -.04em; }
.download-card p { margin-bottom: 22px; color: #9da5b4; font-size: 12px; line-height: 1.65; }
.download-card p code { color: #d4d9e5; font-family: ui-monospace, Consolas, monospace; font-size: 11px; overflow-wrap: anywhere; }
.download-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: auto; padding: 13px 15px; color: white; background: #242936; border: 1px solid #353b49; border-radius: 7px; font-size: 12px; font-weight: 750; transition: background .2s, border-color .2s; }
.download-link:hover { background: #3c1e2a; border-color: var(--red-bright); }
.download-link span { color: var(--red-bright); font-size: 17px; line-height: 1; }
.downloads-footnote { margin-top: 17px; color: #929bad; font-size: 12px; line-height: 1.7; }
.downloads-footnote a { color: #e0e5ee; text-decoration: underline; text-decoration-color: rgba(224, 229, 238, .45); text-underline-offset: 3px; }
.downloads-footnote a:hover { color: var(--red-bright); }
.connection-grid { display: grid; grid-template-columns: .95fr 1.35fr; gap: 17px; }
.config-card { position: relative; min-width: 0; padding: 27px; overflow: hidden; background: linear-gradient(145deg, rgba(26, 29, 39, .94), rgba(14, 17, 24, .97)); border: 1px solid var(--line); border-radius: 14px; }
.config-card::before { content: ""; position: absolute; width: 155px; height: 155px; right: -80px; top: -85px; border: 1px solid rgba(232, 53, 72, .17); border-radius: 50%; }
.config-main { border-color: rgba(223, 58, 76, .34); box-shadow: inset 3px 0 0 #d92c3d; }
.card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.card-icon { width: 29px; height: 29px; display: grid; place-items: center; color: var(--red-bright); background: rgba(231, 45, 61, .11); border: 1px solid rgba(231, 45, 61, .21); border-radius: 7px; font-size: 19px; }
.card-label { color: #acb3c2; font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.value-row { display: flex; align-items: center; gap: 10px; }
.value-row code { min-width: 0; overflow-wrap: anywhere; color: #f4f5f9; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(13px, 1.25vw, 17px); font-weight: 650; letter-spacing: -.035em; }
.copy-button { flex: none; margin-left: auto; padding: 8px 10px; color: #dfe3ed; background: #262b38; border: 1px solid #3d4352; border-radius: 6px; font-size: 11px; cursor: pointer; transition: background .2s, border-color .2s; }
.copy-button:hover { background: #373d4b; border-color: var(--red-bright); }
.copy-button span { margin-left: 4px; color: var(--red-bright); }
.config-card > p { margin: 18px 0 0; color: #8e97aa; font-size: 12px; line-height: 1.6; }
.connection-note { margin: 18px 0 0; color: #929bad; font-size: 12px; line-height: 1.6; }
.connection-note span { margin-right: 5px; color: var(--red-bright); font-size: 15px; }

.steps-section { padding-top: 100px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.step { position: relative; min-height: 211px; padding: 26px 27px 29px; background: rgba(18, 21, 29, .66); border: 1px solid var(--line); border-radius: 12px; }
.step-number { position: absolute; right: 24px; top: 20px; color: #4f5666; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.step-symbol { margin-bottom: 24px; color: var(--red-bright); font-size: 28px; line-height: 1; }
.step h3 { margin-bottom: 8px; font-size: 17px; letter-spacing: -.03em; }
.step p { margin-bottom: 0; max-width: 320px; color: #939cad; font-size: 12px; line-height: 1.68; }

.bottom-banner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 35px; margin: 98px 0 86px; padding: 34px 42px; overflow: hidden; border: 1px solid rgba(235, 55, 75, .42); border-radius: 14px; background: linear-gradient(95deg, #3d101b, #1c111b 60%, #11131a); }
.bottom-banner::after { content: ""; position: absolute; width: 250px; height: 250px; right: 7%; top: -135px; border: 1px solid rgba(243, 67, 84, .20); border-radius: 50%; pointer-events: none; }
.bottom-banner h2 { margin: 7px 0 8px; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.055em; }
.bottom-banner p { max-width: 560px; margin-bottom: 0; color: #c4b6c0; font-size: 12px; line-height: 1.6; }
.bottom-banner .button { position: relative; z-index: 1; flex: none; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; border-top: 1px solid var(--line); color: #7d8595; font-size: 11px; }
footer a { color: #c2c8d3; }
footer a:hover { color: white; }
.toast { position: fixed; z-index: 10; bottom: 25px; left: 50%; transform: translate(-50%, 15px); padding: 11px 18px; color: white; background: #292d38; border: 1px solid #59606d; border-radius: 8px; box-shadow: 0 10px 32px rgba(0, 0, 0, .4); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .shell { width: min(100% - 50px, 1350px); }
  .hero { min-height: 570px; }
  h1 { font-size: clamp(44px, 5.6vw, 65px); }
  .hero-art { width: min(100%, 460px); }
  .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connection-grid { grid-template-columns: 1fr 1.1fr; }
  .value-row { align-items: flex-start; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 34px, 620px); }
  .topbar { height: 77px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 36px; height: 36px; }
  .brand-name { font-size: 20px; }
  nav { gap: 10px; }
  nav > a:not(.nav-cta) { display: none; }
  nav .nav-cta { padding: 10px 12px; font-size: 11px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: 68px 0 55px; gap: 12px; }
  h1 { font-size: clamp(46px, 9vw, 65px); }
  .hero-copy > p { font-size: 14px; }
  .hero-meta { margin-top: 35px; }
  .hero-art { width: min(100%, 410px); margin: 0 auto; }
  .downloads-section, .connection-section, .steps-section { padding-top: 70px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 14px; }
  .connection-grid, .steps-grid { grid-template-columns: 1fr; }
  .config-card { padding: 23px; }
  .step { min-height: 0; }
  .bottom-banner { display: block; margin: 70px 0 60px; padding: 29px; }
  .bottom-banner .button { margin-top: 23px; }
  footer { padding: 22px 0; flex-wrap: wrap; min-height: 0; }
}

@media (max-width: 410px) {
  .shell { width: min(100% - 26px, 620px); }
  .brand { gap: 5px; }
  .topbar, nav { gap: 6px; }
  .logout-form button { font-size: 10px; }
  .brand-mark { width: 31px; }
  .brand-mark svg { width: 31px; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 7px; }
  nav .nav-cta { font-size: 10px; padding: 9px; }
  nav .nav-cta span { margin-left: 4px; }
  h1 { font-size: 44px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .downloads-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 0; }
  .value-row { display: block; }
  .copy-button { display: block; margin: 12px 0 0; }
}

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