:root {
  --navy-900: #0b1b33;
  --navy-800: #11284a;
  --navy-700: #16335c;
  --white: #ffffff;
  --slate-50: #f7f9fb;
  --slate-100: #eef1f5;
  --slate-200: #dde3ea;
  --slate-400: #8d99a8;
  --slate-500: #6b7686;
  --slate-600: #4d5968;
  --slate-700: #37414d;
  --green-600: #1c7a56;
  --green-700: #15603f;
  --radius: 10px;
  --max-width: 1240px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 27, 51, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: 10px 16px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

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

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

.btn-primary:hover {
  background: var(--green-700);
}

.btn-secondary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-700);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Media frame: reusable image / placeholder component.
   Used by the homepage hero, product cards, product-page hero, and
   product-page galleries. Renders a real <img> (via .media-frame-img)
   once a product/site data file supplies a src, otherwise shows the
   diagonal-striped placeholder below. */
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-frame.ratio-4-3 {
  aspect-ratio: 4 / 3;
}

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

/* Only boxes with a forced aspect ratio (product cards) crop; hero and
   gallery screenshots size naturally so spreadsheet labels stay readable. */
.media-frame.ratio-4-3 .media-frame-img {
  height: 100%;
  object-fit: cover;
}

.media-frame--card .media-frame-img {
  object-position: top;
}

.media-frame:not(.media-frame--placeholder) {
  background: var(--white);
}

.media-frame--on-dark:not(.media-frame--placeholder) {
  box-shadow: var(--shadow-md);
}

.media-frame--placeholder {
  background: repeating-linear-gradient(45deg, var(--slate-100), var(--slate-100) 10px, var(--slate-50) 10px, var(--slate-50) 20px);
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

.media-frame--on-dark.media-frame--placeholder {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06) 10px, rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.02) 20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--slate-100);
  box-shadow: var(--shadow-md);
  border-radius: 14px;
}

.media-frame--dashed.media-frame--placeholder {
  background: var(--slate-100);
  border: 1px dashed var(--slate-400);
  color: var(--slate-500);
}

.media-frame--card {
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid var(--slate-200);
}

/* Header */
.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green-600);
  display: inline-block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.primary-nav > ul > li > a {
  color: var(--slate-100);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.primary-nav > ul > li > a:hover {
  color: var(--white);
}

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--navy-900);
  font-size: 0.92rem;
}

.dropdown-menu li a:hover {
  background: var(--slate-50);
}

.nav-cta {
  white-space: nowrap;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 96px 0 96px;
}

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

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 3.4vw, 3.4rem);
  margin-bottom: 0.55em;
}

.hero-sub {
  color: var(--slate-100);
  font-size: 1.2rem;
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-media {
  position: relative;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--slate-50);
}

.section-title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  text-align: center;
  margin-bottom: 0.4em;
}

.section-sub {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--slate-600);
  font-size: 1.05rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 16px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

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

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

.product-industry {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green-600);
}

.product-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.product-card-body h3 a {
  color: var(--navy-900);
}

.product-card-body p {
  color: var(--slate-600);
  font-size: 0.98rem;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 8px;
}

.price {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy-900);
}

.price-note {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate-500);
}

.product-card-cta {
  display: block;
  text-align: center;
  margin-top: 16px;
  width: 100%;
}

/* Explain section */
.explain-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

/* How it works */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.benefit {
  border-left: 3px solid var(--green-600);
  padding-left: 18px;
}

.benefit h3 {
  font-size: 1.05rem;
}

.benefit p {
  color: var(--slate-600);
  font-size: 0.98rem;
}

/* Agency teaser */
.agency-teaser-section {
  background: var(--navy-900);
}

.agency-teaser-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.agency-teaser-inner h2,
.agency-teaser-inner p {
  color: var(--slate-100);
}

.agency-teaser-inner .section-title {
  text-align: left;
  margin-bottom: 0.3em;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
}

.faq-item p {
  margin-top: 12px;
  color: var(--slate-600);
}

.faq-more {
  text-align: center;
  margin-top: 24px;
}

/* Final CTA */
.final-cta-section {
  background: var(--slate-50);
  text-align: center;
}

.final-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.final-cta-inner p {
  color: var(--slate-600);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: var(--slate-100);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--slate-200);
  font-size: 0.92rem;
}

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

.footer-brand .logo-text {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-brand p {
  color: var(--slate-200);
  font-size: 0.9rem;
}

.footer-address {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* Placeholder / interior pages */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 64px 0;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.page-content {
  padding: 64px 0;
}

.page-content .wrap {
  max-width: 760px;
}

.draft-banner {
  background: #fff8e6;
  border: 1px solid #f0cf6b;
  border-left: 4px solid #c9941f;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 0.95rem;
  color: #6b4e0a;
}

.legal-placeholder {
  color: var(--slate-600);
  font-style: italic;
}

.contact-email-lead {
  font-size: 1.1rem;
  color: var(--navy-900);
  font-weight: 500;
}

/* Contact form */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
}

.form-optional {
  font-weight: 400;
  color: var(--slate-500);
}

.form-input,
.form-select,
.form-textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px 14px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--green-600);
  outline-offset: 1px;
  border-color: var(--green-600);
}

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

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.92rem;
}

/* Product landing pages */
.product-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding: 72px 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.product-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.4em;
}

.product-hero .product-industry {
  color: #8fd4b4;
}

.product-hero-sub {
  color: var(--slate-100);
  font-size: 1.1rem;
  max-width: 540px;
}

.product-content {
  padding: 72px 0;
}

.product-content .wrap {
  max-width: 880px;
}

.product-content h2 {
  margin-top: 2em;
  font-size: 1.45rem;
}

.product-content h2:first-child {
  margin-top: 0;
}

.product-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 1em;
}

.product-benefits li {
  padding-left: 28px;
  position: relative;
  color: var(--slate-700);
}

.product-benefits li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-600);
  font-weight: 700;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
  gap: 16px;
  margin: 0 0 1em;
}

.product-purchase-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 1.5em;
}

.product-purchase-bar .price {
  font-size: 1.6rem;
}

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

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .primary-nav.is-open {
    max-height: 600px;
    padding-bottom: 20px;
  }

  .primary-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 0;
  }

  .primary-nav > ul > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav > ul > li > a {
    padding: 14px 0;
    justify-content: space-between;
  }

  .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--navy-800);
    display: none;
    margin: 0 0 8px;
  }

  .has-dropdown.is-open .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: var(--slate-100);
  }

  .dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin: 16px 24px 0;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-width: 440px;
    margin: 0 auto;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .product-hero-media {
    max-width: 440px;
    margin: 0 auto;
  }

  .explain-grid {
    grid-template-columns: 1fr;
  }

  .agency-teaser-inner {
    text-align: center;
    justify-content: center;
  }

  .agency-teaser-inner .section-title {
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1360px;
  }

  .section {
    padding: 100px 0;
  }

  .hero {
    padding: 120px 0;
  }
}

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

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    text-align: center;
  }
}
