:root {
  --bg-top: #fafaf7;
  --bg-mid: #f4f6f1;
  --bg-low: #eef1ea;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-soft: rgba(246, 249, 247, 0.94);
  --ink: #233738;
  --ink-strong: #18292c;
  --muted: #6d817f;
  --line: rgba(69, 93, 95, 0.12);
  --line-strong: rgba(47, 87, 88, 0.18);
  --sage: #7ab6ab;
  --sage-deep: #3d786f;
  --accent: #ea8c76;
  --accent-deep: #d96f57;
  --shadow-lg: 0 24px 58px rgba(27, 38, 40, 0.1);
  --shadow-md: 0 14px 36px rgba(27, 38, 40, 0.07);
  --shadow-sm: 0 8px 22px rgba(27, 38, 40, 0.05);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(122, 182, 171, 0.16), transparent 26%),
    radial-gradient(circle at 92% 4%, rgba(234, 140, 118, 0.14), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 54%, var(--bg-low) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(rgba(61, 120, 111, 0.038) 1px, transparent 1px);
  background-size: auto, 28px 28px;
  opacity: 0.7;
  z-index: -1;
}

a {
  color: inherit;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(250, 250, 247, 0.88);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.82rem;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid rgba(69, 93, 95, 0.11);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  background: #f8f8f4;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-wordmark {
  width: clamp(148px, 18vw, 210px);
  height: auto;
  display: block;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

.page {
  padding: 2.8rem 0 3.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 430px);
  gap: 1.5rem;
  align-items: stretch;
}

.card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 1.45rem;
  backdrop-filter: blur(18px);
}

.hero-card {
  display: grid;
  gap: 1rem;
  align-content: start;
  overflow: hidden;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(122, 182, 171, 0.12), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(234, 140, 118, 0.09), transparent 24%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0.34rem 0.72rem;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
  color: var(--ink-strong);
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.32rem, 2.5vw, 1.95rem);
}

h3 {
  font-size: 1rem;
}

.lead,
.muted {
  color: var(--muted);
}

.lead {
  margin: 0;
  font-size: 1rem;
  max-width: 62ch;
}

.panel-stack {
  display: grid;
  gap: 0.9rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.mini-panel,
.auth-step {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.95rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 247, 0.78));
}

.mini-panel strong,
.auth-step strong {
  display: block;
  margin-bottom: 0.26rem;
  font-size: 1rem;
}

.feature-list,
.line-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.72rem;
}

.feature-list li,
.line-list li {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.9rem 0.95rem;
}

.feature-list strong,
.line-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

.auth-card {
  display: grid;
  gap: 0.95rem;
  align-content: start;
}

.auth-steps {
  display: grid;
  gap: 0.65rem;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.field {
  display: grid;
  gap: 0.38rem;
}

.field span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 700;
}

.field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.94rem 1rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus {
  outline: none;
  border-color: rgba(61, 120, 111, 0.32);
  box-shadow: 0 0 0 4px rgba(61, 120, 111, 0.09);
  background: #fff;
}

.field-hint {
  margin: -0.04rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.84rem 1.08rem;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--sage-deep), #27544d);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 84, 77, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
  color: var(--ink);
}

.button-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 111, 87, 0.18);
}

.button-full {
  width: 100%;
  justify-content: center;
}

.button[disabled] {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.status {
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 0.9rem 0.98rem;
  font-size: 0.93rem;
}

.status.is-error {
  color: #994340;
  border-color: rgba(185, 98, 95, 0.16);
  background: rgba(255, 238, 236, 0.92);
}

.status.is-success {
  color: #1e6d49;
  border-color: rgba(47, 139, 96, 0.18);
  background: rgba(236, 255, 250, 0.92);
}

.status.is-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.74);
}

.support-note {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.support-note a {
  color: var(--sage-deep);
  font-weight: 700;
}

.dashboard {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  padding: 1.05rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.28rem;
}

.stat-card strong {
  display: block;
  font-size: 1.45rem;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  color: var(--sage-deep);
}

.footer {
  padding: 1.9rem 0 2.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .stats-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .top-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .card {
    border-radius: 24px;
    padding: 1.05rem;
  }
}
