:root {
  --bg: #f6f9ff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d8e4fb;
  --primary: #2f6df6;
  --primary-dark: #1d4ed8;
  --primary-soft: #e9f1ff;
  --success-bg: #e7f7ee;
  --success-text: #1a9d63;

  --shadow: 0 18px 40px rgba(43, 94, 197, 0.08);
  --shadow-soft: 0 8px 20px rgba(43, 94, 197, 0.06);
  --shadow-hover: 0 22px 50px rgba(22, 48, 110, 0.10);
  --shadow-btn: 0 12px 28px rgba(47, 109, 246, 0.30);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47, 109, 246, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 34%, #f9fbff 100%);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 228, 251, 0.9);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #5c6c8d;
  font-weight: 600;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 700;
  padding: 15px 24px;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

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

.btn-primary {
  background: linear-gradient(135deg, #3b78ff 0%, #2f6df6 100%);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(47, 109, 246, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
  border-color: var(--line);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #bfd4ff;
}

.btn-block {
  width: 100%;
}

/* HERO */
.hero {
  padding: 16px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #265ff0;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-copy p {
  max-width: 700px;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.hero-points li {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: #55657f;
  font-weight: 600;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

/* CARDS */
.hero-card,
.info-card,
.plugin-card,
.download-card,
.requirement,
.gallery-item,
.download-thumb-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero-card:hover,
.info-card:hover,
.plugin-card:hover,
.download-thumb-card:hover,
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: #c7d9fb;
}

.hero-card.large {
  padding: 28px;
}

.hero-card.small {
  padding: 18px;
}

.hero-card-top,
.download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pill,
.mini-label,
.version,
.tag,
.chip-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.pill {
  padding: 8px 14px;
  font-size: 14px;
}

.pill.success {
  background: var(--success-bg);
  color: var(--success-text);
}

.mini-label {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--primary);
  background: #edf2fb;
}

.visual-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.visual-card-grid img {
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 18px;
}

.hero-card.large h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-card.large p {
  color: var(--muted);
  margin-bottom: 18px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-grid div {
  background: #f4f8ff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.metric-grid strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.metric-grid span {
  color: var(--muted);
}

.hero-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stack-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
}

.stack-thumb {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
}

.stack-card h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.stack-card p {
  color: var(--muted);
}

/* BANNER */
.wide-banner {
  padding: 10px 0 0;
}

.banner-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.banner-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
}

.banner-copy h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.banner-copy p {
  color: var(--muted);
}

/* SECTIONS */
.section {
  padding: 88px 0;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(239, 245, 255, 0.75), rgba(255, 255, 255, 0.96));
  border-top: 1px solid rgba(216, 228, 251, 0.6);
  border-bottom: 1px solid rgba(216, 228, 251, 0.6);
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-heading.left {
  text-align: left;
  margin-left: 0;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.plugin-grid,
.about-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

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

.info-card,
.plugin-card {
  padding: 24px;
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #edf4ff;
  font-size: 24px;
  margin-bottom: 18px;
}

.info-card h3,
.plugin-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.info-card p,
.plugin-card p {
  color: var(--muted);
}

/* GALLERY */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* PLUGINS */
.plugin-card {
  position: relative;
}

.plugin-icon {
  font-size: 34px;
  margin-bottom: 16px;
}

.tag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 12px;
  font-size: 12px;
}

.tag.premium {
  background: #fff3dc;
  color: #c68506;
}

.tag.popular {
  background: #e8f7ee;
  color: #15975b;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip-row span {
  padding: 8px 12px;
  background: #eef4ff;
  color: #4c6cb3;
  font-size: 13px;
}

.plugin-meta,
.spec-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plugin-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #5a6780;
  font-weight: 600;
}

/* PARTNER */
.partner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* DOWNLOAD */
.download-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 30px;
  align-items: start;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.requirement {
  padding: 18px 20px;
  color: #55657f;
  font-weight: 600;
}

.download-visuals {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.download-thumb-card {
  padding: 10px;
}

.download-thumb-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
}

.download-card {
  padding: 26px;
  position: sticky;
  top: 112px;
}

.version {
  padding: 8px 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.download-preview-banner {
  margin: 18px 0 20px;
}

.download-preview-banner img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.spec-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 24px;
}

.spec-list div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.spec-list div:last-child {
  border-bottom: none;
}

.spec-list span,
.site-footer p,
.footer-links a {
  color: var(--muted);
}

/* FOOTER */
.site-footer {
  padding: 44px 0 54px;
  border-top: 1px solid rgba(216, 228, 251, 0.8);
  background: rgba(244, 248, 255, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-links h4 {
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .download-layout,
  .feature-grid,
  .plugin-grid,
  .about-grid,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .partner-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card {
    position: static;
  }

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

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .hero-stack,
  .metric-grid,
  .requirements-grid,
  .gallery-grid,
  .footer-links,
  .download-visuals {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-item.large,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .stack-card {
    grid-template-columns: 72px 1fr;
  }

  .stack-thumb {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-actions,
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-card.large,
  .hero-card.small,
  .info-card,
  .plugin-card,
  .download-card {
    padding: 20px;
  }

  .banner-copy h2 {
    font-size: 28px;
  }
}
