/* ---------------------------------------------------------------
   Design language: dark navy hero + serif display type + pill
   buttons + floating white "console" card, inspired by modern
   SaaS marketing sites. Not affiliated with or branded as any
   third-party product.
   --------------------------------------------------------------- */

:root {
  --navy-950: #0a1420;
  --navy-900: #0d1b2b;
  --navy-800: #142639;
  --ink: #0f172a;
  --paper: #ffffff;
  --muted: #64748b;
  --line: #e6e9ee;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px -20px rgba(10, 20, 32, 0.45);
  --shadow-soft: 0 12px 30px -12px rgba(10, 20, 32, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Top nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  position: relative;
  z-index: 5;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.nav-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.3rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-dark {
  background: #0f172a;
  color: #fff;
}

.btn-dark:hover {
  box-shadow: var(--shadow-soft);
}

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-accent {
  background: var(--accent);
  color: #06210f;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.16), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.18), transparent 50%),
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  padding-bottom: 3rem;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2.5rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d7e3f5;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-copy h1 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

.hero-copy p {
  color: #b9c6da;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 32rem;
  margin: 0 0 1.8rem;
}

.hero-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

/* ---------- Floating console card (inside hero) ---------- */

.console {
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.4rem;
  color: var(--ink);
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.console-header .status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.console-header .status .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.console-header .time {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Checklist strip ---------- */

.checklist {
  max-width: 1160px;
  margin: 2.2rem auto 0;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.checklist-item .check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  margin-top: 0.1rem;
}

.checklist-item strong {
  display: block;
  font-size: 0.88rem;
  color: #fff;
}

.checklist-item span {
  font-size: 0.78rem;
  color: #9fb0c8;
}

/* ---------- Main content section (white area under hero) ---------- */

main {
  max-width: 900px;
  margin: -1.25rem auto 4rem;
  padding: 0 2.5rem;
  position: relative;
  z-index: 3;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.panel h2 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 0.3rem;
}

.panel .hint {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.1rem;
}

pre {
  background: #f6f8fb;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  overflow: auto;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #1e293b;
}

/* ---------- Data table ---------- */

.data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  width: 25%;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.data-table th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-table td {
  color: var(--ink);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f6f8fb;
}

/* ---------- Form ---------- */

form {
  display: grid;
  gap: 0.9rem;
}

form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

form input {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

form button {
  justify-self: start;
  margin-top: 0.3rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .checklist {
    margin-top: 0;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 1rem 1.25rem;
  }

  .hero-inner,
  main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .checklist {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------------
   Dashboard layout (used by the profile page): dark sidebar nav
   + light content area, same navy/green/serif/pill language as
   the marketing hero above.
   --------------------------------------------------------------- */

.dashboard {
  display: flex;
  min-height: 100vh;
  background: #f5f7fa;
}

.sidebar {
  flex: none;
  width: 250px;
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-950) 100%);
  color: #fff;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 0;
  min-height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0 0.5rem;
}

.sidebar-brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7f9c;
  padding: 0 0.75rem;
  margin-bottom: 0.4rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: #b9c6da;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(34, 197, 94, 0.16);
  color: #fff;
}

.sidebar-link.active svg {
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.btn-logout {
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 2rem 2.5rem 3rem;
}

.stat-card,
.content-grid .panel {
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.topbar .eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.topbar h1 {
  font-family: 'Fraunces', 'Playfair Display', Georgia, serif;
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0;
  color: var(--ink);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.3rem;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stat-value {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.stat-value .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.stat-sub {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.content-grid .panel {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .dashboard {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    padding: 1.25rem;
  }

  .dashboard-main {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }
}
