:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-soft: #080808;
  --panel: rgba(18, 18, 18, 0.92);
  --panel-strong: rgba(22, 22, 22, 0.98);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #fff8f1;
  --muted: #b6ab9c;
  --accent: #ff8a2a;
  --accent-strong: #ffa14f;
  --accent-glow: rgba(255, 138, 42, 0.24);
  --success: #29c06f;
  --danger: #ff6d7a;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  font-family: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 138, 42, 0.14), transparent 26%),
    linear-gradient(180deg, #000 0%, #030303 100%);
}

a,
button {
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

button {
  font: inherit;
  border: 1px solid transparent;
  cursor: pointer;
}

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

button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.site-body {
  min-height: 100vh;
}

.site-shell,
.dashboard-shell,
.callback-shell,
.site-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.site-shell,
.dashboard-shell {
  padding: 24px 0 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand__word {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
  text-transform: lowercase;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button,
.accent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.ghost-button {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.ghost-button:hover {
  border-color: rgba(255, 138, 42, 0.22);
  background: rgba(255, 138, 42, 0.07);
}

.accent-button {
  border-color: rgba(255, 138, 42, 0.38);
  color: #fff8f1;
  background: linear-gradient(180deg, rgba(255, 138, 42, 0.96), rgba(255, 119, 29, 0.96));
  box-shadow: 0 16px 30px rgba(138, 61, 7, 0.28);
}

.accent-button:hover {
  border-color: rgba(255, 138, 42, 0.52);
  box-shadow: 0 18px 34px rgba(138, 61, 7, 0.34);
}

.accent-button--large,
.ghost-button--large {
  min-height: 56px;
  padding: 0 24px;
}

.accent-button--full {
  width: 100%;
  min-height: 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 420px);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 230px);
}

.how-it-works {
  display: grid;
  gap: 44px;
  padding: 42px 0 26px;
}

.how-it-works__header {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.how-it-works__header h2 {
  max-width: 900px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.how-it-works__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.timeline-track {
  position: absolute;
  top: 48px;
  left: calc(12.5% - 16px);
  right: calc(12.5% - 16px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.timeline-track__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 138, 42, 0.25), rgba(255, 138, 42, 0.8), rgba(255, 138, 42, 0.25));
  transform-origin: left center;
  animation: timeline-pulse 4.8s ease-in-out infinite;
}

.how-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  animation: step-fade 4.8s ease-in-out infinite;
}

.how-step__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--panel);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.how-step__node::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  border: 1px solid transparent;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 138, 42, 0.1), 0 0 24px var(--accent-glow);
  animation: node-glow 4.8s ease-in-out infinite;
}

.how-step__badge {
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff8f1;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(138, 61, 7, 0.28);
}

.how-step__icon {
  width: 28px;
  height: 28px;
  color: #e4ddd5;
}

.how-step__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.how-step--1 {
  animation-delay: 0s;
}

.how-step--2 {
  animation-delay: 0.25s;
}

.how-step--3 {
  animation-delay: 0.5s;
}

.how-step--4 {
  animation-delay: 0.75s;
}

.hero__copy,
.hero-card,
.dashboard-card,
.callback-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 46px;
}

.eyebrow {
  color: #e0a56d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__copy h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.hero__copy p,
.callback-card p,
.dashboard-download__text,
.site-footer__brand p {
  color: var(--muted);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  display: grid;
  gap: 20px;
  height: 100%;
  padding: 30px;
}

.hero-card__label,
.dashboard-panel__title {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-card h2,
.callback-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.feature-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.feature-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-size: 22px;
  line-height: 1.3;
}

.feature-list__item--muted {
  color: #8f877e;
}

.feature-list__icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  flex: 0 0 20px;
  font-size: 18px;
  font-weight: 900;
}

.feature-list__icon--success {
  color: var(--success);
}

.feature-list__icon--muted {
  color: #7f7770;
}

.feature-list__tag {
  margin-left: auto;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dashboard-card {
  display: grid;
  gap: 28px;
  padding: 36px;
}

.dashboard-header {
  margin-bottom: 24px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dashboard-user__avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 28px;
  background: rgba(255, 138, 42, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 42, 0.22);
}

.dashboard-user__avatar img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.dashboard-user__identity h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.dashboard-user__identity p {
  color: #c6b5a4;
  font-size: 20px;
}

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

.dashboard-panel {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
}

.dashboard-panel__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 138, 42, 0.12);
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
}

.dashboard-panel__content {
  display: grid;
  gap: 16px;
}

.dashboard-metadata {
  display: grid;
  gap: 16px;
  margin: 0;
}

.dashboard-metadata div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-metadata dt {
  color: var(--muted);
}

.dashboard-metadata dd {
  margin: 0;
  font-weight: 700;
}

.status-banner {
  padding: 14px 16px;
  border: 1px solid rgba(255, 138, 42, 0.22);
  border-radius: var(--radius-md);
  background: rgba(255, 138, 42, 0.08);
  color: #ffe1c2;
}

.status-banner--error {
  border-color: rgba(255, 109, 122, 0.24);
  background: rgba(255, 109, 122, 0.08);
  color: #ffd1d7;
}

.status-banner--success {
  border-color: rgba(41, 192, 111, 0.28);
  background: rgba(41, 192, 111, 0.08);
  color: #d8ffe8;
}

.site-footer {
  padding: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__brand strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.site-footer__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-footer__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hidden {
  display: none !important;
}

.callback-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.callback-card {
  width: min(560px, calc(100vw - 32px));
  display: grid;
  gap: 18px;
  padding: 36px;
  text-align: center;
}

.callback-logo {
  width: 82px;
  height: 82px;
  object-fit: contain;
  margin: 0 auto;
}

@keyframes timeline-pulse {
  0%,
  100% {
    transform: scaleX(0.25);
    opacity: 0.35;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes step-fade {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes node-glow {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

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

  .hero {
    min-height: auto;
  }

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

  .timeline-track {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-shell,
  .dashboard-shell,
  .callback-shell,
  .site-footer {
    width: min(100vw, calc(100vw - 24px));
  }

  .site-header,
  .dashboard-user,
  .dashboard-metadata div,
  .site-footer {
    display: grid;
  }

  .site-header__actions,
  .hero__actions,
  .site-footer__actions {
    width: 100%;
  }

  .site-header__actions > *,
  .hero__actions > *,
  .site-footer__actions > * {
    flex: 1 1 100%;
  }

  .hero__copy,
  .hero-card,
  .dashboard-card,
  .callback-card,
  .dashboard-panel {
    padding: 22px;
  }

  .brand__word {
    font-size: 28px;
  }

  .feature-list__item {
    font-size: 18px;
  }

  .how-it-works {
    gap: 28px;
    padding-top: 28px;
  }

  .how-it-works__timeline {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .how-step {
    justify-items: start;
    text-align: left;
  }
}
