/* ============================================
   COBALT ELITE WORKS - CORE STYLES
   ============================================ */

:root {
  --cobalt: #0B1F4D;
  --cobalt-deep: #081637;
  --electric: #3D5AFE;
  --electric-bright: #5A73FF;
  --forged: #0E0E10;
  --offwhite: #F4F4F2;
  --steel: #6B6F76;
  --steel-light: #9CA0A6;
  --hairline: rgba(244, 244, 242, 0.08);
  --hairline-dark: rgba(14, 14, 16, 0.08);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background: var(--forged);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--forged);
  background: var(--offwhite);
  line-height: 1.6;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.font-display {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.font-display-black {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.0;
}

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--electric);
}

.eyebrow-steel {
  color: var(--steel);
}

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */

.container-cew {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container-cew {
    padding: 0 2.5rem;
  }
}

.section-dark {
  background: var(--forged);
  color: var(--offwhite);
  position: relative;
}

.section-cobalt {
  background: var(--cobalt);
  color: var(--offwhite);
  position: relative;
}

.section-light {
  background: var(--offwhite);
  color: var(--forged);
}

/* Subtle steel grid texture for dark sections */
.texture-grid {
  background-image:
    linear-gradient(to right, rgba(244, 244, 242, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 244, 242, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav-cew {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--offwhite);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* Render the colored logo file as pure white. Apply on dark backgrounds
   (nav, footer). Light-section instances stay full color. */
.nav-logo,
.logo-white {
  filter: brightness(0) invert(1);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--electric);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 8px 24px rgba(61, 90, 254, 0.35);
}

.btn-primary:hover {
  background: var(--electric-bright);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 12px 32px rgba(61, 90, 254, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--offwhite);
  border-color: var(--hairline);
}

.btn-ghost:hover {
  border-color: rgba(244, 244, 242, 0.3);
  background: rgba(244, 244, 242, 0.04);
}

.btn-outline-dark {
  background: transparent;
  color: var(--forged);
  border-color: var(--forged);
}

.btn-outline-dark:hover {
  background: var(--forged);
  color: var(--offwhite);
}

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
  margin-left: 0.25rem;
}

.btn-arrow:hover::after {
  transform: translateX(3px);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #15151A;
  border: 1px solid var(--hairline);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 244, 242, 0.18);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.6);
}

.card-featured {
  background: linear-gradient(180deg, #122252 0%, #0B1F4D 100%);
  border: 1px solid rgba(61, 90, 254, 0.4);
  box-shadow: 0 0 0 1px rgba(61, 90, 254, 0.15), 0 16px 48px -16px rgba(61, 90, 254, 0.25);
}

.card-featured:hover {
  border-color: rgba(61, 90, 254, 0.7);
  box-shadow: 0 0 0 1px rgba(61, 90, 254, 0.3), 0 24px 64px -16px rgba(61, 90, 254, 0.4);
}

.badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--electric);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 14px;
  white-space: nowrap;
}

/* ============================================
   FOUNDRY MARK ACCENT
   ============================================ */

/* Sharp corner bracket — used as a brand accent */
.bracket {
  position: relative;
  display: inline-block;
}

.bracket::before,
.bracket::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--electric);
}

.bracket::before {
  top: -8px;
  left: -8px;
  border-right: none;
  border-bottom: none;
}

.bracket::after {
  bottom: -8px;
  right: -8px;
  border-left: none;
  border-top: none;
}

.divider-stamp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
}

.divider-stamp::before,
.divider-stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.divider-stamp.on-light::before,
.divider-stamp.on-light::after {
  background: var(--hairline-dark);
}

/* ============================================
   CHECK BULLETS
   ============================================ */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 14px;
  height: 14px;
  background: var(--electric);
  clip-path: polygon(20% 50%, 0 65%, 40% 100%, 100% 30%, 85% 15%, 40% 70%);
}

.check-list-light li::before {
  background: var(--electric);
}

/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

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

.mobile-menu {
  display: none;
  position: fixed;
  inset: 68px 0 0 0;
  background: var(--forged);
  z-index: 49;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--hairline);
}

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

.mobile-menu a {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--offwhite);
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Space Grotesk', sans-serif;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--offwhite);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   FOOTER
   ============================================ */

.footer-cew {
  background: var(--forged);
  color: var(--steel-light);
  border-top: 1px solid var(--hairline);
  padding: 4rem 0 2rem;
}

.footer-cew a:hover {
  color: var(--offwhite);
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  border-bottom: 1px solid var(--hairline-dark);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forged);
  padding: 0;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  transition: transform 0.25s ease;
  color: var(--electric);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  color: var(--steel);
}

.faq-item.open .faq-answer {
  max-height: 600px;
  margin-top: 1rem;
}

/* Dark FAQ — when FAQ items live inside .section-dark */
.section-dark .faq-item {
  border-bottom: 1px solid var(--hairline);
}

.section-dark .faq-question {
  color: var(--offwhite);
}

.section-dark .faq-answer {
  color: var(--steel-light);
}

/* ============================================
   UTILITY
   ============================================ */

.hairline-top { border-top: 1px solid var(--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--hairline); }
.hairline-top-dark { border-top: 1px solid var(--hairline-dark); }
.hairline-bottom-dark { border-bottom: 1px solid var(--hairline-dark); }

.text-cobalt { color: var(--cobalt); }
.text-electric { color: var(--electric); }
.text-steel { color: var(--steel); }
.text-offwhite { color: var(--offwhite); }
.bg-cobalt { background: var(--cobalt); }
.bg-electric { background: var(--electric); }
.bg-forged { background: var(--forged); }
.bg-offwhite { background: var(--offwhite); }
