/* ════════════════════════════════════════════════════
   Intech Creative Inc. — Multi-Page Stylesheet
   Maple Mono · Muted Professional Palette · Clean Layout
   ════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Maple Mono';
  src: url('fonts/MapleMono.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Professional Color Palette */
  --navy: #1B3A5C;
  --navy-dark: #122842;
  --navy-light: #2C5F8A;
  --navy-soft: #E8F0F7;
  --accent: #2C5F8A;
  --accent-warm: #8B6B3A;
  --accent-green: #3A6B4A;
  --accent-red: #8B4A4A;
  --accent-amber: #C9A818;
  --accent-amber-soft: #FBF7EB;

  /* Neutral Colors */
  --paper: #F4F1EA;
  --paper-dark: #EAE5DB;
  --surface: #F9F7F2;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #6B6B6B;
  --rule: #C8C5BC;
  --rule-light: #E0DDD4;

  /* Layout */
  --max-width: 800px;
  --radius: 3px;
  --font-mono: 'Maple Mono', 'Courier New', Courier, monospace;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--navy); color: #fff; }

a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

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

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}
.nav-logo-img {
  height: 32px;
  width: auto;
}
.nav-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.nav-logo-text .logo-accent {
  color: var(--ink-soft);
  font-weight: 500;
}
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover {
  color: var(--navy);
  text-decoration: none;
  border-bottom-color: var(--rule);
}
.main-nav a.active {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}

@media (max-width: 760px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 12px; }
  .nav-logo-text { display: none; }
}
@media (max-width: 480px) {
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 11px; }
}

/* ── Hero ── */
.hero { padding: 48px 0 32px; }
.hero-box {
  background: var(--surface);
  padding: 40px 36px;
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}
.hero-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}
.hero-text {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  text-align: left;
  line-height: 1.85;
}
.hero-text:last-child { margin-bottom: 0; }

/* ── Page Header (for sub-pages) ── */
.page-header {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.page-header .lead {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ── Sections ── */
.section { padding: 48px 0; }
.section-alt { background: var(--paper-dark); }

/* ── Section Headers ── */
.section-header {
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.section-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-light);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── Subsections ── */
.subsection { margin-bottom: 40px; }
.sub-heading {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--navy);
}

/* ── Body Text ── */
.section p {
  margin-bottom: 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}

/* ── Info Blocks ── */
.info-block {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--navy);
  background: var(--surface);
  padding: 20px 24px;
  margin: 16px 0;
  border-radius: var(--radius);
}
.info-block p { margin-bottom: 12px; line-height: 1.85; }
.info-block p:last-child { margin-bottom: 0; }

.block-heading {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ── Special Info Block Variants ── */
.info-note { border-left-color: var(--accent-amber); background: var(--accent-amber-soft); }
.info-accent { border-left-color: var(--accent-green); background: #F2F8F3; }
.info-model { border-left-color: var(--navy-light); background: var(--navy-soft); }
.info-security { border-left-color: var(--accent-red); background: #FBF5F5; }
.info-platform { border-left-color: var(--accent-amber); background: var(--accent-amber-soft); }

/* ── Numbered List ── */
.numbered-list { margin: 24px 0; }
.num-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.num-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}
.num-item p { margin-bottom: 0; padding-top: 3px; }

/* ── Page Cards (home page link cards) ── */
.page-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.page-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page-card:hover {
  border-color: var(--navy-light);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none;
}
.page-card-icon {
  font-size: 22px;
  margin-bottom: 12px;
  display: block;
}
.page-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.page-card-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.page-card-arrow {
  font-size: 12px;
  color: var(--navy-light);
  margin-top: 10px;
  font-weight: 600;
}

/* ── Platform Highlight Block ── */
.platform-highlight {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent-amber);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
  margin: 32px 0;
}
.platform-highlight h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.platform-highlight .platform-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-amber);
  background: var(--accent-amber-soft);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.platform-highlight p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.85;
}
.platform-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.platform-feature {
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--paper);
}
.platform-feature-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.platform-feature-desc {
  font-size: 11.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 24px 0;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Footer ── */
.site-footer {
  background: var(--navy-dark);
  color: #AAB;
  padding: 48px 0 28px;
  margin-top: 0;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-logo-img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}
.footer-brand p {
  font-size: 12.5px;
  max-width: 320px;
  line-height: 1.6;
  color: #889;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #889;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  font-size: 12px;
  color: #667;
  border-top: 1px solid #2A3F5C;
  padding-top: 20px;
  letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero h1 { font-size: 22px; }
  .hero-box { padding: 28px 24px; }
  .section-title { font-size: 20px; }
  .section { padding: 36px 0; }
  .sub-heading { font-size: 15px; }
  .info-block { padding: 16px 18px; }
  .num-item { gap: 12px; }
  .num-badge { width: 28px; height: 28px; font-size: 12px; }
  .platform-highlight { padding: 20px; }
  .page-header h1 { font-size: 22px; }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-dark); }
::-webkit-scrollbar-thumb {
  background: var(--rule);
  border: 2px solid var(--paper-dark);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }

/* ════════════════════════════════════════════════════
   DIAGRAMS
   ════════════════════════════════════════════════════ */

.diagram {
  margin: 28px 0;
  padding: 24px 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  overflow-x: auto;
}
.diagram-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy-light);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.diagram svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ── Tokenization ── */
.token-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.token-chip {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--paper);
  white-space: nowrap;
}
.token-chip.t-blue { background: var(--navy); color: #fff; border-color: var(--navy-dark); }
.token-chip.t-green { background: var(--accent-green); color: #fff; border-color: #2A4F38; }
.token-chip.t-yellow { background: var(--accent-amber); color: var(--ink); border-color: #A88E15; }
.token-chip.t-red { background: var(--accent-red); color: #fff; border-color: #6B3838; }
.token-arrow { font-size: 14px; color: var(--ink-soft); margin: 0 2px; }
.token-count {
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.05em;
}

/* ── Flow Diagram ── */
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 8px 0;
}
.flow-box {
  flex-shrink: 0;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--paper);
  border-radius: 2px;
  min-width: 80px;
}
.flow-box.fb-blue { background: var(--navy); color: #fff; border-color: var(--navy-dark); }
.flow-box.fb-red { background: var(--accent-red); color: #fff; border-color: #6B3838; }
.flow-box.fb-green { background: var(--accent-green); color: #fff; border-color: #2A4F38; }
.flow-box.fb-yellow { background: var(--accent-amber); color: var(--ink); border-color: #A88E15; }
.flow-box-sub { font-size: 10px; font-weight: 400; opacity: 0.85; margin-top: 2px; }
.flow-arrow { flex-shrink: 0; font-size: 18px; color: var(--ink); margin: 0 6px; font-weight: 700; }
.flow-cost { font-size: 10px; color: var(--accent-red); font-weight: 600; letter-spacing: 0.05em; }
.flow-cost-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.flow-cost.cheap { color: var(--accent-green); }

/* ── Approach Steps ── */
.approach-flow { display: flex; align-items: stretch; gap: 0; margin: 20px 0; }
.approach-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.approach-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 18px;
  width: 16px;
  height: 2px;
  background: var(--navy-light);
}
.approach-step-badge {
  width: 34px; height: 34px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  margin-bottom: 8px;
}
.approach-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .diagram { padding: 16px 12px; }
  .token-chip { font-size: 11px; padding: 4px 8px; }
  .flow-box { font-size: 10px; padding: 8px 10px; min-width: 60px; }
  .flow-arrow { font-size: 14px; margin: 0 3px; }
  .flow-row { flex-wrap: wrap; gap: 4px; }
  .flow-cost-row { gap: 12px; }
  .approach-flow { flex-direction: column; gap: 12px; }
  .approach-step:not(:last-child)::after { display: none; }
}

/* ── Print / PDF ── */
@media print {
  .site-header, .main-nav, .site-footer, footer, script { display: none !important; }
  *, *::before, *::after {
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  body { background: #fff; font-size: 10.5px; line-height: 1.55; color: #1A1A1A; margin: 0; padding: 0; }
  .container { max-width: 100%; padding: 0 10px; }
  .section { padding: 10px 0; }
  .section-alt { border-top: 1px solid #B8B5A8; border-bottom: 1px solid #B8B5A8; }
  .subsection { margin-bottom: 18px; }
  .section-header { margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid #1A1A1A; page-break-after: avoid; }
  .section-title { font-size: 17px; }
  .sub-heading { font-size: 14px; page-break-after: avoid; }
  .block-heading { font-size: 12px; font-weight: 700; page-break-after: avoid; }
  .info-block {
    page-break-inside: avoid;
    padding: 10px 14px; margin: 10px 0;
    border: 1px solid #999; border-left: 4px solid #1A1A1A; border-radius: 2px;
  }
  .info-block p { margin-bottom: 8px; font-size: 10.5px; }
  .info-block p:last-child { margin-bottom: 0; }
  .diagram {
    page-break-inside: avoid;
    padding: 10px 12px; margin: 12px 0;
    border: 1px solid #999; border-radius: 2px;
  }
  .diagram svg { max-width: 100%; max-height: 300px; display: block; margin: 0 auto; }
  .section p { margin-bottom: 10px; font-size: 10.5px; color: #1A1A1A; line-height: 1.55; }
  a { color: #1A1A1A; text-decoration: none; font-weight: 600; }
  @page { margin: 1.5cm 1cm; }
}
