:root {
  color-scheme: light;
  --bg: #8fbeff;
  --bg-2: #8fbeff;
  --card: #ffffff;
  --card-border: rgba(59, 130, 246, 0.16);
  --text: #172033;
  --muted: #45526e;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --shadow: 0 20px 40px rgba(37, 99, 235, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(239, 246, 255, 0.96);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.nav-wrap {
  width: min(1240px, calc(100% - 20px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  flex-wrap: nowrap;
}

.nav-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
  color: var(--text);
  flex: 0 0 auto;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(59, 130, 246, 0.08);
  padding: 6px;
}

.brand span {
  display: block;
  font-size: 0.96rem;
  line-height: 1.15;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  font-size: 0.84rem;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: rgba(59, 130, 246, 0.16);
  background: rgba(59, 130, 246, 0.05);
  outline: none;
  transform: none;
}

.login-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: none;
}

.login-trigger:hover,
.login-trigger:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.05);
  transform: none;
}

.page {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.home-hero {
  width: min(840px, 100%);
  margin: 28px auto 0;
  padding: 44px;
  text-align: left;
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 58ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.16);
  font-size: 0.9rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: 62ch;
}

.action-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.button.primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.button.secondary {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.button:hover,
.button:focus-visible {
  transform: none;
  outline: none;
}

.hero-aside {
  padding: 28px;
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.08);
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

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

.point-list {
  margin: 10px 0 0;
  padding-left: 24px;
  list-style: disc outside;
  color: var(--muted);
  line-height: 1.7;
}

.point-list li + li {
  margin-top: 6px;
}

.contact-form {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.42);
}

.section-title {
  margin: 48px 0 18px;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

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

.cards .info-card {
  min-height: 160px;
}

.footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.page-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.page-shell .panel {
  padding: 36px;
}

.page-shell p {
  color: var(--muted);
  line-height: 1.7;
}

.page-shell h1,
.page-shell h2,
.page-shell h3,
.hero-copy h1,
.section-title {
  color: var(--text);
}

.login-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(23, 38, 68, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2000;
}

.login-toggle:checked ~ .modal-backdrop {
  display: flex;
}

.login-modal {
  width: min(100%, 420px);
  background: #ffffff;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12);
  overflow: hidden;
}

.login-modal header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}

.login-modal h2 {
  margin: 0;
  font-size: 1.4rem;
}

.login-modal p {
  margin: 8px 0 0;
  color: var(--muted);
}

.modal-close {
  border: 0;
  background: rgba(59, 130, 246, 0.08);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-form {
  padding: 16px 20px 20px;
  display: grid;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.field-group input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: #fff;
  color: var(--text);
  font: inherit;
}

.field-group input:focus {
  outline: 2px solid rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.48);
}

.login-form .button {
  width: 100%;
}

@media (max-width: 980px) {
  .hero,
  .cards {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    width: min(1240px, calc(100% - 24px));
  }

  .nav-group {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
  }

  .home-hero {
    width: 100%;
    padding: 34px 26px;
  }
}

@media (max-width: 640px) {
  .page,
  .page-shell,
  .footer {
    width: min(100% - 20px, 1200px);
  }

  .hero-copy,
  .hero-aside,
  .page-shell .panel {
    padding: 24px;
  }

  .nav-links a {
    padding: 9px 12px;
    font-size: 0.88rem;
  }

  .nav-group {
    gap: 10px;
  }

  .login-trigger {
    min-height: 40px;
    padding: 0 14px;
  }

  .home-hero {
    padding: 28px 22px;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    padding: 8px 12px;
    font-size: 0.86rem;
  }
}
