/* ============================================================
   NeoApps — site stylesheet
   Same design tokens/typography as neoklan.com and neothemes.net
   (Urbanist, blue accent) — NeoApps is the SaaS/plugin-marketplace
   sibling site, from the studio behind Neoklan Technologies.
   ============================================================ */

:root {
  --primary: #1857c9;
  --primary-dark: #123f96;
  --primary-darker: #0d2f72;
  --primary-light: #eaf1fd;
  --primary-tint: #dbe8fb;
  --heading: #0e191e;
  --paragraph: #5b6470;
  --bg-cream: #f6f8fb;
  --white: #ffffff;
  --border: #e5e9f0;
  --dark: #0b1727;
  --dark-2: #101f34;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 10px 30px rgba(14, 25, 30, 0.06);
  --shadow-card-hover: 0 20px 45px rgba(24, 87, 201, 0.15);
  --container: 1200px;
  --success: #157a4a;
  --success-light: #e6f5ee;
  --warn: #a15c07;
  --warn-light: #fdf1e0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Urbanist", "Segoe UI", Arial, sans-serif;
  color: var(--paragraph);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5 {
  color: var(--heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
  line-height: 1.75;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
}

.section {
  padding: 96px 0;
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag-row .section-tag {
  margin-bottom: 0;
}

.page-header .tag-row {
  justify-content: center;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.bg-tint {
  background: var(--bg-cream);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-lg {
  padding: 18px 38px;
  font-size: 16px;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-block { width: 100%; }
.btn-outline-invert {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

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

.brand-mark {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 800;
  font-size: 22px;
  color: var(--heading);
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--primary);
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 24px;
}

.hero-eyebrow .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

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

.hero-lead {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  color: var(--heading);
  font-weight: 800;
}

.hero-stat span {
  font-size: 13px;
  color: var(--paragraph);
}

.hero-visual {
  position: relative;
}

/* ---------- Browser / device frame for screenshots + mockups ---------- */

.browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
}

.browser-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: var(--dark-2);
}

.browser-frame-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33465c;
}

.browser-frame-bar span:nth-child(1) { background: #ff6767; }
.browser-frame-bar span:nth-child(2) { background: #ffc267; }
.browser-frame-bar span:nth-child(3) { background: #67ff9e; }

.browser-frame img {
  display: block;
  width: 100%;
}

.browser-frame svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual .browser-frame {
  transform: rotate(-1.2deg);
}

.hero-visual .float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--heading);
  font-size: 14px;
}

.hero-visual .float-badge svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

.hero-visual .float-badge--top {
  top: -18px;
  left: -24px;
}

.hero-visual .float-badge--bottom {
  bottom: -18px;
  right: -18px;
}

/* ---------- Screenshot placeholder (mockup stands in until real screenshots ship) ---------- */

.mockup-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--paragraph);
  background: var(--bg-cream);
  border: 1px dashed var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  margin: 14px 0 0;
}

.mockup-note svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 64px 0 56px;
  background: var(--dark);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(24, 87, 201, 0.55), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(24, 87, 201, 0.35), transparent 50%);
  text-align: center;
  color: var(--white);
}

.page-header .section-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #b9d1fb;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 12px;
}

.page-header p {
  max-width: 620px;
  margin: 0 auto;
  color: #b9c4d4;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #b9c4d4;
  margin-bottom: 16px;
}

.breadcrumb a { color: #b9c4d4; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--white); }

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 28px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.icon-badge svg { width: 28px; height: 28px; }

.card h2,
.card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.card h2 a,
.card h3 a,
.product-card-body h3 a {
  transition: color 0.15s ease;
}

.card h2 a:hover,
.card h3 a:hover,
.product-card-body h3 a:hover {
  color: var(--primary);
}

.card p {
  font-size: 15px;
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

/* ---------- Feature list (checkmarks) ---------- */

.check-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--heading);
  font-size: 16px;
}

.check-item .tick {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-item .tick svg { width: 14px; height: 14px; }

.check-list.stacked {
  flex-direction: column;
  gap: 16px;
}

.check-list.stacked .check-item {
  align-items: flex-start;
}

.check-list.stacked .check-item span:last-child {
  font-weight: 500;
  color: var(--paragraph);
  font-size: 15px;
}

/* ---------- Process / steps ---------- */

.step-card {
  position: relative;
  padding-top: 8px;
}

.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-tint);
  margin-bottom: 8px;
  line-height: 1;
}

/* ---------- Stats strip ---------- */

.stats-strip {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  color: var(--white);
}

.stats-strip .stat strong {
  font-size: 36px;
  font-weight: 800;
  display: block;
  color: var(--white);
}

.stats-strip .stat span {
  font-size: 14px;
  color: #9fb2c8;
}

/* ---------- Products / marketplace ---------- */

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-chip.chip-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #b9d1fb;
}

.badge-chip.chip-new {
  background: var(--success-light);
  color: var(--success);
}

.badge-chip.chip-live {
  background: var(--success-light);
  color: var(--success);
}

.badge-chip.chip-dev {
  background: var(--warn-light);
  color: var(--warn);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--warn-light);
  color: var(--warn);
  white-space: nowrap;
}

.status-badge.status-live {
  background: var(--success-light);
  color: var(--success);
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.product-card-thumb {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-cream);
}

.product-card-thumb img,
.product-card-thumb svg {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb img,
.product-card:hover .product-card-thumb svg {
  transform: scale(1.03);
}

.product-card-thumb .badge-chip,
.product-card-thumb .status-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.product-card-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-body .kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.product-card-body h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.product-card-body p {
  font-size: 14.5px;
  margin-bottom: 20px;
}

.product-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.product-card-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--paragraph);
  background: var(--bg-cream);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card-footer .price {
  font-weight: 800;
  color: var(--heading);
  font-size: 15px;
}

.product-card-footer .price small {
  font-weight: 500;
  color: var(--paragraph);
  font-size: 12px;
}

.product-card-footer-links {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-placeholder-card {
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--border);
  background: var(--bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 30px;
  color: var(--paragraph);
  min-height: 100%;
}

.product-placeholder-card .icon-badge {
  background: var(--white);
  margin-bottom: 20px;
}

.product-placeholder-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.product-placeholder-card p {
  font-size: 14px;
  margin-bottom: 0;
}

.plugin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.plugin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-cream);
}

.plugin-item strong {
  display: block;
  color: var(--heading);
  font-size: 14.5px;
  margin-bottom: 4px;
}

.plugin-item span {
  font-size: 13px;
  color: var(--paragraph);
}

.plugin-item a {
  font-weight: 700;
  font-size: 13px;
  color: var(--primary);
  white-space: nowrap;
}

/* ---------- Screenshot gallery (product detail) ---------- */

.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card-hover);
  margin-bottom: 20px;
  cursor: zoom-in;
}

.gallery-main img,
.gallery-main svg { width: 100%; display: block; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.gallery-thumbs button {
  padding: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
  aspect-ratio: 16/10;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Screenshot lightbox (built dynamically by site.js) ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 23, 39, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-figure img {
  display: block;
  max-width: min(1100px, 90vw);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  margin: 0;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}

.lightbox-counter {
  color: #9fb2c8;
  font-size: 13px;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

body.lightbox-locked {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lightbox-overlay { padding: 80px 12px 32px; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 18px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- Product detail meta / spec ---------- */

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.product-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 28px 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  gap: 16px;
}

.meta-row:first-child { border-top: none; padding-top: 0; }
.meta-row span:first-child { color: var(--paragraph); flex-shrink: 0; }
.meta-row span:last-child { color: var(--heading); font-weight: 700; text-align: right; }

.spec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.spec-card h3 { margin-bottom: 20px; }

.feature-check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}

.feature-check-grid .check-item {
  align-items: flex-start;
  font-size: 15px;
}

.feature-check-grid .check-item span:last-child {
  font-weight: 500;
  color: var(--paragraph);
}

.feature-check-grid .tick { margin-top: 2px; }

/* ---------- FAQ ---------- */

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  font-size: 16px;
}

.faq-question .plus {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .plus {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 15px;
}

.faq-item.open .faq-answer {
  max-height: 480px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark);
  color: #b9c4d4;
  padding-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .brand-name { color: var(--white); }

.footer-brand p {
  color: #9fb2c8;
  font-size: 14px;
  margin: 20px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-socials svg { width: 16px; height: 16px; }

.footer-col h3 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 22px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.footer-col a {
  font-size: 14px;
  color: #9fb2c8;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #9fb2c8;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 13px;
  color: #7c8ba0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: #9fb2c8; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(120deg, var(--primary-darker), var(--primary));
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
  overflow: hidden;
  position: relative;
}

.cta-band::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, 0.06);
  right: -140px;
  top: -140px;
}

.cta-band h2 {
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.cta-band-text { max-width: 560px; position: relative; z-index: 1;}
.cta-band-action { flex-shrink: 0; position: relative; z-index: 1; display: flex; gap: 14px; flex-wrap: wrap;}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 44px;
}

.contact-info-card h2 {
  color: white;
}

.contact-info-card > p { color: #9fb2c8; }
.contact-info-card .footer-socials { margin-top: 28px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-item:first-of-type { border-top: none; padding-top: 28px; }

.contact-info-item .icon-badge {
  background: rgba(24, 87, 201, 0.25);
  color: #8fb4f2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: 0;
}

.contact-info-item .icon-badge svg { width: 20px; height: 20px; }

.contact-info-item strong {
  display: block;
  color: white;
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info-item span, .contact-info-item a {
  font-size: 14px;
  color: #9fb2c8;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--heading);
}

.form-field input,
.form-field select,
.form-field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--heading);
  background: var(--bg-cream);
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-feedback {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  min-height: 0;
}

.form-feedback.success { color: var(--success); }
.form-feedback.error { color: #c0392b; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- About page specifics ---------- */

.value-row {
  display: flex;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.value-row:first-of-type { border-top: none; padding-top: 0; }

.value-row .num {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 40px;
}

.value-row h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.value-row p { font-size: 14px; margin-bottom: 0; }

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--primary-darker), var(--primary));
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-visual svg { width: 62%; height: auto; }

.pill-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-badge strong {
  display: block;
  font-size: 22px;
  color: var(--heading);
}

.pill-badge span {
  font-size: 12px;
  color: var(--paragraph);
}

/* ---------- Documentation pages ---------- */

.docs-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
}

.docs-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.docs-sidebar-card h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--paragraph);
  margin-bottom: 14px;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.docs-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--paragraph);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.docs-nav a:hover {
  background: var(--bg-cream);
  color: var(--heading);
}

.docs-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.docs-content h2 {
  font-size: 26px;
  margin-top: 56px;
  padding-top: 16px;
  scroll-margin-top: 100px;
}

.docs-content > h2:first-child,
.docs-content > *:first-child h2 {
  margin-top: 0;
}

.docs-content h3 {
  font-size: 19px;
  margin-top: 32px;
}

.docs-content ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.docs-content ul li {
  padding-left: 26px;
  position: relative;
  font-size: 15px;
  line-height: 1.7;
}

.docs-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--primary-tint);
}

.docs-content pre {
  background: var(--dark);
  color: #d7e3f5;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.docs-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.doc-callout {
  display: flex;
  gap: 14px;
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 0 0 24px;
  font-size: 14.5px;
}

.doc-callout.callout-warn {
  border-left-color: var(--warn);
  background: var(--warn-light);
}

.doc-callout svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.doc-callout.callout-warn svg { color: var(--warn); }

.doc-callout p { margin: 0; }

.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  color: var(--heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-cream);
}

.docs-hub-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
}

.docs-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.docs-hub-card-text h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.docs-hub-card-text p {
  margin-bottom: 0;
  font-size: 14px;
}

.docs-hub-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Content is visible by default; only hidden once JS confirms it can reveal it again. */

.js-ready [data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-ready [data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* ---------- Utilities ---------- */

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

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }

.section--flush-top { padding-top: 0; }
.section--tight-top { padding-top: 56px; }

.link-primary {
  color: var(--primary);
  font-weight: 700;
}

.hero-grid--center { align-items: center; }
.hero-actions--tight { margin-top: 8px; }
.h3-lg { font-size: 26px; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.plain-list-stack {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tick-sm {
  background: var(--primary-light);
  color: var(--primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.view-all-cta {
  text-align: center;
  margin-top: 44px;
}

.specialization-note {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
}

/* ---------- Mobile nav & responsive ---------- */

@media (max-width: 1080px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; margin-bottom: 32px; }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 44px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .feature-check-grid { grid-template-columns: 1fr; }
  .plugin-item { flex-direction: column; align-items: flex-start; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: 73px 0 0 0;
    background: white;
    padding: 32px 24px;
    gap: 28px;
    overflow-y: auto;
    height: calc(100vh - 73px);
  }

  .main-nav.open .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .main-nav.open .header-cta {
    width: 100%;
  }

  .main-nav.open .header-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; padding: 32px 24px; gap: 28px 16px;}
  .footer-top { grid-template-columns: 1fr; }
  .testimonial-card, .contact-info-card, .contact-form-card, .spec-card, .docs-sidebar-card { padding: 30px 24px; }
  .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .hero-visual .float-badge { display: none; }
  .docs-hub-card { flex-direction: column; align-items: flex-start; }
}
