/* =============================================================
   Swarm Capital — custom.css
   Bold Typographic Dark  (Benchmark / USV style)
   Accent: Electric Teal #00d4aa  |  Background: #07101e
   ============================================================= */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:             #07101e;
  --bg2:            #0b1929;
  --bg3:            #091520;
  --teal:           #00d4aa;
  --white:          #ffffff;
  --text:           #d0dff0;
  --muted:          #7a9ab8;
  --border:         rgba(0, 212, 170, 0.15);
  --border-subtle:  rgba(255, 255, 255, 0.07);
}

/* ── Box-sizing reset ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Global base ────────────────────────────────────────────── */
body, html {
  background-color: #07101e !important;
  color: #d0dff0 !important;
}

#page-wrapper {
  background: #07101e !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p { color: #d0dff0; }
a { color: #00d4aa; }
a:hover { color: #ffffff; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3em;
}

/* ── Navigation (fixed, logo-first) ────────────────────────── */
nav#nav, #nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 0 3em !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 4.5em !important;
  z-index: 99999 !important;
  background-color: #07101e !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-sizing: border-box !important;
}

div#logo, nav#nav div#logo, #nav #logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  order: 1 !important;
  width: auto !important;
  position: static !important;
}

nav#nav div#logo img, #nav #logo img {
  height: 36px !important;
  width: auto !important;
  display: block !important;
}

nav#nav > ul, #nav > ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  order: 2 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

nav#nav > ul > li, #nav > ul > li {
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  float: none !important;
}

nav#nav > ul > li > a, #nav > ul > li > a {
  display: flex !important;
  align-items: center !important;
  height: 4.5em !important;
  padding: 0 1.2em !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-size: 0.72em !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  transition: color 0.2s !important;
}

nav#nav > ul > li > a:hover,
nav#nav > ul > li.current > a,
#nav > ul > li > a:hover,
#nav > ul > li.current > a {
  color: #00d4aa !important;
  background: transparent !important;
}

#page-wrapper {
  padding-top: 4.5em !important;
}

#nav #logo h1 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1em !important;
  line-height: 1 !important;
}

@media screen and (max-width: 640px) {
  nav#nav > ul, #nav > ul { display: none !important; }
}

/* ── Section wrappers ───────────────────────────────────────── */
.wrapper { background: transparent !important; }
.wrapper.style1 { background: #07101e !important; }
.wrapper.style2 { background: #0b1929 !important; }
.wrapper.style3 { background: #091520 !important; }

.title {
  color: #00d4aa !important;
  font-size: 0.72em !important;
  letter-spacing: 0.25em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.title::before, .title::after {
  background: rgba(0, 212, 170, 0.2) !important;
}

/* ── Section teal divider ───────────────────────────────────── */
.teal-divider {
  height: 1px;
  background: rgba(0, 212, 170, 0.2);
  margin: 0;
}

/* ── Hero (#intro) ──────────────────────────────────────────── */
#intro {
  background: #07101e !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  padding: 6em 0 !important;
  position: relative !important;
  border-bottom: 1px solid var(--border) !important;
}

.hero-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3em;
  width: 100%;
}

.hero-eyebrow {
  display: block;
  font-size: 0.72em;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #00d4aa;
  font-weight: 700;
  margin-bottom: 1.5em;
}

.hero-headline {
  font-size: 5.5em;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0 0 1em;
  max-width: 14ch;
}

.hero-sub {
  font-size: 1.1em;
  color: #7a9ab8;
  max-width: 520px;
  line-height: 1.75;
  margin: 0 0 3em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 3em;
  margin-top: 3.5em;
  padding-top: 3em;
  border-top: 1px solid rgba(0, 212, 170, 0.2);
  width: fit-content;
}

.hero-stat-num {
  display: block;
  font-size: 2.8em;
  font-weight: 800;
  color: #00d4aa;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-stat-label {
  display: block;
  font-size: 0.72em;
  color: #7a9ab8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 0.4em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-teal {
  display: inline-block;
  background: #00d4aa;
  color: #07101e !important;
  padding: 0.85em 2.4em;
  font-size: 0.82em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #00d4aa;
  transition: all 0.25s;
}

.btn-teal:hover {
  background: transparent;
  color: #00d4aa !important;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #00d4aa !important;
  padding: 0.82em 2.2em;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(0, 212, 170, 0.5);
  transition: all 0.25s;
}

.btn-outline:hover {
  border-color: #00d4aa;
  color: #ffffff !important;
}

/* Override main.css buttons */
a.button.style1, a.button.style2, a.button.style3,
.button.style1, .button.style2, .button.style3 {
  background: #00d4aa !important;
  color: #07101e !important;
  border-color: #00d4aa !important;
  border-radius: 0 !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
}

a.button.style1:hover, a.button.style2:hover, a.button.style3:hover,
.button.style1:hover, .button.style2:hover, .button.style3:hover {
  background: transparent !important;
  color: #00d4aa !important;
}

/* ── Thesis / About section ─────────────────────────────────── */
.thesis-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  padding: 7em 0;
}

.thesis-quote {
  font-size: 2em;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  border-left: 3px solid #00d4aa;
  padding-left: 1.2em;
}

.thesis-body {
  color: #7a9ab8;
  font-size: 0.95em;
  line-height: 1.8;
}

.thesis-body h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.5em;
  margin-top: 1.5em;
}

.thesis-body p {
  color: #7a9ab8;
  margin-bottom: 1em;
}

/* ── Portfolio section ──────────────────────────────────────── */
#portfolio-sect {
  background: #0b1929;
  padding: 7em 0;
  border-top: 1px solid rgba(0, 212, 170, 0.15);
  border-bottom: 1px solid rgba(0, 212, 170, 0.15);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-top: 3em;
}

.portfolio-card {
  background: #07101e !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: 3px solid #00d4aa !important;
  padding: 1.8em !important;
  transition: border-color 0.25s, transform 0.2s !important;
}

.portfolio-card:hover {
  border-color: rgba(0, 212, 170, 0.4) !important;
  border-left-color: #00d4aa !important;
  transform: translateY(-3px) !important;
}

.portfolio-card .tag {
  display: inline-block;
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3em 0.8em;
  margin-bottom: 0.8em;
}

.portfolio-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}

.portfolio-card p {
  font-size: 0.87em;
  color: #7a9ab8 !important;
  line-height: 1.65;
  margin: 0 0 1em;
}

.portfolio-card .round-badge {
  display: inline-block;
  background: rgba(0, 212, 170, 0.08);
  color: #00d4aa;
  font-size: 0.73em;
  padding: 0.25em 0.7em;
  border: 1px solid rgba(0, 212, 170, 0.2);
  margin-top: 0.5em;
}

/* ── Blog cards ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5em;
  margin-top: 3em;
}

.blog-card {
  background: #07101e !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: 3px solid #00d4aa !important;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s !important;
}

.blog-card:hover {
  border-left-color: #00d4aa !important;
  transform: translateY(-3px) !important;
}

.blog-card .card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) saturate(0.7);
}

.blog-card .card-body { padding: 1.5em; }

.blog-card .category {
  display: inline-block;
  color: #00d4aa;
  font-size: 0.7em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6em;
}

.blog-card h3 {
  font-size: 0.95em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.blog-card h3 a { color: #ffffff !important; text-decoration: none; }
.blog-card h3 a:hover { color: #00d4aa !important; }

.blog-card .meta {
  font-size: 0.75em;
  color: #7a9ab8;
  margin-bottom: 0.6em;
}

.blog-card .excerpt {
  font-size: 0.84em;
  color: #7a9ab8 !important;
  line-height: 1.6;
  margin-bottom: 1em;
}

.blog-card .read-more {
  font-size: 0.78em;
  color: #00d4aa;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.blog-card .read-more:hover { color: #ffffff; }

/* ── CTA block ──────────────────────────────────────────────── */
.cta-block {
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.25);
  border-left: 4px solid #00d4aa;
  padding: 4em;
  text-align: center;
  margin: 0;
}

.cta-block h2 {
  font-size: 2.5em;
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.cta-block p {
  color: #7a9ab8;
  font-size: 1em;
  max-width: 500px;
  margin: 0 auto 2em;
  line-height: 1.7;
}

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
  background: #040d19 !important;
  border-top: 1px solid rgba(0, 212, 170, 0.12) !important;
  padding: 3em 0 2em !important;
}

#footer .title {
  color: #7a9ab8 !important;
  font-size: 0.72em !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-weight: 600 !important;
}

#footer a { color: #7a9ab8 !important; text-decoration: none !important; }
#footer a:hover { color: #00d4aa !important; }

.copyright {
  font-size: 0.8em;
  color: rgba(122, 154, 184, 0.45) !important;
  text-align: center;
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid rgba(0, 212, 170, 0.07);
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-block {
  background: rgba(0, 212, 170, 0.04) !important;
  border-left: 3px solid #00d4aa !important;
  border-radius: 0 !important;
  padding: 1.8em 2em !important;
  margin: 1.5em 0 !important;
}

.testimonial-block blockquote {
  color: #d0dff0 !important;
  font-style: italic;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 1em !important;
}

.testimonial-block cite {
  color: #00d4aa !important;
  font-size: 0.85em;
  font-weight: 600;
}

/* ── Page hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, #07101e 0%, #0b1e3a 55%, #071828 100%) !important;
  padding: 5em 0 4em !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(0, 212, 170, 0.12) !important;
}

.page-hero h1 {
  font-size: 3em !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin-bottom: 0.4em !important;
  letter-spacing: -0.02em !important;
}

.page-hero p {
  color: #7a9ab8 !important;
  font-size: 1.1em !important;
  max-width: 560px !important;
  margin: 0 auto !important;
  line-height: 1.7 !important;
}

/* ── Section inner ──────────────────────────────────────────── */
.section-inner { padding: 5em 0 !important; }

.section-title {
  text-align: center;
  margin-bottom: 0.5em;
  font-size: 2.5em;
  color: #ffffff !important;
}

.section-subtitle {
  text-align: center;
  color: #7a9ab8 !important;
  font-size: 1em;
  max-width: 600px;
  margin: 0 auto 2.5em;
  line-height: 1.7;
}

/* ── Feature / thesis cards (inner pages) ───────────────────── */
.feature-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5em !important;
  margin-top: 2.5em !important;
  align-items: stretch !important;
}

.feature-card {
  background: rgba(11, 25, 41, 0.9) !important;
  border: 1px solid rgba(0, 212, 170, 0.12) !important;
  border-left: 3px solid #00d4aa !important;
  border-radius: 0 !important;
  padding: 2em !important;
  transition: border-color 0.25s, transform 0.25s !important;
  display: flex !important;
  flex-direction: column !important;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3) !important;
  border-left-color: #00d4aa !important;
  transform: translateY(-3px) !important;
}

.feature-icon {
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 212, 170, 0.1) !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1.2em !important;
}

.feature-icon i { color: #00d4aa !important; font-size: 1.3em !important; }

.feature-card h3 {
  font-size: 1.05em !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin-bottom: 0.5em !important;
}

.feature-card p {
  font-size: 0.88em !important;
  color: #7a9ab8 !important;
  line-height: 1.7 !important;
}

/* ── Team cards ─────────────────────────────────────────────── */
.team-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2em !important;
  margin-top: 2.5em !important;
}

.team-card {
  background: rgba(11, 25, 41, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-top: 2px solid #00d4aa !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  text-align: center !important;
}

.team-card .avatar {
  width: 100% !important;
  aspect-ratio: 1 !important;
  object-fit: cover !important;
  object-position: top !important;
  filter: grayscale(20%) !important;
}

.team-card .card-body { padding: 1.5em !important; }

.team-card h3 {
  font-size: 1em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-bottom: 0.25em !important;
}

.team-card .role {
  font-size: 0.78em !important;
  color: #00d4aa !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.team-card .bio {
  font-size: 0.84em !important;
  color: #7a9ab8 !important;
  line-height: 1.65 !important;
  margin-top: 0.8em !important;
}

/* ── Article pages ──────────────────────────────────────────── */
.article-header {
  background: linear-gradient(160deg, #07101e 0%, #0b1e3a 60%, #071828 100%) !important;
  padding: 5em 0 3em !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(0, 212, 170, 0.12) !important;
}

.article-header h1 {
  color: #ffffff !important;
  font-size: 2.2em !important;
  font-weight: 800 !important;
  max-width: 800px !important;
  margin: 0 auto 0.5em !important;
  letter-spacing: -0.02em !important;
}

.article-meta {
  color: #00d4aa !important;
  font-size: 0.78em !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

.article-body {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 3em 2em !important;
}

.article-body h2 {
  font-size: 1.5em !important;
  margin: 2em 0 0.7em !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 212, 170, 0.2) !important;
  padding-bottom: 0.4em !important;
}

.article-body h3 { font-size: 1.2em !important; color: #00d4aa !important; }

.article-body p {
  color: #c0d4e8 !important;
  line-height: 1.85 !important;
  margin-bottom: 1.4em !important;
}

.article-body ul, .article-body ol {
  color: #c0d4e8 !important;
  line-height: 1.8 !important;
  padding-left: 1.8em !important;
  margin-bottom: 1.4em !important;
}

.article-nav {
  display: flex !important;
  justify-content: space-between !important;
  padding: 2em 0 !important;
  border-top: 1px solid rgba(0, 212, 170, 0.15) !important;
}

.article-nav a {
  color: #00d4aa !important;
  font-size: 0.85em !important;
  font-weight: 600 !important;
}

/* ── Legal pages ────────────────────────────────────────────── */
.legal-content {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 3em 2em !important;
}

.legal-content h2 {
  font-size: 1.4em !important;
  color: #00d4aa !important;
  border-bottom: 1px solid rgba(0, 212, 170, 0.2) !important;
  padding-bottom: 0.4em !important;
  margin: 2.5em 0 0.6em !important;
}

.legal-content h3 { color: #ffffff !important; }

.legal-content p, .legal-content li {
  color: #b0c8de !important;
  line-height: 1.85 !important;
}

.legal-content table th {
  background: rgba(0, 212, 170, 0.1) !important;
  color: #00d4aa !important;
  border: 1px solid rgba(0, 212, 170, 0.2) !important;
}

.legal-content table td {
  border: 1px solid rgba(0, 212, 170, 0.1) !important;
  color: #b0c8de !important;
  padding: 0.7em 1em !important;
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  border: 1px solid rgba(0, 212, 170, 0.2) !important;
  overflow: hidden !important;
  margin: 3em auto !important;
  max-width: 900px !important;
}

.stat-item {
  background: rgba(7, 16, 30, 0.9) !important;
  padding: 2em 1.5em !important;
  text-align: center !important;
  border-right: 1px solid rgba(0, 212, 170, 0.12) !important;
}

.stat-item:last-child { border-right: none !important; }

.stat-value {
  font-size: 2.4em !important;
  font-weight: 800 !important;
  color: #00d4aa !important;
  display: block !important;
  line-height: 1.1 !important;
}

.stat-label {
  font-size: 0.78em !important;
  color: #7a9ab8 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-top: 0.4em !important;
  display: block !important;
}

/* ── Contact form ───────────────────────────────────────────── */
.contact-form {
  background: rgba(11, 25, 41, 0.8) !important;
  border: 1px solid rgba(0, 212, 170, 0.15) !important;
  border-top: 2px solid #00d4aa !important;
  padding: 2.5em !important;
}

.contact-form label {
  color: #7a9ab8 !important;
  font-size: 0.82em !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  display: block !important;
  margin-bottom: 0.4em !important;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  background: rgba(4, 13, 25, 0.9) !important;
  border: 1px solid rgba(0, 212, 170, 0.15) !important;
  color: #ffffff !important;
  padding: 0.75em 1em !important;
  width: 100% !important;
  margin-bottom: 1.2em !important;
  font-size: 0.9em !important;
  border-radius: 0 !important;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00d4aa !important;
  outline: none !important;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-headline { font-size: 3.5em !important; }
  .hero-stats { grid-template-columns: repeat(3, auto) !important; gap: 2em !important; }
  .thesis-wrap { grid-template-columns: 1fr !important; gap: 2.5em !important; }
  .feature-grid, .portfolio-grid, .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .team-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 640px) {
  .hero-headline { font-size: 2.5em !important; }
  .hero-stats { grid-template-columns: 1fr !important; gap: 1.5em !important; }
  .feature-grid, .portfolio-grid, .blog-grid, .team-grid { grid-template-columns: 1fr !important; }
  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }
  .container { padding: 0 1.5em !important; }
  .cta-block { padding: 2.5em 1.5em !important; }
}
