/* ====================================================
   REBOXD USA — Primary-Inspired Editorial Design System
   Palette: White, Cream, Black + single blue accent
   Typography: DM Serif Display + Inter
==================================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0E0E0E;
  --white:   #FFFFFF;
  --cream:   #F7F5F0;
  --blue:    #1C4ED8;
  --blue-lt: #EFF3FF;
  --grey:    #6B7280;
  --border:  #E5E1D9;
  --nav-h:   88px;

  --serif:  'DM Serif Display', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

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

/* --- Typography Scale --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 400;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.15rem; }

p { color: #3d3d3d; max-width: 68ch; }
em { font-style: italic; color: var(--blue); }

/* --- Links --- */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 40px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

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

.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ==================================================
   NAVIGATION
================================================== */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Logo treatment */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 64px;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  display: block;
}

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

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { margin-left: 8px; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

/* ==================================================
   HERO
================================================== */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px 80px 32px;
  max-width: 640px;
  margin-left: auto;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}

.hero-content h1 {
  margin-bottom: 28px;
}

.hero-content h1 em {
  font-style: italic;
  color: var(--blue);
}

.hero-body {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #4a4a4a;
  margin-bottom: 40px;
  max-width: 50ch;
}

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

.hero-image {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

/* ==================================================
   STATS STRIP
================================================== */
#stats-strip {
  background: var(--black);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ==================================================
   SECTION COMMONS
================================================== */
.section { padding: 100px 0; }
.section-cream { background: var(--cream); }
.section-black { background: var(--black); color: var(--white); }
.section-black p { color: rgba(255,255,255,0.7); }
.section-black h2, .section-black h3, .section-black h4 { color: var(--white); }
.section-black .section-eyebrow { color: rgba(255,255,255,0.45); }

.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
  display: block;
}

.section-header {
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 60ch;
}

/* ==================================================
   TWO-COLUMN EDITORIAL SPLIT
================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-image {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.split-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.split-body h2 { margin-bottom: 24px; }
.split-body p { margin-bottom: 20px; }

.pull-quote {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--blue-lt);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--blue);
  max-width: none;
  font-style: italic;
}

/* ==================================================
   NUMBERED STEPS
================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.step-item {
  border-top: 2px solid var(--border);
  padding-top: 28px;
}

.step-number {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.step-item h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 10px;
}

.step-item p { font-size: 0.9rem; }

/* ==================================================
   PLATFORM CARDS
================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
}

.card {
  background: var(--white);
  padding: 40px 36px;
  transition: background 0.25s;
}

.card:hover { background: var(--cream); }

.card-icon {
  width: 40px; height: 40px;
  background: var(--blue-lt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 1.1rem;
}

.card h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
}

.card p { font-size: 0.9rem; max-width: none; }

/* ==================================================
   MARKETS
================================================== */
.markets-list {
  margin-top: 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.market-item {
  display: grid;
  grid-template-columns: 60px 1fr 240px auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.25s;
  cursor: default;
}

.market-item:hover .market-name { color: var(--blue); }
.market-item:hover .market-arrow { opacity: 1; color: var(--blue); }

.market-num {
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(255,255,255,0.25);
}

.market-name {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--white);
  transition: color 0.25s;
}

.market-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  max-width: none;
}

.market-arrow {
  font-size: 1.5rem;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transition: all 0.25s;
  text-align: right;
}

/* ==================================================
   COMPARISON TABLE
================================================== */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin-top: 60px;
}

.comparison-col {
  background: var(--white);
  padding: 40px 36px;
}

.comparison-col.highlight {
  background: var(--blue);
}

.comparison-col-header {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-col.highlight .comparison-col-header {
  color: rgba(255,255,255,0.7);
  border-bottom-color: rgba(255,255,255,0.2);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-col.highlight .comparison-item {
  border-bottom-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.comparison-item:last-child { border-bottom: none; }

.comparison-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.icon-x { background: #FEE2E2; color: #DC2626; }
.icon-check { background: rgba(255,255,255,0.2); color: var(--white); }

/* ==================================================
   MANIFESTO / FULL BLEED
================================================== */
#manifesto {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.manifesto-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.manifesto-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.manifesto-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
  z-index: 1;
}

.manifesto-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px;
}

.manifesto-content .section-eyebrow {
  color: rgba(255,255,255,0.45);
  margin-bottom: 28px;
  display: block;
}

.manifesto-content h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4rem);
  margin-bottom: 24px;
}

.manifesto-content p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0 auto 40px;
}

/* ==================================================
   PARTNERS
================================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  margin-top: 60px;
}

.partner-card {
  background: var(--white);
  padding: 48px 44px;
  transition: background 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  gap: 24px;
}

.partner-card:hover { background: var(--cream); }

.partner-card-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
  display: block;
}

.partner-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.partner-card p { font-size: 0.9rem; max-width: none; }

.partner-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s;
}
.partner-link:hover { gap: 12px; color: var(--blue); }

/* ==================================================
   ABOUT / TEAM
================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-body h2 { margin-bottom: 24px; }
.about-body p { margin-bottom: 18px; }

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.credential {
  border-top: 2px solid var(--blue);
  padding-top: 16px;
}

.credential-value {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--black);
  display: block;
  margin-bottom: 4px;
}

.credential-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  width: 100%;
  filter: grayscale(100%);
  display: block;
}

/* ==================================================
   CONTACT FORM
================================================== */
#contact {
  background: var(--cream);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 20px; }
.contact-info p { margin-bottom: 32px; }

.contact-detail {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

.contact-detail a {
  color: var(--blue);
  font-weight: 500;
}

.contact-form-wrap {
  background: var(--white);
  padding: 48px 44px;
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--black);
  border-radius: 4px;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--blue);
}

.form-success svg { margin-bottom: 16px; }

/* ==================================================
   FOOTER
================================================== */
#site-footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 40px;
}

.footer-brand img {
  filter: invert(1) brightness(2);
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  max-width: 26ch;
}

.footer-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  display: block;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ==================================================
   SCROLL REVEAL
================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse { direction: ltr; }
  .split-image { min-height: 360px; }
  .split-image img { min-height: 360px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .comparison { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: 1fr; }

  .market-item { grid-template-columns: 40px 1fr; gap: 16px; }
  .market-desc, .market-arrow { display: none; }
}

@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 60px 24px; max-width: 100%; margin-left: 0; }
  .hero-image { min-height: 340px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --nav-h: 68px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 24px 24px;
    gap: 20px;
    z-index: 999;
  }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-logo img {
    height: 48px;
    max-width: 220px;
  }

  .hero-content h1 { font-size: 2.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-credentials { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
