@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --navy: #1b2a4a;
  --navy-deep: #121c33;
  --primary: #2b6cb0;
  --primary-dark: #1a4f8a;
  --primary-soft: #ebf3fb;
  --bg: #e8edf5;
  --surface: #ffffff;
  --border: #d5dce8;
  --text: #1a2332;
  --muted: #5a6a7e;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow: 0 4px 6px rgba(27, 42, 74, 0.04), 0 12px 32px rgba(27, 42, 74, 0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 5.25rem;
  min-height: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 1rem;
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  margin-left: 0.25rem;
}

.brand-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  padding: 4px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-right: 0.25rem;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-contact:hover {
  color: var(--primary);
}

.nav-links > a:not(.btn-nav-login) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links > a:not(.btn-nav-login):hover {
  color: var(--navy);
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  transition: background 0.15s, transform 0.15s;
}

.btn-nav-login:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 2.75rem 2rem 3.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(43, 108, 176, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 20%, rgba(27, 42, 74, 0.08), transparent 50%),
    linear-gradient(180deg, #f4f7fb 0%, var(--bg) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.75rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.hero-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #c5d9ef;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin: 0 0 1rem;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.9rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy .lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.25rem;
  max-width: 34rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.98rem;
  font-weight: 550;
  color: var(--text);
}

.hero-points i {
  color: #2f855a;
  font-size: 1.1rem;
}

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

.btn-primary-lg,
.btn-secondary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: 8px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn-primary-lg {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 108, 176, 0.3);
}

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

.btn-secondary-lg {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary-lg:hover {
  background: #f4f6f9;
  color: var(--navy);
  transform: translateY(-1px);
}

/* Login card */
.login-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: cardIn 0.45s ease;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.login-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 1px;
  border: 3px solid #2B6CB0;
  opacity: 0.6;
  border-radius: 15px;
  pointer-events: none;
  z-index: 0;
}

.login-card > *:not(.login-accent) {
  position: relative;
  z-index: 1;
}

.login-head {
  text-align: center;
  margin-bottom: 1.4rem;
}

.login-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid #c5d9ef;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.login-head h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

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

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 0.85rem;
  background: #f8fafc;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}

.input-wrap > i {
  color: var(--muted);
  font-size: 1.05rem;
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.78rem 0;
  font-size: 1.02rem;
  font-family: inherit;
  background: transparent;
  color: var(--text);
  min-width: 0;
}

.toggle-pass {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
}

.toggle-pass:hover {
  color: var(--navy);
}

.login-error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #fde8e8;
  color: #c53030;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.95rem;
}

.login-error[hidden] {
  display: none;
}

.btn-login {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.btn-login:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

.demo-hint {
  margin-top: 1.1rem;
  padding: 0.7rem 0.85rem;
  background: #f4f6f9;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.demo-label {
  background: var(--navy);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

/* Features */
.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 2rem 3.75rem;
  width: 100%;
}

.section-head {
  margin-bottom: 1.5rem;
  max-width: 36rem;
}

.section-head .eyebrow {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.35rem;
}

.section-head h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.4rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.feature-grid article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 1px 2px rgba(27, 42, 74, 0.04);
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #b8c8dc;
}

.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.9rem;
}

.feature-grid h3 {
  font-size: 1.08rem;
  font-weight: 650;
  margin: 0 0 0.45rem;
  color: var(--navy);
}

.feature-grid p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  margin-top: auto;
  background: linear-gradient(180deg, #1b2a4a 0%, #121c33 100%);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.2fr;
  gap: 2.5rem;
  padding: 2.75rem 2.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-logo {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 0.85rem;
  border-radius: 6px;
}

.footer-about p {
  margin: 0;
  max-width: 280px;
  line-height: 1.55;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s;
}

.footer-col ul a:hover {
  color: #fff;
}

.footer-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.footer-info i {
  color: #7eb6e8;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-info a {
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.brand-sm {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-sm .brand-icon {
  width: 32px;
  height: 32px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.brand-sm strong {
  font-size: 0.95rem;
  color: var(--navy);
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 2rem 1.25rem 1.5rem;
  }

  .footer-bottom {
    padding: 0.9rem 1.25rem;
  }
}

@media (max-width: 992px) {
  .landing-nav {
    padding: 0.65rem 1.5rem;
  }

  .brand-logo {
    height: 72px;
  }

  .hero {
    padding: 1.75rem 1.25rem 2.25rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .hero-copy .lead {
    font-size: 1rem;
  }

  .login-card.mt-5 {
    margin-top: 0 !important;
  }

  .features {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 576px) {
  .landing-nav {
    padding: 0.55rem 1rem;
  }

  .brand-logo {
    height: 60px;
  }

  .btn-nav-login {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 1.25rem 1rem 1.75rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-points li {
    font-size: 0.9rem;
  }

  .btn-primary-lg {
    width: 100%;
    justify-content: center;
  }

  .features {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .nav-contact {
    font-size: 0.85rem;
  }
}
