:root {
  color-scheme: light dark;
  --bg: #f5f6fb;
  --bg-alt: #e9ecf8;
  --surface: rgba(32, 35, 66, 0.08);
  --primary: #FF7B7B;
  --primary-accent: #FF7B7B;
  --text: #101224;
  --text-muted: #4c5276;
  --border: rgba(24, 30, 80, 0.12);
  --shadow: 0 24px 56px rgba(27, 45, 117, 0.18);
  --glow-sun: rgba(255, 202, 64, 0.5);
  --glow-moon: rgba(255, 123, 123, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  background: #000000;
}

.site {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.theme-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-checkbox:checked ~ .site {
  --bg: #1a1a2e;
  --bg-alt: #16213e;
  --surface: rgba(255, 255, 255, 0.05);
  --primary: #0f3460;
  --primary-accent: #e94560;
  --text: #eaeaea;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  --glow-sun: rgba(255, 202, 64, 0.5);
  --glow-moon: rgba(233, 69, 96, 0.4);
  color-scheme: dark light;
}

.theme-checkbox:checked ~ .site .site-header {
  background: linear-gradient(90deg, rgba(26, 26, 46, 0.85), rgba(26, 26, 46, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-checkbox:checked ~ .site .site-footer {
  background: rgba(26, 26, 46, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-checkbox:checked ~ .site .feature,
.theme-checkbox:checked ~ .site .apps-grid article,
.theme-checkbox:checked ~ .site .security-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eaeaea;
}

.theme-checkbox:checked ~ .site .feature:hover,
.theme-checkbox:checked ~ .site .feature:focus-within {
  border-color: rgba(233, 69, 96, 0.5);
}

.theme-checkbox:checked ~ .site .callout {
  background: linear-gradient(120deg, rgba(15, 52, 96, 0.6), rgba(233, 69, 96, 0.2));
  border: 1px solid rgba(233, 69, 96, 0.3);
}

.theme-checkbox:checked ~ .site .security-status {
  background: rgba(255, 202, 64, 0.15);
  border: 1px solid rgba(255, 202, 64, 0.4);
  color: #ffd25d;
}

.theme-checkbox:checked ~ .site .button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eaeaea;
  background: rgba(255, 255, 255, 0.08);
}

.theme-checkbox:checked ~ .site .hero-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-checkbox:checked ~ .site .footer-links a {
  color: #94a3b8;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 1rem;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.75rem;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(245, 246, 251, 0.82), rgba(237, 240, 250, 0.7));
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-icon {
  width: 2rem;
  height: 2rem;
  margin-right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.brand-name {
  line-height: 1;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav {
  position: relative;
}

.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle-bar {
  width: 1.5rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.hero {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

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

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 123, 123, 0.15);
  border: 1px solid rgba(255, 123, 123, 0.35);
  color: var(--primary-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  margin: 1rem 0;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions,
.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  border-radius: 0.9rem;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-accent));
  color: #fff;
  box-shadow: var(--shadow);
}

.button.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}

.button:hover,
.button:focus {
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.5rem;
  color: var(--text-muted);
}

.hero-card {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(24, 30, 80, 0.12);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.hero-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
}

.hero-card dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-card dd {
  margin: 0.25rem 0 0;
  font-weight: 300;
}

.section {
  padding: clamp(4rem, 8vw, 5.5rem) 0;
}

.section.alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }
}

.feature {
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(24, 30, 80, 0.12);
  border-radius: 1.25rem;
  min-height: 190px;
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.feature:hover,
.feature:focus-within {
  border-color: rgba(255, 123, 123, 0.4);
}

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

.architecture-grid ul,
.security-card ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.apps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.618rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

@media (min-width: 1200px) {
  .apps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 800px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 400px;
  }
}

@media (max-width: 500px) {
  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 250px;
  }
}

.platform-card {
  text-decoration: none;
  color: inherit;
  display: block;
}


.platform-card article {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(24, 30, 80, 0.12);
  border-radius: 1.25rem;
  padding: 2.618rem 1.618rem;
  backdrop-filter: blur(12px);
  text-align: center;
  width: 100%;
  min-width: 180px;
  max-width: 220px;
}

.platform-card:hover article {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 123, 123, 0.4);
}

.platform-icon {
  margin-bottom: 1.618rem;
  opacity: 0.9;
}

.platform-icon img {
  width: 2.5rem;
  height: 2.5rem;
  filter: invert(0.2);
}

.theme-checkbox:checked ~ .site .platform-icon img {
  filter: invert(0.9) brightness(1.2);
}

.platform-card article h3 {
  margin-bottom: 0.382rem;
  font-size: 1.25rem;
}

.platform-arch {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

.security-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(24, 30, 80, 0.12);
  border-radius: 1.25rem;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.security-status {
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.4);
  color: #ffd25d;
  border-radius: 0.9rem;
  padding: 1rem;
  font-weight: 600;
}

.security-card a {
  color: var(--primary-accent);
  text-decoration: none;
}

.security-card a:hover,
.security-card a:focus {
  text-decoration: underline;
}

.callout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
  background: linear-gradient(120deg, rgba(255, 123, 123, 0.2), rgba(255, 123, 123, 0.15));
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 123, 123, 0.3);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: rgba(237, 240, 250, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.footer-link-github {
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credit {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-credit a {
  color: var(--primary-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-credit a:hover,
.footer-credit a:focus {
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  isolation: isolate;
}

.theme-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(41, 60, 170, 0.25);
  box-shadow: 0 0 20px var(--glow-sun);
}

.theme-toggle-icon {
  font-size: 0.9rem;
  position: absolute;
}

.theme-toggle-icon--sun {
  left: 10px;
  opacity: 1;
}

.theme-toggle-icon--moon {
  right: 10px;
  opacity: 0.3;
}

.theme-checkbox:checked ~ .site .theme-toggle-track {
  background: rgba(233, 69, 96, 0.25);
  border: 1px solid rgba(233, 69, 96, 0.4);
  box-shadow: 0 0 20px var(--glow-moon);
}

.theme-checkbox:checked ~ .site .theme-toggle-icon--sun {
  opacity: 0.4;
}

.theme-checkbox:checked ~ .site .theme-toggle-icon--moon {
  opacity: 1;
}

.nav-checkbox:checked + .nav-toggle .nav-toggle-bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-checkbox:checked + .nav-toggle .nav-toggle-bar:nth-of-type(2) {
  opacity: 0;
}

.nav-checkbox:checked + .nav-toggle .nav-toggle-bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 800px) {
  .site-header .container {
    align-items: flex-start;
  }

  .header-controls {
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(260px, 80vw);
    flex-direction: column;
    padding: 1rem;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
      margin: 0;
  }

  .nav-checkbox:checked + .nav-toggle + .nav-list {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list li {
    padding: 0.25rem 0;
  }

  .theme-checkbox:checked ~ .site .nav-list {
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .security-card {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
