/* ==========================================================================
   DSCG — Design tokens
   ========================================================================== */
:root {
  --color-graphite: #14161a;
  --color-graphite-soft: #1e2126;
  --color-grey: #4a4f58;
  --color-grey-light: #8b909a;
  --color-blue: #2f6fed;
  --color-blue-dark: #1f52b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-border: #e3e5e9;
  --color-text: #1a1c20;
  --color-text-muted: #565b64;
  --color-white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1120px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.06), 0 1px 3px rgba(20, 22, 26, 0.08);
  --shadow-md: 0 4px 12px rgba(20, 22, 26, 0.08), 0 2px 4px rgba(20, 22, 26, 0.06);
  --transition: 160ms ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  color: var(--color-graphite);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p {
  margin: 0 0 1em;
  color: var(--color-text-muted);
}

ul {
  margin: 0 0 1em;
  padding-left: 1.25em;
  color: var(--color-text-muted);
}

li {
  margin-bottom: 0.4em;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 44px 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-graphite);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-graphite);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-light:hover {
  border-color: var(--color-white);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.14em;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark .word {
  color: var(--color-white);
}

.wordmark .cursor {
  display: inline-block;
  width: 0.2em;
  height: 0.72em;
  background: var(--color-blue);
  border-radius: 1px;
  animation: wordmark-blink 1.7s steps(2, jump-none) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wordmark .cursor {
    animation: none;
  }
}

@keyframes wordmark-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.wordmark:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--color-white);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-blue);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: background var(--transition);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: absolute;
}

.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--color-graphite);
  color: var(--color-white);
  padding: 64px 0 56px;
}

.hero .container {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  background: rgba(47, 111, 237, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero .lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-hero {
  background: var(--color-graphite);
  color: var(--color-white);
  padding: 44px 0;
}

.page-hero .eyebrow { margin-bottom: 14px; }

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head {
  max-width: 640px;
  margin: 0 0 32px;
}

.section-head .eyebrow {
  color: var(--color-blue);
  background: rgba(47, 111, 237, 0.08);
}

.section-head h2 {
  margin-bottom: 12px;
}

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

/* ==========================================================================
   Cards — service / product grid
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(47, 111, 237, 0.1);
  color: var(--color-blue);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p:last-child {
  margin-bottom: 0;
}

.card a.card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.credibility {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: start;
}

.credibility-item {
  display: flex;
  gap: 18px;
}

.credibility-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-graphite);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.credibility-item h3 {
  margin-bottom: 8px;
}

.credibility-item p {
  margin-bottom: 0;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--color-graphite);
  color: var(--color-white);
  text-align: center;
  padding: 52px 0;
}

.cta-band h2 {
  color: var(--color-white);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Services page
   ========================================================================== */
.service-block {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block-label .card-index {
  margin-bottom: 16px;
}

.service-block-label h2 {
  margin-bottom: 12px;
}

.service-block-label .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 14px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-detail {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.service-detail h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-graphite);
}

.service-detail p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ==========================================================================
   Products page
   ========================================================================== */
.proof-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.proof-banner p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--color-text);
  max-width: 620px;
}

.proof-banner strong {
  color: var(--color-graphite);
}

.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.product-card:last-of-type {
  border-bottom: none;
}

.product-card.reverse .product-visual {
  order: 2;
}

.product-visual {
  background: var(--color-graphite);
  border-radius: 12px;
  padding: 32px;
  color: var(--color-white);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-visual .product-mark {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.product-visual .product-tagline {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.product-visual.rebound {
  background: linear-gradient(135deg, #14161a 0%, #24303f 100%);
}

.product-visual.zenithbids {
  background: linear-gradient(135deg, #14161a 0%, #1f2f52 100%);
}

.product-body .tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.product-body h2 {
  margin-bottom: 14px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.product-features li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--color-text);
}

.product-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-blue);
}

.rebound-logo {
  font-family: "Space Grotesk", var(--font-base);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rebound-logo span {
  color: #e85d04;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-blue);
}

/* ==========================================================================
   About / Contact page
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
}

.about-copy h2 {
  margin-top: 28px;
}

.about-copy h2:first-child {
  margin-top: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.timeline-marker {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-blue);
  margin-top: 6px;
}

.timeline-item h4 {
  margin-bottom: 6px;
  color: var(--color-graphite);
}

.timeline-item p {
  margin-bottom: 0;
}

.contact-card {
  background: var(--color-graphite);
  color: var(--color-white);
  border-radius: 12px;
  padding: 30px 26px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.contact-card h3 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}

.contact-email {
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 16px 18px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 20px;
  word-break: break-word;
}

.contact-email:hover {
  border-color: var(--color-blue);
  text-decoration: none;
}

.contact-meta {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-graphite);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .wordmark {
  margin-bottom: 12px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }

  section { padding: 36px 0; }

  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--color-graphite);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 24px 20px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
  }

  .nav-cta {
    gap: 0;
  }

  .nav-cta .btn {
    display: none;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 400px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .credibility-grid {
    grid-template-columns: 1fr;
  }

  .service-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-card,
  .product-card.reverse .product-visual {
    grid-template-columns: 1fr;
    order: 0;
  }

  .product-card {
    display: block;
  }

  .product-visual {
    margin-bottom: 28px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    position: static;
  }

  .proof-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    text-align: center;
  }
}
