/* ============================================
   StackBridge — Custom Landing Page Styles
   ============================================ */

:root {
  --bg: #0F1629;
  --bg-2: #151D33;
  --bg-3: #1A2540;
  --fg: #FFFFFF;
  --fg-muted: #8A9BBF;
  --accent: #00D4AA;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --text-secondary: #B8C4D9;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --nav-bg: rgba(15, 22, 41, 0.92);
  --card-bg: rgba(21, 29, 51, 0.7);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.logo-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--accent);
  color: var(--bg);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.825rem !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.82 !important; }

/* ---- Hero ---- */
.hero {
  padding: 10rem 2rem 7rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 2rem;
}
.eyebrow-tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: 820px;
  margin-bottom: 2rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.65;
  margin-bottom: 3.5rem;
}
.hero-credentials {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  max-width: 720px;
}
.cred-item {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 140px;
}
.cred-divider {
  width: 1px;
  background: var(--border-strong);
  align-self: stretch;
}
.cred-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cred-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  line-height: 1.3;
}

/* ---- Problem ---- */
.problem {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.problem-label, .services-label, .diff-label, .casework-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 680px;
  margin-bottom: 3rem;
  color: var(--fg);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg-2);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.problem-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.problem-card p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Services ---- */
.services {
  padding: 6rem 2rem;
  background: var(--bg-2);
}
.services-inner { max-width: 1200px; margin: 0 auto; }
.services-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 3rem;
  max-width: 480px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.service-card {
  background: var(--bg);
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-header {
  margin-bottom: 1.25rem;
}
.service-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.25;
}
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.service-note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ---- Differentiators ---- */
.differentiators {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}
.diff-inner { max-width: 1200px; margin: 0 auto; }
.diff-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 3.5rem;
  max-width: 640px;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.diff-item {
  background: var(--bg-2);
  padding: 2.75rem;
}
.diff-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0, 212, 170, 0.15);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.diff-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
}
.diff-item p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Casework ---- */
.casework {
  padding: 6rem 2rem;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.casework-inner { max-width: 1200px; margin: 0 auto; }
.casework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.case-card {
  background: var(--bg);
  padding: 2.5rem;
}
.case-stat {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.25rem;
}
.case-sub {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.case-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}
.case-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Closing ---- */
.closing {
  padding: 8rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner { max-width: 900px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.75rem;
}
.closing-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.closing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  letter-spacing: -0.01em;
}
.cta-btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.cta-note {
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--accent);
  color: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-company {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}
.footer-tagline {
  font-size: 0.78rem;
  color: var(--fg-muted);
}
.footer-contact {
  text-align: right;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 2px;
}
.footer-role {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-bottom: 0.875rem;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .problem-grid,
  .services-grid,
  .diff-grid { grid-template-columns: 1fr; }
  .casework-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 8rem; }
  .hero-credentials { flex-direction: column; }
  .cred-divider { width: 100%; height: 1px; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-contact { text-align: left; }
  .footer-links { justify-content: flex-start; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 2.25rem; }
  .hero-credentials { max-width: 100%; }
  .cred-item { padding: 1.25rem 1.5rem; min-width: unset; }
  .service-card, .diff-item, .case-card { padding: 2rem; }
  .problem-card { padding: 1.75rem; }
}