/* =============================================================
   Rypplzz Design System — styles.css
   Enterprise Infrastructure · Navy-anchored · Electric blue accents
   Matches the React/Tailwind design system exactly.
   Fonts: Inter (sans) + IBM Plex Mono (mono) via Google Fonts
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── CSS Variables ────────────────────────────────────────────── */
:root {
  /* Core surfaces */
  --background:            hsl(220, 20%, 97%);
  --foreground:            hsl(220, 40%, 8%);
  --card:                  hsl(0, 0%, 100%);
  --card-foreground:       hsl(220, 40%, 8%);

  /* Brand — deep navy */
  --primary:               hsl(220, 62%, 12%);
  --primary-foreground:    hsl(210, 40%, 98%);

  /* Secondary */
  --secondary:             hsl(220, 30%, 92%);
  --secondary-foreground:  hsl(220, 62%, 12%);

  /* Muted */
  --muted:                 hsl(220, 20%, 94%);
  --muted-foreground:      hsl(220, 15%, 46%);

  /* Accent */
  --accent:                hsl(210, 100%, 52%);
  --accent-foreground:     hsl(0, 0%, 100%);

  /* Borders / inputs */
  --border:                hsl(220, 20%, 88%);
  --input:                 hsl(220, 20%, 88%);
  --ring:                  hsl(210, 100%, 52%);

  --radius:                0.375rem;

  /* Extended palette */
  --navy-deep:             hsl(220, 62%, 8%);
  --navy-mid:              hsl(220, 55%, 14%);
  --navy-surface:          hsl(220, 45%, 18%);
  --navy-border:           hsl(220, 35%, 26%);

  --blue-electric:         hsl(210, 100%, 52%);
  --blue-glow:             hsl(200, 100%, 60%);
  --blue-muted:            hsl(210, 60%, 70%);

  --slate-100:             hsl(220, 25%, 96%);
  --slate-200:             hsl(220, 20%, 90%);
  --slate-500:             hsl(220, 15%, 55%);
  --slate-700:             hsl(220, 25%, 30%);

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Gradients */
  --gradient-hero:          linear-gradient(160deg, hsl(220,62%,8%) 0%, hsl(220,55%,14%) 60%, hsl(220,55%,20%) 100%);
  --gradient-section-dark:  linear-gradient(180deg, hsl(220,62%,8%) 0%, hsl(220,55%,14%) 100%);
  --gradient-accent-line:   linear-gradient(90deg, hsl(210,100%,52%), hsl(200,100%,60%));
  --gradient-card-hover:    linear-gradient(135deg, hsl(0,0%,100%) 0%, hsl(210,100%,52%,0.04) 100%);

  /* Shadows */
  --shadow-card:       0 1px 3px hsl(220,40%,8%,0.08), 0 4px 16px hsl(220,40%,8%,0.06);
  --shadow-card-hover: 0 4px 20px hsl(210,100%,52%,0.12), 0 1px 4px hsl(220,40%,8%,0.08);
  --shadow-nav:        0 1px 0 hsl(220,20%,88%), 0 4px 12px hsl(220,40%,8%,0.04);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout helpers ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* ── Navigation ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 64px;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 24px; width: auto; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(220, 25%, 65%);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--blue-electric); }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-foreground);
  padding: 0.5rem;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-border);
}

.nav-mobile-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary-foreground);
}
.nav-mobile-menu a.active { color: var(--blue-electric); }
.nav-mobile-menu.open { display: flex; }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-border);
  color: var(--primary-foreground);
}

.footer-inner {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(220, 25%, 55%);
  margin-top: 0.75rem;
}

.footer-contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-electric);
  margin-bottom: 0.75rem;
}

.footer-contact a {
  color: var(--blue-electric);
  font-size: 0.875rem;
  transition: opacity 0.2s;
}
.footer-contact a:hover { opacity: 0.8; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(220, 25%, 40%);
}

/* ── Utility Components ───────────────────────────────────────── */

/* Accent line */
.accent-line {
  display: inline-block;
  height: 2px;
  width: 2rem;
  background: var(--gradient-accent-line);
  flex-shrink: 0;
}

/* Mono label */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-electric);
  display: block;
}

/* Grid card */
.grid-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.grid-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(210, 100%, 52%, 0.3);
}

/* Credential / checklist item */
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.cred-item:last-child { border-bottom: none; }
.cred-item .check-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-electric);
}
.cred-item span {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--foreground);
}

/* Blue button */
.btn-electric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--blue-electric);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-electric:hover { opacity: 0.9; }

/* Icon badge */
.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: hsl(210, 100%, 52%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-muted);
  transition: color 0.2s;
}
.back-link:hover { color: var(--blue-electric); }

/* ── Section backgrounds ──────────────────────────────────────── */
.section-hero     { background: var(--gradient-hero); }
.section-card     { background: var(--card); }
.section-alt      { background: var(--slate-100); }
.section-dark     { background: var(--navy-deep); }

/* ── Hero section ─────────────────────────────────────────────── */
.hero {
  padding: 8rem 1.5rem 6rem;
  background: var(--gradient-hero);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-foreground);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.125rem;
  line-height: 1.6;
  color: hsl(220, 30%, 72%);
  max-width: 42rem;
  margin-bottom: 1.25rem;
}
.hero-sub-sm {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(220, 25%, 58%);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.hero-quote {
  border-left: 2px solid var(--blue-electric);
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.hero-quote p {
  font-weight: 600;
  color: var(--primary-foreground);
}
.hero-tagline {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(220, 25%, 62%);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* ── Prose section ────────────────────────────────────────────── */
.section-prose {
  padding: 5rem 1.5rem;
}
.section-header { margin-bottom: 2.5rem; }
.section-header h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}
.section-header h2.light { color: var(--primary-foreground); }
.section-header .sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate-500);
}
.section-header h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

/* ── Era progression panel ────────────────────────────────────── */
.era-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-deep);
  border: 1px solid var(--navy-border);
  margin-bottom: 2.5rem;
}
.era-panel-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(hsl(210,100%,52%) 1px, transparent 1px),
    linear-gradient(90deg, hsl(210,100%,52%) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.era-panel-glow {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 80% 50%, hsl(210,100%,52%,0.12) 0%, transparent 70%);
}
.era-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 3.5rem 1.5rem;
}
.era-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.era-icon-box {
  width: 176px;
  height: 176px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  background: hsl(220, 35%, 10%);
  border: 1px solid hsl(220, 25%, 26%);
  box-shadow: inset 0 1px 0 hsl(220, 25%, 32%, 0.4);
}
.era-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(220, 25%, 50%);
  margin-bottom: 0.375rem;
}
.era-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-foreground);
  margin-bottom: 0.25rem;
}
.era-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: hsl(220, 25%, 55%);
  max-width: 130px;
}
.era-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
}
.era-arrow svg { transform: rotate(90deg); }
.era-footer {
  position: relative;
  text-align: center;
  padding-bottom: 1.25rem;
  color: var(--blue-electric);
}
.era-footer span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ── Callout box ──────────────────────────────────────────────── */
.callout-box {
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 2rem;
  text-align: center;
  background: hsl(210, 100%, 52%, 0.06);
  border: 1px solid hsl(210, 100%, 52%, 0.2);
}
.callout-box p {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--foreground);
}
.callout-box strong { color: var(--blue-electric); }

/* ── Industry grid ────────────────────────────────────────────── */
.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.industry-card { padding: 1.5rem; }
.industry-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.industry-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: hsl(210, 100%, 52%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.industry-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-electric);
}
.industry-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--foreground);
}
.industry-card-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 2px;
  color: var(--blue-electric);
}
.industry-card-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-700);
  margin-bottom: 1rem;
}
.industry-use-cases {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.industry-use-case {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}
.industry-use-case .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-electric);
  flex-shrink: 0;
  margin-top: 7px;
}
.industry-use-case span {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--slate-500);
}

/* ── Feature strip ────────────────────────────────────────────── */
.feature-strip {
  padding: 3rem 1.5rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.feature-strip-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.feature-pill span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

/* ── Team cards ───────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.team-card { padding: 1.25rem; }
.team-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: hsl(210, 100%, 52%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.team-card-icon svg { width: 17px; height: 17px; stroke: var(--blue-electric); }
.team-card-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
  margin-bottom: 0.375rem;
}
.team-card-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--slate-500);
}

/* ── CTA dark section ─────────────────────────────────────────── */
.cta-dark {
  padding: 5rem 1.5rem;
  background: var(--navy-deep);
  text-align: center;
}
.cta-dark h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-foreground);
  margin-bottom: 0.75rem;
}
.cta-dark .cta-accent {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-electric);
  margin-bottom: 2rem;
}
.cta-dark .cta-sub {
  font-size: 0.875rem;
  color: hsl(220, 25%, 62%);
}

/* ── Mission section ──────────────────────────────────────────── */
.mission-statement {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
  color: var(--blue-electric);
}

/* ── Contact info ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.contact-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: hsl(210, 100%, 52%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item-icon svg { width: 15px; height: 15px; stroke: var(--blue-electric); }
.contact-item-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  margin-bottom: 2px;
}
.contact-item-value { font-size: 0.875rem; color: var(--foreground); }
.contact-cta h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}
.contact-cta p {
  font-size: 0.875rem;
  color: var(--slate-500);
  margin-bottom: 1.25rem;
}

/* ── Infra prose ──────────────────────────────────────────────── */
.infra-note {
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--slate-700);
}

/* ── Video ────────────────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-mobile-toggle { display: none; }

  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .era-row { flex-direction: row; }
  .era-arrow svg { transform: rotate(0deg); }
  .era-arrow { padding: 0 0.5rem; }

  .industry-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-strip-inner { flex-direction: row; justify-content: space-between; }
  .contact-grid { grid-template-columns: 1fr 2fr; }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}
