/* ==========================================================================
   ByteReturn — design tokens
   ========================================================================== */

:root {
  /* Color */
  --bg: #FAFAFA;
  --card: #FFFFFF;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-tint: #EFF4FE;
  --text: #1F2937;
  --text-secondary: #6B7280;
  --border: #E5E7EB;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 999px;

  /* Shadow — very light, per brief */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.08);

  /* Layout */
  --container: 1120px;
  --section-pad: clamp(64px, 10vw, 128px);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.2s;
  --slow: 0.6s;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

section { padding: var(--section-pad) 0; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; color: var(--text); }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Eyebrow / section heading
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width var(--fast) var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 24px;
}

.hero-copy .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-copy .lead {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.advantages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.advantages li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.advantages svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

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

.hero-illustration {
  position: relative;
}

.hero-illustration svg { width: 100%; height: auto; }

.float-in {
  opacity: 0;
  transform: translateY(10px);
  animation: floatIn 0.8s var(--ease) forwards;
}

@keyframes floatIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .float-in { animation: none; opacity: 1; transform: none; }
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.process-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease);
}

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

.process-card .step-index {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.process-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.process-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  width: 20px;
  height: 1px;
  background: var(--border);
  display: none;
}

@media (min-width: 861px) {
  .process-card:not(:last-child)::after { display: block; }
}

/* ==========================================================================
   Recoverable grid
   ========================================================================== */

.recoverable { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.recoverable-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.item-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color var(--fast) var(--ease), transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.item-card:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  transform: translateY(-3px);
}

.item-card .icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-card .icon-wrap svg { width: 22px; height: 22px; color: var(--primary); }

.item-card span { font-weight: 600; font-size: 0.9375rem; }

/* ==========================================================================
   Cases
   ========================================================================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.case-card {
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.case-card svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
  margin: 0 auto 16px;
}

.case-card p { font-size: 0.9375rem; font-weight: 500; }

/* ==========================================================================
   Honesty block
   ========================================================================== */

.honesty-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  box-shadow: var(--shadow-sm);
}

.honesty-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.honesty-card .icon-wrap svg { width: 26px; height: 26px; color: var(--primary); }

.honesty-card h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.honesty-card > div > p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  max-width: 620px;
}

.honesty-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin-bottom: 20px;
}

.honesty-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text);
}

.honesty-list svg {
  width: 18px;
  height: 18px;
  color: #9CA3AF;
  flex-shrink: 0;
  margin-top: 2px;
}

.honesty-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-card h2 { font-size: 1.75rem; margin-bottom: 12px; }
.contact-card .lead { color: var(--text-secondary); margin-bottom: 0; }

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.contact-method:hover { border-color: var(--primary); background: var(--primary-tint); }

.contact-method .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--primary-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method .icon-wrap svg { width: 20px; height: 20px; color: var(--primary); }

.contact-method .label { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 2px; }
.contact-method .value { font-size: 1rem; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-brand svg { width: 20px; height: 20px; }

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover { color: var(--primary); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .recoverable-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-illustration { order: -1; max-width: 420px; margin: 0 auto; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .header-actions .btn-primary.btn-sm { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .site-header.nav-open .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
  .recoverable-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .honesty-card { grid-template-columns: 1fr; }
  .honesty-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .cases-grid { grid-template-columns: 1fr; }
}
