:root {
  color-scheme: light;
  --brand-900: #0f2f4d;
  --brand-800: #163d63;
  --brand-700: #1f4d7a;
  --brand-600: #2a5f95;
  --accent-500: #3a7bd5;
  --accent-400: #5a95e6;
  --ink-900: #1b1f2a;
  --ink-700: #3a4354;
  --ink-500: #5a6272;
  --ink-300: #8a93a5;
  --surface-0: #ffffff;
  --surface-50: #f6f8fb;
  --surface-100: #eef2f7;
  --border-200: #d9e1ec;
  --border-300: #c8d3e2;
  --success-500: #2f9e6f;
  --warning-500: #e7a13b;
  --danger-500: #d64545;
  --shadow-1: 0 10px 30px rgba(15, 47, 77, 0.08);
  --shadow-2: 0 8px 20px rgba(15, 47, 77, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans 3", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--surface-50);
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: var(--surface-0);
  border-bottom: 1px solid var(--border-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand-900);
  font-size: 16px;
}

.brand strong {
  letter-spacing: 0.3em;
  font-size: 20px;
  color: var(--ink-900);
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 600;
  color: var(--ink-700);
}

.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--surface-100);
  color: var(--brand-900);
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-300);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle button {
  padding: 6px 14px;
  background: transparent;
  border: none;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-500);
}

.lang-toggle button.is-active {
  background: var(--brand-900);
  color: #fff;
}

.hero {
  padding: 48px 0 28px;
}

.hero__wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.hero__title {
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 12px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--ink-500);
  margin-bottom: 24px;
}

.hero__card {
  background: var(--surface-0);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--brand-800);
  background: var(--brand-800);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.button--ghost {
  background: transparent;
  color: var(--brand-800);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.tile {
  background: var(--brand-800);
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile span {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tile h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.tile p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* tile description */
.tile__desc {
  margin-top: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.4;
}

/* clickable tile link */
.tile--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile--link:hover,
.tile--link:focus {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15,47,77,0.12);
}

.section {
  padding: 32px 0;
}

.section__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section__title {
  font-size: 24px;
  margin: 0;
}

.section__subtitle {
  color: var(--ink-500);
  margin: 4px 0 0;
}

.card {
  background: var(--surface-0);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border-200);
  box-shadow: var(--shadow-1);
}

.flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.flow__step {
  position: relative;
  padding-top: 36px;
}

.flow__step span {
  position: absolute;
  top: -14px;
  left: 18px;
  font-size: 32px;
  color: var(--brand-800);
  font-weight: 700;
}

.flow__step h4 {
  margin-top: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-900);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-100);
  color: var(--ink-700);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-200);
  vertical-align: top;
}

.table th {
  background: var(--surface-100);
  color: var(--ink-700);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 600;
  color: var(--ink-700);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border-300);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  background: var(--surface-100);
  color: var(--brand-800);
}

.status--ok {
  background: rgba(47, 158, 111, 0.12);
  color: var(--success-500);
}

.status--warn {
  background: rgba(231, 161, 59, 0.12);
  color: var(--warning-500);
}

.status--danger {
  background: rgba(214, 69, 69, 0.12);
  color: var(--danger-500);
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-100);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent-500);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  align-items: center;
}

.timeline__badge {
  font-weight: 700;
  color: var(--brand-800);
}

.footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer__left .footer__logos {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer__left img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.footer__right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.footer__right > div {
  min-width: 0;
}

.footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

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

.stat {
  flex: 1 1 120px;
  background: var(--surface-100);
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
}

.login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 2px solid var(--border-300);
  border-radius: 12px;
  background: var(--surface-0);
  color: var(--brand-800);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  margin: 24px auto;
  max-width: 320px;
}

.login-btn:hover {
  box-shadow: 0 4px 16px rgba(15, 47, 77, 0.12);
  transform: translateY(-2px);
}

.login-btn svg {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .tile {
    min-height: 130px;
  }

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

@media (min-width: 900px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__right {
    grid-template-columns: 1fr;
  }
  .footer__left .footer__logos {
    gap: 12px;
    flex-direction: row;
  }
  .footer__left img {
    max-height: 64px;
  }
}
