:root {
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f8f8f8;
  --text-primary: #0a0a0f;
  --text-secondary: #333333;
  --text-muted: #666666;
  --accent-gold: #3a3a42;
  --accent-gold-light: #5a5a62;
  --accent-blue: #1d4ed8;
  --accent-green: #15803d;
  --accent-red: #b91c1c;
  --border: #e0e0e0;
  --border-light: #cccccc;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

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

html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.02) 2px,
      rgba(0,0,0,0.02) 4px
    );
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-gold-light);
}

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 33px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  padding: 16px 0;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-gold);
  background: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 1px 4px rgba(0,0,0,0.05);
}

.nav-cta {
  background: linear-gradient(180deg, rgba(90,90,98,0.85) 0%, rgba(42,42,50,0.85) 100%);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
}

.nav-cta:hover {
  background: linear-gradient(180deg, rgba(106,106,114,0.9) 0%, rgba(58,58,66,0.9) 100%);
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 160px 0 33px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 6px 12px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 400;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 50%, rgba(0,0,0,0.08) 100%);
  pointer-events: none;
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(180deg, #5a5a62 0%, #2a2a32 100%);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-image: linear-gradient(180deg, #5a5a62 0%, #2a2a32 100%) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #6a6a72 0%, #3a3a42 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #000000;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background-image: #000000 !important;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 2px 6px rgba(0,0,0,0.2);
}

.btn-secondary:hover {
  background: #1a1a1a !important;
  background-image: #1a1a1a !important;
  border-color: var(--accent-gold);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.hero-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: 'Literata', Georgia, 'Times New Roman', serif;
}

.hero-phone a {
  color: var(--accent-gold);
  font-weight: 600;
  font-family: 'Cormorant Garamond', 'Literata', Georgia, serif;
  letter-spacing: 0.04em;
}

@media (min-width: 769px) {
  .hero-phone {
    font-size: 1.75rem;
  }
  .hero-phone a {
    font-size: 1.75rem;
  }
}

/* Sections */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section p.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(245,245,250,0.7) 50%, rgba(235,238,245,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 4px 16px rgba(0,0,0,0.06),
    0 1px 3px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.5) 0%, transparent 40%),
              radial-gradient(circle at 80% 90%, rgba(180,190,210,0.15) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: rgba(200,210,230,0.7);
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(0,0,0,0.1),
    0 4px 8px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.04);
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card p, .card li {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.card li {
  margin-bottom: 8px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-size: 1.1rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.8) 0%, rgba(220,225,235,0.5) 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(0,0,0,0.05);
  margin-bottom: 16px;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88) 0%, rgba(240,244,252,0.55) 100%);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: linear-gradient(180deg, rgba(245,247,252,0.9) 0%, rgba(230,235,245,0.7) 100%);
  color: var(--accent-gold);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  color: var(--text-secondary);
}

tr:hover td {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Mission block */
.mission-block {
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(238,242,250,0.55) 100%);
  border-left: 4px solid var(--accent-gold);
  padding: 32px;
  border-radius: 0 16px 16px 0;
  margin: 32px 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
}

.mission-block p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

/* Stats / Market */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat {
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(240,243,250,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.step {
  background: linear-gradient(145deg, rgba(255,255,255,0.88) 0%, rgba(238,242,250,0.55) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow: 0 3px 12px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,1);
}

.step-number {
  font-family: var(--font-mono);
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.step h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Tabs for government applications */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.tab-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--bg-hover);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

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

.contact-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(240,244,252,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09), inset 0 1px 0 rgba(255,255,255,1);
}

.contact-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.contact-card .phone-big {
  font-family: 'Cormorant Garamond', 'Literata', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-gold);
  display: block;
  margin: 16px 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

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

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

.form-status {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  display: block;
}

.form-status.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  display: block;
}

.form-status.info {
  background: rgba(59,130,246,0.1);
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  display: block;
}

/* Auth pages */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin-bottom: 8px;
}

.auth-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.pending-notice {
  background: rgba(201,162,39,0.1);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.pending-notice strong {
  color: var(--accent-gold);
  display: block;
  margin-bottom: 8px;
}

.pending-notice a {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-secondary);
}

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

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

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

.footer h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.footer a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

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

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

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

@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Utility */
.text-gold { color: var(--accent-gold); }

/* Eloquent numbering font for all phone number links */
a[href^="tel:"] {
  font-family: 'Cormorant Garamond', 'Literata', Georgia, serif !important;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }

/* Chrome silver sheen on accent text elements */
.hero-label,
.section-label,
.stat-value,
.hero h1 em,
th,
.card-icon,
.logo-mark,
.badge-pending,
.pending-notice strong,
.pending-notice a,
.phone-big,
a:not(.btn):not(.nav-cta):not(.nav-links a) {
  text-shadow: 0 1px 0 rgba(255,255,255,0.4), 0 -1px 0 rgba(0,0,0,0.15);
  background-image: linear-gradient(180deg, #6a6a72 0%, #2a2a32 50%, #4a4a52 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================
   INTRO OVERLAY — fade to black, streetlight shine, bubble ENTER
   ============================================ */

#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-overlay.hidden {
  display: none !important;
}

.intro-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Streetlight beam */
.intro-streetlight {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 900px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(180,190,210,0.25) 0%,
    rgba(120,130,150,0.12) 25%,
    rgba(60,65,80,0.04) 50%,
    transparent 70%);
  opacity: 0;
  animation: streetlight-shine 1.2s ease-out 0.15s forwards;
  pointer-events: none;
}

@keyframes streetlight-shine {
  0% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(0.9); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Logo */
.intro-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: logo-appear 0.9s ease-out 0.4s forwards;
  position: relative;
  z-index: 2;
}

@keyframes logo-appear {
  0% { opacity: 0; transform: translateY(10px); text-shadow: 0 0 0 rgba(200,210,230,0); }
  50% { opacity: 0.6; }
  100% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 30px rgba(180,190,210,0.6), 0 0 60px rgba(140,150,170,0.3);
  }
}

.intro-logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid #8a8a92;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #b0b0b8;
  font-family: var(--font-serif);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(160,170,190,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}

.intro-logo-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #d0d0d8;
}

/* Bubble wrapper — isolates bobble movement from layout flow */
.intro-bubble-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 25%;
}

/* Bubble */
.intro-bubble {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    rgba(255,255,255,0.5) 0%,
    rgba(200,210,230,0.25) 30%,
    rgba(140,150,170,0.12) 60%,
    rgba(80,85,100,0.08) 100%);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 0 30px rgba(180,190,210,0.3),
    inset 0 2px 4px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(0);
  animation: bubble-bobble 1.5s ease-out 1.1s forwards, bubble-grow 1s ease-out 1.1s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 3;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.intro-bubble::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 18%;
  width: 30%;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 70%);
  pointer-events: none;
}

.intro-bubble:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 50px rgba(180,190,210,0.5),
    inset 0 2px 6px rgba(255,255,255,0.6),
    inset 0 -2px 6px rgba(0,0,0,0.12);
}

@keyframes bubble-bobble {
  0% { opacity: 0; transform: translateY(40px); }
  20% { opacity: 0.5; transform: translateY(15px); }
  40% { transform: translateY(-8px); }
  55% { transform: translateY(4px); }
  70% { transform: translateY(-3px); }
  85% { transform: translateY(1px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bubble-grow {
  0% { width: 30px; height: 30px; }
  100% { width: 130px; height: 130px; }
}

/* ENTER text */
.intro-enter {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  animation: enter-fade 0.75s ease-out 1.8s forwards;
  text-shadow: 0 0 12px rgba(180,190,210,0.5);
  user-select: none;
}

@keyframes enter-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* When body is locked during intro */
body.intro-locked {
  overflow: hidden;
}

@media (max-width: 600px) {
  .intro-logo-text { font-size: 1.5rem; }
  .intro-streetlight { width: 400px; height: 700px; }
  @keyframes bubble-grow {
    0% { width: 30px; height: 30px; }
    100% { width: 110px; height: 110px; }
  }
  .intro-enter { font-size: 0.9rem; }
}

/* ============================================
   PRO CARDS CAROUSEL — rotating, expand-on-hover, blur-reveal-on-click
   ============================================ */

.pro-cards-section {
  padding: 60px 0 80px;
}

.pro-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pro-carousel-viewport {
  overflow: hidden;
  flex: 1;
  border-radius: 18px;
  /* Peek: show a sliver of the next card by letting track overflow slightly */
  position: relative;
}

.pro-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 10px 5px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.pro-carousel-track.dragging {
  cursor: grabbing;
  transition: none;
}

.pro-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  background: linear-gradient(145deg, rgba(255,255,255,0.92) 0%, rgba(238,242,250,0.6) 50%, rgba(228,232,242,0.4) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 4px 20px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: box-shadow 0.4s ease, transform 0.4s ease, border-color 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  position: relative;
  cursor: pointer;
}

.pro-card:hover {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,1);
  border-color: rgba(200,210,230,0.8);
}

/* Active card spotlight — dim non-hovered cards when one is hovered */
.pro-carousel-track.has-hover .pro-card:not(:hover) {
  opacity: 0.55;
  filter: saturate(0.7);
  transform: scale(0.985);
}

/* Focus-visible for keyboard nav */
.pro-card:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* Header always visible */
.pro-card-header {
  padding: 20px 24px 14px;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(245,247,252,0.6) 0%, transparent 100%);
}

.pro-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.pro-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pro-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.pro-card-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.pro-card-cta {
  display: inline-block;
  background: linear-gradient(180deg, #5a5a62 0%, #2a2a32 100%);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pro-card-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(0,0,0,0.15);
}

.pro-card-link {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 500;
}

/* Body — collapsed by default, expands on hover (slower, smoother) */
.pro-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expand on hover */
.pro-card:hover .pro-card-body,
/* Lock open once any card has been hovered */
.pro-carousel-track.hovered .pro-card-body {
  max-height: 2000px;
}

.pro-card-content {
  padding: 0 24px 20px;
  position: relative;
}

.pro-card-content h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 18px;
  margin-bottom: 6px;
}

.pro-card-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Blur state — applied until clicked */
.pro-card-content.blurred {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  transition: filter 0.1s;
}

/* Sweep reveal — clip-path animates top-to-bottom like a magnifying glass passing */
.pro-card-content.revealing {
  filter: blur(0);
  animation: reveal-sweep 2s ease-out forwards;
}

@keyframes reveal-sweep {
  0% {
    filter: blur(6px);
    clip-path: inset(0 0 100% 0);
  }
  10% {
    filter: blur(5px);
    clip-path: inset(0 0 90% 0);
  }
  25% {
    filter: blur(3.5px);
    clip-path: inset(0 0 70% 0);
  }
  45% {
    filter: blur(2px);
    clip-path: inset(0 0 45% 0);
  }
  65% {
    filter: blur(1px);
    clip-path: inset(0 0 20% 0);
  }
  85% {
    filter: blur(0.3px);
    clip-path: inset(0 0 5% 0);
  }
  100% {
    filter: blur(0);
    clip-path: inset(0 0 0 0);
    pointer-events: auto;
    user-select: auto;
  }
}

.pro-card-content.revealed {
  filter: blur(0);
  pointer-events: auto;
  user-select: auto;
}

/* Click hint */
.pro-card:not(.clicked) .pro-card-body::after {
  content: 'Click to reveal full details';
  display: block;
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.pro-card.clicked .pro-card-body::after {
  display: none;
}

/* Mystery cards */
.pro-card-mystery .pro-card-header h3 {
  letter-spacing: 0.3em;
  color: var(--accent-gold);
}

.pro-card-locked {
  text-align: center;
  padding-top: 20px;
}

.mystery-locked-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.mystery-unlock-hint {
  margin-top: 20px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.mystery-unlock-hint a {
  font-family: 'Cormorant Garamond', 'Literata', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

/* Carousel wrapper + indicator */
.pro-carousel-wrapper {
  position: relative;
}

.pro-carousel-indicator {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 0 60px;
}

.pro-indicator-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.pro-indicator-segment.active {
  background: var(--accent-gold);
}

.pro-indicator-segment.visited {
  background: rgba(58,58,66,0.3);
}

/* Nav column wraps the 3 stacked arrows */
.pro-nav-column {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.pro-nav-extra {
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(240,243,250,0.5) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.7);
  opacity: 0.65;
}

.pro-nav-extra:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(230,235,245,0.7) 100%);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}

.pro-nav-extra:active {
  transform: scale(0.95);
}

/* Navigation arrows */
.pro-nav {
  flex: 0 0 auto;
  width: 48px;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(235,238,245,0.6) 50%, rgba(255,255,255,0.9) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}

.pro-nav:hover {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(225,230,242,0.8) 50%, rgba(255,255,255,1) 100%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,1);
}

.pro-nav:active {
  transform: scale(0.97);
}

/* Dots */
.pro-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pro-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.pro-dot.active {
  background: var(--accent-gold);
  width: 24px;
  border-radius: 4px;
}

/* Mobile */
@media (max-width: 768px) {
  .pro-card {
    flex: 0 0 65%;
    min-width: 65%;
  }
  .pro-carousel-track {
    gap: 16px;
  }
  .pro-card-header h3 {
    font-size: 1.1rem;
  }
}

