:root {
  --bg: #f4f6fb;
  --bg-gradient: radial-gradient(1200px 520px at 50% -10%, rgba(99, 102, 241, 0.2), transparent);
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border: rgba(148, 163, 184, 0.22);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
  --section-bg: #f8fafc;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1222;
    --bg-gradient: radial-gradient(1000px 480px at 50% -8%, rgba(99, 102, 241, 0.25), transparent);
    --card: #151d33;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent-soft: rgba(129, 140, 248, 0.15);
    --border: rgba(148, 163, 184, 0.14);
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    --section-bg: rgba(15, 23, 42, 0.55);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient), var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip:focus {
  left: 0;
}

.page {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 1.5rem) 2.5rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover .brand-name {
  color: var(--accent);
}

.logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  display: grid;
  place-items: center;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.logo-fallback {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  transition: color 0.15s ease;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.nav-cta:hover {
  background: var(--accent-soft);
  border-color: rgba(79, 70, 229, 0.35);
}

.main-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero {
  text-align: center;
  padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 4vw, 2rem);
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border);
}

.hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.28);
}

.hero-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero .tagline {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--muted);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.content {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.25rem) clamp(2rem, 4vw, 2.5rem);
}

.content > p:first-of-type {
  margin-top: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.intro-strong {
  color: var(--text);
  font-weight: 500;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

h2.section-num {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2.section-num::before {
  content: "";
  width: 4px;
  height: 1.15em;
  border-radius: 2px;
  background: linear-gradient(180deg, #6366f1, #4f46e5);
  flex-shrink: 0;
}

h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.sub-block {
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}

.sub-block:last-child {
  margin-bottom: 0;
}

.sub-block h3 {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
}

.sub-block ul {
  margin: 0;
  padding-left: 1.15rem;
}

.sub-block > p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.sub-block > p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0.5rem 0 0;
}

li {
  margin-bottom: 0.45rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

li strong {
  color: var(--text);
  font-weight: 600;
}

a {
  color: var(--accent);
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

.external-list {
  margin-top: 0.35rem;
}

.contact-card {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--section-bg);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  background: var(--accent-soft);
  border-color: rgba(79, 70, 229, 0.35);
  text-decoration: none;
}

.contact-card svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}

.card-footer {
  padding: 1.25rem clamp(1.25rem, 4vw, 2.25rem);
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--section-bg);
}

.card-footer p {
  margin: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.update {
  font-weight: 600;
  color: var(--text);
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer a:hover {
  color: var(--accent);
}
