/* TechPulse — www.techpulse.dev */

:root {
  --bg: #0c0f14;
  --bg-alt: #131820;
  --surface: #1a1f2a;
  --text: #e6e9ef;
  --text-muted: #8b92a3;
  --accent: #213977;
  --accent-hover: #2d4a8f;
  --border: #2a3140;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --wrap: min(90vw, 1100px);
  --space: 1.5rem;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 15, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 32px;
  width: auto;
  /* White logo on transparent: invert dark→light, brighten to white, screen blend so former white shows header */
  filter: invert(1) brightness(2);
  mix-blend-mode: screen;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.cta-link {
  color: var(--accent);
}

.cta-link {
  padding: 0.4rem 0.8rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius);
}

.cta-link:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width:  min(85vw, 320px);
    flex-direction: column;
    align-items: stretch;
    padding: 4rem 1.5rem 1.5rem;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  padding: 5rem 0 6rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
  color: var(--text);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 70ch;
}

.stat-list {
  margin: 0 0 2rem;
  padding-left: 1.5rem;
}

.stat-list li {
  margin-bottom: 0.5rem;
}

.pullquote {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.pullquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.three-cols {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.techpulse {
  color: var(--accent);
}

.results {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.results h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.results ul {
  margin: 0;
  padding-left: 1.25rem;
}

.results li {
  margin-bottom: 0.35rem;
}

/* How it works */
.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.steps li {
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.steps h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Connector */
.connector-block {
  margin-top: 2rem;
}

.connector-content {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.connector-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.connector-content p {
  margin: 0 0 1rem;
}

.connector-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.connector-content li {
  margin-bottom: 0.5rem;
}

/* Pricing */
.pricing-badge {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: stretch;
}

.pricing-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-tier-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(33, 57, 119, 0.3);
}

.tier-badge {
  position: absolute;
  top: -0.6rem;
  left: 1rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}

.pricing-tier h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.tier-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.tier-price {
  margin: 0 0 0.5rem;
}

.tier-user-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.4;
}

.price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier-features {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tier-features li {
  margin-bottom: 0.5rem;
}

.pricing-tier .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
}

.pricing-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Data moat (legacy - kept for any reuse) */
.data-moat {
  margin-top: 2rem;
}

.moat-content ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.moat-content li {
  margin-bottom: 0.35rem;
}

.flywheel {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.flywheel h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.stat-box {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

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

.bullets {
  margin: 0;
  padding-left: 1.5rem;
}

.bullets li {
  margin-bottom: 0.5rem;
}

/* Market pyramid */
.market-pyramid {
  margin: 2rem 0;
}

.pyramid-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  background: var(--surface);
}

.pyramid-row.tam { border-left: 4px solid var(--accent); }
.pyramid-row.sam { border-left: 4px solid #94a3b8; }
.pyramid-row.som { border-left: 4px solid #64748b; }

.amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  min-width: 5rem;
}

.label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comp-table th,
.comp-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comp-table th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-muted);
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table tr.highlight {
  background: rgba(245, 158, 11, 0.12);
}

.comp-table tr.highlight td {
  border-top: 2px solid var(--accent);
}

/* Testimonials */
.testimonial-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.testimonial {
  margin: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.testimonial p {
  margin: 0 0 0.75rem;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonial-extra {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--text-muted);
}

.testimonial-extra cite {
  font-style: normal;
}

/* Business model */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.model-item {
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.model-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
}

.model-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.team-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.team-card .role {
  font-size: 0.9rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.team-card ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.team-card li {
  margin-bottom: 0.35rem;
}

/* Traction */
.traction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.traction-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.traction-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

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

#traction ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

#traction li {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact-section {
  text-align: center;
}

.contact-section .lead {
  color: var(--text-muted);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}

.contact-photo {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--border);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-card .contact-name,
.contact-card p {
  margin: 0 0 0.35rem;
  padding: 0 1.25rem;
  color: #fff;
}

.contact-card .contact-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: 1rem;
  margin-bottom: 0.5rem;
}

.contact-card p:last-of-type {
  padding-bottom: 1.25rem;
}

.contact-card a {
  color: #fff;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-label {
  font-size: 0.9em;
  opacity: 0.9;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}
