:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg-accent: #e8eef8;
  --surface: #ffffff;
  --text: #141820;
  --muted: #4f5b6b;
  --border: #d8dee8;
  --primary: #1a5ad7;
  --primary-strong: #0c3fa6;
  --shadow: 0 20px 40px rgba(20, 24, 32, 0.12);
  --radius: 18px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1017;
  --bg-accent: #171c27;
  --surface: #141925;
  --text: #eef1f7;
  --muted: #a2adbd;
  --border: #263043;
  --primary: #6aa2ff;
  --primary-strong: #8ab7ff;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1017;
    --bg-accent: #171c27;
    --surface: #141925;
    --text: #eef1f7;
    --muted: #a2adbd;
    --border: #263043;
    --primary: #6aa2ff;
    --primary-strong: #8ab7ff;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, var(--bg-accent), var(--bg));
  color: var(--text);
  line-height: 1.6;
}

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

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

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

.policy-page {
  padding: 40px 0 64px;
}

.policy-page h2 {
  margin-top: 32px;
}

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

.policy-page a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-page a:hover,
.policy-page a:focus-visible {
  color: var(--primary-strong);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--text);
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 99;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.4px;
}

.nav-list {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-secondary {
  display: none;
}

.nav-home {
  color: var(--muted);
  font-weight: 600;
}

.nav-home:hover,
.nav-home:focus-visible {
  color: var(--text);
}

.nav-list a {
  color: var(--muted);
  font-weight: 500;
}

.nav-list a:focus,
.nav-list a:hover {
  color: var(--text);
}

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

.header-variant-secondary .nav-primary {
  display: none;
}

.header-variant-secondary .nav-secondary {
  display: block;
}

.cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--primary-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mode-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.hero {
  padding: 84px 0 40px;
}

.hero-content {
  display: grid;
  gap: 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0 0 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.primary,
.ghost {
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
}

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

.primary:hover,
.primary:focus-visible {
  background: var(--primary-strong);
}

.ghost {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(26, 90, 215, 0.15) 0,
      rgba(26, 90, 215, 0.15) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(26, 90, 215, 0.1) 0,
      rgba(26, 90, 215, 0.1) 1px,
      transparent 1px,
      transparent 6px
    );
}

.hero-card-title {
  font-weight: 600;
  margin: 0 0 12px;
}

.apps,
.about,
.contact {
  padding: 20px 0;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.section-subtitle {
  color: var(--muted);
  margin: 0;
}

.cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  color: var(--primary-strong);
}

.badge.muted {
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
}

.card-link {
  color: var(--primary-strong);
  font-weight: 600;
}

.about-grid {
  display: grid;
  gap: 24px;
}

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

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.contact-links a {
  color: var(--primary-strong);
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
}

.footer-grid {
  display: grid;
  gap: 20px;
}

.footer-brand {
  font-weight: 600;
  margin: 0;
}

.footer-note {
  color: var(--muted);
  margin: 6px 0 0;
}

.footer-links {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a {
  color: inherit;
}

.copyright {
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .hero-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .contact-links {
    flex-direction: row;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer-links {
    justify-items: end;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    align-items: flex-start;
  }

  .nav-list {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }


  .hero {
    padding: 72px 0 32px;
  }

  .hero-content {
    gap: 24px;
  }

  .lead {
    font-size: 1rem;
  }

  .apps,
  .about,
  .contact {
    padding: 16px 0;
  }

  .card,
  .about-card,
  .hero-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
