:root {
  color-scheme: light dark;
  --bg: #f6f8fc;
  --bg-soft: #ffffffcc;
  --text: #101828;
  --muted: #475467;
  --line: rgba(16, 24, 40, 0.08);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-bg: rgba(255,255,255,0.82);
  --secondary-hover: rgba(255,255,255,0.98);
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --hero-shadow: 0 30px 90px rgba(37, 99, 235, 0.10);
  --icon-filter: none;
  --glow1: rgba(37, 99, 235, 0.16);
  --glow2: rgba(168, 85, 247, 0.14);
}

html[data-theme="dark"] {
  --bg: #090b10;
  --bg-soft: rgba(17, 21, 29, 0.78);
  --text: #f5f7ff;
  --muted: #b3bdd1;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #4f8cff;
  --primary-hover: #73a1ff;
  --secondary-bg: rgba(255,255,255,0.06);
  --secondary-hover: rgba(255,255,255,0.10);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --hero-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --icon-filter: invert(1);
  --glow1: rgba(59, 130, 246, 0.16);
  --glow2: rgba(168, 85, 247, 0.14);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  padding: 64px 20px 40px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--glow1), transparent 24%),
    radial-gradient(circle at bottom right, var(--glow2), transparent 22%),
    var(--bg);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.7;
}

body::before {
  width: 260px;
  height: 260px;
  top: -60px;
  left: -40px;
  background: var(--glow1);
}

body::after {
  width: 300px;
  height: 300px;
  right: -80px;
  bottom: -70px;
  background: var(--glow2);
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px) scale(1.03);
}

.hero-card {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 36px 24px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--hero-shadow);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.badge-icon,
.action-icon {
  width: 18px;
  height: 18px;
  filter: var(--icon-filter);
  opacity: 0.92;
}

.hero-logo-wrap {
  width: min(225px, 62vw);
  height: min(225px, 62vw);
  margin: 0 auto 22px;
  padding: 14px;
  border-radius: 56px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

img.main-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

p {
  width: min(700px, 100%);
  margin: 0 auto 28px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.04rem;
}

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

a {
  text-decoration: none;
}

.btn {
  appearance: none;
  border: 0;
  min-width: 198px;
  padding: 15px 20px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease, opacity 0.22s ease;
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary-bg);
  color: var(--text);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
}

.footer-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  body {
    padding-top: 80px;
  }

  .hero-card {
    padding: 28px 16px 22px;
    border-radius: 26px;
  }

  .btn {
    width: min(100%, 360px);
    min-width: 0;
  }
}
