:root {
  --brand-primary: #7c3aed;
  --brand-primary-strong: #6d28d9;
  --brand-accent: #ec4899;
  --brand-cyan: #06b6d4;
  --brand-text: #0f172a;
  --brand-muted: #475569;
  --brand-card: rgba(255, 255, 255, 0.72);
  --brand-card-strong: rgba(255, 255, 255, 0.88);
  --brand-border: rgba(124, 58, 237, 0.14);
  --brand-shadow: 0 18px 60px rgba(76, 29, 149, 0.12);
}

html,
body {
  min-height: 100%;
}

body {
  color: var(--brand-text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28%),
    radial-gradient(circle at bottom center, rgba(124, 58, 237, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8fd 0%, #f8faff 48%, #f6f7ff 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.45), transparent 22%);
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

a {
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-strong);
}

.semi-navigation,
.semi-card,
.semi-card-pro,
.semi-table-container,
.semi-modal-content,
.semi-collapse-item,
.semi-banner,
.semi-descriptions,
.semi-list-item,
.semi-empty,
.semi-input-wrapper,
.semi-select-selection,
.semi-tree,
.semi-popover-content,
.semi-dropdown-menu,
.semi-tabs-bar,
.semi-tag,
.semi-alert,
.semi-notification-notice {
  border-radius: 22px !important;
  border-color: var(--brand-border) !important;
  box-shadow: var(--brand-shadow) !important;
}

.semi-navigation,
.semi-card,
.semi-card-pro,
.semi-modal-content,
.semi-banner,
.semi-descriptions,
.semi-empty,
.semi-popover-content,
.semi-dropdown-menu,
.semi-alert,
.semi-notification-notice {
  background: var(--brand-card) !important;
  backdrop-filter: blur(18px);
}

.semi-table-container,
.semi-list-item,
.semi-collapse-item,
.semi-tabs-bar {
  background: rgba(255, 255, 255, 0.64) !important;
  backdrop-filter: blur(14px);
}

.semi-navigation-header,
.semi-navigation-footer {
  background: transparent !important;
}

.semi-button,
.semi-button-borderless,
.semi-button-light,
.semi-button-tertiary {
  border-radius: 999px !important;
}

.semi-button-primary,
.semi-button-primary:not(.semi-button-disabled) {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
  border: none !important;
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.24) !important;
}

.semi-button-primary:hover,
.semi-button-primary:focus {
  background: linear-gradient(135deg, var(--brand-primary-strong), #db2777) !important;
}

.semi-input-wrapper-focus,
.semi-select.focus .semi-select-selection,
.semi-select-selection:focus-within {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12) !important;
}

.semi-input-wrapper,
.semi-select-selection {
  background: rgba(255, 255, 255, 0.72) !important;
}

.semi-table-thead > .semi-table-row > .semi-table-row-head {
  background: rgba(250, 245, 255, 0.96) !important;
  color: #4c1d95 !important;
}

.semi-table-tbody > .semi-table-row:hover > .semi-table-row-cell {
  background: rgba(245, 243, 255, 0.8) !important;
}

.semi-navigation-item-selected,
.semi-navigation-sub-title-selected {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.12)) !important;
}

.semi-navigation-item-selected .semi-navigation-item-text,
.semi-navigation-sub-title-selected .semi-navigation-item-text {
  color: var(--brand-primary-strong) !important;
  font-weight: 700 !important;
}

.semi-typography h1,
.semi-typography h2,
.semi-typography h3 {
  letter-spacing: -0.02em;
}

.brand-home {
  width: min(1120px, calc(100vw - 32px));
  margin: 28px auto 56px;
  color: var(--brand-text);
}

.brand-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 32px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 32%),
    linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.12), rgba(34, 211, 238, 0.14)),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 80px rgba(91, 33, 182, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.brand-hero::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -60px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 70%);
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary-strong);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.14);
}

.brand-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  font-weight: 900;
}

.brand-hero p {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--brand-muted);
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.76);
  color: var(--brand-primary-strong);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.08);
}

.brand-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.brand-btn-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent)) !important;
  border: none;
}

.brand-code {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-size: 14px;
}

.brand-code code {
  font-size: 14px;
  color: #c4b5fd;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.brand-card {
  display: block;
  padding: 24px 22px;
  border-radius: 26px;
  background: var(--brand-card-strong);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 14px 40px rgba(76, 29, 149, 0.1);
  color: inherit;
  text-decoration: none;
}

.brand-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

.brand-card__eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary-strong);
}

.brand-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.brand-card p {
  margin: 0;
  line-height: 1.8;
  color: var(--brand-muted);
}

.brand-guide {
  width: min(1040px, calc(100vw - 32px));
  margin: 28px auto 56px;
  color: var(--brand-text);
}

.brand-guide__nav,
.brand-guide__hero,
.brand-guide__section {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: var(--brand-shadow);
  backdrop-filter: blur(18px);
}

.brand-guide__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
}

.brand-guide__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-primary-strong);
  text-decoration: none;
}

.brand-guide__logo img {
  width: 42px;
  height: 42px;
}

.brand-guide__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-guide__links a {
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(124, 58, 237, 0.08);
}

.brand-guide__hero {
  margin-top: 18px;
  padding: 34px 32px;
}

.brand-guide__hero h1 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 54px);
}

.brand-guide__hero p {
  margin: 0;
  max-width: 760px;
  line-height: 1.9;
  color: var(--brand-muted);
}

.brand-guide__section {
  margin-top: 18px;
  padding: 28px 26px;
}

.brand-guide__section h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.brand-guide__section p,
.brand-guide__section li {
  line-height: 1.9;
  color: var(--brand-muted);
}

.brand-guide__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.brand-guide__panel {
  padding: 18px;
  border-radius: 22px;
  background: rgba(250, 245, 255, 0.8);
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.brand-guide pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 18px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.brand-guide code {
  font-family: Consolas, "SFMono-Regular", Monaco, monospace;
}

.brand-footer {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(124, 58, 237, 0.14);
  box-shadow: 0 14px 38px rgba(76, 29, 149, 0.1);
}

.brand-footer__title {
  display: block;
  font-weight: 800;
  color: var(--brand-primary-strong);
}

.brand-footer__sub {
  color: var(--brand-muted);
  font-size: 14px;
}

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

.brand-footer__links a {
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 960px) {
  .brand-grid,
  .brand-guide__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-home,
  .brand-guide {
    width: min(100vw - 20px, 100%);
    margin-top: 18px;
  }

  .brand-hero,
  .brand-guide__hero,
  .brand-guide__section {
    padding: 24px 18px;
  }

  .brand-guide__nav {
    padding: 14px 16px;
  }

  .brand-btn {
    width: 100%;
  }
}
