/* ALTRADYN PRIME — Brand Design System & Stylesheet */
:root {
  --navy: #0B1F3A;
  --navy-dark: #071426;
  --navy-light: #132E54;
  --gold: #B8935A;
  --gold-hover: #CBA76D;
  --gold-dim: rgba(184, 147, 90, 0.15);
  --ivory: #F5F1E8;
  --ivory-warm: #EBE5D8;
  --teal: #1B4D4A;
  --teal-light: #266B67;
  --teal-dim: rgba(27, 77, 74, 0.15);
  --ink: #2A2A28;
  --ink-muted: #575754;
  --border-light: rgba(11, 31, 58, 0.12);
  --border-dark: rgba(245, 241, 232, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.font-editorial {
  font-family: 'Newsreader', Georgia, serif;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Container */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Patterns & Utilities */
.pattern-grid-dark {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(245, 241, 232, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 241, 232, 0.04) 1px, transparent 1px);
}

.pattern-grid-light {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(11, 31, 58, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 31, 58, 0.04) 1px, transparent 1px);
}

.bg-navy { background-color: var(--navy); color: var(--ivory); }
.bg-navy-dark { background-color: var(--navy-dark); color: var(--ivory); }
.bg-ivory { background-color: var(--ivory); color: var(--ink); }
.bg-ivory-warm { background-color: var(--ivory-warm); }
.bg-teal { background-color: var(--teal); color: var(--ivory); }

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-teal { color: var(--teal); }
.text-ivory { color: var(--ivory); }
.text-muted { color: var(--ink-muted); }

.border-gold { border-color: var(--gold); }
.border-light { border-color: var(--border-light); }
.border-dark { border-color: var(--border-dark); }

/* Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 241, 232, 0.1);
  padding: 0.85rem 0;
  transition: all 0.3s ease;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-glyph {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: var(--navy-dark);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-glyph-diamond {
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  transform: rotate(45deg);
}

.logo-glyph-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--gold);
}

.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ivory);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-subtitle {
  font-size: 0.55rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.18em;
  color: rgba(245, 241, 232, 0.5);
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-link {
  color: rgba(245, 241, 232, 0.75);
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background-color: rgba(19, 46, 84, 0.8);
}

.nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

.btn-cta {
  background-color: var(--gold);
  color: var(--navy);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-cta:hover {
  background-color: var(--gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 241, 232, 0.25);
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

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

/* Page Section Container */
.page-view {
  display: none;
  min-height: 100vh;
  padding-top: 70px;
}

.page-view.active {
  display: block;
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background-color: var(--navy-dark);
  border: 1px solid rgba(184, 147, 90, 0.35);
  color: var(--gold);
  font-size: 0.68rem;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(245, 241, 232, 0.85);
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Grid System */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }

/* Cards & Containers */
.card-ivory {
  background-color: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.card-ivory:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.08);
  transform: translateY(-3px);
}

.card-navy {
  background-color: var(--navy);
  color: var(--ivory);
  border: 1px solid rgba(184, 147, 90, 0.25);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

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

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(7, 20, 38, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background-color: var(--ivory);
  color: var(--ink);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid rgba(184, 147, 90, 0.4);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  position: relative;
  padding: 2.5rem;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--navy);
  color: var(--ivory);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  nav ul {
    display: none;
  }
}
