/**
 * TACOPS Control – Marketing pages
 * Dark theme, tactical/sleek. Sticky nav, floating CTA, placeholders, microinteractions.
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Design tokens (override / extend theme.css for marketing) */
.marketing-root {
  --bg-page: #0a0b0f;
  --bg-surface: #12141a;
  --bg-elevated: #1a1d26;
  --border: #2a2e3a;
  --text: #e8eaed;
  --text-muted: #8b92a0;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-muted: rgba(34, 211, 238, 0.12);
  --navy-deep: #0d1220;
  --charcoal: #141720;
  --gradient-hero: linear-gradient(165deg, #0d1220 0%, #141720 50%, #0a0b0f 100%);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

.marketing-root body {
  font-family: var(--font);
}

/* Sticky header */
.marketing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.marketing-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.marketing-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.marketing-header .logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.marketing-header .logo:hover {
  color: var(--accent);
}

.marketing-header .nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.marketing-header .nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.marketing-header .nav-links a:hover {
  color: var(--text);
  background: var(--accent-muted);
}

.marketing-header .nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.marketing-header .nav-cta .btn-login {
  font-weight: 500;
  color: var(--text-muted);
}

.marketing-header .nav-cta .btn-login:hover {
  color: var(--accent);
}

/* Dropdown (optional) */
.marketing-header .nav-dropdown {
  position: relative;
}

.marketing-header .nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.marketing-header .nav-dropdown summary::-webkit-details-marker { display: none; }

.marketing-header .nav-dropdown summary:hover {
  color: var(--text);
  background: var(--accent-muted);
}

.marketing-header .nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.marketing-header .nav-dropdown .dropdown-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9375rem;
}

/* Hero */
.marketing-hero-block {
  position: relative;
  overflow: hidden;
}

/* Full-width hero with background image */
.marketing-hero-block.hero-bg-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 5rem 1.5rem 4rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--navy-deep);
}

.marketing-hero-block.hero-bg-image .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 15, 0.75) 0%,
    rgba(10, 11, 15, 0.5) 50%,
    rgba(10, 11, 15, 0.85) 100%
  );
  z-index: 0;
}

.marketing-hero-block .hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.marketing-hero-block h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75em;
  color: var(--text);
}

.marketing-hero-block .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.marketing-hero-block .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Hero image placeholder (when not using bg image) */
.placeholder-hero-image {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.placeholder-hero-image img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Partner logos strip */
.partner-logos {
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.partner-logos .partner-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.partner-logos .partner-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-logos .partner-grid .placeholder-logo {
  width: 140px;
  height: 48px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-logos .partner-grid .placeholder-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

/* Features full list (category sections) */
.features-full-list {
  padding: 2rem 1.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.features-full-list .feature-category {
  margin-bottom: 2rem;
}

.features-full-list .feature-category h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.375rem;
}

.features-full-list .feature-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-full-list .feature-category ul li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.features-full-list .feature-category ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.features-full-list .feature-category ul li strong {
  color: var(--text);
}

/* Dashboard teaser */
.dashboard-teaser {
  padding: 3rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-teaser .teaser-wrap {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.dashboard-teaser .teaser-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Feature blocks (scrollable) */
.feature-block {
  padding: 3rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-block:nth-child(even) {
  background: var(--bg-surface);
}

.feature-block .block-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .feature-block .block-inner {
    grid-template-columns: 1fr 1fr;
  }
  .feature-block .block-inner.reverse {
    direction: rtl;
  }
  .feature-block .block-inner.reverse > * {
    direction: ltr;
  }
}

.feature-block .feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-block .feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-block h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-block .feature-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.feature-block .placeholder-feature-image {
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Placeholder image (generic) */
.placeholder-image {
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem;
}

.placeholder-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: inherit;
}

/* Pricing */
.pricing-section {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.pricing-section .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-toggle span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-toggle .toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pricing-toggle .toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--text);
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.pricing-toggle .toggle-switch.annual::after {
  transform: translateX(22px);
}

.pricing-toggle .toggle-switch.annual {
  background: var(--accent-muted);
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.pricing-card .plan-name {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.pricing-card .plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-card .plan-price .period {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-card .plan-features li {
  padding: 0.375rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-card .plan-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
}

.pricing-addons {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pricing-addons h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.pricing-addons .addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.pricing-addons .addon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.pricing-addons .addon-item .addon-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.comparison-table .check { color: var(--accent); }
.comparison-table .cross { color: var(--text-muted); opacity: 0.6; }

/* Demo / video block – card matches video size, centered */
.demo-video-block {
  padding: 3rem 1.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.demo-video-block .video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  width: 640px;
}

.demo-video-block .video-wrap img,
.demo-video-block .video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.demo-video-block .video-caption {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* About / company */
.about-section {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.about-section .about-text {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.about-section .founder-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .about-section .founder-block {
    grid-template-columns: 200px 1fr;
  }
}

.about-section .founder-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-section .founder-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-section .trust-builders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about-section .trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.about-section .trust-item .trust-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.about-section .trust-item .trust-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.about-section .trust-item .trust-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
}

.floating-cta .btn {
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (max-width: 640px) {
  .floating-cta {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Marketing footer */
.marketing-footer {
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  margin-top: auto;
}

.marketing-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.marketing-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.marketing-footer .footer-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

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

.marketing-footer .footer-brand {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.marketing-footer .tenant-branding-placeholder {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* Section title (reusable) */
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle-wide {
  max-width: 52rem;
  line-height: 1.65;
}

/* Why TACOPS intro card: card height = image height, heading + text next to image */
.why-tacops-card {
  margin-bottom: 3.5rem;
  padding: 1.5rem;
}
.why-tacops-card__row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.5rem;
}
.why-tacops-card__img {
  flex-shrink: 0;
  width: 280px;
  max-width: 40%;
  height: 280px;
  border-radius: var(--radius-sm, 8px);
  object-fit: cover;
}
.why-tacops-card__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.why-tacops-card__title {
  flex-shrink: 0;
  text-align: center;
  margin: 0 0 0.75rem 0;
}
.why-tacops-card__text {
  flex: 1;
  min-height: 0;
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  overflow-y: auto;
}
@media (max-width: 768px) {
  .why-tacops-card__row {
    flex-direction: column;
    align-items: center;
  }
  .why-tacops-card__img {
    max-width: 100%;
    width: 100%;
    height: auto;
    max-height: 280px;
  }
  .why-tacops-card__text {
    overflow-y: visible;
  }
}

/* Features grid: same gap between the 3 cards as between grid and integrated card below */
.marketing-section .features-grid {
  gap: 2.5rem;
}

/* Integrated with card (below features grid) */
.integrated-card {
  margin-top: 2.5rem;
}
.integrated-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm, 8px);
  object-fit: contain;
}

/* Module Addons card (above the 3 feature cards) */
.addons-card {
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}
.addons-card__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 0.75rem;
  border-radius: var(--radius-sm, 8px);
  object-fit: contain;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.cta-strip h2 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cta-strip .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Mobile nav (hamburger) */
.marketing-header .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .marketing-header .nav-toggle {
    display: flex;
  }
  .marketing-header .nav-links,
  .marketing-header .nav-cta {
    display: none;
  }
  .marketing-header .nav-open .nav-links,
  .marketing-header .nav-open .nav-cta {
    display: flex;
  }
  .marketing-header .nav-open .nav-links {
    flex-direction: column;
    width: 100%;
    order: 3;
  }
  .marketing-header .nav-open .header-inner {
    flex-wrap: wrap;
  }
}

/* Microinteractions */
.btn:active {
  transform: scale(0.98);
}

.feature-card:hover,
.pricing-card:hover {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
