/* ============================================
   CIPHER Consulting — Master Stylesheet
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --bg-primary: #060a14;
  --bg-secondary: #0b1121;
  --bg-card: #0d1528;
  --bg-card-hover: #111d36;
  --bg-surface: #101829;
  --border-color: rgba(56, 130, 246, 0.12);
  --border-hover: rgba(56, 130, 246, 0.3);
  --text-primary: #e8edf5;
  --text-secondary: #8a95aa;
  --text-muted: #596577;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --danger: #ef4444;
  --danger-dim: rgba(239, 68, 68, 0.15);
  --success: #22c55e;
  --success-dim: rgba(34, 197, 94, 0.15);
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --glow-sm: 0 0 10px rgba(59, 130, 246, 0.15);
  --glow-md: 0 0 20px rgba(59, 130, 246, 0.2);
  --glow-lg: 0 0 40px rgba(59, 130, 246, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Light mode --- */
[data-theme="light"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f8fc;
  --bg-surface: #edf2f7;
  --border-color: rgba(59, 130, 246, 0.15);
  --border-hover: rgba(59, 130, 246, 0.35);
  --text-primary: #0f1729;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --accent-subtle: rgba(37, 99, 235, 0.06);
  --glow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --glow-md: 0 4px 12px rgba(0,0,0,0.08);
  --glow-lg: 0 8px 30px rgba(0,0,0,0.1);
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* --- Background Effects --- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
}

.bg-gradient-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.orb-2 {
  bottom: -200px;
  left: -200px;
  background: #6366f1;
}

/* =======================
   NAVIGATION
   ======================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-med);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.88);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  box-shadow: var(--glow-sm);
}

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

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition-fast);
  border-radius: 1px;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: var(--accent);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
  box-shadow: var(--glow-sm);
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--accent-bright);
  box-shadow: var(--glow-md);
  transform: translateY(-1px);
}

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

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 4px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 10, 20, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.mobile-menu.active { display: flex; }

.mobile-menu a {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.mobile-menu a:hover { color: var(--accent); }

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
}

/* =======================
   BUTTONS
   ======================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition-fast);
  border: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow-sm);
}

.btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: var(--glow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #6366f1, var(--accent));
  z-index: -1;
  opacity: 0;
  transition: var(--transition-fast);
}

.btn-glow:hover::before { opacity: 1; }

/* =======================
   HERO SECTION
   ======================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-bright);
  margin-bottom: 32px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: 14px;
  line-height: 1;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-acronym {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.acronym-item {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(16px);
  animation: acronym-reveal 0.5s forwards;
}

.acronym-item .letter {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  background: var(--accent-subtle);
}

.acronym-item .word {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

@keyframes acronym-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.acronym-item:nth-child(1) { animation-delay: 0.3s; }
.acronym-item:nth-child(2) { animation-delay: 0.45s; }
.acronym-item:nth-child(3) { animation-delay: 0.6s; }
.acronym-item:nth-child(4) { animation-delay: 0.75s; }
.acronym-item:nth-child(5) { animation-delay: 0.9s; }
.acronym-item:nth-child(6) { animation-delay: 1.05s; }

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 44px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero scan-line effect */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  animation: scan-line 4s ease-in-out infinite;
}

@keyframes scan-line {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* =======================
   CARDS (shared)
   ======================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  transition: var(--transition-med);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition-fast);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-md);
}

.card:hover::before { opacity: 1; }

/* =======================
   SERVICE TIERS
   ======================= */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier-card { display: flex; flex-direction: column; }

.tier-card .tier-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.tier-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.tier-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tier-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  flex: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.tier-features li .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.tier-card.featured {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  position: relative;
}

.tier-card.featured .popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.tier-note {
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--accent-bright);
  font-weight: 500;
}

.tier-cta {
  margin-top: 24px;
}

.tier-cta .btn {
  width: 100%;
  justify-content: center;
}

/* =======================
   CIPHER MODEL SECTION
   ======================= */
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card .model-letter {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.model-card .model-word {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.model-card .model-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =======================
   BEFORE / AFTER
   ======================= */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.comparison-panel {
  border-radius: 14px;
  padding: 36px;
  border: 1px solid;
}

.comparison-panel.before {
  background: var(--danger-dim);
  border-color: rgba(239, 68, 68, 0.2);
}

.comparison-panel.after {
  background: var(--success-dim);
  border-color: rgba(34, 197, 94, 0.2);
}

.comparison-panel .panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.before .panel-label { color: var(--danger); }
.after .panel-label { color: var(--success); }

.comparison-panel ul {
  list-style: none;
}

.comparison-panel ul li {
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.comparison-panel ul li .icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.before ul li .icon { color: var(--danger); }
.after ul li .icon { color: var(--success); }

/* =======================
   SNAPSHOT BANNER
   ======================= */
.snapshot-banner {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.snapshot-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.snapshot-banner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}

.snapshot-banner p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}

/* =======================
   SECTION HEADINGS
   ======================= */
.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-heading .overline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-heading p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =======================
   ABOUT PAGE
   ======================= */
.about-hero {
  padding-top: 140px;
  padding-bottom: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo /*{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}*/
 { 
  width: 100%; 
  aspect-ratio: 3/4; 
  background: var(--bg-card); 
  border: 1px solid var(--border-color); 
  border-radius: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: var(--text-muted); 
  font-size: 0.85rem; 
  font-family: var(--font-mono);
}


.about-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-content .role {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 28px;
}

.about-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-bright);
  letter-spacing: 0.3px;
}

/* =======================
   CONTACT PAGE
   ======================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a95aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

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

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =======================
   FOOTER
   ======================= */
.footer {
  padding: 48px 0 28px;
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

/* =======================
   SCROLL ANIMATIONS
   ======================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* =======================
   RETAINER SECTION
   ======================= */
.retainer-strip {
  text-align: center;
  padding: 40px 0;
}

.retainer-strip h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.retainer-strip p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
  margin: 0 auto;
}

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 1024px) {
  .tiers-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .model-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-title { letter-spacing: 6px; }
  .snapshot-banner { padding: 36px 24px; }
  .hero-acronym { gap: 8px; }
}


/*
Test Contact Page */

/* =====================
   CONTACT PAGE
===================== */

.contact-hero {
    padding: 160px 0 90px;
    text-align: center;
}

.contact-hero h1 {
    margin-top: 12px;
    margin-bottom: 20px;
}

.contact-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.contact-form-card {
    padding: 36px;
}

.contact-form-card h3 {
    margin-bottom: 24px;
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(12px);
}

.contact-info-card h4 {
    margin-bottom: 12px;
}

.contact-info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,.03);
    color: var(--text-primary);
    font-size: .95rem;
}

.form-group textarea {
    resize: vertical;
}

#formSuccess {
    display: none;
    text-align: center;
    padding: 40px 0;
}

#formSuccess h3 {
    margin-bottom: 12px;
}

/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {

    .contact-hero {
        padding: 120px 0 60px;
    }

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

    .contact-form-card {
        padding: 24px;
    }

    .contact-info-card {
        padding: 22px;
    }

}


/* ==========================
MISSION PAGE
========================== */

.mission-hero {
padding: 160px 0 90px;
text-align: center;
}

.mission-hero h1 {
max-width: 950px;
margin: 16px auto 24px;
}

.mission-hero p {
max-width: 760px;
margin: 0 auto;
color: var(--text-secondary);
line-height: 1.8;
}

.mission-grid {
display: grid;
grid-template-columns: 1fr 1.2fr;
gap: 48px;
align-items: center;
}

.mission-image img {
width: 100%;
border-radius: 24px;
border: 1px solid var(--border-color);
}

.mission-content h2 {
margin-bottom: 24px;
}

.mission-content p {
margin-bottom: 18px;
color: var(--text-secondary);
line-height: 1.8;
}

.mission-principles {
justify-content: center;
gap: 16px;
}

.mission-principles .cert-badge {
font-size: .9rem;
padding: 12px 18px;
}

/* Mobile */

@media (max-width: 900px) {


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

.mission-image {
    order: -1;
}


}

@media (max-width: 768px) {


.mission-hero {
    padding: 120px 0 60px;
}


}


.cipher-logo-container {
    display: inline-block;
    perspective: 1000px;
}

.cipher-logo {
    width: 60px;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    cursor: pointer;
}

.cipher-logo:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        filter: drop-shadow(0 0 0px rgba(0,120,212,0.3));
    }

    50% {
        filter: drop-shadow(0 0 10px rgba(0,120,212,0.8));
    }

    100% {
        filter: drop-shadow(0 0 0px rgba(0,120,212,0.3));
    }
}

@media (max-width: 768px) {

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .footer-copy {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .cipher-logo {
        width: 50px;
        height: auto;
    }
}

/* =========================
   ZERO TRUST VISUAL
========================= */

.zero-trust-diagram {
    position: relative;
    width: 260px;
    height: 260px;
    margin: 0 auto;
}

/* Outer Ring */
.zt-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 180, 216, 0.35);
    border-radius: 50%;
}

/* Centre Core */
.zt-centre {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle, #123544 0%, #08171f 100%);
    border: 1px solid rgba(0, 180, 216, 0.5);

    box-shadow:
        0 0 25px rgba(0, 180, 216, 0.25),
        inset 0 0 14px rgba(0, 180, 216, 0.15);
}

/* Centre Text */
.zt-centre-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;          /* slightly increased */
    gap: 3px;                  /* ✅ adds clean space between ZERO and TRUST */

    text-align: center;
    color: #e6f1f5;
}

/* Nodes */
.zt-node {
    position: absolute;
    width: 96px;
    text-align: center;
    font-size: 12px;
    color: #a8c6d1;
    padding: 6px 8px;
    border-radius: 6px;

    background: rgba(15, 42, 56, 0.75);
    border: 1px solid rgba(0, 180, 216, 0.3);

    backdrop-filter: blur(6px);
    font-weight: 500;
}

/* Node Positions */
.zt-node.top {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}


.zt-node.right {
   right: -45px;
    top: 50%;
    transform: translateY(-50%);
}

.zt-node.bottom {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.zt-node.left {
    left: -45px;
    top: 50%;
    transform: translateY(-50%);
}

/* Hover Effect */
.zero-trust-diagram:hover .zt-centre {
    box-shadow:
        0 0 35px rgba(0, 180, 216, 0.45),
        inset 0 0 18px rgba(0, 180, 216, 0.3);
    transition: 0.3s ease;
}


/* =========================
   RESPONSIVE FIX (SAFE)
========================= */

@media (max-width: 768px) {

    /* Force clean stacking WITHOUT breaking desktop */
    .mission-grid {
        display: block;
    }

    .mission-image,
    .mission-content {
        width: 100%;
        max-width: 100%;
    }

    .mission-image {
        display: flex;
        justify-content: center;
        margin-bottom: 30px;
    }

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

    /* Scale diagram proportionally */
    .zero-trust-diagram {
        width: 220px;
        height: 220px;
    }

    .zt-ring {
        width: 180px;
        height: 180px;
    }

    .zt-centre {
        width: 100px;
        height: 100px;
    }

    .zt-node {
        width: 75px;
        font-size: 11px;
    }
}
