/* FlowField marketing — aligns with app TradeShowTheme (cool slate + blue accent) */

:root {
  --bg-deep: #0f141f;
  --bg: rgb(15, 20, 31);
  --surface: rgb(26, 31, 46);
  --elevated: rgb(36, 41, 61);
  --text: rgb(242, 245, 250);
  --muted: rgb(158, 168, 189);
  --accent: rgb(56, 126, 255);
  --accent-soft: rgba(56, 126, 255, 0.14);
  --border: rgb(77, 87, 112);
  --radius: 14px;
  --radius-lg: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --container: min(1120px, calc(100% - 40px));
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: rgb(130, 175, 255);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--elevated);
  border-radius: 8px;
  z-index: 100;
}

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

.wrap {
  width: var(--container);
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 20, 31, 0.82);
  border-bottom: 1px solid rgba(77, 87, 112, 0.35);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(56, 126, 255, 0.28);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 6px 24px rgba(56, 126, 255, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-desktop {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav-desktop.is-open {
    display: flex;
  }

  .nav-desktop .nav-cta {
    text-align: center;
  }
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../assets/hero-flowfield.png") center/cover no-repeat;
  opacity: 0.88;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 20, 31, 0.96) 0%,
    rgba(15, 20, 31, 0.78) 42%,
    rgba(15, 20, 31, 0.55) 100%
  );
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.hero-badge span {
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-lede {
  margin: 0 0 26px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  background: var(--accent);
  color: #fff !important;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 10px 36px rgba(56, 126, 255, 0.38);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none !important;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: #fff !important;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 640px) {
  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }
}

.hero-device-col {
  display: flex;
  justify-content: center;
}

.device-frame {
  width: min(100%, 440px);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(160deg, rgb(45, 52, 72), rgb(22, 26, 38));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.device-bezel {
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  height: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.device-notch {
  height: 6px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.device-notch span {
  width: 72px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-toolbar b {
  color: var(--text);
  font-size: 0.76rem;
}

.mock-body {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-card {
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 72px;
  position: relative;
  overflow: hidden;
}

.mock-card::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.mock-footer {
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--muted);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Strip */

.strip {
  padding: 22px 0;
  border-block: 1px solid rgba(77, 87, 112, 0.35);
  background: rgba(255, 255, 255, 0.02);
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 36px;
  justify-content: center;
  align-items: center;
  font-size: 0.92rem;
  color: var(--muted);
}

.strip-inner svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Sections */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(77, 87, 112, 0.45);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(56, 126, 255, 0.45);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Screenshots row */

.mocks-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px) {
  .mocks-row {
    grid-template-columns: 1fr;
  }
}

.mock-panel {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.mock-panel-top {
  padding: 10px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.mock-panel-body {
  padding: 14px;
  min-height: 160px;
}

.catalog-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--elevated);
}

.thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 126, 255, 0.35), rgba(130, 175, 255, 0.28));
}

.row-lines span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.row-lines span:last-child {
  width: 55%;
  margin-bottom: 0;
}

.price-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
}

.checkout-mock {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sig-area {
  height: 72px;
  border-radius: 10px;
  border: 2px dashed rgba(56, 126, 255, 0.35);
  background: rgba(56, 126, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.hub-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-box {
  padding: 12px;
  border-radius: 10px;
  background: var(--elevated);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-box span {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.stat-box small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* Video */

.video-section {
  padding-bottom: 48px;
}

.video-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
  position: relative;
}

.video-shell img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-caption {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.play-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.play-circle::after {
  content: "";
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* Integration */

.integration {
  border-radius: var(--radius-lg);
  padding: 36px;
  background: linear-gradient(135deg, rgba(56, 126, 255, 0.08), rgba(130, 175, 255, 0.07));
  border: 1px solid rgba(56, 126, 255, 0.22);
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

@media (max-width: 760px) {
  .integration-grid {
    grid-template-columns: 1fr;
  }
}

.integration h2 {
  margin: 0 0 10px;
}

.integration p {
  margin: 0;
  color: var(--muted);
}

.integration-benefits {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.integration-benefits li {
  margin-bottom: 8px;
}

.woo-badge {
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}

/* FAQ */

details.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Footer */

.site-footer {
  padding: 48px 0 60px;
  border-top: 1px solid rgba(77, 87, 112, 0.35);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
}

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

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