/* FormsXray Marketing Site — Shared Styles */

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

:root {
  --blue-800: #1565C0;
  --blue-700: #1976D2;
  --blue-600: #1E88E5;
  --blue-900: #0D47A1;
  --blue-50:  #E3F2FD;
  --blue-100: #BBDEFB;
  --text-dark: #1A1A2E;
  --text-mid:  #374151;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --surface: #F8FAFF;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue-800);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-mid);
}
.nav-links a:hover { color: var(--blue-800); text-decoration: none; }
.nav-cta {
  margin-left: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .15s, color .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--blue-800);
  color: var(--white);
  border-color: var(--blue-800);
}
.btn-primary:hover { background: var(--blue-900); border-color: var(--blue-900); box-shadow: 0 4px 14px rgba(21,101,192,.4); }
.btn-outline {
  background: transparent;
  color: var(--blue-800);
  border-color: var(--blue-800);
}
.btn-outline:hover { background: var(--blue-50); }
.btn-white {
  background: var(--white);
  color: var(--blue-800);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-50); box-shadow: 0 4px 14px rgba(255,255,255,.3); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ── SECTIONS ── */
section { padding: 80px 24px; }
.container { max-width: 1140px; margin: 0 auto; }

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-700);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.text-center { text-align: center; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--blue-100);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
}
.hero h1 span { color: var(--blue-100); }
.hero-sub {
  font-size: 1.2rem;
  color: rgba(255,255,255,.82);
  max-width: 600px;
  margin: 0 auto 36px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.hero-badge-item svg { color: var(--blue-100); }

/* ── PRODUCT CARDS ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-card-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.product-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.product-icon.cs { background: linear-gradient(135deg, #1565C0, #1976D2); }
.product-icon.view { background: linear-gradient(135deg, #0D47A1, #1565C0); }
.product-icon.trace { background: linear-gradient(135deg, #1A237E, #283593); }
.product-card-meta { flex: 1; }
.product-name { font-size: 1.4rem; font-weight: 800; color: var(--blue-800); margin-bottom: 4px; }
.product-tagline { font-size: .95rem; color: var(--text-light); }
.product-version { font-size: .8rem; color: var(--text-light); margin-top: 4px; }
.product-card-body { padding: 24px 28px; flex: 1; }
.product-card-body p { color: var(--text-mid); margin-bottom: 20px; line-height: 1.65; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
  color: var(--text-mid);
}
.feature-list li::before {
  content: '';
  width: 18px; height: 18px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231565C0'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.product-card-footer {
  padding: 20px 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── FEATURE DETAIL ── */
.feature-detail {
  background: var(--surface);
}
.feature-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 40px;
}
.feature-tab {
  padding: 12px 24px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.feature-tab:hover { color: var(--blue-800); }
.feature-tab.active { color: var(--blue-800); border-bottom-color: var(--blue-800); }
.feature-panel { display: none; }
.feature-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-panel-content h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.feature-panel-content p { color: var(--text-mid); margin-bottom: 20px; }
.feature-panel-content .feature-list { margin-bottom: 0; }
.feature-screenshot {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
  font-size: .9rem;
  padding: 24px;
  text-align: center;
}
.screenshot-placeholder svg { color: var(--blue-100); }

/* ── DIFFERENTIATORS ── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.diff-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.diff-icon {
  width: 44px; height: 44px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.diff-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.diff-card p { font-size: .9rem; color: var(--text-light); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
  counter-reset: step;
}
.step { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: var(--blue-800);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--text-light); }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured {
  border-color: var(--blue-800);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-800);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 14px;
  border-radius: 12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-name { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 8px; }
.pricing-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--blue-800);
  line-height: 1;
  margin: 20px 0 4px;
}
.pricing-price span { font-size: 1.1rem; font-weight: 500; color: var(--text-light); }
.pricing-desc { font-size: .9rem; color: var(--text-light); margin-bottom: 28px; }
.pricing-features { list-style: none; margin-bottom: 28px; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-mid);
}
.pricing-features li svg { color: var(--blue-700); flex-shrink: 0; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cta-band p { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── REQUIREMENTS ── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.req-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.req-icon {
  width: 40px; height: 40px;
  background: var(--blue-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.req-item h4 { font-size: .9rem; font-weight: 700; margin-bottom: 2px; }
.req-item p { font-size: .85rem; color: var(--text-light); }

/* ── FOOTER ── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.6);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}
.footer-brand p { font-size: .88rem; max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-col ul a:hover { color: var(--white); text-decoration: none; }
.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── PRODUCT DETAIL PAGE ── */
.product-hero {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  padding: 80px 24px 60px;
}
.product-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.product-hero-icon {
  width: 80px; height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.15);
  margin-bottom: 20px;
}
.product-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 12px; }
.product-hero .tagline { font-size: 1.15rem; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.product-hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}
.product-hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }

/* ── FEATURE SECTIONS (product pages) ── */
.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-section.reverse { direction: rtl; }
.feature-section.reverse > * { direction: ltr; }
.feature-section-content h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.feature-section-content p { color: var(--text-mid); margin-bottom: 20px; }
.feature-visual {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
  border-radius: var(--radius);
}

/* ── LIGHTBOX ── */
.lightbox-trigger {
  cursor: zoom-in;
  display: block;
  position: relative;
}
.lightbox-trigger::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(21, 101, 192, 0);
  transition: background .2s;
  border-radius: inherit;
}
.lightbox-trigger:hover::after {
  background: rgba(21, 101, 192, .08);
}

#lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .88);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: lb-fade-in .18s ease;
}
#lightbox-overlay.open { display: flex; }

@keyframes lb-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  cursor: default;
  animation: lb-scale-in .18s ease;
}
@keyframes lb-scale-in {
  from { transform: scale(.94); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

#lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.15);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
#lightbox-close:hover { background: rgba(255,255,255,.28); }

/* ── SCREENSHOT GALLERY ── */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.screenshot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.screenshot-card img {
  width: 100%;
  display: block;
}
.screenshot-card-label {
  padding: 12px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-mid);
  border-top: 1px solid var(--border);
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1140px;
  margin: 0 auto;
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb-inner a { color: var(--blue-700); }

/* ── TAG BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
}
.badge-added   { background: #DCFCE7; color: #16A34A; }
.badge-removed { background: #FEE2E2; color: #DC2626; }
.badge-modified{ background: #FEF9C3; color: #CA8A04; }
.badge-unchanged{ background: #F3F4F6; color: #6B7280; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 56px 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .feature-panel.active { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .product-hero-inner { grid-template-columns: 1fr; }
  .product-hero-actions { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .feature-section { grid-template-columns: 1fr; }
  .feature-section.reverse { direction: ltr; }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
