:root {
  color-scheme: dark;
  --bg: #07121f;
  --bg-alt: #0d2238;
  --text: #eaf3ff;
  --muted: #aac2dc;
  --soft: rgba(170, 194, 220, 0.78);
  --card: rgba(12, 27, 44, 0.86);
  --card-border: rgba(34, 113, 177, 0.34);
  --card-border-hover: rgba(114, 174, 230, 0.72);
  --accent: #2271b1;
  --accent-strong: #72aee6;
  --product-border: rgba(114, 174, 230, 0.2);
  --product-surface: rgba(114, 174, 230, 0.06);
  --product-surface-hover: rgba(34, 113, 177, 0.16);
  --placeholder-border: rgba(255, 255, 255, 0.35);
  --placeholder-text: rgba(255, 255, 255, 0.7);
  --coming-text: rgba(170, 194, 220, 0.92);
  --coming-border: rgba(114, 174, 230, 0.4);
  --footer-text: rgba(170, 194, 220, 0.86);
  --toggle-bg: rgba(114, 174, 230, 0.12);
  --toggle-bg-hover: rgba(114, 174, 230, 0.22);
  --logo-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.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;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f8ff;
  --bg-alt: #e1ecf8;
  --text: #11263b;
  --muted: #3a5572;
  --soft: rgba(58, 85, 114, 0.82);
  --card: rgba(255, 255, 255, 0.82);
  --card-border: rgba(34, 113, 177, 0.28);
  --card-border-hover: rgba(34, 113, 177, 0.56);
  --accent: #2271b1;
  --accent-strong: #135e96;
  --product-border: rgba(34, 113, 177, 0.24);
  --product-surface: rgba(255, 255, 255, 0.8);
  --product-surface-hover: rgba(34, 113, 177, 0.1);
  --placeholder-border: rgba(17, 38, 59, 0.26);
  --placeholder-text: rgba(17, 38, 59, 0.62);
  --coming-text: #1c4f7a;
  --coming-border: rgba(34, 113, 177, 0.45);
  --footer-text: rgba(43, 71, 99, 0.88);
  --toggle-bg: rgba(34, 113, 177, 0.1);
  --toggle-bg-hover: rgba(34, 113, 177, 0.2);
  --logo-shadow: 0 8px 20px rgba(17, 38, 59, 0.16);
}

body {
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  font-size-adjust: 0.52;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  background:
    radial-gradient(1200px 560px at 95% -20%, rgba(34, 113, 177, 0.42), transparent 58%),
    radial-gradient(900px 480px at -15% 110%, rgba(26, 76, 122, 0.56), transparent 62%),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%);
  transition: background 220ms ease, color 220ms ease;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 1000;
  padding: 0.45rem 0.7rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  transform: translateY(-140%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.hero {
  position: relative;
  margin-bottom: 2.7rem;
  text-align: center;
}

.top-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.menu-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.84;
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
  transition: opacity 170ms ease, border-color 170ms ease;
}

.home-icon {
  font-size: 0.96rem;
  letter-spacing: 0;
  padding-bottom: 0;
}

.menu-link:hover {
  opacity: 1;
  border-color: var(--accent-strong);
  text-decoration: none;
}

.theme-toggle,
.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.88;
  cursor: pointer;
  transition: opacity 170ms ease, transform 170ms ease;
}

.theme-toggle:hover,
.share-button:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.theme-toggle:focus-visible,
.share-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle::before {
  content: "\2600";
}

.theme-toggle[data-next-theme="dark"]::before {
  content: "\263E";
}

.share-button {
  font-size: 0.88rem;
}

.share-button i {
  pointer-events: none;
}

.logo-mark {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 1rem;
  box-shadow: var(--logo-shadow);
  border-radius: 10px;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.tagline {
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  max-width: 56ch;
  color: var(--muted);
  margin: 0 auto;
}

.plugins {
  margin-top: 0.8rem;
  margin-bottom: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1.4rem;
  backdrop-filter: blur(3px);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.plugins h2 {
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}

.plugins-intro {
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.plugins-intro,
.about p {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.95rem;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0.78rem;
  border-radius: 12px;
  border: 1px solid var(--product-border);
  background: var(--product-surface);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.product-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: var(--card-border-hover);
  background: var(--product-surface-hover);
}

.product-thumb {
  width: 128px;
  height: 128px;
  min-width: 128px;
  min-height: 128px;
  max-width: 128px;
  max-height: 128px;
  object-fit: cover;
  border-radius: 10px;
  background: #000;
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--placeholder-border);
}

.thumb-placeholder span {
  color: var(--placeholder-text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.product-title {
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text);
}

.product-meta,
.product-use {
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.3;
}

.product-meta {
  color: var(--muted);
}

.product-use {
  color: var(--soft);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.cta::after {
  content: "\2192";
  transform: translateX(0);
  transition: transform 170ms ease;
}

.cta:hover::after,
.cta:focus-visible::after {
  transform: translateX(2px);
}

.detail-link {
  font-size: 0.78rem;
  color: var(--muted);
}

.coming {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--coming-text);
  border: 1px solid var(--coming-border);
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

.plugin-details {
  margin-bottom: 1.25rem;
}

.plugin-details h2 {
  font-size: 1.12rem;
  margin-bottom: 0.7rem;
}

.plugin-detail + .plugin-detail {
  margin-top: 0.9rem;
  border-top: 1px solid var(--product-border);
  padding-top: 0.9rem;
}

.plugin-detail h3 {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
}

.plugin-detail p {
  font-size: 0.87rem;
  color: var(--muted);
}

.news-list {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.news-item {
  border: 1px solid var(--product-border);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--product-surface);
}

.news-meta {
  font-size: 0.75rem;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-item h3 {
  margin-top: 0.35rem;
  font-size: 1rem;
}

.news-item p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.signup-form {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0.9rem;
}

.signup-input {
  min-width: min(280px, 100%);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.58rem 0.88rem;
  font: inherit;
}

.signup-input::placeholder {
  color: var(--muted);
}

.signup-button {
  border: 1px solid var(--card-border-hover);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--text);
  padding: 0.56rem 0.92rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.signup-button:hover {
  background: var(--toggle-bg-hover);
}

.launch-cta {
  margin-bottom: 1.5rem;
  text-align: center;
}

.launch-cta h2 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.launch-cta p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.button-like {
  display: inline-block;
  border: 1px solid var(--card-border-hover);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: var(--text);
  padding: 0.52rem 0.86rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.button-like:hover {
  text-decoration: none;
  background: var(--toggle-bg-hover);
}

.about {
  margin-top: 1.25rem;
  margin-bottom: 2.2rem;
  color: var(--soft);
  font-size: 0.92rem;
  text-align: center;
}

.about p {
  margin-bottom: 0;
  color: inherit;
  font-size: inherit;
}

.footer {
  font-size: 0.85rem;
  color: var(--footer-text);
  text-align: center;
}

.updated {
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .container {
    padding: 4rem 1rem;
  }

  .card {
    padding: 1.2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.7rem;
  }

  .product-card {
    padding: 0.72rem;
  }

  .product-thumb {
    width: 112px;
    height: 112px;
    min-width: 112px;
    min-height: 112px;
    max-width: 112px;
    max-height: 112px;
  }

  .logo-mark {
    width: 112px;
    height: 112px;
  }

  .top-menu {
    gap: 0.82rem;
  }

  .menu-link {
    font-size: 0.72rem;
  }

  .skip-link {
    left: 0.5rem;
    top: 0.5rem;
  }

  .theme-toggle {
    width: 1.35rem;
    height: 1.35rem;
  }

  .thumb-placeholder span {
    font-size: 0.68rem;
  }

  .coming {
    font-size: 0.8rem;
  }

  .plugin-detail p {
    font-size: 0.84rem;
  }

  .about {
    margin-bottom: 2.6rem;
  }

  .footer {
    font-size: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-card:hover,
  .cta::after,
  .cta:hover::after,
  .cta:focus-visible::after {
    transform: none !important;
    box-shadow: none !important;
  }
}
