:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: rgba(18, 20, 26, 0.84);
  --panel-strong: rgba(23, 26, 34, 0.94);
  --line: rgba(72, 151, 255, 0.2);
  --text: #edfdfd;
  --muted: #9ba5b4;
  --cyan: #248cff;
  --coral: #5de0ff;
  --gold: #68a6ff;
  --green: #72f4ad;
  --danger: #ff6b72;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.54);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 18%, rgba(36, 140, 255, 0.18), transparent 27rem),
    radial-gradient(circle at 26% 76%, rgba(93, 224, 255, 0.08), transparent 24rem),
    linear-gradient(145deg, #07080b 0%, #0b0d12 48%, #090b10 100%);
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(70, 143, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 143, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

.reef,
.current {
  position: absolute;
  display: block;
  border: 1px solid rgba(28, 226, 213, 0.22);
  transform: rotate(38deg);
}

.reef-a {
  width: 440px;
  height: 440px;
  right: -160px;
  top: 110px;
  border-radius: 44px;
}

.reef-b {
  width: 330px;
  height: 330px;
  left: -120px;
  bottom: 40px;
  border-color: rgba(255, 105, 135, 0.15);
  border-radius: 36px;
}

.current {
  width: 680px;
  height: 160px;
  border: 0;
  border-top: 1px solid rgba(28, 226, 213, 0.13);
  border-radius: 50%;
}

.current-a {
  left: 12%;
  top: 24%;
}

.current-b {
  right: 2%;
  bottom: 18%;
  border-top-color: rgba(255, 190, 88, 0.12);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(9, 10, 13, 0.78), rgba(9, 10, 13, 0.36));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 0 34px rgba(36, 140, 255, 0.22);
}

.brand strong {
  display: block;
  line-height: 1;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(18, 19, 24, 0.72);
}

.nav__item {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  background: transparent;
}

.nav__item.is-active {
  color: var(--text);
  background: rgba(36, 140, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(36, 140, 255, 0.18);
}

.top-actions,
.hero-actions,
.inventory-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.google-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 17px;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #1885ff, #40bcff);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(24, 133, 255, 0.26);
}

.ghost-btn,
.google-btn {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-btn:hover,
.ghost-btn:hover,
.google-btn:hover {
  transform: translateY(-1px);
}

.primary-btn.small,
.ghost-btn.small {
  padding: 9px 13px;
  border-radius: 10px;
}

.wide {
  width: 100%;
}

.view {
  display: none;
  padding: 28px 0 80px;
}

.view.is-active {
  display: block;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(36, 140, 255, 0.22);
  border-radius: 12px;
  color: #c9d7ea;
  background: linear-gradient(90deg, rgba(16, 73, 153, 0.34), rgba(12, 17, 27, 0.28));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
}

.announcement span {
  color: #71b5ff;
  font-weight: 900;
}

.announcement b {
  font-size: 14px;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #5eb1ff;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.hero h1,
.section-head h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  max-width: 850px;
}

.accent-text {
  display: inline-block;
  color: #248cff;
  text-shadow: 0 0 42px rgba(36, 140, 255, 0.3);
}

.lead,
.section-head p,
.feature p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.lead {
  max-width: 640px;
  font-size: 18px;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.metrics span {
  min-width: 132px;
  padding: 12px 14px;
  border: 1px solid rgba(36, 140, 255, 0.14);
  border-radius: 12px;
  background: rgba(19, 21, 28, 0.72);
  color: var(--muted);
}

.metrics b {
  display: block;
  color: var(--text);
}

.client-preview {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.client-preview::before {
  content: "";
  position: absolute;
  inset: 54px -18px 42px 36px;
  border: 1px solid rgba(36, 140, 255, 0.16);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(36, 140, 255, 0.12), transparent 42%),
    radial-gradient(circle at 80% 14%, rgba(93, 224, 255, 0.16), transparent 16rem);
  transform: rotate(-2deg);
  z-index: -1;
}

.preview-window {
  position: relative;
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(92, 159, 255, 0.25);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(11, 13, 19, 0.98), rgba(18, 22, 31, 0.94));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.62), 0 0 70px rgba(36, 140, 255, 0.13);
}

.preview-window::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(to bottom, transparent, rgba(36, 140, 255, 0.08));
}

.preview-window__top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.preview-window__top b {
  margin-left: 8px;
  color: #dcecff;
  font-size: 13px;
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.traffic.red {
  background: #ff5f6d;
}

.traffic.yellow {
  background: #ffd166;
}

.traffic.green {
  background: #72f4ad;
}

.preview-window__body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 326px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 7, 11, 0.58);
}

.preview-sidebar img {
  width: 42px;
  height: 42px;
  margin: 0 0 10px 4px;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(36, 140, 255, 0.28);
}

.preview-sidebar span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  color: #8f9aad;
  font-size: 13px;
  font-weight: 700;
}

.preview-sidebar span.is-active {
  color: #f5fbff;
  background: rgba(36, 140, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(36, 140, 255, 0.18);
}

.preview-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}

.preview-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.preview-panel__head small,
.preview-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-panel__head strong {
  display: block;
  margin-top: 5px;
  font-size: 24px;
}

.preview-panel__head em {
  padding: 6px 10px;
  border-radius: 999px;
  color: #9af5c2;
  background: rgba(114, 244, 173, 0.1);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.toggle-row,
.slider-row {
  display: grid;
  align-items: center;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.toggle-row {
  grid-template-columns: minmax(0, 1fr) 48px;
  padding: 0 12px 0 15px;
}

.toggle-row span,
.slider-row span {
  color: #d9e4f5;
  font-weight: 750;
}

.toggle-row b {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.toggle-row b::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9ba5b4;
  transition: transform 0.18s ease, background 0.18s ease;
}

.toggle-row.is-on b {
  background: rgba(36, 140, 255, 0.35);
}

.toggle-row.is-on b::after {
  transform: translateX(18px);
  background: #ffffff;
}

.slider-row {
  gap: 12px;
  padding: 13px 15px;
}

.slider-row i {
  position: relative;
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.slider-row i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, #1885ff, #5de0ff);
}

.preview-card {
  position: absolute;
  z-index: 3;
  min-width: 186px;
  padding: 15px 17px;
  border: 1px solid rgba(92, 159, 255, 0.22);
  border-radius: 15px;
  background: rgba(13, 16, 24, 0.92);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.preview-card b {
  display: block;
  margin-top: 7px;
  color: #f4fbff;
}

.preview-card-a {
  left: -10px;
  bottom: 58px;
}

.preview-card-b {
  right: 12px;
  bottom: 8px;
}

.artifact {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.artifact::before,
.artifact::after {
  content: "";
  position: absolute;
  border-radius: 32px;
  transform: rotate(45deg);
}

.artifact::before {
  width: 320px;
  height: 320px;
  border: 1px solid rgba(28, 226, 213, 0.24);
  box-shadow: inset 0 0 80px rgba(28, 226, 213, 0.05);
}

.artifact::after {
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 190, 88, 0.28);
}

.artifact img {
  position: relative;
  z-index: 2;
  width: 210px;
  height: 210px;
  border-radius: 36px;
  box-shadow: 0 30px 110px rgba(28, 226, 213, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.artifact__ring {
  position: absolute;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, transparent, rgba(28, 226, 213, 0.32), transparent 30%, rgba(255, 105, 135, 0.26), transparent 65%, rgba(255, 190, 88, 0.24), transparent);
  filter: blur(0.2px);
  opacity: 0.8;
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.artifact__panel {
  position: absolute;
  z-index: 3;
  width: 178px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 18, 31, 0.82);
  box-shadow: var(--shadow);
}

.artifact__panel span {
  display: block;
  color: var(--cyan);
  font-size: 12px;
  margin-bottom: 4px;
}

.panel-a {
  left: 0;
  top: 90px;
}

.panel-b {
  right: 2px;
  bottom: 84px;
}

.feature-grid,
.pricing,
.cabinet {
  display: grid;
  gap: 18px;
}

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

.feature,
.price-card,
.account-card,
.orders-card,
.modal__panel {
  border: 1px solid rgba(72, 151, 255, 0.16);
  background: linear-gradient(145deg, rgba(17, 20, 28, 0.92), rgba(9, 11, 16, 0.82));
  box-shadow: var(--shadow);
}

.feature {
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
}

.feature__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #1885ff, #5de0ff);
  box-shadow: 0 16px 38px rgba(36, 140, 255, 0.22);
}

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

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

.price-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 20px;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 140, 255, 0.14), transparent 42%, rgba(93, 224, 255, 0.08));
  opacity: 0.8;
  pointer-events: none;
}

.price-card > * {
  position: relative;
}

.price-card__badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(36, 140, 255, 0.16);
  color: #8ec6ff;
  font-size: 12px;
  font-weight: 800;
}

.price-card h2 {
  margin: 22px 0 8px;
}

.price {
  margin: 22px 0;
  font-size: 40px;
  font-weight: 900;
}

.price small {
  color: var(--muted);
  font-size: 14px;
}

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

.account-card,
.orders-card {
  border-radius: 20px;
  padding: 24px;
}

.account-data {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.account-data span,
.order {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.account-data span {
  padding: 12px;
  color: var(--muted);
}

.account-data b {
  display: block;
  color: var(--text);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.orders {
  display: grid;
  gap: 12px;
}

.order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
}

.order strong {
  display: block;
  margin-bottom: 5px;
}

.order p {
  margin: 0;
  color: var(--muted);
}

.status {
  align-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #8ec6ff;
  background: rgba(36, 140, 255, 0.13);
  font-size: 12px;
  font-weight: 800;
}

.empty {
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 22px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: grid;
  place-items: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 12, 0.76);
  backdrop-filter: blur(12px);
}

.modal__panel {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100% - 34px));
  padding: 26px;
  border-radius: 22px;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 24px;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 20px 0;
  padding: 5px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.auth-tab {
  border: 0;
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  background: transparent;
}

.auth-tab.is-active {
  color: var(--text);
  background: rgba(36, 140, 255, 0.16);
}

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

.auth-form.is-active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(1, 7, 15, 0.64);
  outline: none;
}

input:focus {
  border-color: rgba(36, 140, 255, 0.58);
}

.google-btn {
  width: 100%;
  margin-top: 12px;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 20px);
  max-width: min(520px, calc(100% - 32px));
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: rgba(7, 18, 31, 0.92);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero,
  .cabinet,
  .feature-grid,
  .pricing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .client-preview {
    min-height: 470px;
  }

  .client-preview::before {
    inset: 40px 0 36px 0;
  }

  .preview-window {
    margin-top: 28px;
  }

  .preview-card-a {
    left: 18px;
    bottom: 36px;
  }

  .preview-card-b {
    right: 18px;
    bottom: -18px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    gap: 12px;
    padding: 12px 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav {
    gap: 4px;
    padding: 4px;
  }

  .nav__item {
    padding: 8px 12px;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions button {
    flex: 1;
  }

  .announcement {
    display: grid;
    gap: 5px;
  }

  .hero h1,
  .section-head h1 {
    font-size: 38px;
    line-height: 1;
  }

  .lead {
    font-size: 16px;
  }

  .hero-actions,
  .metrics,
  .panel-head,
  .order {
    display: grid;
  }

  .client-preview {
    min-height: auto;
    padding-bottom: 0;
  }

  .client-preview::before {
    display: none;
  }

  .preview-window__body {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .preview-sidebar {
    padding: 14px 8px;
  }

  .preview-sidebar img {
    width: 34px;
    height: 34px;
    margin-left: 2px;
  }

  .preview-sidebar span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .preview-panel {
    gap: 10px;
    padding: 16px 12px;
  }

  .preview-panel__head {
    display: grid;
  }

  .preview-panel__head strong {
    font-size: 19px;
  }

  .toggle-row,
  .slider-row {
    min-height: 42px;
  }

  .toggle-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    padding-left: 11px;
  }

  .toggle-row span,
  .slider-row span {
    font-size: 12px;
  }

  .toggle-row b {
    width: 36px;
    height: 22px;
  }

  .toggle-row b::after {
    width: 14px;
    height: 14px;
  }

  .toggle-row.is-on b::after {
    transform: translateX(14px);
  }

  .preview-card {
    position: static;
    margin-top: 12px;
    min-width: 0;
  }
}
