/* ==========================================================================
   Answerrly Main Stylesheet
   Universal SOP Compliant: 100% Visual Fidelity, Clean Local Assets
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Geist+Mono:wght@400;500;600;700&family=Geist:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,700&display=swap');

:root {
  --token-primary: #a53e5a;
  --token-primary-hover: #8c334b;
  --token-primary-light: rgba(165, 62, 90, 0.08);
  --token-primary-glow: rgba(165, 62, 90, 0.45);
  --token-dark: #111928;
  --token-muted: #637381;
  --token-light-gray: #fafafa;
  --token-card-bg: #f7f5f0;
  --token-border: #dfe4ea;
  --token-border-subtle: rgba(0, 0, 0, 0.08);
  --font-main: 'Manrope', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --container-max: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  color: var(--token-dark);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--token-border-subtle);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo img {
  display: block;
  height: 34px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link, .dropdown-trigger {
  font-size: 14px;
  font-weight: 600;
  color: var(--token-dark);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
}

.nav-link:hover, .dropdown-trigger:hover {
  color: var(--token-primary);
}

.chevron-icon {
  transition: transform 0.2s ease;
}

.dropdown {
  position: relative;
}

.dropdown:hover .chevron-icon,
.dropdown.active .chevron-icon {
  transform: rotate(180deg);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu-wide {
  width: 580px;
}

.dropdown-menu-narrow {
  width: 360px;
}

.dropdown-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dropdown-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdown-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.dropdown-link-item:hover {
  background-color: #f7f9fa;
}

.dropdown-link-item .item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(165, 62, 90, 0.1);
  color: var(--token-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-link-item .item-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 2px;
}

.dropdown-link-item .item-text p {
  font-size: 12px;
  color: var(--token-muted);
  line-height: 1.4;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline {
  border: 1px solid var(--token-muted);
  color: var(--token-dark);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--token-dark);
}

.btn-primary {
  background-color: var(--token-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--token-primary-hover);
  box-shadow: 0 4px 12px rgba(165, 62, 90, 0.25);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 18px;
  border-radius: 6px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 20px;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--token-dark);
  transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 130px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.badge-yc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid #e3c3cc;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--token-dark);
  margin-bottom: 24px;
}

.badge-yc svg {
  flex-shrink: 0;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--token-dark);
  max-width: 960px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--token-muted);
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.social-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.social-proof-pill img {
  height: 26px;
  width: auto;
}

.social-proof-pill span {
  font-size: 14px;
  font-weight: 600;
  color: var(--token-muted);
}

.hero-showcase-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 40px 10px var(--token-primary-glow);
  border: 1px solid rgba(165, 62, 90, 0.2);
  background: #000;
}

.hero-showcase-wrapper video,
.hero-showcase-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* ==========================================================================
   Logo Marquee Section
   ========================================================================== */
.marquee-section {
  background: #fafbfb;
  border-top: 1px solid var(--token-border);
  border-bottom: 1px solid var(--token-border);
  padding: 40px 0;
  overflow: hidden;
  text-align: center;
}

.marquee-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--token-muted);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.marquee-track {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 12%, rgb(0,0,0) 88%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgb(0,0,0) 12%, rgb(0,0,0) 88%, rgba(0,0,0,0) 100%);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}

.marquee-content img {
  height: 38px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(100%);
  transition: filter 0.3s, opacity 0.3s;
}

.marquee-content img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Metrics Section
   ========================================================================== */
.metrics-section {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 80px 0;
  overflow: hidden;
}

.metrics-section-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.metrics-box {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.metrics-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 40px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.metric-card {
  border: 1px solid #e3c3cc;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
}

.metric-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--token-dark);
  line-height: 1.1;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: var(--token-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section Common Styles
   ========================================================================== */
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--token-primary);
  margin-bottom: 12px;
}

.section-tag-light {
  color: #f7a8b8;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--token-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--token-muted);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
  padding: 80px 0;
}

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

.problem-card {
  background: var(--token-problem-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--token-border);
  display: flex;
  flex-direction: column;
}

.problem-card-media {
  width: 100%;
  aspect-ratio: 1.45;
  overflow: hidden;
}

.problem-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-card-body {
  padding: 24px;
  background: #ffffff;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.problem-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(165, 62, 90, 0.3);
  margin-bottom: 8px;
}

.problem-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 8px;
}

.problem-text {
  font-size: 14px;
  color: var(--token-muted);
}

/* ==========================================================================
   Solution Section
   ========================================================================== */
.solution-section {
  padding: 80px 0;
  background: #ffffff;
}

.solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.solution-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.solution-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--token-border);
  background: #ffffff;
  transition: all 0.2s ease;
}

.solution-feature-row:hover {
  border-color: var(--token-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.feature-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d92d20;
  margin-top: 4px;
  flex-shrink: 0;
}

.solution-feature-row h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 6px;
}

.solution-feature-row p {
  font-size: 14px;
  color: var(--token-muted);
}

.solution-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.solution-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-overlay-img {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
}

/* ==========================================================================
   Features Detailed (5 Stages)
   ========================================================================== */
.features-stages-section {
  padding: 80px 0;
  background: #fafafa;
}

.stage-card-large {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 32px;
}

.stage-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 12px 0 16px;
}

.stage-text p {
  font-size: 16px;
  color: var(--token-muted);
}

.stage-media-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.stage-cards-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.stage-card-half {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.stage-card-half .stage-media {
  background: #f7f9fa;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.stage-card-half h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 10px;
}

.stage-card-half p {
  font-size: 14px;
  color: var(--token-muted);
}

/* ==========================================================================
   Enterprise Section
   ========================================================================== */
.enterprise-section {
  background: linear-gradient(180deg, #1b0c10 0%, #3a1520 40%, #5e1c2f 75%, #18090d 100%);
  color: #ffffff;
  padding: 100px 0;
  text-align: center;
}

.enterprise-section .section-title {
  color: #ffffff;
  font-size: 42px;
}

.enterprise-section .section-desc {
  color: rgba(255, 255, 255, 0.8);
}

.enterprise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.enterprise-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.enterprise-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
}

.enterprise-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #ffffff;
}

.enterprise-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.enterprise-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ==========================================================================
   Interactive App Mockup
   ========================================================================== */
.app-demo-section {
  padding: 60px 0;
  background: #ffffff;
}

.app-demo-frame {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--token-border);
}

/* ==========================================================================
   Verification Section (3 steps)
   ========================================================================== */
.verify-section {
  padding: 80px 0;
  background: #ffffff;
}

.verify-card {
  background: #fdfdfd;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.verify-card-media {
  background: #f7f5f0;
  padding: 16px;
  border-bottom: 1px solid var(--token-border);
}

.verify-card-body {
  padding: 24px;
}

.verify-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.verify-card-body p {
  font-size: 14px;
  color: var(--token-muted);
}

/* ==========================================================================
   Privacy & Security Interactive Tab
   ========================================================================== */
.privacy-section {
  padding: 80px 0;
  background: #fafafa;
}

.privacy-box {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--token-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.privacy-visual {
  flex: 1;
  min-height: 480px;
  position: relative;
  background: #101014;
}

.privacy-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.privacy-visual-content {
  position: absolute;
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.privacy-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.privacy-tab-item {
  padding: 28px 40px;
  border-bottom: 1px solid #e7e2d7;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
}

.privacy-tab-item:last-child {
  border-bottom: none;
}

.privacy-tab-item.active {
  background: #fbfaf7;
}

.privacy-tab-item .tab-progress-bar {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #f0e7ea;
}

.privacy-tab-item.active .tab-progress-bar {
  display: block;
}

.privacy-tab-item.active .tab-progress-bar-fill {
  height: 100%;
  background: var(--token-primary);
  width: 100%;
  animation: tabProgress 5s linear infinite;
}

.privacy-tab-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--token-muted);
}

.privacy-tab-item.active h4 {
  color: #1a2b4a;
}

.privacy-tab-desc {
  display: none;
  font-size: 15px;
  color: #5c6270;
  margin-top: 10px;
  line-height: 1.5;
}

.privacy-tab-item.active .privacy-tab-desc {
  display: block;
}

@keyframes tabProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ==========================================================================
   Connections Section
   ========================================================================== */
.connections-section {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}

.connections-media {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials-section {
  padding: 80px 0;
  background: #ffffff;
}

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

.testimonial-card {
  background: #f2f2f2;
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-badge {
  position: absolute;
  bottom: 0; right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--token-dark);
}

.testimonial-text {
  font-size: 14px;
  color: #42526d;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 80px 0;
  background: #ffffff;
}

.faq-container {
  background: #000000;
  border-radius: 16px;
  padding: 48px;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
}

.faq-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 36px;
  text-align: center;
}

.faq-item {
  background: #141414;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.faq-icon {
  font-size: 20px;
  color: #999999;
  transition: transform 0.2s ease;
  line-height: 1;
}

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer p {
  font-size: 14px;
  color: #d1d5db;
  line-height: 1.6;
}

/* ==========================================================================
   CTA Box Section
   ========================================================================== */
.cta-box-section {
  padding: 60px 0;
}

.cta-box {
  background: var(--token-light-gray);
  border: 1px solid var(--token-border);
  border-radius: 16px;
  padding: 64px 32px;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 16px;
  color: var(--token-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #15070b 0%, #290d16 25%, #471926 50%, #622133 75%, #15070b 100%);
  color: #ffffff;
  padding: 80px 0 40px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .footer-logo img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.brand-subtext {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 260px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-bottom-links .sep {
  opacity: 0.4;
}

/* ==========================================================================
   Subpages Hero & Content Common Styles
   ========================================================================== */
.subpage-hero {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--token-border);
  text-align: center;
}

.subpage-hero h1 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.subpage-hero p {
  font-size: 18px;
  color: var(--token-muted);
  max-width: 720px;
  margin: 0 auto 32px;
}

.subpage-content {
  padding: 80px 0;
  min-height: 50vh;
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.content-box {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.content-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--token-dark);
}

.content-box p {
  font-size: 14px;
  color: var(--token-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title { font-size: 44px; }
  .cards-grid-3, .enterprise-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .solution-layout, .stage-card-large { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    align-items: flex-start;
  }
  .header-nav.mobile-open {
    display: flex;
  }
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--token-border);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .dropdown.active .dropdown-menu {
    display: block;
  }
  .dropdown-grid-2 { grid-template-columns: 1fr; }
  .mobile-toggle { display: flex; }
  .hero-title { font-size: 32px; }
  .cards-grid-3, .enterprise-grid, .testimonials-grid, .content-card-grid { grid-template-columns: 1fr; }
  .stage-cards-grid-2 { grid-template-columns: 1fr; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
  .privacy-box { flex-direction: column; }
  .privacy-visual { min-height: 280px; }
}


/* ==========================================================================
   Unique Subpage Components & Modules (Tailored Per Page)
   ========================================================================== */

/* Split Media Section */
.subpage-media-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, #fdf8f9 0%, #ffffff 100%);
}

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

.hero-media-preview {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--token-border);
  background: #ffffff;
}

.hero-media-preview img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Tool Mockup Container */
.tool-mockup-frame {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--token-border);
  box-shadow: 0 12px 32px rgba(165, 62, 90, 0.06);
  overflow: hidden;
  margin: 32px 0;
}

.mockup-header-bar {
  background: #f7f9fa;
  padding: 10px 16px;
  border-bottom: 1px solid var(--token-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.mockup-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--token-muted);
  font-family: var(--font-mono);
}

.mockup-body {
  padding: 24px;
}

/* Feature Grid 4 */
.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
}

.feature-mini-card {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 10px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.feature-mini-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 8px;
}

.feature-mini-card p {
  font-size: 13px;
  color: var(--token-muted);
  line-height: 1.5;
}

/* Pricing Table */
.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0 60px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 14px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border: 2px solid var(--token-primary);
  box-shadow: 0 12px 32px rgba(165, 62, 90, 0.12);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--token-primary);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--token-muted);
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--token-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--token-muted);
  margin-left: 4px;
}

.pricing-list {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-list li {
  font-size: 14px;
  color: var(--token-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li svg {
  flex-shrink: 0;
  color: #10b981;
}

/* Contact Form Grid */
.contact-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  margin: 40px 0 60px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card-box {
  background: #fdfafb;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 24px;
}

.contact-card-box h3 {
  font-size: 18px;
  color: var(--token-dark);
  margin-bottom: 8px;
}

.contact-card-box p {
  font-size: 14px;
  color: var(--token-muted);
  line-height: 1.6;
}

.contact-form-box {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--token-dark);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--token-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--token-primary);
  box-shadow: 0 0 0 3px rgba(165, 62, 90, 0.15);
}

/* Blog Magazine Grid */
.blog-featured-box {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.blog-featured-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(165, 62, 90, 0.1);
  color: var(--token-primary);
  margin-bottom: 12px;
  align-self: flex-start;
}

.blog-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}

.blog-card-item {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--token-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-meta-footer {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  color: var(--token-muted);
  display: flex;
  justify-content: space-between;
}

/* Careers & Jobs */
.job-listings-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 36px 0 60px;
}

.job-card {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.job-card:hover {
  transform: translateX(4px);
  border-color: var(--token-primary);
}

.job-info h3 {
  font-size: 18px;
  color: var(--token-dark);
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--token-muted);
}

/* Docs & Guides */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  margin: 40px 0 60px;
}

.guide-sidebar {
  position: sticky;
  top: 100px;
  background: #fdfafb;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
}

.guide-nav-list {
  list-style: none;
}

.guide-nav-list li {
  margin-bottom: 8px;
}

.guide-nav-list a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--token-muted);
  font-weight: 500;
}

.guide-nav-list a.active, .guide-nav-list a:hover {
  background: #ffffff;
  color: var(--token-primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.guide-step-card {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}

.guide-step-card h3 {
  font-size: 20px;
  color: var(--token-dark);
  margin-bottom: 12px;
}

.code-shortcut-box {
  background: #111928;
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px 18px;
  border-radius: 8px;
  margin: 14px 0;
  overflow-x: auto;
}

/* Legal Documents */
.legal-layout {
  max-width: 860px;
  margin: 40px auto 60px;
}

.legal-section-block {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.legal-section-block h3 {
  font-size: 20px;
  color: var(--token-dark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--token-border);
}

.legal-section-block p, .legal-section-block li {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Testimonials Wall */
.testimonials-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 60px;
}

.testimonial-card-rich {
  background: #ffffff;
  border: 1px solid var(--token-border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.testimonial-card-rich:hover {
  transform: translateY(-3px);
}

.star-rating {
  color: #f59e0b;
  font-size: 16px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--token-dark);
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-meta h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--token-dark);
}

.reviewer-meta span {
  font-size: 12px;
  color: var(--token-muted);
}

/* PRISMA Diagram & Evidence Tables */
.table-evidence {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 16px 0;
}

.table-evidence th {
  background: #f8fafc;
  padding: 10px 14px;
  border: 1px solid var(--token-border);
  text-align: left;
  font-weight: 700;
  color: var(--token-dark);
}

.table-evidence td {
  padding: 10px 14px;
  border: 1px solid var(--token-border);
  color: #374151;
}

.prisma-step-node {
  background: #fdfafb;
  border: 1.5px solid var(--token-primary);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
}

.prisma-step-node h4 {
  color: var(--token-primary);
  font-size: 15px;
  margin-bottom: 4px;
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .split-hero-grid, .contact-split-grid, .guide-layout, .blog-featured-box {
    grid-template-columns: 1fr;
  }
  .pricing-grid-3, .blog-grid-3, .testimonials-wall-grid, .features-grid-4 {
    grid-template-columns: 1fr;
  }
}
