/* ============================================
   Trustmybot.ai — Global Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a0f1e;
  --navy-light: #111827;
  --navy-mid: #1a2236;
  --blue: #2563EB;
  --blue-light: #3b82f6;
  --blue-dark: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.08);
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --text-primary: #e8eaed;
  --text-secondary: #b0b8c4;
  --text-muted: #7a8494;
  --border: rgba(255, 255, 255, 0.06);
  --border-blue: rgba(37, 99, 235, 0.2);
  --radius: 4px;
  --radius-lg: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --max-width: 1080px;
  --transition: 0.15s ease;
}

/* Noise texture overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.625rem; margin-bottom: 0.625rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 0.875rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
}

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

/* ============================================
   Layout
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav__logo svg {
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links .btn--sm {
  padding: 0.35rem 0.875rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

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

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

.btn--outline {
  background: transparent;
  color: var(--blue-light);
  border: 1px solid var(--border-blue);
}

.btn--outline:hover {
  background: var(--blue-glow);
  color: var(--white);
  border-color: var(--blue-light);
}

.btn--sm {
  padding: 0.35rem 0.875rem;
  font-size: 0.8rem;
}

.btn--lg {
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
}

/* Subtle geometric SVG pattern instead of radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__tagline {
  font-size: 0.8rem;
  color: var(--blue-light);
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 2.5rem;
  max-width: 700px;
  margin: 0 auto 1.25rem;
  color: var(--white);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__sub {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.card__icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  color: var(--blue-light);
  opacity: 0.8;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   Tables
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

thead {
  background: var(--navy-mid);
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

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

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--blue-glow);
  color: var(--blue-light);
  border: 1px solid var(--border-blue);
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 1.625rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ============================================
   Gap / Problem Statement
   ============================================ */

.gap-statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  border-left: 2px solid var(--blue);
  text-align: left;
  background: rgba(37, 99, 235, 0.03);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.gap-statement p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.gap-statement em {
  color: var(--text-primary);
  font-style: italic;
}

.gap-statement strong {
  color: var(--blue-light);
}

/* ============================================
   Standard Page
   ============================================ */

.standard-content {
  max-width: 780px;
  margin: 0 auto;
}

.standard-content h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.standard-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.standard-content h3 {
  font-size: 1.1rem;
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--blue-light);
}

.standard-content h4 {
  margin-top: 1.25rem;
}

.standard-content p,
.standard-content li {
  font-size: 0.9rem;
  line-height: 1.75;
}

.standard-content ul,
.standard-content ol {
  margin: 0.625rem 0 1.25rem 1.25rem;
  color: var(--text-secondary);
}

.standard-content li {
  margin-bottom: 0.375rem;
}

.standard-content blockquote {
  border-left: 2px solid var(--blue);
  padding: 0.875rem 1.25rem;
  margin: 1.25rem 0;
  background: rgba(37, 99, 235, 0.03);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 0.9rem;
}

.doc-meta {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.doc-meta p {
  margin-bottom: 0.375rem;
  font-size: 0.85rem;
}

.doc-meta strong {
  color: var(--text-primary);
}

/* Table of Contents */
.toc {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.toc li {
  margin-bottom: 0.375rem;
}

.toc a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.toc a:hover {
  color: var(--blue-light);
}

/* ============================================
   NIST Page
   ============================================ */

.nist-content {
  max-width: 700px;
  margin: 0 auto;
}

.nist-content h2 {
  font-size: 1.25rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.nist-content h2:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

.nist-content p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.nist-banner {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nist-banner__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  opacity: 0.7;
}

.nist-banner__text h3 {
  margin-bottom: 0.125rem;
  color: var(--white);
  font-size: 0.95rem;
}

.nist-banner__text p {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   About Page
   ============================================ */

.about-profile {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-avatar {
  width: 200px;
  height: 200px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-info h2 {
  margin-bottom: 0.25rem;
}

.about-info .about-title {
  color: var(--blue-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.about-roles {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
}

.about-roles li {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.about-roles li:last-child {
  border-bottom: none;
}

.about-roles strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.1rem;
}

/* ============================================
   Waitlist / Form
   ============================================ */

.waitlist-form {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.form-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.form-group input[type="email"] {
  flex: 1;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--navy-mid);
  color: var(--white);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input[type="email"]::placeholder {
  color: var(--text-muted);
}

.form-group input[type="email"]:focus {
  border-color: var(--blue);
}

.form-group .btn {
  white-space: nowrap;
}

.waitlist-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   Page Header (for inner pages)
   ============================================ */

.page-header {
  padding: 6.5rem 0 2.5rem;
  text-align: center;
  position: relative;
}

/* Crosshatch SVG texture */
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%232563EB' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.page-header p {
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  position: relative;
}

/* ============================================
   Decorative SVG elements
   ============================================ */

.svg-divider {
  display: block;
  margin: 0 auto;
  color: var(--border-blue);
  opacity: 0.5;
}

.svg-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.04;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.footer p:last-child {
  margin-bottom: 0;
}

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

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .hero { padding: 7rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .hero__sub { font-size: 0.925rem; }

  .section { padding: 2.5rem 0; }

  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }

  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.98);
    padding: 1.25rem 2rem;
    gap: 0.875rem;
    border-bottom: 1px solid var(--border);
  }

  .nav__toggle { display: block; }

  .about-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
    width: 140px;
    height: 140px;
    font-size: 2.5rem;
  }

  .form-group {
    flex-direction: column;
  }

  .nist-banner {
    flex-direction: column;
    text-align: center;
  }

  .page-header h1 { font-size: 1.625rem; }

  .gap-statement { padding: 1.5rem; }
  .gap-statement p { font-size: 0.95rem; }

  .section-header h2 { font-size: 1.375rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.625rem; }
  .card { padding: 1.25rem; }
}
