:root {
  --blue-dark: #0d3f8f;
  --blue-mid: #1e5bb8;
  --blue-soft: #eaf2ff;
  --text: #142033;
  --muted: #5c6b80;
  --border: #d8e1ef;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(13, 63, 143, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(30, 91, 184, 0.1), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #edf3fb 100%);
  min-height: 100vh;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

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

.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.brand h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
}

.brand p {
  margin: 0;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem 0 1rem;
}

.hero-text,
.hero-card,
.info-card,
.modal-content {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-text,
.hero-card {
  border-radius: 28px;
  padding: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue-mid);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.hero-text > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.login-btn,
.primary-btn {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(13, 63, 143, 0.22);
}

.secondary-btn {
  background: var(--white);
  color: var(--blue-dark);
  border: 1px solid var(--border);
}

.hero-card h3,
.info-card h3 {
  margin-top: 0;
}

.hero-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.75;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 0 3rem;
}

.info-card {
  border-radius: 22px;
  padding: 1.4rem;
}

.info-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  text-align: center;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 40, 0.55);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 2rem));
  margin: 8vh auto 0;
  border-radius: 24px;
  padding: 1.5rem;
}

.close-btn {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.7rem;
  padding: 0.2rem 0.5rem;
}

label {
  display: block;
  margin: 1rem 0 0.4rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(30, 91, 184, 0.18);
  border-color: var(--blue-mid);
}

.full-width {
  width: 100%;
  margin-top: 1rem;
}

.form-note,
.message {
  color: var(--muted);
  font-size: 0.95rem;
}

.message {
  min-height: 1.25rem;
  margin-top: 0.85rem;
}

@media (max-width: 860px) {
  .site-header,
  .brand {
    align-items: flex-start;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
  }

  .hero,
  .info-grid {
    grid-template-columns: 1fr;
  }
}

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

  .logo {
    width: 74px;
    height: 74px;
  }

  .hero-text,
  .hero-card,
  .info-card {
    padding: 1.25rem;
  }
}
