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

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

:root {
  --purple: #533afd;
  --purple-hover: #4434d4;
  --purple-deep: #2e2b8c;
  --purple-light: #b9b9f9;
  --purple-bg: rgba(83, 58, 253, 0.04);
  --heading: #061b31;
  --label: #273951;
  --body: #425466;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --brand-dark: #0a2540;
  --brand-gradient: linear-gradient(135deg, #0a2540 0%, #1c1e54 50%, #2e2b8c 100%);
  --ruby: #ea2261;
  --success: #15be53;
  --success-text: #108c3d;
  --border: #e5edf5;
  --border-purple: #b9b9f9;
  --shadow-card: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px, rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --shadow-sm: rgba(50, 50, 93, 0.1) 0px 6px 12px -2px, rgba(0, 0, 0, 0.06) 0px 3px 7px -3px;
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --content: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family:
    "Inter",
    "Noto Sans SC",
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

.page-shell {
  padding-top: 68px;
}

.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 48px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--heading);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(83, 58, 253, 0.12);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 36px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--label);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--ease);
}

.nav-links a:hover {
  color: var(--purple);
  background: var(--purple-bg);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user {
  color: var(--label);
  font-size: 0.88rem;
  font-weight: 500;
}

.btn,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--purple-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--border-purple);
}

.btn-ghost:hover {
  background: var(--purple-bg);
}

.btn-white {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.flash-stack {
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 0 48px;
  display: grid;
  gap: 12px;
}

.flash {
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}

.flash-success {
  background: #eafaf0;
  border-color: #bde8ca;
  color: var(--success-text);
}

.flash-error {
  background: #fff0ee;
  border-color: #f7c7be;
  color: #b33520;
}

.flash-warning {
  background: #fff7e5;
  border-color: #f0de9d;
  color: #8a6912;
}

.hero {
  padding: 96px 48px 88px;
  background: var(--brand-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(83, 58, 253, 0.24), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  max-width: var(--content);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: 4.2rem;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
  max-width: 860px;
}

.hero-highlight,
.hero h1 strong {
  font-weight: 700;
}

.hero-text {
  font-size: 1.22rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.hero-metric {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 24px;
}

.hero-metric .num {
  font-size: 1.9rem;
  font-weight: 300;
  letter-spacing: -0.6px;
}

.hero-metric .label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.58);
  margin-top: 4px;
}

.sec {
  padding: 100px 48px;
}

.sec-alt {
  background: var(--bg-alt);
}

.sec-dark {
  background: var(--brand-gradient);
  color: #fff;
}

.sec-inner {
  max-width: var(--content);
  margin: 0 auto;
}

.sec-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 12px;
}

.sec-dark .sec-label {
  color: var(--purple-light);
}

h2 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--heading);
  margin-bottom: 16px;
}

h2 strong {
  font-weight: 700;
}

.sec-header p,
.platform-band p,
.card p,
.form-note,
.hero-note {
  font-size: 1.08rem;
  color: var(--body);
  line-height: 1.7;
}

.sec-dark h2,
.sec-dark h3,
.sec-dark p,
.sec-dark li {
  color: #fff;
}

.sec-dark p,
.sec-dark li {
  color: rgba(255, 255, 255, 0.75);
}

.platform-band {
  display: grid;
  grid-template-columns: 1.5fr auto;
  gap: 24px;
  align-items: center;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.platform-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.card-grid {
  display: grid;
  gap: 24px;
}

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

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

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.card-topline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.55rem;
  font-weight: 300;
  letter-spacing: -0.4px;
  color: var(--heading);
  margin-bottom: 12px;
}

.dark-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.dark-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-card h3,
.dark-card p {
  color: #fff;
}

.dark-card p {
  color: rgba(255, 255, 255, 0.72);
}

.module-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.status-pill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--purple-bg);
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link {
  color: var(--purple);
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

.feature-list {
  padding-left: 18px;
  color: var(--body);
  display: grid;
  gap: 10px;
}

.ordered-list {
  padding-left: 22px;
}

.form-page {
  padding: 72px 48px 96px;
}

.form-card,
.dashboard-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.hero-note {
  margin-bottom: 0;
}

.form-card h1,
.dashboard-card h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: -1.4px;
  line-height: 1.08;
  color: var(--heading);
  margin: 0 0 12px;
}

.stack-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--label);
}

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

input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  transition: var(--ease);
}

input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(83, 58, 253, 0.12);
}

.form-note {
  margin: -4px 0 2px;
}

.dashboard-hero {
  padding: 72px 48px 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.profile-grid dt {
  color: var(--label);
  font-size: 0.86rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.profile-grid dd {
  color: var(--heading);
  font-size: 1.02rem;
}

@media (max-width: 1024px) {
  .nav-shell,
  .hero,
  .sec,
  .flash-stack,
  .form-page,
  .dashboard-hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero h1 {
    font-size: 3.4rem;
  }

  .hero-metrics,
  .cols-3,
  .cols-2,
  .platform-band,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .platform-band-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 780px) {
  .nav-shell {
    flex-wrap: wrap;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .page-shell {
    padding-top: 108px;
  }

  .nav-links {
    margin-left: 0;
    order: 3;
    width: 100%;
  }

  .nav-right {
    margin-left: auto;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1,
  .form-card h1,
  .dashboard-card h1 {
    font-size: 2.6rem;
  }

  .inline-fields,
  .module-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
