/* ============================================
   Global Brand Integrity & Authenticity Portal
   Regulatory White Style - CSS Framework
   ============================================ */

:root {
  --primary-white: #FFFFFF;
  --secondary-azure: #F0F7FF;
  --accent-blue: #2563EB;
  --deep-navy: #1E293B;
  --light-gray: #F8FAFC;
  --border-gray: #E2E8F0;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 15px rgba(0, 0, 0, 0.06);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--primary-white);
  color: var(--text-primary);
  line-height: 1.6;
  letter-spacing: 0.3px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-white);
  border-bottom: 1px solid var(--border-gray);
  box-shadow: var(--shadow-soft);
  z-index: 1000;
  padding: 0.75rem 0;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.verification-seal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.seal-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent-blue), var(--deep-navy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  font-size: 14px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy);
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--accent-blue);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-blue);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */

main {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background-color: var(--primary-white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-gray);
}

.section:last-child {
  border-bottom: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--secondary-azure) 100%);
  text-align: center;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  letter-spacing: -1px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-blue);
  color: var(--primary-white);
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary-azure);
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background-color: var(--accent-blue);
  color: var(--primary-white);
}

/* ============================================
   SOFT-SHADOW CARDS
   ============================================ */

.card {
  background-color: var(--primary-white);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--accent-blue);
  transform: translateY(-4px);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.75rem;
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ============================================
   SYSTEM HEALTH INDICATORS
   ============================================ */

.health-indicator {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background-color: var(--secondary-azure);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.health-status {
  width: 12px;
  height: 12px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.health-text {
  flex: 1;
}

.health-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-navy);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--deep-navy);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ============================================
   TABLES
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
  border-radius: 0.5rem;
  overflow: hidden;
}

thead {
  background-color: var(--secondary-azure);
  border-bottom: 2px solid var(--accent-blue);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--deep-navy);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-gray);
  color: var(--text-secondary);
}

tbody tr:hover {
  background-color: var(--light-gray);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-gray);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

footer {
  background-color: var(--deep-navy);
  color: var(--primary-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-white);
  margin-bottom: 1rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.8;
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.85rem;
}

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

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-2 { padding: 1rem; }
.p-4 { padding: 2rem; }

.whitespace-large {
  margin: 3rem 0;
}

.icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

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

  nav {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2rem 0;
  }

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

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  table {
    font-size: 0.85rem;
  }

  th, td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

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

  .btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
