* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --accent: #0ea5e9;
  --border: #e2e8f0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

body {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

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

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
}

.brand span {
  font-size: 18px;
  letter-spacing: 0.3px;
}

.brand small {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 600;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a.active {
  color: var(--primary);
}

.language-toggle {
  display: flex;
  gap: 8px;
}

.language-toggle button {
  border: 1px solid var(--border);
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.language-toggle button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.login-button {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  background: #fff;
}

.hero {
  padding: 80px 0 50px;
}

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

.hero-card {
  background: var(--surface);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--primary-dark);
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 22px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  border-color: var(--border);
  color: var(--primary);
  background: #fff;
}

.stats-grid,
.feature-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.section {
  padding: 50px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.section-header p {
  color: var(--muted);
  max-width: 720px;
}

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

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.tag {
  background: rgba(30, 64, 175, 0.12);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.page-hero {
  padding: 60px 0 30px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.page-hero p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 720px;
}

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

.timeline-item {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border);
}

.timeline-item span {
  font-weight: 600;
  color: var(--primary-dark);
}

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

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

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

.login-shell {
  max-width: 440px;
  margin: 0 auto;
}

.login-shell .card {
  box-shadow: var(--shadow);
}

.login-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.login-status {
  margin-top: 12px;
  font-size: 14px;
  color: var(--primary-dark);
  font-weight: 600;
}

.login-status.error {
  color: #b91c1c;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: block;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.overlay.active {
  display: flex;
}

.modal-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  width: min(420px, 92%);
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin: 50px auto;
}

.modal-card h3 {
  margin-bottom: 12px;
}

.qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
  overflow: hidden;
}

.qr-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.note {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }
}
