/* Kraken System shared stylesheet
   Brand tokens: bg #0A0A0B, surfaces #151517 and #202023, borders #26262B,
   red #C8102E, red hover #A50D26, bright accent #FF5268, text #FFFFFF,
   muted text #C9C9CE, light section #F5F5F5 with dark text #101014. */

:root {
  --bg: #0A0A0B;
  --surface: #151517;
  --surface-2: #202023;
  --border: #26262B;
  --red: #C8102E;
  --red-hover: #A50D26;
  --accent: #FF5268;
  --text: #FFFFFF;
  --muted: #C9C9CE;
  --light-bg: #F5F5F5;
  --light-text: #101014;
  --light-muted: #3D3D44;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--accent); }
a:hover { color: #FFFFFF; }

h1, h2, h3, .display {
  font-family: "Barlow Condensed", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 22px;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.main-nav a:hover { color: #FFFFFF; }

/* Hero */

.hero { padding: 84px 0 72px; border-bottom: 1px solid var(--border); }

.eyebrow {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 18ch;
  margin-bottom: 22px;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 62ch;
  margin: 0 0 32px;
}

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--red); color: #FFFFFF; }
.btn-primary:hover { background: var(--red-hover); color: #FFFFFF; }
.btn-ghost { background: transparent; color: #FFFFFF; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #FFFFFF; }

/* Sections */

.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: none; }

.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

.section-label {
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* Cards and grids */

.grid-2, .grid-3 {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  min-width: 0;
}
.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card a { font-weight: 600; }

.edge-note {
  margin-top: 24px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 24px 28px;
}
.edge-note h3 { font-size: 1.4rem; margin-bottom: 10px; }
.edge-note p { color: var(--muted); margin: 0; }

/* Components */

.component {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin-bottom: 20px;
  min-width: 0;
}
.component-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.component-num {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}
.component h3 { font-size: 1.6rem; }
.component-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.sub-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.component-cols p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Light section: Live Proof */

.section-light {
  background: var(--light-bg);
  color: var(--light-text);
  border-bottom: none;
}
.section-light .section-head p,
.section-light .card p { color: var(--light-muted); }
.section-light .section-label { color: var(--red); }
.section-light .card {
  background: #FFFFFF;
  border-color: #DDDDDD;
  color: var(--light-text);
}
.section-light a { color: var(--red); }
.section-light a:hover { color: var(--red-hover); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge-live { background: var(--red); color: #FFFFFF; }
.badge-dark { background: var(--surface-2); color: #FFFFFF; border: 1px solid var(--border); }
.section-light .badge-dark { background: var(--light-text); border-color: var(--light-text); }

.member-list { margin: 0 0 14px; padding-left: 20px; color: var(--light-muted); }
.member-list li { margin-bottom: 4px; }

/* Partners */

.logo-chip {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 84px;
  margin-bottom: 18px;
}
.logo-chip img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain; }

.partner-trade {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.partner-status { color: var(--muted); }
.roster-line { margin-top: 26px; color: var(--muted); }
.roster-line a { font-weight: 600; }

/* Trades */

.trade-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.trade-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  min-width: 0;
}
.trade-tile h3 { font-size: 1.25rem; margin-bottom: 8px; text-transform: none; font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.trade-tile .badge { margin-bottom: 0; }

/* Setup stepper */

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Ownership */

.ownership-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  background: var(--surface);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.footer-wordmark {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFFFFF;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-note { color: var(--muted); font-size: 0.85rem; margin: 22px 0 0; max-width: 70ch; }

/* Responsive */

@media (max-width: 960px) {
  .component-cols { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .stepper, .ownership-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .main-nav { justify-content: flex-start; gap: 6px 16px; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .stepper, .ownership-points, .trade-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; text-align: center; }
  .card, .component { padding: 22px; }
  .edge-note { padding: 20px 22px; }
}

/* Platform module map (ported from the LotLogix overview, Kraken tokens) */

.mod-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}
.mod-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-decoration: none;
  white-space: nowrap;
}
.mod-chip b {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.mod-chip { transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, color 0.16s ease; }
.mod-chip:hover {
  color: #FFFFFF;
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--red), 0 0 20px rgba(255, 82, 104, 0.5), 0 8px 22px rgba(200, 16, 46, 0.35);
}
.mod-chip:active { transform: translateY(0); box-shadow: 0 0 0 1px var(--red), 0 0 10px rgba(255, 82, 104, 0.45); }
.mod-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 1px var(--red), 0 0 20px rgba(255, 82, 104, 0.5); }
.mod-chip-social { border-color: rgba(200, 16, 46, 0.55); }
.mod-note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}
.mod-note b { color: #FFFFFF; }

/* Social channel panel (ported from the LotLogix overview, Kraken tokens) */

.social-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.social-tile {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 6px;
  min-width: 0;
}
.social-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--red);
  color: #FFFFFF;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}
.social-tile span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
.social-cap {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 960px) {
  .social-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-chip { white-space: normal; text-align: center; }
}
