:root {
  --green: #02713c;
  --green-dark: #004b29;
  --green-deep: #00351f;
  --green-soft: #eaf4ee;
  --lime: #a9dc45;
  --ink: #10221a;
  --muted: #66736c;
  --line: #dfe5e1;
  --line-dark: #c8d0cb;
  --paper: #ffffff;
  --paper-soft: #f7f9f7;
  --warning: #8a5a00;
  --warning-bg: #fff8e8;
  --danger: #9a2f2f;
  --danger-bg: #fff2f2;
  --shadow: 0 18px 42px rgba(18, 44, 31, .10), 0 2px 8px rgba(18, 44, 31, .06);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 76px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand-copy strong { display: block; font-size: 21px; line-height: 1; letter-spacing: -.03em; }
.brand-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { font-size: 14px; color: #273b31; }
.nav a:hover, .nav a.active { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  border: 1px solid transparent;
  border-radius: 3px;
  min-height: 42px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: #fff; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green-soft); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn-quiet:hover { border-color: #8d9a92; }
.btn-danger { background: #fff; color: var(--danger); border-color: #d7a1a1; }
.btn-small { min-height: 35px; padding: 0 13px; font-size: 12px; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }

/* Hero */
.hero {
  padding: 34px 0 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 75%, #f4f8f5 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: .95fr 1.1fr; gap: 64px; align-items: center; min-height: 360px; }
.hero h1 {
  margin: 0;
  max-width: 610px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.1vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
  color: #0d2419;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero p { max-width: 610px; margin: 24px 0 0; color: #59665f; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; gap: 13px; margin-top: 27px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: #738078; font-size: 12px; }

/* LC specimen card */
.lc-specimen { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.lc-specimen-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 19px 22px 16px; border-bottom: 1px solid var(--line); }
.lc-id { font-weight: 750; font-size: 16px; letter-spacing: .01em; }
.lc-sub { color: var(--muted); font-size: 12px; margin-top: 5px; }
.status-text { color: var(--green); font-weight: 700; font-size: 12px; }
.lc-specimen-body { display: grid; grid-template-columns: 1fr 1.05fr; }
.lc-col { padding: 21px 24px; }
.lc-col + .lc-col { border-left: 1px solid var(--line); }
.definition { margin-bottom: 16px; }
.definition:last-child { margin-bottom: 0; }
.definition dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.definition dd { margin: 0; font-weight: 650; font-size: 15px; }
.amount { font-size: 23px !important; letter-spacing: -.025em; }
.status-row { display: flex; align-items: center; gap: 9px; margin-bottom: 17px; }
.status-dot { width: 18px; height: 18px; border: 1px solid #9bc4a8; background: #edf8f0; display: grid; place-items: center; border-radius: 50%; color: var(--green); font-size: 12px; }
.condition-track { position: relative; height: 36px; margin: 12px 0 7px; }
.condition-line { position: absolute; left: 7px; right: 7px; top: 17px; height: 2px; background: #badac4; }
.condition-line::after { content: ''; position: absolute; left: 0; top: 0; width: 62%; height: 2px; background: var(--green); }
.condition-points { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; }
.condition-points span { width: 12px; height: 12px; background: #fff; border: 2px solid var(--green); border-radius: 50%; }
.lc-lockline { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 14px 14px; padding: 11px 14px; background: #eef5f0; border-left: 3px solid #8fc3a0; color: #486054; font-size: 12px; }

/* comparison */
.compare { border-bottom: 1px solid var(--line); }
.compare-grid { display: grid; grid-template-columns: 1fr 80px 1fr; }
.compare-side { padding: 30px 34px; }
.compare-side h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: 27px; }
.compare-side ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #435149; font-size: 14px; }
.compare-side li { display: flex; gap: 10px; }
.compare-side li::before { content: '×'; color: #5b6861; font-weight: 700; }
.compare-side.smart li::before { content: '✓'; color: var(--green); }
.compare-center { border-left: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.compare-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.compare-brand img { width: 35px; height: 35px; object-fit: contain; }
.compare-brand h2 { margin: 0; }

/* sections */
.section { padding: 74px 0; }
.section-compact { padding: 50px 0; }
.section-alt { background: var(--paper-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: end; margin-bottom: 40px; }
.section-head h2, .legal-page h1, .docs-page h1, .token-hero h1, .app-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.03em;
}
.section-head h2 { font-size: 42px; line-height: 1.05; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 16px; max-width: 680px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { padding: 28px 24px; min-height: 185px; }
.step + .step { border-left: 1px solid var(--line); }
.step-number { display: block; color: var(--green); font-size: 12px; font-weight: 800; margin-bottom: 23px; }
.step-icon { width: 36px; height: 36px; color: var(--green-dark); margin-bottom: 18px; }
.step h3 { margin: 0 0 8px; font-size: 16px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.feature { padding: 25px 20px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature h3 { margin: 0 0 5px; font-size: 14px; }
.feature p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.feature svg { width: 29px; height: 29px; color: var(--green); }

.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.use-card { background: #fff; padding: 27px; min-height: 168px; }
.use-card svg { width: 31px; height: 31px; color: var(--green); margin-bottom: 22px; }
.use-card h3 { margin: 0 0 8px; font-size: 16px; }
.use-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.cta-band { background: var(--green-deep); color: #fff; padding: 58px 0; }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-grid h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 38px; }
.cta-grid p { margin: 10px 0 0; color: #c9ded1; max-width: 650px; line-height: 1.55; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: #7eac93; }

/* Footer */
.footer { background: #002d1c; color: #fff; padding: 46px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 55px; }
.footer .brand-copy span { color: #9db8a8; }
.footer p { color: #9db8a8; font-size: 12px; line-height: 1.6; max-width: 300px; }
.footer h4 { margin: 0 0 15px; font-size: 12px; color: #cbe0d3; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #d4e5dc; font-size: 13px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.13); margin-top: 35px; padding-top: 22px; color: #91ad9d; font-size: 11px; }
.socials { display: flex; gap: 12px; }
.social-link { width: 36px; height: 36px; border: 1px solid #547966; display: grid; place-items: center; color: #fff; }
.social-link:hover { background: rgba(255,255,255,.08); }
.social-link svg { width: 17px; height: 17px; }

/* Page headers */
.page-hero { padding: 70px 0 50px; background: #f8faf8; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 52px; letter-spacing: -.035em; }
.page-hero p { margin: 18px 0 0; max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* App */
.app-shell { min-height: calc(100vh - 76px); background: #f4f7f5; }
.app-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.app-sidebar { background: #fff; border-right: 1px solid var(--line); padding: 26px 18px; }
.app-sidebar nav { display: grid; gap: 4px; }
.app-sidebar a, .app-sidebar button { width: 100%; min-height: 42px; padding: 0 13px; border: 0; background: transparent; display: flex; align-items: center; gap: 11px; text-align: left; color: #3f5148; cursor: pointer; border-left: 3px solid transparent; }
.app-sidebar a.active, .app-sidebar a:hover, .app-sidebar button:hover { background: #f4f8f5; border-left-color: var(--green); color: var(--green-dark); }
.app-sidebar svg { width: 18px; height: 18px; }
.sidebar-section { margin-top: 27px; padding: 0 12px; color: #8a958f; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.app-main { padding: 38px 42px 60px; min-width: 0; }
.app-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.app-title h1 { font-size: 40px; }
.app-title p { margin: 10px 0 0; color: var(--muted); }
.wallet-box { display: flex; align-items: center; gap: 10px; }
.wallet-address { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #4d5f56; }
.mode-notice { border: 1px solid #e5d7aa; background: var(--warning-bg); color: #69521c; padding: 13px 16px; font-size: 12px; line-height: 1.5; margin-bottom: 22px; }
.mode-notice strong { color: #5c4717; }
.dashboard-grid { display: grid; grid-template-columns: 1.4fr .7fr; gap: 22px; }
.panel { background: #fff; border: 1px solid var(--line); }
.panel-header { min-height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header h2 { margin: 0; font-size: 15px; }
.panel-body { padding: 21px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; color: #738078; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; padding: 12px 13px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 15px 13px; border-bottom: 1px solid #edf0ee; vertical-align: middle; }
.data-table tbody tr:hover { background: #fafcfb; }
.data-table a { color: var(--green); font-weight: 700; }
.status-label { display: inline-flex; align-items: center; gap: 7px; color: #315541; font-size: 11px; }
.status-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6aa17b; }
.status-label.draft::before { background: #b09a62; }
.status-label.disputed::before { background: #b95555; }
.status-label.settled::before { background: #507b68; }
.stat-list { display: grid; }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.stat-row:first-child { padding-top: 0; }
.stat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.stat-row span { color: var(--muted); font-size: 12px; }
.stat-row strong { font-size: 18px; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12px; font-weight: 700; color: #405249; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  border: 1px solid var(--line-dark);
  background: #fff;
  border-radius: 2px;
  min-height: 44px;
  padding: 10px 12px;
  outline: none;
  color: var(--ink);
}
.form-field textarea { min-height: 105px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(2,113,60,.08); }
.form-help { color: #849089; font-size: 11px; line-height: 1.45; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.conditions-list { display: grid; gap: 10px; }
.condition-input { display: grid; grid-template-columns: 1fr 130px 38px; gap: 8px; }
.icon-button { width: 38px; height: 44px; border: 1px solid var(--line-dark); background: #fff; cursor: pointer; display: grid; place-items: center; }
.icon-button:hover { border-color: #a3ada7; }

/* LC detail */
.lc-detail-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) .65fr; gap: 22px; }
.summary-head { padding: 24px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.summary-head h2 { margin: 0; font-size: 20px; }
.summary-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; }
.summary-cell { padding: 20px 24px; border-bottom: 1px solid var(--line); }
.summary-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.summary-cell span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
.summary-cell strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.conditions-table { padding: 20px 24px; }
.conditions-table h3 { margin: 0 0 15px; font-size: 14px; }
.condition-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #edf0ee; }
.condition-index { width: 26px; height: 26px; border: 1px solid #cdd6d1; display: grid; place-items: center; font-size: 11px; }
.condition-item strong { display: block; font-size: 13px; }
.condition-item small { display: block; margin-top: 4px; color: var(--muted); }
.action-stack { display: grid; gap: 10px; }
.action-stack .btn { width: 100%; }
.timeline { display: grid; }
.timeline-item { position: relative; padding: 0 0 22px 25px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.timeline-item::before { content: ''; position: absolute; left: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.timeline-item::after { content: ''; position: absolute; left: 8px; top: 15px; bottom: 0; width: 1px; background: #ced8d2; }
.timeline-item:last-child::after { display: none; }
.timeline-item strong { color: #385045; display: block; margin-bottom: 3px; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(9,28,18,.42); display: none; align-items: center; justify-content: center; padding: 22px; }
.modal-backdrop.open { display: flex; }
.modal { width: min(780px, 100%); max-height: 92vh; overflow: auto; background: #fff; box-shadow: 0 25px 70px rgba(0,0,0,.22); }
.modal-header { padding: 20px 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-body { padding: 24px; }

/* Token page */
.token-hero { padding: 80px 0 64px; background: #032e1e; color: #fff; }
.token-hero-grid { display: grid; grid-template-columns: 1.05fr .75fr; gap: 70px; align-items: center; }
.token-hero h1 { font-size: 66px; }
.token-hero h1 span { color: #b7e75a; }
.token-hero p { color: #c6ddd0; font-size: 18px; line-height: 1.65; max-width: 650px; }
.token-facts { border: 1px solid #416652; }
.token-fact { display: flex; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #416652; }
.token-fact:last-child { border-bottom: 0; }
.token-fact span { color: #9fbbaa; font-size: 12px; }
.token-fact strong { font-size: 13px; }
.token-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.token-card { border: 1px solid var(--line); padding: 29px; }
.token-card h3 { margin: 0 0 11px; font-size: 18px; }
.token-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.architecture { border: 1px solid var(--line); }
.arch-row { display: grid; grid-template-columns: .7fr 1.3fr; }
.arch-row + .arch-row { border-top: 1px solid var(--line); }
.arch-row strong { padding: 19px 22px; background: #f7f9f7; border-right: 1px solid var(--line); font-size: 13px; }
.arch-row span { padding: 19px 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Docs and legal */
.docs-layout, .legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 70px; padding: 58px 0 85px; align-items: start; }
.docs-nav, .legal-nav { position: sticky; top: 105px; display: grid; gap: 4px; }
.docs-nav a, .legal-nav a { padding: 9px 12px; border-left: 2px solid transparent; color: #647169; font-size: 13px; }
.docs-nav a:hover, .legal-nav a:hover { color: var(--green); border-left-color: var(--green); background: #f5f8f6; }
.docs-page h1, .legal-page h1 { font-size: 50px; }
.docs-page h2, .legal-page h2 { margin: 48px 0 15px; font-family: var(--serif); font-size: 29px; font-weight: 500; }
.docs-page h3, .legal-page h3 { margin: 30px 0 10px; font-size: 17px; }
.docs-page p, .legal-page p, .docs-page li, .legal-page li { color: #536159; font-size: 15px; line-height: 1.75; }
.docs-page ul, .legal-page ul, .docs-page ol, .legal-page ol { padding-left: 22px; }
.docs-page code { background: #f0f4f1; border: 1px solid var(--line); padding: 2px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.code-block { background: #09271a; color: #d8e8de; padding: 20px; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.65; }
.legal-updated { color: #88948d; font-size: 12px; margin-top: 12px; }
.callout { border-left: 3px solid var(--green); background: #f3f8f5; padding: 18px 20px; color: #45574d; font-size: 14px; line-height: 1.6; margin: 24px 0; }
.callout.warning { border-left-color: #b68628; background: #fff9ec; }

/* Toast */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; min-width: 280px; max-width: 420px; background: #102b1e; color: #fff; padding: 15px 18px; box-shadow: 0 14px 40px rgba(0,0,0,.18); display: none; font-size: 13px; line-height: 1.45; }
.toast.show { display: block; }

/* Misc */
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu-button { display: block; }
  .hero-grid, .section-head, .token-hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero { padding-top: 48px; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-center { min-height: 60px; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .steps, .feature-row { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3), .feature:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .step:nth-child(4), .feature:nth-child(4) { border-top: 1px solid var(--line); }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .dashboard-grid, .lc-detail-grid { grid-template-columns: 1fr; }
  .docs-layout, .legal-layout { grid-template-columns: 1fr; }
  .docs-nav, .legal-nav { position: static; display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 15px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 30px, 1180px); }
  .site-header { height: 68px; }
  .brand { min-width: 0; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy span { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .header-actions .btn-secondary { display: none; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; }
  .lc-specimen-body, .summary-grid { grid-template-columns: 1fr; }
  .lc-col + .lc-col { border-left: 0; border-top: 1px solid var(--line); }
  .summary-cell:nth-child(odd) { border-right: 0; }
  .steps, .feature-row, .use-grid, .token-grid, .form-grid { grid-template-columns: 1fr; }
  .step + .step, .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 36px; }
  .cta-grid { display: grid; }
  .cta-grid h2 { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .app-main { padding: 28px 15px 50px; }
  .app-title { flex-direction: column; }
  .condition-input { grid-template-columns: 1fr 100px 38px; }
  .token-hero h1 { font-size: 52px; }
  .arch-row { grid-template-columns: 1fr; }
  .arch-row strong { border-right: 0; border-bottom: 1px solid var(--line); }
  .page-hero h1, .docs-page h1, .legal-page h1 { font-size: 42px; }
}

/* Public token + social actions */
.header-social {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-dark);
  display: inline-grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border-radius: 3px;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.header-social:hover { background: var(--paper-soft); border-color: #9aa69f; transform: translateY(-1px); }
.header-social svg { width: 15px; height: 15px; }
.btn-buy { background: #fff; color: var(--green-dark); border-color: #94b4a2; }
.btn-buy:hover { background: #f0f7f3; border-color: var(--green); }
.mobile-menu {
  position: fixed;
  z-index: 59;
  top: 76px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}
.mobile-menu nav { display: grid; gap: 4px; font-size: 14px; }
.mobile-menu a { padding: 11px 4px; border-bottom: 1px solid #edf1ee; }
.mobile-menu a:last-child { border-bottom: 0; }

.token-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 29px; }
.token-buy-button { background: #fff; color: var(--green-deep); border-color: #fff; }
.token-buy-button:hover { background: #eff7f2; border-color: #eff7f2; }
.token-x-button { color: #fff; border-color: #557968; background: transparent; }
.token-x-button:hover { background: rgba(255,255,255,.07); }
.token-x-icon { font-size: 15px; line-height: 1; }
.token-fact-ca { align-items: flex-start; }
.ca-value { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; max-width: 72%; }
.ca-value strong { min-width: 0; max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-copy {
  flex: 0 0 auto;
  border: 1px solid #678473;
  background: transparent;
  color: #d8e7de;
  border-radius: 2px;
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
  cursor: pointer;
}
.ca-copy:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.ca-copy:disabled { opacity: .45; cursor: default; }
.contract-inline { overflow-wrap: anywhere; }
.token-bottom-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 1100px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .brand { min-width: 185px; }
  .header-actions { gap: 7px; }
  .header-actions .btn { padding-left: 13px; padding-right: 13px; font-size: 12px; }
}

@media (max-width: 980px) {
  .mobile-menu { top: 76px; }
}

@media (max-width: 700px) {
  .mobile-menu { top: 68px; }
  .header-actions .header-social,
  .header-actions .btn-buy { display: none; }
  .ca-value { max-width: 66%; }
  .token-hero-actions { display: grid; grid-template-columns: 1fr; }
  .token-hero-actions .btn { width: 100%; }
}
