:root {
  --bg: #f4f5fb;
  --card-bg: #ffffff;
  --text-main: #1e1b2e;
  --text-muted: #64748b;
  --border: #e5e7eb;
  --indigo: #6366f1;
  --indigo-dark: #4f46e5;
  --purple: #7c6ff0;
  --green: #10b981;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --hero-bg: linear-gradient(135deg, #eceafd 0%, #eef1fb 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --card-bg: #1e293b;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --hero-bg: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: Georgia, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

input,
button,
select,
textarea {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

/* ── NAVBAR ────────────────────────────────────────────────────────────── */

.navbar {
  width: 100%;
  height: 72px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--indigo-dark);
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.brand i {
  color: var(--indigo);
}
.brand-pill {
  font-size: 1rem;
  font-weight: 800;
  background: var(--indigo);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 2px;
  text-decoration: none;
}

.nav-link {
  padding: 7px 14px;
  border-radius: 9999px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text-main);
  background: var(--bg);
}
.nav-link.active {
  background: var(--active-nav-bg);
  color: var(--active-nav-text);
  font-weight: 600;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  transition: all 0.2s;
}
.icon-btn:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

a.btn {
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.btn.btn-primary{
  background-color: #4f46e5;
  border: 1px solid #4f46e5;
  color: #fff;
}

.btn.btn-outline{
  background-color: transparent;
  border: 1px solid #4f46e5;
  color: #4f46e5;
}

.btn.btn-primary:hover{
  background-color: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}

.btn.btn-outline:hover{
  border-color: #4f46e5;
  background-color: #4f46e5;
  color: #fff;
}

.btn.btn-primary:active{
  background-color: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.btn.btn-outline:active{
  border-color: #4f46e5;
  background-color: #4f46e5;
  color: #fff;
}

.btn.btn-primary:focus{
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.btn.btn-outline:focus{
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
}

a.btn:hover{
  text-decoration: none;
  color: #fff;
}

@media (max-width: 768px) {

  .navbar {
    padding: 16px 24px;
    height: auto;
    position: sticky;
  }

  .nav-container {
    flex-direction: row;
    justify-content: space-between;
  }

  .brand {
    font-size: 1.2rem;
    order: 1;
  }

  .nav-right {
    order: 2;
  }

  .nav-left {
    order: 3;
    margin-left: auto;
  }

  .nav-link {
    display: none;           /* hide links on mobile */
  }

  .icon-btn:last-child {
    display: none;           /* hide theme button on mobile */
  }

  .hamburger {
    display: inline-flex;    /* show hamburger */
  }

  /* Mobile dropdown */
  .mobile-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* User dropdown */
  .user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--card-bg);
    border-radius: 10px;
    padding: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    margin-top: 10px;
    transform-origin: top right;
    transform: scale(0.95) translateY(-5px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .user-dropdown.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}



/* ── HERO ──────────────────────────────────────────────────────────────── */

.hero {
  width: 100%;
  padding: 40px 0 20px;
}

.row-1 {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero-desc {
  width: 100%;
  background: var(--hero-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 50px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow);
}

@media (max-width: 868px) {
  .hero-desc {
    flex-direction: column;
    padding: 32px 24px;
    text-align: center;
  }
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.accent {
  color: var(--indigo);
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.btn-lg {
  height: 48px;
  padding: 0 24px;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-lg-primary {
  color: #ffffff;
  background-color: var(--indigo);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-lg-primary:hover {
  background-color: var(--indigo-dark);
  transform: translateY(-2px);
}

.btn-lg-outline {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-lg-outline:hover {
  background-color: var(--bg);
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.hero-graphic {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.hero-graphic img {
  max-width: 380px;
  width: 100%;
  height: auto;
}

/* ── STATS ─────────────────────────────────────────────────────────────── */

.stats {
  max-width: 1240px;
  margin: 30px auto 48px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--indigo);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card:nth-child(2) {
  border-left-color: var(--purple);
}
.stat-card:nth-child(3) {
  border-left-color: var(--cyan);
}
.stat-card:nth-child(4) {
  border-left-color: var(--green);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 8px;
  color: var(--indigo);
}

.stat-card:nth-child(2) .stat-value {
  color: var(--purple);
}
.stat-card:nth-child(3) .stat-value {
  color: var(--cyan);
}
.stat-card:nth-child(4) .stat-value {
  color: var(--green);
}

/* ── CAPABILITIES ──────────────────────────────────────────────────────── */

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-main);
}

.capabilities {
  max-width: 1240px;
  margin: 0 auto 60px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.capability-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.capability-card:hover {
  transform: translateY(-3px);
}

.capability-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.25rem;
}

.capability-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text-main);
  font-weight: 700;
}

.capability-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.icon-blue {
  background: #e0e7ff;
  color: var(--indigo-dark);
}
.icon-gray {
  background: #eef0f4;
  color: #64748b;
}
.icon-green {
  background: #dcfce7;
  color: #16a34a;
}

[data-theme="dark"] .icon-blue {
  background: #312e81;
  color: #c7d2fe;
}
[data-theme="dark"] .icon-gray {
  background: #334155;
  color: #cbd5e1;
}
[data-theme="dark"] .icon-green {
  background: #064e3b;
  color: #a7f3d0;
}

/* ── PASSWORD TOGGLE BUTTON ────────────────────────────────────────────── */

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.pw-toggle:hover {
  color: var(--indigo);
}

/* ── FOOTER ────────────────────────────────────────────────────────────── */

footer {
  margin-top: auto;
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
