/* ═══════════════════════════════════════════════════════════
   CORVION SYSTEMS — Shared Stylesheet
   corvion.css — loaded on all pages
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════ */
:root {
  --bg-primary: #001F3F;
  --bg-secondary: #011829;
  --bg-card: #02203A;
  --bg-card-hover: #032D50;
  --accent-blue: #0071FF;
  --accent-blue-glow: rgba(0, 113, 255, 0.15);
  --accent-cyan: #87CEFA;
  --accent-gold: #3EF0C3;
  --accent-gold-glow: rgba(62, 240, 195, 0.15);
  --accent-gold-dim: rgba(62, 240, 195, 0.12);
  --accent-gold-border: rgba(62, 240, 195, 0.2);
  --accent-green: #34d399;
  --accent-green-glow: rgba(52, 211, 153, 0.12);
  --text-primary: #E8EDF5;
  --text-secondary: #87CEFA;
  --text-muted: rgba(135, 206, 250, 0.45);
  --border-subtle: rgba(135, 206, 250, 0.08);
  --border-glow: rgba(0, 113, 255, 0.25);
  --gradient-hero: linear-gradient(135deg, #001F3F 0%, #011829 40%, #021428 100%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ═══════════════════════════════════════════
   BASE RESET
   ═══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 31, 63, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(0, 31, 63, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 18px; color: var(--bg-primary);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--text-primary); letter-spacing: -0.5px;
}
.nav-links {
  display: flex; align-items: center; gap: 8px; list-style: none;
}
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: all 0.25s ease; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--accent-blue); }
.nav-mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.3s ease; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent-blue); color: #fff;
  box-shadow: 0 2px 12px rgba(74,142,255,0.25);
}
.btn-primary:hover {
  background: #5c9aff;
  box-shadow: 0 4px 20px rgba(74,142,255,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--accent-gold); color: var(--bg-primary);
  box-shadow: 0 2px 12px rgba(240,176,64,0.25);
}
.btn-gold:hover {
  background: #f5be55;
  box-shadow: 0 4px 20px rgba(240,176,64,0.4);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════
   SHARED SECTION
   ═══════════════════════════════════════════ */
section { padding: 100px 48px; position: relative; }
.section-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--accent-blue);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 16px; color: var(--text-secondary);
  line-height: 1.7; max-width: 560px;
}
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto; }
.highlight {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (non-home pages)
   ═══════════════════════════════════════════ */
.page-header {
  position: relative;
  padding: 160px 48px 100px;
  background: var(--gradient-hero);
  text-align: center;
  overflow: hidden;
}
.page-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(135, 206, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 206, 250, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.page-header-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  top: -200px; right: -100px;
  background: rgba(74,142,255,0.08);
  filter: blur(120px); pointer-events: none;
}
.page-header-content {
  position: relative; z-index: 2;
  max-width: 700px; margin: 0 auto;
}
.page-header-label {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  color: var(--accent-blue);
  text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: 16px;
  animation: fadeInDown 0.8s ease;
}
.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.page-header-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary); line-height: 1.65;
  max-width: 580px; margin: 0 auto;
  animation: fadeInUp 0.8s ease 0.2s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   CTA BANNER (shared overflow + inner layout)
   Background colors set per-page inline.
   ═══════════════════════════════════════════ */
.cta-banner {
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.cta-inner {
  max-width: 800px; margin: 0 auto;
  text-align: center; padding: 40px 0;
  position: relative;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(circle, rgba(74,142,255,0.08), transparent 60%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 16px; position: relative;
}
.cta-desc {
  font-size: 16px; color: var(--text-secondary);
  margin-bottom: 36px; position: relative;
}
.cta-buttons {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; position: relative;
}
.cta-buttons .btn { padding: 14px 30px; font-size: 15px; }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 48px 32px;
}
.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-brand p {
  color: var(--text-muted); font-size: 14px; line-height: 1.7;
  margin-top: 16px; max-width: 300px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--text-secondary); margin-bottom: 18px;
}
.footer-col a {
  display: block; color: var(--text-muted);
  text-decoration: none; font-size: 14px;
  padding: 5px 0; transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--accent-blue); }
.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 24px;
}
.footer-copyright { font-size: 13px; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--text-muted); font-size: 14px;
  transition: all 0.25s ease;
}
.footer-social a:hover {
  background: var(--accent-blue-glow);
  border-color: var(--border-glow);
  color: var(--accent-blue);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }

/* Grain texture overlay */
.hero::after, .page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ═══ README Content Classes ═══ */
.MainContent {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  box-sizing: border-box;
}
.CallActions {
  background: linear-gradient(135deg, rgba(0,113,255,0.06) 0%, rgba(0,31,63,0.8) 100%);
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 12px 12px 0;
  padding: 32px 40px;
}
.Disclaimer {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 1024px
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — 768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(0, 31, 63, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-mobile-toggle { display: flex; }
  section { padding: 72px 24px; }
  .page-header { padding: 130px 24px 72px; }
  footer { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .MainContent { padding: 0 24px; }
  .CallActions { padding: 24px; }
}

/* ═══════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-delay-1, .reveal-delay-2, .reveal-delay-3, .reveal-delay-4 {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
