:root {
  --page: #f4f7fb;
  --panel: #ffffff;
  --panel-soft: #f7f9fc;
  --ink: #101828;
  --ink-soft: #475467;
  --muted: #667085;
  --line: #dce4ef;
  --line-strong: #c3cfdd;
  --navy: #07111f;
  --navy-soft: #0d1d32;
  --teal: #12bfa6;
  --teal-dark: #078a79;
  --teal-soft: #e8faf6;
  --violet: #7657ef;
  --cyan: #25a9e8;
  --danger: #b42318;
  --success: #087b61;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

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

button {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1200px, calc(100vw - 48px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(18, 191, 166, 0.14);
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: rgba(226, 232, 240, 0.7);
  font-size: 11px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  color: rgba(226, 232, 240, 0.78);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a {
  padding: 9px 0;
  transition: color 160ms ease;
}

.desktop-nav a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(226, 232, 240, 0.66);
  font-size: 11px;
  font-weight: 700;
}

.language-control select {
  height: 36px;
  padding: 0 28px 0 10px;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 9px;
  outline: none;
  background: #101d30;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.language-control option {
  color: var(--ink);
  background: #fff;
}

.header-login,
.header-plan {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.header-login {
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.header-plan {
  color: #041714;
  background: #43ddc3;
  box-shadow: 0 10px 26px rgba(18, 191, 166, 0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(37, 169, 232, 0.2), transparent 34%),
    radial-gradient(circle at 70% 82%, rgba(118, 87, 239, 0.16), transparent 34%),
    linear-gradient(135deg, #07111f 0%, #0b1829 58%, #07111f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to right, transparent, #000 42%, #000);
}

.hero-grid {
  position: relative;
  width: min(1200px, calc(100vw - 48px));
  min-height: 680px;
  margin: 0 auto;
  padding: 64px 0 70px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(560px, 1.2fr);
  gap: 54px;
  align-items: center;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: #62e5cf;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero-lead {
  max-width: 520px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 17px;
  line-height: 1.82;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 11px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.button-primary {
  color: #031512;
  background: linear-gradient(135deg, #51e7cc, #32c9b1);
  box-shadow: 0 16px 34px rgba(18, 191, 166, 0.22);
}

.button-secondary {
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.chain-proof {
  max-width: 500px;
  margin-top: 22px;
  color: rgba(203, 213, 225, 0.62);
  font-size: 12px;
  line-height: 1.7;
}

.mobile-login-intro {
  display: none;
}

.cockpit-preview {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  border-radius: 22px;
  background: rgba(5, 14, 26, 0.82);
  box-shadow: 0 32px 90px rgba(2, 8, 23, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.preview-topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px 14px;
}

.preview-topbar > div {
  display: grid;
  gap: 3px;
}

.preview-label {
  color: rgba(203, 213, 225, 0.54);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-topbar strong {
  font-size: 14px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #8bf1dd;
  border: 1px solid rgba(45, 212, 191, 0.18);
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.08);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 12px #2dd4bf;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.preview-stats > div {
  min-width: 0;
  padding: 13px 12px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 11px;
  background: rgba(15, 29, 48, 0.74);
}

.preview-stats span,
.preview-stats small {
  display: block;
  overflow: hidden;
  color: rgba(203, 213, 225, 0.54);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-stats strong {
  display: block;
  margin: 7px 0 5px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1;
  text-overflow: ellipsis;
}

.positive {
  color: #4de3c9 !important;
}

.preview-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, 0.78fr);
  gap: 9px;
  margin-top: 9px;
}

.market-panel,
.decision-panel {
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 13px;
  background: rgba(15, 29, 48, 0.68);
}

.market-panel {
  padding: 14px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.panel-heading small {
  color: #4de3c9;
}

.signal-chart {
  position: relative;
  height: 178px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 8px;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 100% 36px, 64px 100%;
}

.signal-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.chart-area {
  fill: url(#areaGradient);
}

.chart-line {
  fill: none;
  stroke: #2dd4bf;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(45, 212, 191, 0.46));
}

.signal-row {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(203, 213, 225, 0.7);
  font-size: 10px;
}

.signal-row > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.signal-row strong {
  color: #e2e8f0;
}

.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
}

.dot.teal { background: #2dd4bf; }
.dot.violet { background: #8b7cf6; }

.decision-panel {
  padding: 16px;
}

.decision-panel h2 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.decision-panel > p {
  color: rgba(203, 213, 225, 0.62);
  font-size: 10px;
  line-height: 1.65;
}

.decision-panel ul {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  list-style: none;
}

.decision-panel li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 9px;
  color: rgba(203, 213, 225, 0.56);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 10px;
}

.decision-panel li strong {
  color: #f8fafc;
}

.auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  background: rgba(2, 8, 23, 0.76);
  backdrop-filter: blur(10px);
}

.auth-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 90;
  width: min(520px, calc(100vw - 36px));
  max-height: min(780px, calc(100vh - 36px));
  display: none;
  overflow: auto;
  padding: 22px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

body.auth-panel-open {
  overflow: hidden;
}

body.auth-panel-open .auth-backdrop,
body.auth-panel-open .auth-card {
  display: block;
}

.auth-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #64748b;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.panel-tabs {
  width: calc(100% - 42px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 11px;
  background: #edf2f7;
}

.tab-btn {
  min-height: 38px;
  color: var(--muted);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.tab-btn.active {
  color: #fff;
  background: var(--navy-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.tab-page {
  display: none;
}

.tab-page.active {
  display: block;
}

.auth-heading {
  padding-right: 26px;
  margin-bottom: 18px;
}

.auth-heading h2 {
  margin-bottom: 6px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.auth-heading p {
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.field[hidden] {
  display: none !important;
}

.plan-card[hidden] {
  display: none !important;
}

.input-shell,
.select-shell {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-shell:focus-within,
.select-shell:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 191, 166, 0.12);
}

.input-shell svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #8b98aa;
  stroke-width: 1.8;
}

.input-shell input,
.select-shell select {
  width: 100%;
  min-width: 0;
  height: 44px;
  color: var(--ink);
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
}

.input-shell input::placeholder {
  color: #98a2b3;
}

.form-message:empty {
  display: none;
}

.form-message {
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
}

.error-msg {
  color: var(--danger);
  background: #fff0ee;
}

.status-msg {
  color: var(--success);
  background: #eafaf5;
}

.auth-submit {
  width: 100%;
  margin-top: 2px;
}

.auth-text-action {
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.mobile-setup-note {
  display: none;
}

.payment-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.order-box {
  display: none;
}

.order-box.active {
  display: block;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.order-title,
.order-line,
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-title {
  margin-bottom: 10px;
  font-weight: 850;
}

.order-status {
  color: var(--teal-dark);
  font-size: 11px;
}

.order-kv {
  display: grid;
}

.order-line {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.order-line span {
  color: var(--muted);
  flex: 0 0 auto;
}

.order-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: right;
}

.order-amount {
  color: var(--teal-dark);
  font-size: 14px;
}

.tx-row {
  align-items: stretch;
  margin-top: 12px;
}

.tx-row input {
  min-width: 0;
  flex: 1;
  padding: 9px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
}

.btn-secondary {
  padding: 0 12px;
  color: #fff;
  border-radius: 8px;
  background: var(--navy-soft);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.proof-strip {
  width: min(1120px, calc(100vw - 48px));
  margin: -26px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(220, 228, 239, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.proof-strip > div {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 11px;
}

.section {
  width: min(1120px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 94px 0 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading-left {
  max-width: 600px;
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.control-copy h2,
.final-cta h2 {
  font-size: clamp(30px, 3.5vw, 45px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.section-heading > p:last-child,
.control-copy > p:last-of-type,
.final-cta > div > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.75;
}

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

.loop-grid article,
.stage-card,
.plan-card {
  position: relative;
  min-height: 206px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.05);
}

.loop-grid article::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  opacity: 0.75;
}

.loop-grid article > span {
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 900;
}

.loop-grid h3,
.stage-card h3,
.control-grid h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.loop-grid p,
.stage-card p,
.control-grid p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.stage-section {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 54px;
  align-items: end;
}

.stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stage-card {
  min-height: 246px;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: var(--navy-soft);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.stage-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -44px;
  top: -44px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.16);
}

.stage-card > span {
  color: #69e7d1;
  font-size: 11px;
  font-weight: 900;
}

.stage-card h3 {
  margin-top: 56px;
}

.stage-card p {
  color: rgba(226, 232, 240, 0.65);
}

.stage-maintain {
  transform: translateY(-16px);
  background: linear-gradient(145deg, #12352f, #0b1e2c);
}

.stage-defend::before {
  background: rgba(118, 87, 239, 0.18);
}

.control-section {
  margin-top: 94px;
  padding: 58px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
  color: #fff;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 20%, rgba(37, 169, 232, 0.18), transparent 34%),
    linear-gradient(135deg, #07111f, #0d1d32);
  box-shadow: var(--shadow);
}

.control-copy > p:last-of-type {
  color: rgba(203, 213, 225, 0.66);
}

.dark-button {
  margin-top: 24px;
}

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

.control-grid article {
  min-height: 142px;
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.control-grid article > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #67e8d2;
  border-radius: 9px;
  background: rgba(45, 212, 191, 0.1);
  font-weight: 900;
}

.control-grid h3 {
  margin: 3px 0 6px;
  font-size: 15px;
}

.control-grid p {
  color: rgba(203, 213, 225, 0.62);
  font-size: 11px;
}

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

.plan-card {
  min-height: 284px;
  display: flex;
  flex-direction: column;
}

.plan-card.featured {
  border-color: rgba(18, 191, 166, 0.52);
  box-shadow: 0 20px 50px rgba(18, 191, 166, 0.12);
}

.plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan-top h3 {
  font-size: 17px;
}

.plan-top span {
  padding: 5px 8px;
  color: var(--teal-dark);
  border-radius: 999px;
  background: var(--teal-soft);
  font-size: 9px;
  font-weight: 900;
}

.price {
  margin: 24px 0 12px;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.price span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.plan-desc,
.plan-list {
  color: var(--muted);
  font-size: 11px;
}

.plan-list {
  margin-top: 12px;
}

.plan-card button {
  min-height: 42px;
  margin-top: auto;
  color: #fff;
  border-radius: 9px;
  background: var(--navy-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.plan-card.featured button {
  color: #041714;
  background: #43ddc3;
}

.plan-card button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pricing-status {
  margin-top: 14px;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
}

.pricing-status:empty {
  display: none;
}

.final-cta {
  width: min(1120px, calc(100vw - 48px));
  margin: 84px auto 0;
  padding: 42px 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  color: #fff;
  border-radius: 20px;
  background: linear-gradient(135deg, #0a1a2c, #12352f);
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 650px;
  font-size: 34px;
}

.final-cta > div > p:last-child {
  color: rgba(203, 213, 225, 0.64);
}

.final-actions {
  margin-top: 0;
}

.site-footer {
  width: min(1120px, calc(100vw - 48px));
  min-height: 100px;
  margin: 54px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer > div {
  display: grid;
  gap: 3px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-footer nav button {
  color: var(--teal-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .desktop-nav {
    gap: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .cockpit-preview {
    max-width: 780px;
  }

  .stage-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading-left {
    max-width: 720px;
  }

  .control-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 64px;
  }

  body {
    background: var(--navy);
  }

  .site-header {
    position: relative;
    background: #07111f;
    backdrop-filter: none;
  }

  .header-inner {
    width: 100%;
    min-height: 64px;
    padding: 10px 14px;
    gap: 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    display: none;
  }

  .desktop-nav,
  .desktop-action,
  .desktop-marketing {
    display: none !important;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .language-control select {
    width: 92px;
    height: 36px;
    padding-left: 10px;
    font-size: 11px;
  }

  .hero {
    min-height: calc(100dvh - 64px);
    overflow: visible;
    background:
      radial-gradient(circle at 86% 10%, rgba(37, 169, 232, 0.16), transparent 32%),
      linear-gradient(180deg, #07111f, #0a1728);
  }

  .hero::before {
    display: none;
  }

  .hero-grid {
    width: 100%;
    min-height: calc(100dvh - 64px);
    padding: 18px 14px 22px;
    display: block;
  }

  .mobile-login-intro {
    display: block;
    margin: 0 auto 14px;
    color: #fff;
  }

  .mobile-login-intro .eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .mobile-login-intro h1 {
    margin-bottom: 5px;
    font-size: 25px;
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .mobile-login-intro > p:last-child {
    color: rgba(203, 213, 225, 0.66);
    font-size: 12px;
  }

  .auth-card {
    position: static;
    width: 100%;
    max-height: none;
    display: block;
    overflow: visible;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    transform: none;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
  }

  body.auth-panel-open {
    overflow: auto;
  }

  .auth-backdrop,
  .auth-close,
  .panel-tabs {
    display: none !important;
  }

  .auth-heading {
    padding-right: 0;
    margin-bottom: 14px;
  }

  .auth-heading h2 {
    font-size: 21px;
  }

  .auth-heading p {
    font-size: 12px;
  }

  .auth-form {
    gap: 11px;
  }

  .field {
    gap: 5px;
  }

  .input-shell,
  .select-shell {
    min-height: 44px;
  }

  .input-shell input,
  .select-shell select {
    height: 42px;
  }

  .button {
    min-height: 46px;
  }

  .auth-text-action {
    margin-top: 8px;
    padding: 6px;
  }

  .mobile-setup-note {
    display: block;
    margin-top: 3px;
    color: #98a2b3;
    font-size: 10px;
    text-align: center;
  }

  .order-line,
  .tx-row {
    align-items: stretch;
    flex-direction: column;
  }

  .order-line strong {
    text-align: left;
  }

  .btn-secondary {
    min-height: 40px;
  }

  .site-footer {
    width: calc(100% - 28px);
    min-height: 66px;
    margin-top: 0;
    justify-content: center;
    color: rgba(148, 163, 184, 0.62);
    border-top-color: rgba(148, 163, 184, 0.12);
    text-align: center;
  }

  .site-footer strong {
    color: rgba(226, 232, 240, 0.82);
  }
}

@media (max-width: 390px) {
  .mobile-login-intro h1 {
    font-size: 23px;
  }

  .auth-card {
    padding: 16px;
  }
}

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

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