/* ============================================================
   ROOT & RESET
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:             #0A0A0A;
  --surface:        #111111;
  --border:         #222222;
  --text-primary:   #F5F5F5;
  --text-secondary: #888888;
  --accent:         #F7931A;
  --white:          #FFFFFF;

  --max-width:      1200px;
  --nav-height:     72px;
  --pad-v:          120px;
  --pad-h:          40px;

  --sans:  'Inter', sans-serif;
  --mono:  'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

address {
  font-style: normal;
}

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

/* ============================================================
   LAYOUT
============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

/* ============================================================
   FADE-IN ON SCROLL
============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger cards within grids */
.why-grid   .why-card:nth-child(2)     { transition-delay: 0.08s; }
.why-grid   .why-card:nth-child(3)     { transition-delay: 0.16s; }

.services-grid .service-card:nth-child(2) { transition-delay: 0.10s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.20s; }

.process-grid .process-step:nth-child(2) { transition-delay: 0.08s; }
.process-grid .process-step:nth-child(3) { transition-delay: 0.16s; }
.process-grid .process-step:nth-child(4) { transition-delay: 0.24s; }

.contact-grid .contact-card:nth-child(2) { transition-delay: 0.10s; }

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

/* ============================================================
   TYPOGRAPHY — SHARED
============================================================ */
.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}

.section-label::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  margin-top: 10px;
  opacity: 0.6;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.card-num {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0A0A0A;
}

.btn-primary:hover {
  background: #ff9e20;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
}

/* ============================================================
   NAV
============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

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

.nav-logo img {
  filter: brightness(0) invert(1);
  height: 28px;
  width: auto;
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.18s ease;
}

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

.nav-external {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  padding: 7px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.18s ease, color 0.18s ease !important;
}

.nav-external:hover {
  border-color: var(--text-secondary) !important;
  color: var(--text-primary) !important;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../assets/Building2_upscaled.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.70) 55%, rgba(10,10,10,0.42) 100%),
    linear-gradient(to top,   rgba(10,10,10,0.60) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--nav-height) var(--pad-h) 0;
}

#hero h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--white);
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.65);
  max-width: 520px;
  margin-bottom: 44px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent 0%, rgba(245,245,245,0.35) 100%);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { opacity: 0; transform: scaleY(0.2); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1);   transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1);   transform-origin: top; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator span { animation: none; opacity: 0.3; }
}

/* ============================================================
   WHY KRP BTC
============================================================ */
#why {
  background: var(--surface);
  padding: var(--pad-v) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.why-card {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  background: #0f0f0f;
  box-shadow: inset 3px 0 0 var(--accent);
}

.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* BTC live ticker */
.btc-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  transition: background 0.6s ease;
}

.btc-ticker.ticker-flash {
  background: rgba(247, 147, 26, 0.06);
  transition: background 0s;
}

.ticker-live {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #4ade80;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 7px;
  flex-shrink: 0;
}

.ticker-sep {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--border);
  letter-spacing: 0;
}

.ticker-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticker-price {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.ticker-value {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

/* ============================================================
   SERVICES
============================================================ */
#services {
  background: var(--bg);
  padding: var(--pad-v) 0;
}

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

.service-card {
  background: var(--bg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.service-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.service-header h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.service-lead {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.service-list {
  flex: 1;
  margin-bottom: 28px;
}

.service-list li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.service-list li:first-child {
  border-top: 1px solid var(--border);
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.service-for {
  margin-bottom: 32px;
}

.for-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-for p:last-child {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.link-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: auto;
  transition: letter-spacing 0.2s ease;
}

.link-cta:hover {
  letter-spacing: 0.04em;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
#process {
  background: var(--surface);
  padding: var(--pad-v) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.process-step {
  background: var(--surface);
  padding: 44px 32px;
}

.process-num {
  display: block;
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 400;
  color: rgba(247, 147, 26, 0.18);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.process-step h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.process-step p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ============================================================
   CONTACT
============================================================ */
#contact {
  background: var(--bg);
  padding: var(--pad-v) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  max-width: 780px;
}

.contact-card {
  background: var(--bg);
  padding: 48px 44px;
}

.contact-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.contact-creds {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contact-title {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.contact-detail {
  font-size: 14px;
  margin-bottom: 32px;
}

.contact-detail a {
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.contact-detail a:hover {
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.35;
  height: 22px;
  width: auto;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.footer-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   RESPONSIVE — TABLET (max 1024px)
============================================================ */
@media (max-width: 1024px) {
  :root {
    --pad-v: 96px;
  }

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

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

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 768px)
============================================================ */
@media (max-width: 768px) {
  :root {
    --pad-v:  72px;
    --pad-h:  24px;
  }

  /* Nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 40px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 16px;
    color: var(--text-primary);
  }

  .nav-external {
    font-size: 13px !important;
  }

  /* Hero */
  #hero h1 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-overlay {
    background: rgba(10, 10, 10, 0.86);
  }

  /* Process */
  .process-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .contact-card {
    padding: 40px 28px;
  }

  /* BTC ticker */
  .btc-ticker {
    padding: 18px 24px;
  }

  /* Why cards */
  .why-card {
    padding: 40px 28px;
  }

  /* Service cards */
  .service-card {
    padding: 40px 28px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
