:root {
  --bg: #f8faff;
  --text: #0f172a;
  --muted: #475569;
  --brand: #2563eb;
  --brand-light: #3b82f6;
  --dark-blue: #0d2c4f;
  --white: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 12px rgba(15, 23, 42, .06);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
}

.section-subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}


/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
}

.brand {
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease;
}
.nav-links a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  border: 1px solid var(--brand);
  cursor: pointer;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(37, 99, 235, .25);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
  box-shadow: none;
}
.btn.ghost:hover:not(:disabled) {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}
.btn.ghost:disabled {
  opacity: 0.5;
  background: transparent;
  color: var(--brand);
}


/* Hero */
.hero {
  background: linear-gradient(105deg, #005bea, #00c6fb);
  color: #fff;
  padding: 80px 0;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.125rem;
  opacity: .9;
  margin-bottom: 2rem;
}

.hero-image-container {
  background-color: #e0e2e7;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0,0,0,.2);
  aspect-ratio: 16 / 9;
}


/* Legal ribbon */
.legal {
  padding: 12px 0;
  background: #fffbe9;
  color: #713f12;
  border-top: 1px solid #fef9c3;
  border-bottom: 1px solid #fef9c3;
  font-weight: 500;
  font-size: 0.9rem;
}
.legal-content {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* Why section */
.why {
  padding: 80px 0;
}

.why h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  margin: 0 auto 16px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

.card.blue .icon { background: #3b82f6; }
.card.green .icon { background: #22c55e; }
.card.orange .icon { background: #f97316; }


/* Access & How-it-works Section */
.access-how-section {
  padding: 80px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}

.access-how-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 60px;
}

.login {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: var(--radius);
  color: #fff;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(79, 70, 229, .3);
}

.login .head {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.field { margin-top: 16px; }
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.field input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #7c3aed;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.field input::placeholder { color: rgba(255,255,255,.6); }
.stack {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.btn.block { width: 100%; }
.btn.ghost.block {
  background: #fff;
  color: #4f46e5;
  border-color: #fff;
}
.admin-links {
  margin-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}
.admin-links span { opacity: .8; display: block; margin-bottom: 8px; }
.admin-links a { opacity: .8; text-decoration: underline; margin: 0 6px; }

.how h2 { font-size: 2rem; margin-bottom: 1rem; }
.steps { display: grid; gap: 20px; }
.step { display: flex; align-items: flex-start; gap: 16px; }
.step .num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--muted); }


/* Footer */
footer {
  background: var(--dark-blue);
  color: #fff;
  padding: 60px 0 20px;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer-brand h5 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mini-logo {
  width: 40px;
  height: 40px;
  background-color: #fff;
  padding: 4px;
  border-radius: 8px;
}
footer h5 { font-size: 1.1rem; margin-bottom: 1rem; }
footer p, footer li { font-size: 0.95rem; opacity: .8; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer a:hover { opacity: 1; text-decoration: underline; }
.foot-note {
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  opacity: .7;
}

/* Modal styles */
.modal-overlay .field input {
  color: var(--text) !important;
  background: #fff !important;
  border: 1px solid var(--border) !important;
}

.modal-overlay .field input::placeholder {
  color: var(--muted) !important;
}

.modal-overlay .field label {
  color: var(--text) !important;
}

/** Modal */
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  /* Container adjustments */
  .container {
    width: min(100%, 95%);
    margin-inline: auto;
  }

  /* Header mobile */
  header {
    background: rgba(255, 255, 255, 0.95);
  }
  
  .container.nav {
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    font-size: 1rem;
    gap: 8px;
  }

  .brand img {
    height: 60px !important;
  }

  .nav-links {
    display: none; /* Hide navigation links on mobile */
  }

  .nav-right .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Hero section mobile */
  .hero {
    padding: 40px 0;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 0.8rem;
  }

  .hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image-container {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Legal ribbon mobile */
  .legal {
    padding: 8px 0;
    font-size: 0.8rem;
  }

  .legal-content {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Why section mobile */
  .why {
    padding: 40px 0;
  }

  .why h2 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 20px;
  }

  .card h3 {
    font-size: 1.1rem;
  }

  /* Access & How-it-works Section mobile */
  .access-how-section {
    padding: 40px 0;
  }

  .access-how-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .login {
    padding: 24px;
    order: 2;
  }

  .login .head {
    font-size: 1.3rem;
  }

  .how {
    order: 1;
  }

  .how h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  .step {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .step .num {
    margin: 0 auto;
  }

  /* Footer mobile */
  footer {
    padding: 40px 0 20px;
  }

  .footer-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand h5 {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Button adjustments */
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* Modal mobile */
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .hero-wrap {
    gap: 40px;
  }

  .hero-text h1 {
    font-size: clamp(28px, 4vw, 40px);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .access-how-wrap {
    gap: 40px;
  }

  .footer-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .container {
    width: min(100%, 90%);
  }

  .container.nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav {
    justify-content: center;
  }

  .nav-right {
    justify-content: center;
  }

  .brand {
    justify-content: center;
    text-align: center;
  }

  .brand img {
    height: 50px !important;
  }

  .hero {
    padding: 30px 0;
  }

  .hero-text h1 {
    font-size: clamp(20px, 7vw, 28px);
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .login {
    padding: 20px;
  }

  .field input {
    padding: 10px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .card {
    padding: 16px;
  }

  .step {
    padding: 16px;
  }
}

/* Landscape mobile adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 30px 0;
  }

  .hero-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .hero-image-container {
    order: 0;
  }

  .access-how-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .how {
    order: 0;
  }

  .login {
    order: 0;
  }
}
