/* ========================================
   ADVERSIS SECURITY POSITIONING LIBRARY
   Light Mode - Vibrant & Bold
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@400;500&family=Poppins:wght@400;500;600;700&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES
   ======================================== */
:root {
  /* Brand Colors */
  --color-dark-blue: #161131;
  --color-light-blue: #9fd9d5;
  --color-red: #f05f62;
  --color-yellow: #fcce11;

  /* Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fc;
  --bg-accent: var(--color-light-blue);
  --bg-accent-alt: var(--color-yellow);

  /* Text */
  --text-primary: var(--color-dark-blue);
  --text-secondary: #4a4766;
  --text-muted: #8a87a0;
  --text-accent: var(--color-red);
  --text-on-dark: #ffffff;

  /* Borders */
  --border-light: #e8e7ef;
  --border-medium: #d1d0dc;
  --border-accent: var(--color-dark-blue);

  /* Typography */
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Lexend Exa', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Sizing */
  --max-width: 1200px;
  --card-radius: 16px;
  --button-radius: 8px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(22, 17, 49, 0.04);
  --shadow-md: 0 4px 12px rgba(22, 17, 49, 0.08);
  --shadow-lg: 0 8px 30px rgba(22, 17, 49, 0.12);
  --shadow-card: 0 2px 8px rgba(22, 17, 49, 0.06), 0 0 0 1px rgba(22, 17, 49, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(22, 17, 49, 0.12), 0 0 0 1px rgba(22, 17, 49, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

::selection {
  background: var(--color-yellow);
  color: var(--color-dark-blue);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

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

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

.mono {
  font-family: var(--font-mono);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo-img {
  height: 28px;
  width: auto;
}

.header__tagline {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-light-blue);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: calc(var(--space-4xl) + 60px) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-light-blue) 0%, transparent 70%);
  opacity: 0.4;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-yellow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 800px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-red);
  background: rgba(240, 95, 98, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: 100px;
  margin-bottom: var(--space-xl);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-red);
  border-radius: 50%;
}

.hero__title {
  margin-bottom: var(--space-lg);
}

.hero__title span {
  display: block;
  background: linear-gradient(135deg, var(--color-red) 0%, #d94a4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__description {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.hero__byline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.01em;
}

.hero__stats {
  display: flex;
  gap: var(--space-3xl);
  padding-top: var(--space-xl);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-dark-blue);
  line-height: 1;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ========================================
   RESOURCES SECTION
   ======================================== */
.resources {
  padding: var(--space-4xl) 0;
}

.resources__header {
  margin-bottom: var(--space-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.resources__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--color-dark-blue);
  padding: var(--space-xs) var(--space-md);
  border-radius: 100px;
}

.resources__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ========================================
   RESOURCE CARDS
   ======================================== */
.cards {
  display: grid;
  gap: var(--space-lg);
}

.card {
  background: var(--bg-card);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card__header {
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-lg);
}

.card__number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-dark-blue);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-yellow);
  border-radius: 12px;
}

.card:nth-child(2) .card__number { background: var(--color-light-blue); }
.card:nth-child(3) .card__number { background: var(--color-red); color: white; }
.card:nth-child(4) .card__number { background: var(--color-yellow); }
.card:nth-child(5) .card__number { background: var(--color-light-blue); }
.card:nth-child(6) .card__number { background: var(--color-red); color: white; }

.card__info {
  min-width: 0;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.card:hover .card__title {
  color: var(--color-red);
}

.card__description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  color: var(--text-muted);
  background: transparent;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.card:hover .card__toggle {
  border-color: var(--color-dark-blue);
  color: var(--color-dark-blue);
}

.card__toggle svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.card.is-open .card__toggle {
  background: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
  color: white;
}

.card.is-open .card__toggle svg {
  transform: rotate(45deg);
}

/* Card Content (Expandable) */
.card__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.card.is-open .card__content {
  max-height: 5000px;
}

.card__body {
  padding: 0 var(--space-xl) var(--space-xl);
  border-top: 1px solid var(--border-light);
  margin-top: 0;
  padding-top: var(--space-xl);
}

/* Template Content Styling */
.template {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: var(--space-xl);
  position: relative;
}

.template__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.template__title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.template__copy {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-dark-blue);
  background: var(--color-yellow);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.template__copy:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

.template__copy.copied {
  background: var(--color-light-blue);
}

.template__content {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.template__content h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin: var(--space-xl) 0 var(--space-md);
}

.template__content h4:first-child {
  margin-top: 0;
}

.template__content ul,
.template__content ol {
  padding-left: var(--space-xl);
  margin: var(--space-md) 0;
}

.template__content li {
  margin: var(--space-sm) 0;
}

.template__content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  font-size: 0.8125rem;
  border-radius: 8px;
  overflow: hidden;
}

.template__content th,
.template__content td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-light);
}

.template__content th {
  background: var(--color-dark-blue);
  color: white;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.template__content tr:nth-child(even) {
  background: rgba(22, 17, 49, 0.02);
}

.template__content tr:hover {
  background: rgba(159, 217, 213, 0.15);
}

.template__content .highlight {
  color: var(--color-red);
  font-weight: 500;
}

.template__content .placeholder {
  color: var(--color-red);
  background: rgba(240, 95, 98, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

/* Category Labels */
.category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-sm);
  background: var(--bg-primary);
  border-radius: 4px;
  margin-right: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.category--accent {
  background: var(--color-light-blue);
  color: var(--color-dark-blue);
  font-weight: 500;
}

/* ========================================
   SAMPLES SECTION
   ======================================== */
.samples {
  padding: var(--space-4xl) 0;
  background: var(--color-dark-blue);
  position: relative;
  overflow: hidden;
}

.samples::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-light-blue), var(--color-red));
}

.samples::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-red) 0%, transparent 70%);
  opacity: 0.2;
  pointer-events: none;
}

.samples__header {
  margin-bottom: var(--space-2xl);
  position: relative;
}

.samples__title {
  color: white;
  margin-bottom: var(--space-sm);
}

.samples__description {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
}

.samples .resources__label {
  background: var(--color-yellow);
  color: var(--color-dark-blue);
}

.samples .cards {
  position: relative;
}

.samples .card {
  background: rgba(255, 255, 255, 0.98);
}

.samples .card__number {
  background: var(--color-yellow);
  color: var(--color-dark-blue);
}

.samples .card:nth-child(2) .card__number {
  background: var(--color-light-blue);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta {
  padding: var(--space-4xl) 0;
  background: var(--color-dark-blue);
}

.cta__content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: var(--space-lg);
}

.cta__description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.cta__button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-dark-blue);
  background: var(--color-light-blue);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--button-radius);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.cta__button:hover {
  background: var(--color-yellow);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: var(--space-3xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

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

.footer__brand {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 24px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

.footer__brand:hover .footer__logo-img {
  opacity: 1;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-in {
  animation: fadeInUp 0.6s var(--transition-slow) forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.15s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.25s; }
.animate-in:nth-child(5) { animation-delay: 0.3s; }
.animate-in:nth-child(6) { animation-delay: 0.35s; }
.animate-in:nth-child(7) { animation-delay: 0.4s; }
.animate-in:nth-child(8) { animation-delay: 0.45s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--transition-slow);
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .hero__stat {
    flex: 1 1 auto;
    min-width: 100px;
  }

  .card__header {
    grid-template-columns: auto 1fr;
    gap: var(--space-md);
  }

  .card__toggle {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-md);
  }

  .header__tagline {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .resources__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__stat-value {
    font-size: 2rem;
  }

  .template {
    padding: var(--space-md);
  }

  .template__content {
    font-size: 0.8125rem;
  }

  .card__number {
    width: 38px;
    height: 38px;
    font-size: 0.8125rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--color-red);
}

.text-muted {
  color: var(--text-muted);
}

.mono {
  font-family: var(--font-mono);
}
