/* ─── Reflex Brand System ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=Space+Grotesk:wght@500;600&display=swap');

:root {
  --yellow: #ffff00;
  --charcoal: #363636;
  --black: #0f0f0f;
  --bg: #141414;
  --bg2: #1a1a1a;
  --bg3: #222222;
  --text: #f0f0f0;
  --muted: #b0b0b0;
  --border: rgba(255,255,255,0.07);
  --card: rgba(255,255,255,0.03);
  --radius: 10px;
  --radius-sm: 6px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

/* ─── Utility ─────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--yellow);
  margin-bottom: 12px; display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600; letter-spacing: -0.5px;
  margin-bottom: 12px; line-height: 1.15;
}
.section-sub {
  font-size: 15px; color: var(--muted);
  max-width: 500px; line-height: 1.75;
  margin-bottom: 48px;
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--yellow); color: var(--charcoal);
}
.btn-primary:hover { background: #e8e803; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 0.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

/* ─── Nav ──────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; max-width: 1100px; margin: 0 auto; padding: 0 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.nav-logo-mark {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark img { width: 32px; height: 32px; object-fit: contain; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px; color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 16px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--text); display: block; transition: all 0.3s; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(253,253,3,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--yellow);
  border: 0.5px solid rgba(253,253,3,0.25);
  padding: 5px 14px; border-radius: 4px; margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); display: block;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -2px; margin-bottom: 24px;
  max-width: 720px;
}
.hero h1 em { color: var(--yellow); font-style: normal; }
.hero-sub {
  font-size: 17px; color: var(--muted); max-width: 480px;
  line-height: 1.75; margin-bottom: 40px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.hero-scroll span { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.hero-scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ─── Stats Bar ─────────────────────────────────────────────────────── */
.stats-bar {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--bg2);
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1100px; margin: 0 auto;
}
.stat {
  padding: 28px 20px; text-align: center;
  border-right: 0.5px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--yellow); line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }

/* ─── Product Tiers ─────────────────────────────────────────────────── */
.tiers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.tier-card {
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
  display: flex; flex-direction: column;
}
.tier-card:hover { border-color: rgba(255,255,255,0.15); }
.tier-card.featured {
  border-color: rgba(253,253,3,0.3);
  background: rgba(253,253,3,0.03);
  position: relative;
}
.tier-featured-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--charcoal);
  font-size: 10px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; padding: 3px 14px;
  border-radius: 0 0 6px 6px;
}
.tier-badge {
  display: inline-block; font-size: 10px; font-weight: 500;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 16px;
}
.tier-badge.solid { background: var(--yellow); color: var(--charcoal); }
.tier-badge.outline { background: rgba(253,253,3,0.08); color: var(--yellow); }
.tier-name {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; margin-bottom: 8px;
}
.tier-hardware {
  font-size: 11px; color: var(--muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.tier-hardware::before {
  content: ''; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cline x1='12' y1='18' x2='12' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block; flex-shrink: 0;
}
.tier-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 24px; }
.tier-features { list-style: none; margin-bottom: 28px; flex: 1; }
.tier-features li {
  font-size: 13px; color: var(--muted);
  padding: 7px 0; border-bottom: 0.5px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before {
  content: '';
  width: 14px; height: 14px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(253,253,3,0.1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23FDFD03' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center/10px no-repeat;
}
.tier-cta { margin-top: auto; }

/* ─── Features Grid ─────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: rgba(253,253,3,0.2); }
.feat-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(253,253,3,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 18px; height: 18px; stroke: var(--yellow); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feat-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 500; margin-bottom: 8px;
}
.feat-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ─── Testimonials ──────────────────────────────────────────────────── */
.testi-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.testi-card {
  background: var(--card); border: 0.5px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.testi-quote-mark {
  font-family: Georgia, serif;
  font-size: 72px; color: var(--yellow);
  line-height: 0.75; margin-bottom: 16px; opacity: 0.55;
}
.testi-quote {
  font-size: 15px; line-height: 1.8; margin-bottom: 20px;
  color: rgba(240,240,240,0.95);
}
.testi-divider {
  width: 32px; height: 1px; background: rgba(253,253,3,0.3);
  margin-bottom: 14px;
}
.testi-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.testi-role { font-size: 11px; color: var(--muted); }

/* ─── Logo Strip ─────────────────────────────────────────────────────── */
.logo-strip {
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  background: var(--bg2); padding: 36px 0; text-align: center;
  overflow: hidden;
}
.logo-strip-label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.logos {
  display: flex; gap: 64px; align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding: 8px 0;
}
.logos:hover { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.logo-img {
  height: 80px; width: auto; object-fit: contain; flex-shrink: 0; scroll-snap-align: start;
  opacity: 0.5; filter: grayscale(100%) brightness(2);
  transition: opacity 0.2s;
}
.logo-img:hover { opacity: 0.8; }
.logo-pill {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.3);
  border: 0.5px solid rgba(255,255,255,0.08);
  padding: 7px 16px; border-radius: 5px;
  letter-spacing: 0.3px;
}

/* ─── CTA Section ────────────────────────────────────────────────────── */
.cta-section {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: 64px 48px;
  text-align: center;
  margin: 0 28px;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600; color: var(--charcoal);
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.cta-section p {
  font-size: 15px; color: rgba(54,54,54,0.65);
  margin-bottom: 32px;
}
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-dark {
  background: var(--charcoal); color: var(--yellow);
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; display: inline-flex;
  align-items: center; gap: 8px; transition: all 0.2s;
}
.btn-dark:hover { background: #222; transform: translateY(-1px); }
.btn-dark-outline {
  background: transparent; color: var(--charcoal);
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; display: inline-flex;
  align-items: center; gap: 8px;
  border: 1.5px solid rgba(54,54,54,0.25); transition: all 0.2s;
}
.btn-dark-outline:hover { border-color: rgba(54,54,54,0.5); }

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  border-top: 0.5px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
  max-width: 1100px; margin: 0 auto; padding: 0 28px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
}
.footer-logo-mark {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark img { width: 24px; height: 24px; object-fit: contain; }
.footer-links {
  display: flex; gap: 24px; list-style: none; flex-wrap: wrap;
}
.footer-links a { font-size: 12px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 11px; color: var(--muted); }

/* ─── Animations ─────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 60px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 0.5px solid var(--border);
    padding: 8px 0;
  }
  .nav-links.open li { border-bottom: 0.5px solid var(--border); }
  .nav-links.open a { display: block; padding: 14px 28px; }
  .nav-cta { display: none; }
  .tiers-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 0.5px solid var(--border); }
  .stat:nth-child(odd) { border-right: 0.5px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .cta-section { margin: 0 16px; padding: 40px 24px; }
  .hero-scroll { display: none; }
}

/* ─── Blog Post ─────────────────────────────────────────────────────── */
.post-hero { padding: 140px 0 60px; }
.post-wrap { max-width: 760px; margin: 0 auto; padding: 0 28px 80px; }
.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  margin-bottom: 40px; padding-bottom: 24px;
  border-bottom: 0.5px solid var(--border);
}
.post-meta-tag {
  background: rgba(255,255,0,0.08); color: var(--yellow);
  font-size: 10px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 4px;
}
.post-body h2 {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  margin: 40px 0 12px; letter-spacing: -0.3px;
}
.post-body h3 {
  font-family: var(--font-display); font-size: 16px; font-weight: 500;
  margin: 28px 0 10px; color: var(--text);
}
.post-body p { font-size: 15px; color: rgba(240,240,240,0.8); line-height: 1.85; margin-bottom: 20px; }
.post-body a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { margin: 0 0 20px 20px; }
.post-body li { font-size: 15px; color: rgba(240,240,240,0.8); line-height: 1.85; margin-bottom: 8px; }
.post-body strong { color: var(--text); font-weight: 500; }
.post-body em { font-style: italic; }
.post-callout {
  background: rgba(255,255,0,0.04); border: 0.5px solid rgba(255,255,0,0.15);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px; margin: 28px 0; font-size: 14px;
  color: rgba(240,240,240,0.75); line-height: 1.75;
}
.post-stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 28px 0; }
.post-stat { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.post-stat-num { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--yellow); margin-bottom: 4px; }
.post-stat-label { font-size: 11px; color: var(--muted); }
.post-refs { margin-top: 48px; padding-top: 24px; border-top: 0.5px solid var(--border); }
.post-refs h3 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.post-refs ol { margin-left: 20px; }
.post-refs li { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }
.post-author { margin-top: 40px; padding: 24px; background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius); }
.post-author-label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.post-author-name { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.post-author-title { font-size: 12px; color: var(--muted); }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 48px; padding-top: 24px; border-top: 0.5px solid var(--border);
}
.post-nav a { background: var(--card); border: 0.5px solid var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: 12px; color: var(--muted); transition: border-color 0.2s; }
.post-nav a:hover { border-color: rgba(255,255,0,0.3); color: var(--text); }
.post-nav-label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.post-nav-title { font-size: 13px; color: var(--text); font-weight: 500; }
@media (max-width: 768px) { .post-stat-grid { grid-template-columns: 1fr; } .post-nav { grid-template-columns: 1fr; } }


/* ─── HubSpot Form Overrides ─────────────────────────────────────── */
.hs-form label,
.hs-form .hs-field-desc,
.hs-form legend,
.hbspt-form label,
.hbspt-form .hs-field-desc {
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}
.hs-form .hs-input,
.hbspt-form .hs-input,
.hs-form select,
.hbspt-form select,
.hs-form textarea,
.hbspt-form textarea {
  background: var(--bg3) !important;
  border: 0.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text) !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
}
.hs-form .hs-input:focus,
.hbspt-form .hs-input:focus {
  border-color: rgba(255,255,0,0.4) !important;
  outline: none !important;
}
.hs-form .hs-error-msgs label,
.hbspt-form .hs-error-msgs label {
  color: #ff6b6b !important;
}
.hs-form .hs-button,
.hbspt-form .hs-button {
  background: var(--yellow) !important;
  color: var(--charcoal) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 28px !important;
  cursor: pointer !important;
}
