:root {
  --gold: #e1bf7e;
  --muted: #a8b4c9;
  --line: #ffffff22;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #080d1c;
  color: #f7f4ee;
  font-family: "ASTROLEX Persian", Tahoma, Arial, sans-serif;
  line-height: 1.9;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 85% 10%, #27305466, transparent 55%),
    radial-gradient(ellipse at 5% 45%, #79552233, transparent 45%);
  z-index: -1;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6%;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-family: "ASTROLEX Persian", Georgia, serif;
  letter-spacing: 2px;
  direction: ltr;
  font-size: 20px;
}
.brand small {
  display: block;
  color: var(--gold);
  font:
    9px "ASTROLEX Persian",
    Arial;
  letter-spacing: 4px;
}
header > a:last-child {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 35px 28px 70px;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  align-items: center;
  min-height: 480px;
}
.eyebrow {
  font:
    10px "ASTROLEX Persian",
    Arial;
  letter-spacing: 3px;
  color: var(--gold);
  direction: ltr;
  text-align: right;
}
h1 {
  font-size: clamp(28px, 4vw, 47px);
  line-height: 1.65;
  margin: 20px 0;
}
h1 em {
  font-style: normal;
  color: var(--gold);
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.button {
  display: inline-flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  background: linear-gradient(120deg, #f0d5a1, #c49b58);
  color: #1f1a12;
  padding: 14px 23px;
  border: 0;
  border-radius: 12px;
  font:
    700 13px "ASTROLEX Persian",
    Tahoma;
  cursor: pointer;
  box-shadow: 0 10px 35px #d0ab5222;
  transition: transform 0.2s;
  margin-top: 16px;
}
.button:hover {
  transform: translateY(-3px);
}
.button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.orb {
  height: 290px;
  width: 290px;
  margin: auto;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 650px;
  transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite;
}
.orb img {
  width: 200px;
  filter: drop-shadow(0 18px 30px #000);
}
.orb i {
  position: absolute;
  inset: 0;
  border: 1px solid #dbba7288;
  border-radius: 50%;
  box-shadow: 0 0 35px #9abfe511;
  transform: rotateX(65deg) rotateY(20deg);
  animation: orbit 20s linear infinite;
}
.orb i:nth-child(2) {
  inset: -15px;
  animation-direction: reverse;
  animation-duration: 27s;
  border-color: #9bbdef55;
}
.orb i:nth-child(3) {
  inset: 24px;
  animation-delay: -9s;
  border-style: dashed;
}
.orb b {
  position: absolute;
  bottom: -28px;
  color: var(--gold);
  font:
    11px "ASTROLEX Persian",
    Georgia;
  letter-spacing: 4px;
}
.steps {
  display: flex;
  justify-content: space-between;
  padding: 22px 0 32px;
  color: var(--gold);
  font-size: 12px;
}
.panel {
  background: linear-gradient(125deg, #182236aa, #0e1525ee);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow:
    0 30px 80px #0005,
    inset 0 1px #fff1;
}
.panel h2 {
  font-size: 24px;
  margin: 10px 0;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
input,
select,
textarea {
  font:
    14px "ASTROLEX Persian",
    Tahoma;
  color: #fff;
  width: 100%;
  padding: 14px;
  border: 1px solid #ffffff28;
  background: #080e1c;
  border-radius: 10px;
  line-height: 1.7;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
input[type="email"],
input[type="url"],
input[name="telegram"] {
  direction: ltr;
  text-align: left;
}
.note {
  font-size: 12px;
  color: var(--muted);
}
.catalog {
  background: #080f1c88;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.catalog h3 {
  margin: 0;
}
.catalog p {
  color: var(--muted);
  font-size: 12px;
}
#categories {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
details {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 14px;
  color: #e7cf9e;
  font-size: 13px;
}
details[open] summary {
  background: #ffffff06;
}
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  gap: 9px;
}
.options label,
.consent {
  flex-direction: row;
  align-items: flex-start;
}
.options label {
  padding: 10px;
  background: #ffffff04;
  border-radius: 8px;
  font-size: 12px;
}
.options input,
.consent input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--gold);
  margin-top: 5px;
}
#selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font:
    12px "ASTROLEX Persian",
    Tahoma;
  background: #dbb97419;
  border: 1px solid #dbb97455;
  color: #f5d99f;
  border-radius: 20px;
  padding: 9px 13px;
  cursor: pointer;
}
#count {
  color: var(--gold);
}
.consent {
  font-size: 12px;
  margin: 23px 0;
}
#error {
  color: #ffb6b6;
}
/* Honeypot: clipped rather than pushed off-canvas. A negative `left` offset adds
   scrollable width in this RTL document, which is what forced the page ~10000px wide. */
.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
footer {
  text-align: center;
  padding: 30px;
  color: var(--muted);
  font:
    11px "ASTROLEX Persian",
    Georgia;
  letter-spacing: 3px;
}
[hidden] {
  display: none !important;
}
#success {
  padding: 30px 0;
}
#tracking {
  color: var(--gold);
}
@keyframes orbit {
  to {
    transform: rotateX(65deg) rotateY(20deg) rotateZ(360deg);
  }
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotateY(8deg);
  }
}
@media (max-width: 700px) {
  main {
    padding: 22px 16px 45px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 15px 0 40px;
    min-height: 0;
  }
  .hero > div:first-child {
    text-align: center;
  }
  .hero .eyebrow {
    text-align: center;
  }
  .orb {
    width: 215px;
    height: 215px;
  }
  .orb img {
    width: 160px;
  }
  .panel {
    padding: 22px 16px;
  }
  .fields,
  .options {
    grid-template-columns: 1fr;
  }
  .steps {
    font-size: 10px;
  }
  .catalog {
    padding: 14px;
  }
  h1 {
    font-size: 30px;
  }
  header {
    padding: 18px;
  }
  .brand {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Stable initial rendering: animation is explicitly enabled by the visitor. */
html {
  background: #080d1c;
  color-scheme: dark;
}
body {
  background: radial-gradient(ellipse at top right, #1a2540, #080d1c 70%);
}
.ambient {
  display: none;
}
.orb {
  perspective: none;
  transform-style: flat;
  animation: none;
  transform: none;
}
.orb img {
  filter: none;
  position: relative;
  z-index: 1;
}
.orb i {
  animation: none;
  transform: none;
  box-shadow: none;
  border-color: #bba170;
}
.orb i:nth-child(2) {
  border-color: #6986ab;
}
.motion-control {
  background: #182236;
  color: #ead0a0;
  border: 1px solid #bba17080;
  border-radius: 9px;
  padding: 10px 15px;
  font:
    12px "ASTROLEX Persian",
    Tahoma;
  cursor: pointer;
  margin-top: 14px;
}
body.motion-on .orb {
  animation: safeFloat 7s ease-in-out infinite;
}
body.motion-on .orb i {
  animation: safeSpin 26s linear infinite;
}
body.motion-on .orb i:nth-child(2) {
  animation-direction: reverse;
}
@keyframes safeFloat {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes safeSpin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 900px) and (pointer: fine) {
  body.motion-on .orb {
    perspective: 650px;
    transform-style: preserve-3d;
  }
  body.motion-on .orb i {
    animation: orbit 26s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.motion-on .orb,
  body.motion-on .orb i {
    animation: none !important;
  }
}
@media (max-width: 700px) {
  .orb {
    width: 185px;
    height: 185px;
  }
  .hero {
    gap: 30px;
  }
  .hero h1 {
    font-size: 27px;
  }
}

.catalog-picker > summary {
  cursor: pointer;
  padding: 18px;
  border: 1px solid #b9a169;
  border-radius: 12px;
  font-size: 1rem;
}
#categories {
  max-height: 460px;
  overflow: auto;
  overscroll-behavior: contain;
}
.catalog-picker > label {
  display: block;
  margin-top: 16px;
}

/* Infrastructure network: depth-projected nodes, independent of the hero rings. */
body {
  isolation: isolate;
  background: #071321;
}
#networkBackground {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.ambient {
  display: block;
  z-index: -2;
  background:
    radial-gradient(ellipse at 15% 15%, #12445888, transparent 65%),
    radial-gradient(ellipse at 85% 65%, #1c285d88, transparent 60%);
}
header {
  background: #071321cc;
}
.panel {
  background: linear-gradient(125deg, #11263bf5, #0a1427f5);
}
.hero {
  background: linear-gradient(90deg, transparent, #07132155);
  border-radius: 24px;
}
.muted,
label,
summary,
.catalog p,
.note,
.consent,
.options label {
  font-size: 14px;
}
input,
select,
textarea {
  font-size: 16px;
}
.button {
  font-size: 14px;
}
.motion-control {
  font-size: 14px;
}
body.motion-on .orb,
body.motion-on .orb i {
  animation: none !important;
}

/* Mobile viewport hardening — prevent RTL horizontal offset on phones. */
html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
header,
main,
.hero,
.hero > div,
.steps,
.panel,
form,
.fields,
.catalog,
.catalog-picker,
#categories,
details,
.options {
  min-width: 0;
  max-width: 100%;
}
img,
svg,
video,
canvas {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
label,
summary,
.brand,
.chip {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (max-width: 900px) {
  header {
    width: 100%;
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  header > a {
    min-width: 0;
  }
  .brand {
    max-width: 68%;
    font-size: 15px;
    letter-spacing: 1.2px;
  }
  main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 14px 44px;
    overflow: hidden;
  }
  .hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
    padding: 12px 0 36px;
    overflow: hidden;
  }
  .hero > div:first-child {
    width: 100%;
    text-align: center;
  }
  .hero .eyebrow {
    text-align: center;
    letter-spacing: 2px;
  }
  .orb {
    width: min(185px, 58vw);
    height: min(185px, 58vw);
    max-width: 100%;
  }
  .orb img {
    width: min(150px, 46vw);
  }
  .steps {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0 24px;
    text-align: center;
  }
  .panel {
    width: 100%;
    padding: 20px 14px;
    border-radius: 18px;
    overflow: hidden;
  }
  .fields,
  .options {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .fields > *,
  .options > *,
  .wide {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
  }
  input,
  select,
  textarea,
  .button {
    min-width: 0;
    max-width: 100%;
  }
  .catalog {
    width: 100%;
    padding: 12px;
    overflow: hidden;
  }
  .catalog-picker,
  #categories,
  #categories details {
    width: 100%;
    max-width: 100%;
  }
  #selected {
    max-width: 100%;
  }
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}
