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

:root {
  --navy:      #101828;
  --ink:       #172033;
  --offwhite:  #FAF8F3;
  --white:     #FFFFFF;
  --coral:     #FF6B5A;
  --gold:      #F4B84A;
  --body:      #344054;
  --muted:     #667085;
  --border:    #D0D5DD;
  --mono-size: 11px;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--offwhite);
  color: var(--body);
  line-height: 1.6;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.mono, code, .mono-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--mono-size);
  letter-spacing: 0.02em;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 24, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--offwhite);
  letter-spacing: -0.01em;
}

.tag-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--coral);
  background: rgba(255, 107, 90, 0.12);
  border: 1px solid rgba(255, 107, 90, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--navy);
  padding: 120px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 50%;
  background: radial-gradient(ellipse at 80% 50%, rgba(255, 107, 90, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-badge {
  margin-bottom: 28px;
}

.badge-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.hero-headline {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  color: var(--offwhite);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cap-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  color: rgba(250, 248, 243, 0.7);
  font-family: 'Inter', sans-serif;
}

.cap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cap-dot.coral { background: var(--coral); }
.cap-dot.gold  { background: var(--gold);  }
.cap-dot.navy  { background: rgba(250,248,243,0.3); }

/* Hero Visual - Card Stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-stack {
  position: relative;
  width: 280px;
  height: 360px;
}

.card {
  position: absolute;
  width: 240px;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.card-back {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  background: rgba(23, 32, 51, 0.6);
}

.card-mid {
  top: 40px;
  left: 20px;
  transform: rotate(-2deg);
  background: rgba(23, 32, 51, 0.8);
}

.card-front {
  top: 80px;
  left: 40px;
  transform: rotate(2deg);
  background: rgba(23, 32, 51, 0.95);
}

.card-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.card-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(250,248,243,0.5);
  letter-spacing: 0.04em;
}

.card-back .card-label { color: rgba(255, 107, 90, 0.5); }
.card-back .card-id    { color: rgba(255, 107, 90, 0.3); }
.card-mid .card-label { color: rgba(244, 184, 74, 0.5); }
.card-mid .card-id    { color: rgba(244, 184, 74, 0.3); }
.card-front .card-label { color: rgba(250,248,243,0.4); }
.card-front .card-id    { color: rgba(250,248,243,0.25); }

/* === SHARED SECTION STYLES === */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--coral);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-body {
  font-size: 16px;
  color: var(--body);
  max-width: 600px;
  line-height: 1.7;
}

/* === WHAT WE DO === */
.what-we-do {
  padding: 100px 0;
  background: var(--offwhite);
}

/* === BUILT FOR === */
.built-for {
  padding: 80px 0;
  background: var(--navy);
}

.built-for-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.built-for-header {
  margin-bottom: 48px;
}

.built-for-headline {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--offwhite);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.built-for .section-label {
  color: rgba(255, 107, 90, 0.7);
  margin-bottom: 12px;
}

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

.industry-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.industry-card:hover {
  border-color: rgba(255, 107, 90, 0.3);
}

.industry-icon {
  opacity: 0.7;
}

.industry-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--offwhite);
  letter-spacing: -0.01em;
}

/* === OBJECT MODEL === */
.object-model {
  padding: 100px 0;
  background: var(--white);
}

.object-cards {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  margin-bottom: 32px;
}

.obj-card {
  flex: 1;
  background: var(--offwhite);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  min-width: 0;
}

.obj-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.obj-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.obj-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.obj-label-gold  { color: #c98b1e; }
.obj-label-muted { color: var(--muted); }

.obj-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--coral);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.obj-card:nth-child(4) .obj-id { color: #c98b1e; }
.obj-card:nth-child(6) .obj-id { color: var(--muted); }

.obj-desc {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.obj-arrow {
  display: flex;
  align-items: center;
  padding: 0 12px;
  padding-top: 40px;
  flex-shrink: 0;
}

.model-note {
  background: var(--navy);
  border-radius: 8px;
  padding: 12px 16px;
  display: inline-block;
}

.mono-note {
  color: rgba(250, 248, 243, 0.5);
}

/* === UNDER THE HOOD === */
.under-the-hood {
  padding: 100px 0;
  background: var(--ink);
}

.uth-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.uth-label {
  margin-bottom: 48px;
}

.uth-label .section-label {
  color: rgba(255, 107, 90, 0.7);
  margin-bottom: 12px;
}

.uth-headline {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--offwhite);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.uth-diagram {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 40px;
}

.layer {
  flex: 1;
  border-radius: 16px;
  padding: 28px 32px;
}

.giftstack-layer {
  background: rgba(255, 107, 90, 0.12);
  border: 1px solid rgba(255, 107, 90, 0.2);
}

.layer-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.layer-name-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.layer-desc {
  font-size: 14px;
  color: rgba(250, 248, 243, 0.55);
  line-height: 1.6;
}

.layer-connector {
  width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
}

.connector-line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.connector-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(250,248,243,0.3);
  letter-spacing: 0.08em;
  text-align: center;
}

.mintpass-layer {
  background: rgba(244, 184, 74, 0.08);
  border: 1px solid rgba(244, 184, 74, 0.15);
}

.uth-note {
  font-size: 14px;
  color: rgba(250, 248, 243, 0.45);
  max-width: 600px;
  line-height: 1.7;
}

/* === CAPABILITIES === */
.capabilities {
  padding: 100px 0;
  background: var(--offwhite);
}

.cap-headline {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--navy);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 48px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.cap-item {
  background: var(--white);
  padding: 28px 24px;
  position: relative;
}

.cap-item-wide {
  grid-column: span 2;
}

.cap-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.cap-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* === CLOSING === */
.closing {
  padding: 100px 0 80px;
  background: var(--navy);
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.closing-rule {
  width: 48px;
  height: 2px;
  background: var(--coral);
  margin-bottom: 40px;
}

.closing-headline {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--offwhite);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.closing-path {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.path-step {
  display: flex;
  align-items: center;
  gap: 10px;
}

.path-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.06em;
  background: rgba(255, 107, 90, 0.12);
  border: 1px solid rgba(255, 107, 90, 0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.path-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(250, 248, 243, 0.7);
  letter-spacing: -0.01em;
}

.path-arrow {
  opacity: 0.4;
}

.closing-sub {
  font-size: 15px;
  color: rgba(250, 248, 243, 0.5);
  max-width: 640px;
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(250, 248, 243, 0.6);
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: rgba(250, 248, 243, 0.25);
  letter-spacing: 0.04em;
}

.footer-sep {
  color: rgba(250, 248, 243, 0.15);
  font-size: 12px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-visual {
    display: none;
  }

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

  .object-cards {
    flex-direction: column;
    gap: 12px;
  }

  .obj-arrow {
    padding: 8px 0;
    transform: rotate(90deg);
    justify-content: center;
  }

  .uth-diagram {
    flex-direction: column;
    gap: 16px;
  }

  .layer-connector {
    width: 100%;
    flex-direction: row;
    padding: 8px 0;
  }

  .connector-line { width: 1px; height: 24px; }

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

  .cap-item-wide {
    grid-column: span 1;
  }

  .closing-path {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .nav { padding: 14px 20px; }
  .hero { padding: 90px 20px 50px; }
  .what-we-do, .built-for, .object-model, .under-the-hood, .capabilities, .closing { padding: 60px 0; }
  .section-inner, .built-for-inner, .uth-inner, .closing-inner { padding: 0 20px; }
  .industry-grid { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .footer { padding: 20px; }
}