@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --bg: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --text: #102132;
  --muted: #5d6c80;
  --brand: #0a6ed1;
  --brand-strong: #0856a6;
  --brand-soft: #d9e9fb;
  --border: #dbe5f0;
  --danger: #b42318;
  --success: #157347;
  --shadow: 0 14px 32px rgba(8, 29, 53, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at -15% -15%, #d8e9fb 0%, transparent 58%),
    linear-gradient(180deg, #f7fbff 0%, var(--bg) 45%);
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.01em;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  color: #123250;
  width: 100%;
  text-align: center;
}

.auth-brand-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: linear-gradient(165deg, #082033 0%, #0a2f4a 48%, #0f3c5d 100%);
  color: #dce8f4;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(193, 213, 232, 0.2);
}

.sidebar h1 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.sidebar .muted {
  color: #b7cee4;
  font-size: 0.86rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list::-webkit-scrollbar {
  height: 6px;
}

.nav-list button {
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  text-align: left;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.nav-list button.active,
.nav-list button:hover {
  background: rgba(214, 230, 246, 0.16);
  border-color: rgba(206, 224, 243, 0.4);
}

.nav-list button:active {
  transform: translateY(1px);
}

.content {
  padding: 26px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}

.topbar h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

.user-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 14px rgba(10, 46, 78, 0.05);
}

.panel {
  display: none;
  animation: panel-in 0.24s ease;
}

.panel.active {
  display: block;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 14px;
}

.stat-card,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 7px 18px rgba(7, 29, 50, 0.04);
}

.card {
  margin-bottom: 14px;
}

.stat-card h3,
.card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  color: #2e455e;
}

.stat-card p {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #07253f;
}

.video-placeholder {
  border: 1px dashed #b5ccdf;
  border-radius: var(--radius-md);
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f9fcff 0%, #f1f7fd 100%);
  color: #496480;
  text-align: center;
  padding: 14px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.93rem;
  color: #2b4257;
  font-weight: 600;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #9ec4ec;
  box-shadow: 0 0 0 3px rgba(10, 110, 209, 0.15);
}

button {
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: linear-gradient(180deg, #137ce5 0%, var(--brand) 100%);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

button:hover {
  filter: brightness(0.97);
}

button:active {
  transform: translateY(1px);
}

button.secondary {
  margin-top: auto;
  background: rgba(221, 234, 247, 0.08);
  border-color: rgba(217, 231, 245, 0.55);
  color: #ecf5ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: linear-gradient(180deg, #137ce5 0%, var(--brand) 100%);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease;
}

.btn:hover {
  filter: brightness(0.97);
}

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

.btn-soft {
  background: var(--surface-soft);
  color: #1f3f62;
  border-color: var(--border);
  font-weight: 600;
}

.form-message {
  min-height: 22px;
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

.plans-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-card {
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fcfeff 0%, #f2f8ff 100%);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #b8d3ef;
  box-shadow: 0 10px 20px rgba(9, 45, 78, 0.08);
}

.plan-card h4 {
  margin: 0 0 6px;
}

.plan-card s {
  color: #74889f;
}

.plan-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-head .muted {
  margin: 0;
}

.plan-price p {
  margin: 0;
}

.plan-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0f4f92;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan-features {
  margin: 0;
  padding-left: 18px;
  color: #2c4e6e;
}

.plan-features li {
  margin: 0 0 4px;
}

.plan-feature-empty {
  margin: 0;
}

.download-links {
  display: grid;
  gap: 12px;
}

.download-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  color: #0d4f92;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #d3e4f5;
  background: #f7fbff;
}

.download-link:hover {
  background: #eff6ff;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #e1eaf3;
  padding: 10px 9px;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: #34506a;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

td code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.85rem;
  background: #eef4fa;
  padding: 2px 6px;
  border-radius: 8px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-links a {
  color: #0d4f92;
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.page-copyright {
  font-size: 0.84rem;
  color: #6d8093;
}

.auth-copyright {
  text-align: center;
  margin-top: 14px;
}

.dashboard-copyright {
  padding: 0 26px 26px;
  text-align: right;
}

.home-footer .page-copyright {
  margin: 18px 0 0;
  color: #b8cde0;
  text-align: center;
}

.captcha-widget {
  min-height: 78px;
}

.payment-details p {
  margin: 0 0 8px;
}

.payment-note {
  background: #f6fbff;
  border: 1px solid #d5e8fb;
  border-radius: 10px;
  padding: 10px 12px;
}

.payment-note a {
  color: #0d4f92;
  font-weight: 700;
  text-decoration: none;
}

.payment-note a:hover {
  text-decoration: underline;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-actions button {
  width: 100%;
}

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

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    gap: 12px;
    padding: 14px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(193, 213, 232, 0.2);
  }

  .nav-list {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
  }

  .nav-list button {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  #logout-btn {
    width: fit-content;
  }

  .content {
    padding: 16px;
  }

  .dashboard-copyright {
    padding: 0 16px 16px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 22px 16px;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .nav-list {
    gap: 8px;
  }

  .payment-actions {
    grid-template-columns: 1fr;
  }

  .sidebar-brand {
    align-items: center;
  }

  .sidebar h1 {
    font-size: 1rem;
  }

  .content {
    padding: 12px;
  }

  .dashboard-copyright {
    padding: 0 12px 12px;
  }

  .card,
  .stat-card {
    padding: 15px;
  }

  .user-chip {
    width: 100%;
    border-radius: 14px;
  }

  .table-wrap.mobile-cards table,
  .table-wrap table.mobile-cards {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table-wrap.mobile-cards thead,
  .table-wrap table.mobile-cards thead {
    display: none;
  }

  .table-wrap.mobile-cards tbody,
  .table-wrap.mobile-cards tr,
  .table-wrap.mobile-cards td,
  .table-wrap table.mobile-cards tbody,
  .table-wrap table.mobile-cards tr,
  .table-wrap table.mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-wrap.mobile-cards tr,
  .table-wrap table.mobile-cards tr {
    background: #fff;
    border: 1px solid #e1eaf3;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 10px;
    box-shadow: 0 6px 16px rgba(7, 29, 50, 0.04);
  }

  .table-wrap.mobile-cards td,
  .table-wrap table.mobile-cards td {
    border-bottom: 0;
    padding: 6px 0;
    font-size: 0.92rem;
  }

  .table-wrap.mobile-cards td::before,
  .table-wrap table.mobile-cards td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: #52697f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .table-wrap.mobile-cards td:empty,
  .table-wrap table.mobile-cards td:empty {
    display: none;
  }

  .table-wrap.mobile-cards td .btn,
  .table-wrap.mobile-cards td button,
  .table-wrap table.mobile-cards td .btn,
  .table-wrap table.mobile-cards td button {
    width: 100%;
    margin-top: 6px;
  }
}

.home-body {
  background:
    radial-gradient(900px 580px at 0% -5%, #dae9f7 0%, transparent 62%),
    radial-gradient(900px 620px at 105% 0%, #e5f3e9 0%, transparent 66%),
    #f3f7fb;
}

.home-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(244, 249, 255, 0.85);
  border-bottom: 1px solid #dce7f2;
}

.home-nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(130deg, #0a6ed1 0%, #0d4f92 100%);
  color: #fff;
  font-weight: 800;
}

.brand-name {
  font-weight: 800;
  color: #0c2944;
}

.home-menu {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-menu a {
  text-decoration: none;
  font-weight: 700;
  color: #35506a;
  font-size: 0.92rem;
}

.home-actions {
  display: inline-flex;
  gap: 8px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.9) 0%, rgba(236, 244, 251, 0.92) 100%);
  border-top: 1px solid #dfeaf4;
  border-bottom: 1px solid #dfeaf4;
}

.hero {
  padding: 58px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.hero-kicker {
  margin: 0 0 10px;
  color: #0f4f92;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  color: #0c2740;
}

.hero-text {
  margin: 0 0 18px;
  max-width: 58ch;
  color: #3f5c77;
  font-size: 1.03rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.hero-note {
  color: #5b6f84;
  margin: 0;
}

.hero-note a {
  color: #0f4f92;
  font-weight: 700;
}

.hero-demo {
  background: #fff;
  border: 1px solid #d9e6f2;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 18px 34px rgba(12, 40, 64, 0.1);
}

.hero-demo h3 {
  margin: 0 0 8px;
}

.section > .home-container > h2 + .muted {
  margin-top: 0;
  margin-bottom: 24px;
}

.demo-screen {
  margin: 14px 0;
  border: 1px solid #c7d8ea;
  border-radius: 12px;
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(7, 27, 45, 0.18), rgba(7, 27, 45, 0.18)),
    radial-gradient(circle at 20% 20%, rgba(74, 163, 255, 0.38), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(62, 207, 142, 0.24), transparent 24%),
    linear-gradient(145deg, rgba(10, 110, 209, 0.1), rgba(15, 79, 146, 0.04)),
    url("/assets/nametoprofile-logo.png"),
    #f8fbff;
  background-size: auto, auto, auto, auto, cover, auto;
  background-position: center, top left, top right, center, center, center;
  background-repeat: no-repeat;
  color: #4f6882;
  font-weight: 700;
  overflow: hidden;
}

.demo-screen .btn {
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 24px rgba(7, 27, 45, 0.22);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
}

.step-card span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e2effb;
  color: #0f4f92;
  font-weight: 800;
}

.step-card h3 {
  margin: 10px 0 6px;
}

.step-card p {
  margin: 0;
  color: #506a83;
}

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

.feature-tile {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
}

.feature-tile h3 {
  margin: 0 0 6px;
}

.feature-tile p {
  margin: 0;
  color: #506a83;
}

.pricing-head {
  margin-bottom: 14px;
}

#home-pricing-grid .plan-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.price-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e2f2e8;
  color: #18643b;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cta-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 12px;
  padding: 12px 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 8px 0 0;
  color: #506a83;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.contact-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-card .btn {
  align-self: flex-end;
}

.legal-main {
  padding: 48px 0 72px;
}

.legal-shell {
  display: grid;
  gap: 24px;
}

.legal-hero,
.legal-card {
  background: #fff;
  border: 1px solid #dce8f3;
  border-radius: 18px;
  box-shadow: 0 14px 32px rgba(8, 29, 53, 0.08);
}

.legal-hero {
  padding: 28px;
}

.legal-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0c2740;
}

.legal-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  color: #44617c;
}

.legal-card {
  padding: 28px;
}

.legal-card section + section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2ebf4;
}

.legal-card h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #123250;
}

.legal-card p,
.legal-card li {
  color: #405a73;
  line-height: 1.7;
}

.legal-card p {
  margin: 0 0 12px;
}

.legal-card ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card strong {
  color: #102132;
}

.home-footer {
  background: linear-gradient(165deg, #0a2439 0%, #0f2f4b 100%);
  color: #d5e3ef;
  padding: 34px 0;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-footer h4 {
  margin: 0 0 10px;
  color: #f0f7ff;
}

.home-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 7px;
}

.home-footer a {
  color: #d5e9fb;
  text-decoration: none;
}

@media (max-width: 1100px) {
  .home-menu {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid,
  .steps-grid,
  .feature-grid,
  .footer-grid,
  .legal-meta {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-nav {
    flex-wrap: wrap;
    padding: 10px 0;
  }
}
