/* ---- Base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f5f6f8;
  --bg-elevated: #ffffff;
  --text: #101218;
  --muted: #7a7f89;
  --accent: #2ecc71;
  --accent-soft: rgba(46, 204, 113, 0.12);
  --border-subtle: #e1e3ea;

  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: rgba(245, 246, 248, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 227, 234, 0.7);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.logo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #61ff9a, var(--accent));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  padding: 0.35rem 0.2rem;
}

.nav-links a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent);
  color: #fff !important;
  font-weight: 600;
}

/* ---- Hero ---- */

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  max-width: 460px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.1s ease, border-color 0.15s ease;
}

.btn.primary {
  background-color: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(46, 204, 113, 0.4);
}

.btn.ghost {
  background-color: transparent;
  border-color: var(--border-subtle);
  color: var(--text);
}

.btn.ghost:hover {
  background-color: #ffffff;
}

/* Hero meta pills */

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pill {
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: #149a4c;
  font-size: 0.8rem;
}

/* ---- Hero Preview Card ---- */

.hero-preview {
  display: flex;
  justify-content: flex-end;
}

.card {
  background-color: var(--bg-elevated);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.3rem 1.4rem;
  border: 1px solid rgba(225, 227, 234, 0.9);
  max-width: 360px;
  width: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.1rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.card-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background-color: var(--accent-soft);
  color: #0b8c3c;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.1rem;
}

.value {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.stat-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.stat-chip.good {
  background-color: var(--accent-soft);
  color: #0b8c3c;
}

.progress-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.progress-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background-color: #edf0f5;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #61ff9a, var(--accent));
}

.mini-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mini-footer .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23c765;
}

/* ---- Highlights ---- */

.highlights {
  padding: 2.5rem 0 2.8rem;
}

.highlights-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.highlight h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.highlight p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---- Info Strip ---- */

.info-strip {
  padding: 1.8rem 0 2.1rem;
}

.info-inner {
  text-align: center;
}

.info-inner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid rgba(225, 227, 234, 0.8);
  padding: 1rem 0 1.4rem;
  background-color: #f2f3f6;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Responsive ---- */

@media (max-width: 880px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .hero-preview {
    justify-content: flex-start;
  }

  .highlights-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-inner {
    gap: 0.75rem;
  }

  .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .nav-cta {
    display: none; /* if nav gets too crowded on mobile */
  }
}

/* Auth pages */

.auth-page {
  padding: 3.5rem 0 3rem;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  background-color: var(--bg-elevated);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 2rem 2.2rem 2.4rem;
  border: 1px solid rgba(225, 227, 234, 0.9);
  max-width: 420px;
  width: 100%;
}

.auth-title {
  margin: 0 0 0.4rem;
  font-size: 1.6rem;
}

.auth-subtitle {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.auth-form label {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-form input {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.35);
}

.auth-btn {
  width: 100%;
  margin-top: 0.3rem;
}

.auth-toggle {
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-toggle a {
  color: var(--accent);
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

.auth-message {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.auth-message.error {
  color: #d9534f;
}

.auth-message.success {
  color: #1e9a4a;
}

/* == DASHBOARD == */

.dashboard-page {
  background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
  color: #e5e7eb;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 8vw;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}

.dashboard-layout {
  max-width: 1100px;
  margin: 1rem auto 3rem;
  padding: 0 8vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.dashboard-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.dashboard-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 700;
  font-size: 1.3rem;
}

.welcome {
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
}

.muted {
  opacity: 0.7;
  font-size: 0.9rem;
}

.dashboard-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* panel menu */

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.panel {
  position: relative;
  text-align: left;
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  border: none;
  cursor: pointer;
  outline: none;
  color: inherit;
  background: #020617;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(30, 64, 175, 0.45);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(59, 130, 246, 0.8);
}

.panel:active {
  transform: translateY(-1px) scale(0.99);
}

.panel p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* different accent vibes for each panel */

.panel-primary {
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%, #000 100%);
}

.panel-secondary {
  background: radial-gradient(circle at top left, #22c55e 0, #022c22 40%, #020617 100%);
}

.panel-tertiary {
  background: radial-gradient(circle at top left, #a855f7 0, #4c1d95 40%, #020617 100%);
}

.panel-label {
  font-size: 1.1rem;
  font-weight: 600;
}

/* buttons (if you don't already use these names) */

.btn-secondary,
.btn-ghost {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.9);
  border-color: rgba(191, 219, 254, 0.9);
}
