/* ============================================================
   FORTALEZA AI - Unified Stylesheet
   "Built To Be Your AI Fortress."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --navy: #0A1628;
  --deep: #0F1D35;
  --steel: #1B2D4A;
  --gold: #C8A55A;
  --gold-light: #E8D5A0;
  --ice: #B8D4E3;
  --white: #F5F2ED;
  --warm-white: #FAF8F5;
  --text-muted: #8A9AB5;
  --text-body: #B0BEC5;
  --accent-red: #C0392B;
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== NAVIGATION ===== */
nav {
  padding: 24px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--white);
  text-decoration: none;
}

.logo span { color: var(--gold); }

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a.active-link { color: var(--gold); }

.nav-cta {
  padding: 10px 28px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
}

/* ===== NEWSLETTER BANNER (Collapsible Dropdown) ===== */
.newsletter-banner {
  background: var(--deep);
  border-bottom: 1px solid rgba(200,165,90,0.15);
}

.newsletter-banner .nb-header {
  padding: 10px 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.newsletter-banner .nb-header:hover {
  background: rgba(200,165,90,0.05);
}

.newsletter-banner .nb-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.newsletter-banner .nb-toggle {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
}

.newsletter-banner.expanded .nb-toggle {
  transform: rotate(180deg);
}

.newsletter-banner .nb-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 0 60px;
}

.newsletter-banner.expanded .nb-content {
  max-height: 60px;
  padding: 0 60px 12px;
}

.newsletter-banner .nb-form {
  display: flex;
  gap: 0;
  max-width: 380px;
  width: 100%;
}

.newsletter-banner .nb-input {
  flex: 1;
  background: var(--navy);
  border: 1px solid rgba(200,165,90,0.25);
  border-right: none;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  outline: none;
  transition: border-color 0.3s;
  min-width: 0;
}

.newsletter-banner .nb-input::placeholder {
  color: rgba(138,154,181,0.5);
}

.newsletter-banner .nb-input:focus {
  border-color: var(--gold);
}

.newsletter-banner .nb-btn {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.newsletter-banner .nb-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.newsletter-banner .nb-success {
  display: none;
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

.newsletter-banner .nb-success.visible {
  display: inline;
}

.newsletter-banner .nb-form.submitted {
  display: none;
}

/* Hamburger menu button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== BUTTONS ===== */
.btn-gold {
  padding: 16px 40px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  padding: 16px 40px;
  border: 1px solid rgba(200,165,90,0.4);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(200,165,90,0.1);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 60px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(200,165,90,0.1);
}

/* ============================================================
   HOME PAGE — Hero, Stats, Features, CTA
   ============================================================ */
.heroA {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
  position: relative;
  overflow: hidden;
}

.heroA::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200,165,90,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.heroA::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,165,90,0.3), transparent);
}

.heroA-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.heroA-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.heroA-headline {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.heroA-headline em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.heroA-headline em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0.3;
}

.heroA-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--gold);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

.heroA-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

.heroA-ctas {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

/* Fortress graphic */
.fortress-graphic {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 440px;
  height: 440px;
  opacity: 0;
  animation: fadeIn 1.5s 0.6s forwards;
}

.fortress-ring {
  position: absolute;
  border: 1px solid rgba(200,165,90,0.15);
  border-radius: 50%;
  animation: slowRotate 60s linear infinite;
}

.fortress-ring:nth-child(1) { width: 100%; height: 100%; top: 0; left: 0; }
.fortress-ring:nth-child(2) { width: 80%; height: 80%; top: 10%; left: 10%; animation-direction: reverse; border-color: rgba(200,165,90,0.2); }
.fortress-ring:nth-child(3) { width: 60%; height: 60%; top: 20%; left: 20%; border-color: rgba(200,165,90,0.25); }
.fortress-ring:nth-child(4) { width: 40%; height: 40%; top: 30%; left: 30%; animation-direction: reverse; border-color: rgba(200,165,90,0.3); }

.fortress-core {
  position: absolute;
  width: 24%;
  height: 24%;
  top: 38%;
  left: 38%;
  background: radial-gradient(circle, rgba(200,165,90,0.2), transparent);
  border-radius: 50%;
}

.fortress-core::after {
  content: '⬡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: var(--gold);
  opacity: 0.6;
}

/* Home stats bar */
.statsA {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 60px;
  gap: 1px;
  background: rgba(200,165,90,0.08);
  border-top: 1px solid rgba(200,165,90,0.15);
  border-bottom: 1px solid rgba(200,165,90,0.15);
}

.statA {
  text-align: center;
  padding: 32px 20px;
}

.statA-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.statA-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Home features */
.featuresA {
  padding: 100px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.featureA-card {
  padding: 48px 36px;
  border: 1px solid rgba(200,165,90,0.12);
  position: relative;
  transition: all 0.4s;
}

.featureA-card:hover {
  border-color: rgba(200,165,90,0.4);
  background: rgba(200,165,90,0.03);
  transform: translateY(-4px);
}

.featureA-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.featureA-icon {
  font-size: 28px;
  margin-bottom: 24px;
  display: block;
}

.featureA-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.featureA-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Home CTA */
.ctaA {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  border-top: 1px solid rgba(200,165,90,0.15);
}

.ctaA h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
}

.ctaA h2 span { color: var(--gold); }

.ctaA p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   INNER PAGES — Shared page hero, sections, cards, CTA
   ============================================================ */

/* Page hero */
.page-hero {
  padding: 100px 60px 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,165,90,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,165,90,0.3), transparent);
}

.page-hero .eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.page-hero .subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

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

.page-hero.hero-center .subtitle {
  margin: 0 auto;
}

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

.section-dark {
  background: rgba(200,165,90,0.04);
  border-top: 1px solid rgba(200,165,90,0.1);
  border-bottom: 1px solid rgba(200,165,90,0.1);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 16px;
}

.section-header h2 em {
  font-style: normal;
  color: var(--gold);
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 32px;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 44px 32px;
  border: 1px solid rgba(200,165,90,0.12);
  position: relative;
  transition: all 0.4s;
}

.card:hover {
  border-color: rgba(200,165,90,0.4);
  background: rgba(200,165,90,0.03);
  transform: translateY(-4px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.card-icon {
  font-size: 28px;
  margin-bottom: 20px;
  display: block;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--white);
}

.card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Two-column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
}

.two-col h2 em {
  font-style: normal;
  color: var(--gold);
}

.two-col p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Stats bar (inner pages) */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 60px;
  gap: 1px;
  background: rgba(200,165,90,0.08);
  border-top: 1px solid rgba(200,165,90,0.15);
  border-bottom: 1px solid rgba(200,165,90,0.15);
}

.stat {
  text-align: center;
  padding: 32px 20px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* CTA section (inner pages) */
.cta-section {
  padding: 100px 60px;
  text-align: center;
  border-top: 1px solid rgba(200,165,90,0.15);
}

.cta-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
}

.cta-section h2 em {
  font-style: normal;
  color: var(--gold);
}

.cta-section p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   PLATFORM PAGE — Architecture diagram
   ============================================================ */
.arch-box {
  border: 1px solid rgba(200,165,90,0.2);
  padding: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--gold-light);
  line-height: 2.0;
  background: var(--deep);
}

.arch-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* ============================================================
   SOLUTIONS PAGE — Vertical cards
   ============================================================ */
.vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.vertical-card {
  border: 1px solid rgba(200,165,90,0.12);
  padding: 48px 40px;
  position: relative;
  transition: all 0.4s;
}

.vertical-card:hover {
  border-color: rgba(200,165,90,0.4);
  background: rgba(200,165,90,0.03);
  transform: translateY(-4px);
}

.vertical-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold);
}

.vertical-icon {
  font-size: 36px;
  margin-bottom: 20px;
  display: block;
}

.vertical-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--white);
}

.vertical-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.vertical-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.vertical-stats {
  display: flex;
  gap: 32px;
  border-top: 1px solid rgba(200,165,90,0.1);
  padding-top: 20px;
}

.vertical-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.vertical-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ============================================================
   SECURITY PAGE — Pipeline, badges
   ============================================================ */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pipeline-step {
  border: 1px solid rgba(200,165,90,0.15);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--deep);
  transition: background 0.3s;
}

.pipeline-step:hover { background: var(--steel); }

.pipeline-step .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--gold);
  min-width: 36px;
}

.pipeline-step .step-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.pipeline-step .step-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.pipeline-arrow {
  text-align: center;
  color: var(--gold);
  font-size: 18px;
  padding: 4px 0;
  opacity: 0.4;
}

.badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.badge {
  border: 1px solid rgba(200,165,90,0.3);
  padding: 12px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============================================================
   PRICING PAGE — Pricing cards, comparison table
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.pricing-card {
  border: 1px solid rgba(200,165,90,0.15);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  transition: all 0.4s;
}

.pricing-card:hover {
  border-color: rgba(200,165,90,0.4);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: rgba(200,165,90,0.06);
}

.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 4px 16px;
}

.pricing-tier {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.pricing-amount {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.pricing-amount span {
  font-size: 18px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 16px 0 28px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-body);
  padding: 8px 0;
  border-bottom: 1px solid rgba(200,165,90,0.06);
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  margin-right: 10px;
  font-weight: 700;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 900px;
  margin: 0 auto;
}

.compare-table th {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid rgba(200,165,90,0.3);
}

.compare-table td {
  font-size: 14px;
  color: var(--text-muted);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(200,165,90,0.08);
}

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

.compare-table .gold { color: var(--gold); font-weight: 700; }
.compare-table .red { color: #E74C3C; }

/* ============================================================
   BLOG PAGE — Featured post, blog grid
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  border: 1px solid rgba(200,165,90,0.15);
  padding: 48px;
  margin-bottom: 60px;
  transition: all 0.4s;
}

.featured-post:hover { border-color: rgba(200,165,90,0.4); }

.featured-img {
  height: 280px;
  background: linear-gradient(135deg, var(--steel), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  border: 1px solid rgba(200,165,90,0.1);
}

.featured-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.featured-post h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.featured-post p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.featured-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.featured-meta span { color: var(--gold); }

.read-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

.read-link:hover { color: var(--gold-light); }

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

.blog-card {
  border: 1px solid rgba(200,165,90,0.12);
  transition: all 0.4s;
  overflow: hidden;
}

.blog-card:hover {
  border-color: rgba(200,165,90,0.4);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 180px;
  background: linear-gradient(135deg, var(--steel), var(--deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid rgba(200,165,90,0.1);
}

.blog-card-body {
  padding: 28px 28px 32px;
}

.blog-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.blog-card-link:hover { color: var(--gold-light); }

/* ============================================================
   CONTACT PAGE — Form, team grid, timeline
   ============================================================ */

/* Contact grid layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.15;
}

.contact-heading em {
  font-style: normal;
  color: var(--gold);
}

.contact-intro {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.gold-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(200,165,90,0.3);
  transition: border-color 0.3s;
}

.gold-link:hover { border-color: var(--gold); }

/* Contact detail items */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(200,165,90,0.1);
  transition: border-color 0.3s;
}

.contact-item:hover { border-color: rgba(200,165,90,0.3); }

.contact-item-icon { font-size: 22px; }

.contact-item-label {
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 14px;
  color: var(--text-body);
}

/* Form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group label {
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--deep);
  border: 1px solid rgba(200,165,90,0.2);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138,154,181,0.5);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8A55A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

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

.form-submit {
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  align-self: flex-start;
}

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(200,165,90,0.1);
  border: 1px solid rgba(200,165,90,0.3);
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
}

.form-success.visible { display: block; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ===== FLIP CARD SYSTEM ===== */
.team-flip-wrapper {
  perspective: 1000px;
  min-height: 380px;
}

.team-flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  transition: transform 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.team-flip-card.flipped {
  transform: rotateY(180deg);
}

.team-flip-front,
.team-flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Core fix: backface-visibility + overflow hidden to prevent bleed-through */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  overflow: hidden;
  border: 1px solid rgba(200,165,90,0.12);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-flip-front {
  background: var(--navy);
  z-index: 2;
  /* Explicit transform so the GPU layer is created */
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
}

.team-flip-front::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.team-flip-back {
  background: var(--deep);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  z-index: 1;
  justify-content: center;
  text-align: left;
  padding: 36px 32px;
  border-color: rgba(200,165,90,0.25);
}

.team-flip-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(200,165,90,0.2));
}

/* Flip button — small rounded arrow */
.team-flip-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(200,165,90,0.3);
  background: rgba(200,165,90,0.08);
  color: var(--gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.team-flip-btn:hover {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  transform: scale(1.1);
}

.team-flip-btn svg {
  width: 16px;
  height: 16px;
}

.team-flip-btn-back {
  border-color: rgba(200,165,90,0.4);
  background: rgba(200,165,90,0.12);
}

/* Front face content */
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--steel);
  border: 2px solid rgba(200,165,90,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

.team-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.team-flip-front h3,
.team-flip-back h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.team-flip-front p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.team-focus {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.5px;
}

/* Back face content */
.team-back-role {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.team-flip-back h3 {
  margin-bottom: 16px;
  text-align: left;
}

.team-flip-back p {
  font-size: 13px;
  color: var(--text-body);
  line-height: 1.75;
  text-align: left;
}

/* Legacy .team-card support (other pages) */
.team-card {
  border: 1px solid rgba(200,165,90,0.12);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all 0.4s;
}

.team-card:hover {
  border-color: rgba(200,165,90,0.4);
  background: rgba(200,165,90,0.03);
  transform: translateY(-4px);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
}

.team-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.team-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: rgba(200,165,90,0.2);
}

.timeline-item {
  position: relative;
  padding-bottom: 48px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -36px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px rgba(200,165,90,0.3);
}

.timeline-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {

  /* Reduce horizontal padding site-wide */
  nav { padding: 20px 32px; }
  .heroA { padding: 0 32px; }
  .statsA { padding: 40px 32px; }
  .featuresA { padding: 60px 32px; gap: 24px; }
  .ctaA { padding: 60px 32px; }
  .page-hero { padding: 80px 32px 60px; }
  .section { padding: 60px 32px; }
  .stats-bar { padding: 40px 32px; }
  .cta-section { padding: 60px 32px; }
  .footer { padding: 32px; }

  /* Scale down hero text */
  .heroA-headline { font-size: 56px; }
  .heroA-tagline { font-size: 56px; }
  .page-hero h1 { font-size: 44px; }

  /* Fortress graphic */
  .fortress-graphic { width: 320px; height: 320px; right: 32px; }

  /* Grids go to 2 columns */
  .featuresA { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }

  /* Two-col slightly tighter */
  .two-col { gap: 40px; }
  .two-col h2 { font-size: 30px; }

  /* Contact grid */
  .contact-grid { gap: 40px; }

  /* CTA headings */
  .ctaA h2 { font-size: 38px; }
  .cta-section h2 { font-size: 38px; }
  .section-header h2 { font-size: 32px; }
}

/* ============================================================
   RESPONSIVE — Small Tablet / Large Phone (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* ---- NEWSLETTER BANNER ---- */
  .newsletter-banner .nb-header {
    padding: 10px 20px;
  }

  .newsletter-banner .nb-label {
    font-size: 10px;
  }

  .newsletter-banner .nb-content {
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .newsletter-banner.expanded .nb-content {
    max-height: 80px;
    padding: 0 20px 12px;
  }

  .newsletter-banner .nb-form {
    max-width: 100%;
  }

  /* ---- MOBILE NAVIGATION ---- */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.35s ease;
    z-index: 1000;
    border-left: 1px solid rgba(200,165,90,0.15);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
  }

  .nav-cta {
    margin-top: 8px;
  }

  /* Body scroll lock when menu open */
  body.menu-open { overflow: hidden; }

  /* Overlay behind mobile menu */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 22, 40, 0.7);
    z-index: 999;
  }

  .nav-overlay.visible { display: block; }

  /* ---- PADDING ---- */
  nav { padding: 16px 20px; }
  .heroA { padding: 0 20px; }
  .statsA { padding: 32px 20px; }
  .featuresA { padding: 48px 20px; gap: 20px; grid-template-columns: 1fr; }
  .ctaA { padding: 48px 20px; }
  .page-hero { padding: 60px 20px 48px; }
  .section { padding: 48px 20px; }
  .stats-bar { padding: 32px 20px; }
  .cta-section { padding: 48px 20px; }
  .footer { padding: 28px 20px; }

  /* ---- HERO ---- */
  .heroA { min-height: 80vh; }
  .heroA-headline { font-size: 40px; }
  .heroA-tagline { font-size: 40px; margin-bottom: 24px; }
  .heroA-sub { font-size: 16px; margin-bottom: 32px; }
  .heroA-ctas { flex-direction: column; gap: 12px; }
  .heroA-ctas a { text-align: center; }

  /* Hide fortress graphic on mobile — it overlaps content */
  .fortress-graphic { display: none; }

  /* ---- STATS ---- */
  .statsA { grid-template-columns: repeat(2, 1fr); }
  .statA-num { font-size: 36px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 36px; }

  /* ---- PAGE HERO ---- */
  .page-hero h1 { font-size: 34px; }
  .page-hero .subtitle { font-size: 16px; }

  /* ---- SECTION HEADERS ---- */
  .section-header h2 { font-size: 28px; }
  .section-header p { font-size: 15px; }

  /* ---- CARDS / GRIDS ---- */
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }

  /* ---- TWO-COLUMN → STACK ---- */
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col h2 { font-size: 28px; }

  /* ---- CTA ---- */
  .ctaA h2 { font-size: 30px; }
  .cta-section h2 { font-size: 30px; }

  /* ---- BUTTONS (full width on mobile) ---- */
  .btn-gold, .btn-outline { width: 100%; text-align: center; }

  /* ---- SOLUTIONS: Vertical cards stack ---- */
  .vertical-grid { grid-template-columns: 1fr; }
  .vertical-card { padding: 32px 24px; }
  .vertical-card h3 { font-size: 22px; }
  .vertical-stats { flex-wrap: wrap; gap: 20px; }

  /* ---- SECURITY: Pipeline ---- */
  .pipeline-step { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 20px; }
  .pipeline-step .step-num { min-width: auto; }

  .badges { gap: 12px; }
  .badge { padding: 8px 16px; font-size: 11px; }

  /* ---- PRICING ---- */
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-amount { font-size: 44px; }

  .compare-table { font-size: 13px; }
  .compare-table th { padding: 12px 10px; font-size: 10px; }
  .compare-table td { padding: 10px; }

  /* ---- BLOG ---- */
  .featured-post {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
  .featured-img { height: 180px; }
  .featured-post h2 { font-size: 26px; }

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

  /* ---- CONTACT ---- */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-heading { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }

  /* ---- TEAM ---- */
  .team-grid { grid-template-columns: 1fr; }
  .team-flip-wrapper { min-height: 360px; }
  .team-flip-card { min-height: 360px; }

  /* ---- TIMELINE ---- */
  .timeline { padding-left: 32px; }
  .timeline-marker { left: -28px; }
  .timeline-content h3 { font-size: 20px; }
  .timeline-content p { font-size: 14px; }
}

/* ============================================================
   RESPONSIVE — Small Phone (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

  .newsletter-banner .nb-header { padding: 8px 16px; }
  .newsletter-banner .nb-label { font-size: 9px; letter-spacing: 1.5px; }
  .newsletter-banner .nb-content { padding: 0 16px; }
  .newsletter-banner.expanded .nb-content { max-height: 70px; padding: 0 16px 10px; }
  .newsletter-banner .nb-input { font-size: 12px; padding: 7px 10px; }
  .newsletter-banner .nb-btn { font-size: 10px; padding: 7px 14px; }

  nav { padding: 14px 16px; }
  .logo { font-size: 18px; }

  .heroA { min-height: auto; padding: 40px 16px 48px; }
  .heroA-eyebrow { font-size: 10px; letter-spacing: 3px; margin-bottom: 16px; }
  .heroA-headline { font-size: 32px; }
  .heroA-tagline { font-size: 32px; margin-bottom: 20px; }
  .heroA-sub { font-size: 15px; }

  .statsA { grid-template-columns: 1fr 1fr; gap: 0; padding: 24px 16px; }
  .statA { padding: 16px 8px; }
  .statA-num { font-size: 28px; }
  .statA-label { font-size: 11px; }

  .featuresA { padding: 32px 16px; }
  .featureA-card { padding: 28px 20px; }
  .featureA-title { font-size: 19px; }
  .featureA-desc { font-size: 14px; }

  .ctaA { padding: 40px 16px; }
  .ctaA h2 { font-size: 26px; }

  .page-hero { padding: 48px 16px 36px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .subtitle { font-size: 15px; }

  .section { padding: 36px 16px; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 14px; }

  .card { padding: 24px 20px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; }

  .stats-bar { grid-template-columns: 1fr 1fr; padding: 24px 16px; }
  .stat { padding: 16px 8px; }
  .stat-num { font-size: 28px; }
  .stat-label { font-size: 11px; }

  .cta-section { padding: 40px 16px; }
  .cta-section h2 { font-size: 26px; }
  .cta-section p { font-size: 16px; }

  .btn-gold, .btn-outline { padding: 14px 24px; font-size: 13px; }

  /* Pricing */
  .pricing-card { padding: 32px 24px; }
  .pricing-amount { font-size: 38px; }

  /* Blog */
  .featured-post { padding: 20px; }
  .featured-post h2 { font-size: 22px; }
  .blog-card-body { padding: 20px; }
  .blog-card h3 { font-size: 18px; }

  /* Contact */
  .contact-heading { font-size: 26px; }
  .contact-item { padding: 12px 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 10px 14px; font-size: 14px; }

  /* Team */
  .team-card { padding: 28px 20px; }
  .team-avatar { width: 60px; height: 60px; font-size: 24px; }
  .team-card h3 { font-size: 16px; }
  .team-card p { font-size: 13px; }
  .team-flip-wrapper { min-height: 340px; }
  .team-flip-card { min-height: 340px; }
  .team-flip-front,
  .team-flip-back { padding: 28px 20px; }
  .team-flip-front h3,
  .team-flip-back h3 { font-size: 16px; }
  .team-flip-front p { font-size: 13px; }
  .team-flip-back p { font-size: 12px; }
  .team-flip-btn { width: 32px; height: 32px; bottom: 12px; right: 12px; }
  .team-flip-btn svg { width: 14px; height: 14px; }

  /* Timeline */
  .timeline { padding-left: 28px; }
  .timeline-item { padding-bottom: 36px; }
  .timeline-marker { left: -24px; width: 10px; height: 10px; }
  .timeline-content h3 { font-size: 18px; }
  .timeline-content p { font-size: 13px; }

  .footer { font-size: 12px; padding: 24px 16px; }
}
