:root {
  color-scheme: light;
  --bg: #f5f7ff;
  --card: #ffffff;
  --text: #12142a;
  --muted: #667085;
  --accent: #6d4aff;
  --accent-hover: #5c3ef5;
  --border: #e6e8f0;
  --shadow: 0 20px 60px rgba(18, 20, 42, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #e8ebff, var(--bg));
}

.topbar {
  width: min(1080px, 100% - 48px);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.topbar-actions,
.hero-actions {
  display: flex;
  gap: 12px;
}

.hero {
  width: min(760px, 100% - 48px);
  margin: 10vh auto 0;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.hero-title {
  margin: 16px 0 10px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.05;
}

.hero-text {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-block {
  width: 100%;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 12, 28, 0.45);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(420px, 100%);
  background: var(--card);
  border-radius: 18px;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow);
}

.modal h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.modal-form {
  display: grid;
  gap: 14px;
}

.modal-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--muted);
}

.modal-form input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
}

.modal-form input:focus {
  outline: 2px solid rgba(109, 74, 255, 0.25);
  border-color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #8b8ea8;
}

.site-footer {
  width: min(1080px, 100% - 48px);
  margin: 70px auto 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.simple-page {
  width: min(880px, 100% - 48px);
  margin: 6vh auto 0;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.simple-page h1 {
  margin: 0 0 10px;
}

.simple-page p,
.simple-page li {
  color: #404761;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 24px);
  }

  .hero {
    width: calc(100% - 24px);
    margin-top: 7vh;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-footer,
  .simple-page {
    width: calc(100% - 24px);
  }
}
