/* ═══════════════════════════════════════════════════════════════
   Project Intro Pages — Shared Design System
   Used by: docs/index.html
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --navy:       #0F1E3D;
  --navy-light: #1a2f5a;
  --teal:       #0D9488;
  --teal-b:     #14B8A6;
  --teal-bg:    #CCFBF1;
  --slate:      #475569;
  --slate-l:    #94A3B8;
  --off-white:  #F8FAFC;
  --border:     #E2E8F0;
  --white:      #FFFFFF;
  --accent:     #6366F1;   /* indigo accent for index page */
  --card-bg:    #F1F5F9;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--teal-b);
  font-weight: 900;
  letter-spacing: -0.5px;
}
.nav-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.nav-logo-text span { color: var(--teal); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Dot-grid texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* Gradient glow */
.hero::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(13,148,136,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,148,136,.18);
  border: 1px solid rgba(13,148,136,.3);
  color: var(--teal-b);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-b);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  max-width: 680px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal-b);
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,.68);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Section Header ─────────────────────────────────────────── */
.section-wrap {
  padding: 64px 0;
}
.section-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.2;
}
.section-sub {
  font-size: 15px;
  color: var(--slate);
  max-width: 540px;
}

/* ── Project Cards Grid ─────────────────────────────────────── */
.projects-section {
  padding: 64px 0 80px;
}
.projects-header {
  text-align: center;
  margin-bottom: 48px;
}
.projects-header .section-sub { margin: 0 auto; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  opacity: 0;
  transition: opacity .2s ease;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.project-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(15,30,61,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tag-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-bg);
  color: var(--teal);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.project-card .card-desc {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 24px;
}

.card-features {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-features li {
  font-size: 13px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s ease, transform .15s ease;
  align-self: flex-start;
  margin-top: auto;
}
.card-cta:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}
.card-cta svg {
  transition: transform .2s ease;
}
.card-cta:hover svg {
  transform: translateX(3px);
}

/* ── Sub-pages list on card ─────────────────────────────────── */
.card-subpages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-subpage-link {
  font-size: 12px;
  color: var(--teal);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: color .15s;
}
.card-subpage-link:hover { color: var(--navy); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.35);
  text-align: center;
  padding: 28px 24px;
  font-size: 13px;
}
.site-footer a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.site-footer a:hover { color: var(--teal-b); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 56px 0 52px; }
  .hero h1 { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .projects-section { padding: 48px 0 60px; }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 44px; }
  .hero h1 { font-size: 28px; }
}
