:root {
  --bg: #050607;
  --panel: rgba(19, 27, 30, 0.86);
  --panel-strong: rgba(26, 36, 39, 0.94);
  --glass: rgba(255, 255, 255, 0.075);
  --line: rgba(42, 214, 190, 0.5);
  --line-soft: rgba(216, 230, 224, 0.16);
  --text: #ffffff;
  --muted: #d1d9d7;
  --muted-2: #93a19e;
  --accent: #24e1c3;
  --accent-soft: rgba(36, 225, 195, 0.14);
  --gold: #f0b55b;
  --blue: #6fb9ff;
  --danger: #ff7c8f;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(115deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 9, 10, 0.88) 42%, rgba(5, 6, 7, 0.98) 100%),
    linear-gradient(180deg, rgba(36, 225, 195, 0.09), rgba(240, 181, 91, 0.035) 38%, rgba(5, 6, 7, 0.98) 82%),
    url("assets/hero-trading-ops.png") center top / 1680px auto fixed;
  color: var(--text);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  background-image:
    linear-gradient(rgba(31, 230, 202, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 230, 202, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

main,
section,
article,
div,
header,
footer {
  min-width: 0;
}

img,
svg {
  max-width: 100%;
}

body.en {
  direction: ltr;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

textarea {
  resize: vertical;
}

.glass-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--panel);
  border: 1px solid rgba(42, 214, 190, 0.44);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 22px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px) saturate(1.2);
}

.site-header {
  align-items: center;
  backdrop-filter: blur(24px);
  background: rgba(5, 7, 8, 0.86);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  inset: 0 0 auto;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  width: 100%;
  z-index: 20;
}

.brand,
.header-tools,
.hero-actions,
.dash-user,
.dashboard-topbar,
.dash-panel-head,
.plan-top,
.progress-label {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(31, 230, 202, 0.22);
  display: block;
  height: 42px;
  width: 42px;
}

.brand-mark {
  align-items: center;
  background: var(--text);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 0 26px rgba(31, 230, 202, 0.22);
  color: #061011;
  display: grid;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted-2);
  font-size: 0.72rem;
  margin-top: -4px;
}

.nav-links {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.94rem;
  gap: clamp(14px, 2.2vw, 28px);
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.header-tools {
  gap: 10px;
}

.header-action,
.btn,
.lang-toggle {
  align-items: center;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 10px 17px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.header-action,
.btn.glass,
.btn.ghost,
.lang-toggle {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn.primary {
  background: linear-gradient(135deg, #ffffff, #cffff7);
  border: 1px solid var(--accent);
  color: #071011;
  box-shadow: 0 14px 34px rgba(36, 225, 195, 0.18);
}

.header-action:hover,
.btn:hover,
.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.52);
  transform: translateY(-2px);
}

.hero {
  min-height: 94svh;
  overflow: hidden;
  padding: 136px clamp(18px, 6vw, 86px) 86px;
  position: relative;
}

.page-hero {
  min-height: 52svh;
  overflow: hidden;
  padding-top: 144px;
  padding-bottom: 44px;
  position: relative;
}

.page-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.04), rgba(5, 6, 7, 0.78) 58%, rgba(5, 6, 7, 0.96)),
    url("assets/hero-trading-ops.png") center right / cover no-repeat;
  content: "";
  inset: 0;
  opacity: 0.72;
  position: absolute;
  z-index: -1;
}

.page-hero h1,
.auth-page h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.9rem);
}

.hero-bg {
  background: url("assets/hero-trading-ops.png") center right / cover no-repeat;
  inset: 0;
  opacity: 0.56;
  position: absolute;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.22), rgba(5, 8, 10, 0.86) 54%, #050607 100%),
    linear-gradient(180deg, rgba(5, 8, 10, 0.08), #050607 95%);
  inset: 0;
  position: absolute;
}

.hero-shell {
  align-items: end;
  display: grid;
  gap: clamp(24px, 4vw, 58px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: calc(94svh - 222px);
  position: relative;
  z-index: 1;
}

.hero-copy {
  justify-self: end;
  max-width: min(850px, 100%);
}

.eyebrow {
  color: var(--accent);
  font-weight: 900;
  margin: 0 0 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 6.4vw, 5.95rem);
  line-height: 1.08;
  margin-bottom: 20px;
  max-width: 900px;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.75rem, 3.7vw, 3rem);
  line-height: 1.22;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.hero-copy p:not(.eyebrow),
.section-head p:not(.eyebrow),
.calculator-copy p,
.step-card p,
.rule-card p,
.payout-card p,
.faq-list p,
.apply-copy p,
.dash-panel p,
.site-footer {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  max-width: 690px;
}

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

.hero-proof,
.page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof span,
.page-badges span {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 7px 12px;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  position: relative;
}

.hero-panel::before {
  background: linear-gradient(180deg, var(--accent), transparent);
  content: "";
  inset: 0 auto 0 0;
  opacity: 0.5;
  position: absolute;
  width: 3px;
}

.panel-head,
.dash-panel-head,
.dashboard-topbar,
.plan-top,
.progress-label {
  justify-content: space-between;
}

.panel-head span,
.status-grid span,
.quick-stats span,
.payout-card span,
.dash-user small,
.dashboard-topbar span,
.dash-kpi span,
.dash-kpi small,
.dash-panel-head span,
.form-note,
.activity-item span {
  color: var(--muted);
}

.panel-head strong,
.badge,
.pill {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  padding: 2px 10px;
}

.funding-card {
  background:
    linear-gradient(135deg, rgba(36, 225, 195, 0.18), rgba(111, 185, 255, 0.09)),
    rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 8px;
  padding: 15px;
}

.funding-card span {
  color: var(--muted);
}

.funding-card strong {
  font-size: 1.15rem;
}

.funding-track {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.3fr 0.75fr 1fr;
}

.funding-track i {
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.42));
  border-radius: 999px;
  display: block;
  height: 8px;
  opacity: 0.92;
}

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

.status-grid div,
.dash-kpi,
.dash-panel,
.activity-item,
.admin-item {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.status-grid div {
  min-height: 86px;
  padding: 12px;
}

.status-grid span,
.status-grid strong,
.quick-stats span,
.quick-stats strong,
.brand strong,
.brand small {
  display: block;
}

.status-grid strong {
  font-size: 1.18rem;
}

.mini-terminal {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  min-height: 122px;
  padding: 18px;
}

.mini-terminal span {
  animation: pulseLine 2.4s ease-in-out infinite;
  background: linear-gradient(90deg, var(--accent), rgba(255, 255, 255, 0.1));
  border-radius: 999px;
  height: 8px;
}

.mini-terminal span:nth-child(2) {
  animation-delay: 220ms;
  width: 70%;
}

.mini-terminal span:nth-child(3) {
  animation-delay: 440ms;
  width: 46%;
}

.prop-animation {
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(31, 230, 202, 0.12), transparent 54%),
    rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  min-height: 190px;
  overflow: hidden;
  padding: 16px;
  position: relative;
}

.prop-animation::before {
  animation: sweepGlow 4.8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  content: "";
  height: 100%;
  inset: 0 auto 0 -60%;
  position: absolute;
  transform: skewX(-18deg);
  width: 42%;
}

.orbit-core {
  align-items: center;
  display: grid;
  justify-content: center;
  margin-inline: auto;
  position: relative;
  width: 152px;
  height: 152px;
  z-index: 1;
}

.moon-dot {
  background: radial-gradient(circle at 32% 28%, #ffffff, var(--accent) 54%, #06433d);
  border-radius: 999px;
  box-shadow: 0 0 44px rgba(31, 230, 202, 0.42);
  height: 72px;
  width: 72px;
}

.orbit-ring {
  animation: orbitSpin 8s linear infinite;
  border: 1px solid rgba(31, 230, 202, 0.35);
  border-radius: 999px;
  inset: 12px;
  position: absolute;
}

.ring-two {
  animation-duration: 11s;
  inset: 0;
  opacity: 0.55;
  transform: rotate(22deg);
}

.capital-chip {
  align-items: center;
  animation: floatChip 3.4s ease-in-out infinite;
  background: linear-gradient(135deg, #ffffff, #a8fff2);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #071011;
  display: grid;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: absolute;
  width: 34px;
}

.chip-one {
  right: 6px;
  top: 34px;
}

.chip-two {
  animation-delay: 420ms;
  bottom: 12px;
  left: 18px;
}

.chip-three {
  animation-delay: 840ms;
  left: 12px;
  top: 20px;
}

.flow-steps {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}

.flow-steps span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 900;
  min-height: 34px;
  padding: 4px 8px;
  text-align: center;
}

.discount-preview {
  color: var(--accent);
  min-height: 26px;
}

.span-two {
  grid-column: 1 / -1;
}

.account-board {
  display: grid;
  gap: 16px;
}

.account-main {
  display: grid;
  gap: 10px;
}

.account-main > div:first-child {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.account-main span,
.account-grid span,
.admin-summary span {
  color: var(--muted);
}

.account-main strong {
  color: var(--accent);
  font-size: 1.3rem;
}

.progress-track {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  height: 11px;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--accent), #ffffff);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 220ms ease;
}

.account-grid,
.admin-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-grid div,
.admin-summary div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 12px;
}

.account-grid strong,
.admin-summary strong {
  overflow-wrap: anywhere;
}

.quick-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -48px clamp(18px, 6vw, 86px) 0;
  position: relative;
  z-index: 3;
}

.quick-stats > div {
  min-height: 112px;
  padding: 22px;
}

.quick-stats strong {
  font-size: 1.35rem;
}

.rule-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -34px clamp(18px, 6vw, 86px) 0;
  position: relative;
  z-index: 3;
}

.rule-summary > div {
  display: grid;
  min-height: 118px;
  padding: 20px;
}

.rule-summary span,
.rule-summary small {
  color: var(--muted);
}

.rule-summary strong {
  direction: ltr;
  font-size: 2rem;
  line-height: 1.2;
}

.section {
  padding: 92px clamp(18px, 6vw, 86px);
}

.plans-section {
  padding-top: 44px;
}

.section-head {
  margin-bottom: 34px;
  max-width: 830px;
}

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

.showcase-card {
  min-height: 230px;
  padding: 24px;
}

.showcase-card span {
  color: var(--accent);
  display: block;
  font-weight: 900;
  margin-bottom: 18px;
}

.showcase-card h3 {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

.showcase-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.process-section {
  padding-top: 22px;
}

.closing-cta {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(36, 225, 195, 0.12), rgba(240, 181, 91, 0.08)),
    rgba(255, 255, 255, 0.025);
  border-block: 1px solid var(--line-soft);
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.closing-cta .hero-actions {
  margin: 0;
}

.closing-cta h2 {
  margin-bottom: 0;
}

.plan-controls,
.auth-tabs {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
}

.plan-controls {
  background: rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 88px;
  z-index: 8;
}

.segmented {
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  min-height: 42px;
  padding: 8px 16px;
}

.segmented.active {
  background: var(--text);
  color: #071011;
  font-weight: 900;
}

.plans-grid,
.steps-grid,
.rules-grid,
.payout-grid,
.portal-grid,
.admin-grid,
.dashboard-grid,
.dash-kpis,
.calc-results {
  display: grid;
  gap: 16px;
}

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

.plan-card {
  display: grid;
  gap: 16px;
  min-height: 430px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.plan-card::after {
  background: linear-gradient(90deg, transparent, rgba(36, 225, 195, 0.18), transparent);
  content: "";
  height: 1px;
  inset: 0 18px auto;
  position: absolute;
}

.plan-card.featured {
  background:
    linear-gradient(145deg, rgba(36, 225, 195, 0.16), rgba(255, 255, 255, 0.045)),
    var(--panel-strong);
  box-shadow: 0 0 0 1px rgba(36, 225, 195, 0.3), 0 24px 90px rgba(36, 225, 195, 0.14);
}

.plan-top {
  gap: 12px;
  align-items: start;
}

.plan-title {
  display: grid;
  gap: 8px;
}

.plan-title small,
.price span {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.price {
  text-align: left;
}

.price strong {
  direction: ltr;
  display: block;
  font-size: 2rem;
  line-height: 1.25;
  text-align: left;
}

.plan-meter {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.plan-meter span {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 64%;
}

.plan-list,
.dash-checklist {
  color: var(--muted);
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-list li,
.dash-checklist li {
  align-items: start;
  display: flex;
  gap: 8px;
  overflow-wrap: anywhere;
}

.plan-list li::before,
.dash-checklist li::before {
  color: var(--accent);
  content: "✓";
  font-weight: 900;
}

.plan-card .btn {
  align-self: end;
}

.portal-grid {
  align-items: start;
  grid-template-columns: 380px minmax(0, 1fr);
}

.auth-card,
.dashboard-app,
.admin-panel {
  padding: 22px;
}

.auth-page {
  min-height: 100vh;
  padding-top: 148px;
}

.auth-page .auth-card {
  max-width: 520px;
}

.stack-form {
  display: none;
  gap: 14px;
}

.stack-form.active,
.dashboard-app {
  display: grid;
}

.stack-form label {
  color: var(--muted);
  display: grid;
  gap: 7px;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.calculator-panel select {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #071011;
  min-height: 48px;
  padding: 0 12px;
  width: 100%;
}

.stack-form textarea {
  padding-block: 10px;
}

.form-note {
  min-height: 28px;
}

.dash-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dash-kpi {
  display: grid;
  gap: 3px;
  min-height: 116px;
  padding: 16px;
}

.dash-kpi strong {
  direction: ltr;
  font-size: 1.38rem;
  text-align: right;
}

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

.dash-panel,
.step-card,
.rule-card,
.payout-card,
.admin-item,
.activity-item {
  padding: 18px;
}

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

.admin-list,
.activity-list {
  display: grid;
  gap: 10px;
}

.admin-item,
.activity-item {
  display: grid;
  gap: 8px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.small-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  min-height: 34px;
  padding: 6px 10px;
}

.good {
  color: var(--accent);
}

.warn {
  color: var(--gold);
}

.bad {
  color: var(--danger);
}

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

.step-card,
.rule-card,
.payout-card {
  min-height: 218px;
}

.step-card,
.rule-card,
.payout-card,
.dash-panel,
.dash-kpi,
.activity-item,
.admin-item {
  background: rgba(255, 255, 255, 0.058);
}

.step-card > span,
.rule-number {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  display: inline-grid;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  margin-bottom: 18px;
  width: 40px;
}

.calculator-section {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: 0.9fr 1.1fr;
}

.calculator-copy,
.calculator-panel {
  padding: 26px;
}

.calc-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.calc-results div {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 14px;
}

.calc-results span {
  color: var(--muted);
}

.calc-results strong {
  color: var(--accent);
  direction: ltr;
  font-size: 1.2rem;
}

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

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

.payout-card strong {
  display: block;
  font-size: 1.65rem;
  margin: 6px 0 8px;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 940px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

summary::marker {
  color: var(--accent);
}

details p {
  margin: 12px 0 0;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 24px clamp(18px, 6vw, 86px);
}

.site-footer p {
  margin: 0;
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(0.92);
    transform-origin: right;
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes orbitSpin {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1.05);
  }
  100% {
    transform: rotate(360deg) scaleX(1.05);
  }
}

@keyframes floatChip {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(0) scale(0.94);
  }

  50% {
    opacity: 1;
    transform: translateY(-10px) scale(1);
  }
}

@keyframes sweepGlow {
  0%,
  100% {
    left: -60%;
    opacity: 0;
  }

  35%,
  55% {
    opacity: 1;
  }

  75% {
    left: 120%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mini-terminal span,
  .prop-animation::before,
  .orbit-ring,
  .capital-chip {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .plans-grid,
  .showcase-grid,
  .steps-grid,
  .rules-grid,
  .dash-kpis,
  .account-grid,
  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-shell,
  .calculator-section,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 540px;
    width: 100%;
  }

  .quick-stats,
  .rule-summary,
  .payout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .closing-cta {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
    background-size: auto, auto, 980px auto;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .nav-links {
    display: none;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 38px;
    width: 38px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .header-tools {
    flex: 0 0 auto;
  }

  .lang-toggle {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    min-height: auto;
    padding: 108px 16px 46px;
  }

  .hero-shell {
    gap: 22px;
    min-height: 0;
  }

  h1 {
    font-size: clamp(2.05rem, 10vw, 3rem);
    line-height: 1.16;
    max-width: 100%;
  }

  h2 {
    font-size: clamp(1.58rem, 8vw, 2.35rem);
  }

  .hero-copy p:not(.eyebrow),
  .section-head p:not(.eyebrow) {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    padding-inline: 10px;
    width: 100%;
  }

  .hero-proof,
  .page-badges {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 16px;
  }

  .funding-card,
  .status-grid div,
  .quick-stats > div {
    min-height: auto;
  }

  .quick-stats,
  .rule-summary,
  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-grid,
  .showcase-grid,
  .rules-grid,
  .steps-grid,
  .payout-grid,
  .calc-results,
  .dash-kpis,
  .account-grid,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    margin: 0 16px;
  }

  .rule-summary {
    margin: 0 16px;
  }

  .quick-stats > div,
  .rule-summary > div {
    padding: 16px;
  }

  .quick-stats strong,
  .rule-summary strong {
    font-size: 1.1rem;
  }

  .section {
    padding: 58px 16px;
  }

  .page-hero {
    min-height: auto;
    padding: 108px 16px 34px;
  }

  .plans-section {
    padding-top: 28px;
  }

  .page-hero h1,
  .auth-page h1 {
    font-size: clamp(2rem, 10vw, 2.9rem);
  }

  .section-head {
    margin-bottom: 24px;
  }

  .plan-controls,
  .auth-tabs {
    display: grid;
    position: static;
    width: 100%;
  }

  .plan-card {
    min-height: auto;
    padding: 18px;
  }

  .plan-top {
    align-items: start;
  }

  .price strong {
    font-size: 1.68rem;
  }

  .calculator-copy,
  .calculator-panel,
  .auth-card,
  .dashboard-app,
  .admin-panel {
    padding: 18px;
  }

  .dashboard-topbar,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-cta .hero-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .hero,
  .section,
  .page-hero {
    padding-inline: 14px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .quick-stats,
  .rule-summary,
  .status-grid,
  .calc-results {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 14px;
  }
}
