/* ============================================================
   HALSHIELD — DESIGN SYSTEM
   Apple + Stripe + Linear Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Design Tokens ── */
:root {
  --bg:           #FFFFFF;
  --text:         #0A0A0A;
  --text-secondary: #6E6E6E;
  --border:       #E8E8E8;
  --accent-bg:    #0A0A0A;
  --accent-text:  #FFFFFF;
  --danger:       #C0392B;
  --surface:      #F7F7F7;
  --dark-bg:      #0A0A0A;
  --dark-border:  #2A2A2A;

  --max-width:    1400px;
  --text-width:   640px;
  --narrow-width: 580px;
  --gutter:       48px;
  --section-pad:  160px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Base ── */
body {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── Typography Scale ── */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 24px;
}

.display-xl {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
}

.display-lg {
  font-size: clamp(36px, 4.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.display-md {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.display-sm {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.body-copy {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

.body-sm {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.label-sm {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.feature-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

/* ── Highlight word ── */
.accountable {
  font-weight: 500;
  border-bottom: 1.5px solid var(--text);
}

/* ── Layout Utilities ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.text-block {
  max-width: var(--text-width);
}

.narrow-block {
  max-width: var(--narrow-width);
}

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

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent-text);
  padding: 14px 28px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.7; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--text); }

.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 32px;
}

.nav-logo {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 24px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.footer-logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-mark {
  width: 24px;
  height: auto;
  display: block;
  flex-shrink: 0;
  filter: invert(1);
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  flex-shrink: 0;
}

/* ── HERO ── */
.hero {
  padding: 120px 0 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px;
}

.hero-text {
  padding-top: 24px;
}

.hero-headline {
  margin-bottom: 32px;
}

.hero-sub {
  max-width: 520px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 48px;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-top: 0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── SOCIAL PROOF BAR ── */
.social-proof {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.social-proof .container {
  display: flex;
  align-items: center;
  gap: 64px;
  overflow-x: auto;
  scrollbar-width: none;
}
.social-proof .container::-webkit-scrollbar { display: none; }

.proof-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.proof-logos {
  display: flex;
  gap: 56px;
  align-items: center;
  flex: 1;
}

.proof-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.45;
  filter: grayscale(100%);
  white-space: nowrap;
  color: var(--text);
}

/* ── PROBLEM SECTION ── */
.problem {
  border-bottom: 1px solid var(--border);
}

.problem-header {
  max-width: var(--text-width);
  margin-bottom: 80px;
}

.problem-body {
  max-width: 680px;
  margin-bottom: 80px;
}

.danger-text {
  color: var(--danger);
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 80px;
}

.stat-item {
  padding: 48px 0 48px;
  border-right: 1px solid var(--border);
  padding-right: 40px;
  padding-left: 0;
}
.stat-item:not(:first-child) {
  padding-left: 40px;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.comparison-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px 32px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.comparison-table th:first-child {
  border-right: 1px solid var(--border);
}

.comparison-table td {
  padding: 20px 32px;
  font-size: 15px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  border-right: 1px solid var(--border);
}

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

.comparison-table td.negative {
  color: var(--danger);
}

.comparison-table td.positive {
  color: var(--text);
  font-weight: 500;
}

/* ── SOLUTION SECTION ── */
.solution {
  border-bottom: 1px solid var(--border);
}

.solution-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  margin-bottom: 80px;
  align-items: start;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  padding: 48px 40px 48px 0;
  border-right: 1px solid var(--border);
}
.feature-item:not(:first-child) {
  padding-left: 40px;
}
.feature-item:last-child {
  border-right: none;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  border-bottom: 1px solid var(--border);
}

.steps-list {
  margin-top: 80px;
  margin-bottom: 80px;
}

.step {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--gutter);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  align-items: start;
}

.step-number {
  font-size: clamp(64px, 8vw, 96px);
  font-weight: 200;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.04em;
}

.step-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.step-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.example-card {
  border: 1px solid var(--border);
  padding: 40px;
}

.example-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: block;
}

.example-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── PRICING ── */
.pricing {
  border-bottom: 1px solid var(--border);
}

.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin: 80px 0;
}

.pricing-tier {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
}
.pricing-tier:last-child { border-right: none; }

.tier-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
  display: block;
}

.tier-examples {
  list-style: none;
  margin-bottom: 24px;
}

.tier-examples li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.tier-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pricing-levers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.lever-item {
  padding: 40px 40px 40px 0;
  border-right: 1px solid var(--border);
}
.lever-item:not(:first-child) { padding-left: 40px; }
.lever-item:last-child { border-right: none; }

.lever-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
  display: block;
}

/* ── MOAT ── */
.moat {
  border-bottom: 1px solid var(--border);
}

.moat-header {
  max-width: 600px;
  margin-bottom: 80px;
}

.moat-assets {
  list-style: none;
  margin-bottom: 64px;
}

.moat-asset {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--gutter);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  align-items: start;
}

.moat-asset:last-child {
  border-bottom: 1px solid var(--border);
}

.asset-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.asset-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.moat-quote {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.4;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  max-width: 560px;
}

/* ── MARKET ── */
.market {
  border-bottom: 1px solid var(--border);
}

.market-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin: 80px 0;
}

.market-stat {
  padding: 48px 40px 48px 0;
  border-right: 1px solid var(--border);
}
.market-stat:not(:first-child) { padding-left: 40px; }
.market-stat:last-child { border-right: none; }

.milestone-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
}

.milestone-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 20px 32px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.milestone-table th:last-child { border-right: none; }

.milestone-table td {
  padding: 20px 32px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-secondary);
}
.milestone-table td:last-child { border-right: none; }
.milestone-table tr:last-child td { border-bottom: none; }

.milestone-table td:first-child {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* ── TESTIMONIALS ── */
.testimonials {
  border-bottom: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-top: 64px;
}

.testimonial-card {
  border: 1px solid var(--border);
  padding: 40px;
  transition: transform 0.2s ease;
}
.testimonial-card:hover { transform: scale(1.01); }

.quote-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 32px;
}

.quote-mark {
  font-size: 48px;
  font-weight: 300;
  line-height: 0.8;
  color: var(--border);
  display: block;
  margin-bottom: 16px;
  font-family: Georgia, serif;
}

.attribution-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.attribution-title {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── INDUSTRIES ── */
.industries {
  border-bottom: 1px solid var(--border);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 64px;
  background: var(--border);
}

.industry-card {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: #111;
  transition: transform 0.2s ease;
}
.industry-card:hover { transform: scale(1.01); }

.industry-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}
.industry-card:hover .industry-card-img { opacity: 0.5; }

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
}

.industry-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
}

.industry-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 10px;
}

.industry-card-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 8px;
}

.industry-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ── FINAL CTA ── */
.final-cta {
  background: var(--dark-bg);
  padding: var(--section-pad) 0;
  text-align: center;
}

.final-cta .eyebrow { color: rgba(255,255,255,0.4); }

.final-cta-headline {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #FFFFFF;
  margin-bottom: 32px;
}

.final-cta-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.65;
}

.final-cta .btn-primary {
  background: #FFFFFF;
  color: var(--dark-bg);
}
.final-cta .btn-primary:hover { opacity: 0.8; }

.final-cta .btn-ghost {
  border-color: rgba(255,255,255,0.2);
  color: #FFFFFF;
}
.final-cta .btn-ghost:hover { border-color: #FFFFFF; }

.final-cta .btn-group {
  justify-content: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-border);
  padding: 80px 0 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  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: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #FFFFFF; }

.footer-bottom {
  border-top: 1px solid var(--dark-border);
  padding-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* Mobile nav open state */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 24px 32px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  z-index: 99;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --section-pad: 100px; }
  .container { padding: 0 32px; }
  
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 32px;
  }
  
  .hero-image-wrapper {
    width: calc(100% + 64px);
    margin-left: -32px;
    margin-right: -32px;
    aspect-ratio: 16 / 7;
    margin-top: 64px;
  }

  .solution-header {
    grid-template-columns: 1fr;
  }
  
  .stats-grid,
  .pricing-tiers,
  .pricing-levers,
  .feature-grid,
  .market-stats {
    grid-template-columns: 1fr;
  }

  .stat-item, .market-stat,
  .pricing-tier, .lever-item,
  .feature-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 0;
  }
  .stat-item:not(:first-child),
  .market-stat:not(:first-child),
  .lever-item:not(:first-child),
  .feature-item:not(:first-child) {
    padding-left: 0;
  }
  .stat-item:last-child,
  .market-stat:last-child,
  .lever-item:last-child,
  .feature-item:last-child {
    border-bottom: none;
  }

  .moat-asset {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step {
    grid-template-columns: 80px 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --section-pad: 80px; --gutter: 24px; }
  .container { padding: 0 24px; }

  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }

  .hero { padding-top: 64px; }
  .hero-content { padding: 0 24px; }
  .hero-image-wrapper {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    aspect-ratio: 4 / 3;
  }

  .social-proof .container {
    padding: 0 24px;
    gap: 32px;
  }

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

  .industry-grid {
    grid-template-columns: 1fr;
  }
  .industry-card { height: 360px; }

  .step { grid-template-columns: 60px 1fr; gap: 20px; }
  .step-number { font-size: 48px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  
  .pricing-tiers {
    border: none;
    gap: 0;
  }
  .pricing-tier {
    border: 1px solid var(--border);
    border-bottom: none;
  }
  .pricing-tier:last-child { border-bottom: 1px solid var(--border); }
}

/* ── PREFERS REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
