:root {
  --page: min(1440px, calc(100% - 48px));
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --muted: rgba(245, 245, 239, 0.68);
  --dim: rgba(245, 245, 239, 0.38);
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --panel-hover: rgba(255, 255, 255, 0.07);
  --accent: #ff8a3d;
  --accent-soft: rgba(255, 138, 61, 0.12);
  --accent-strong: rgba(255, 138, 61, 0.24);
  --ok: #8fd68c;
  --warn: #f4c26b;
  --danger: #f08d7f;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 138, 61, 0.08), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, #050605 0%, #080907 50%, #060705 100%);
  color: #f5f5ef;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  word-break: keep-all;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  z-index: 999;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f5f5ef;
  color: #050605;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(5, 6, 5, 0.88), rgba(5, 6, 5, 0.56));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  width: var(--page);
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.nav-links a:hover {
  color: #f5f5ef;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-links .cta {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 92px;
  overflow: clip;
}

.hero-grid,
.hero-grid-base { position: absolute; inset: 0; }

.hero-grid-base {
  background-image:
    linear-gradient(rgba(255, 138, 61, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 138, 61, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask: radial-gradient(circle at 65% 35%, rgba(0, 0, 0, 0.95), transparent 72%);
  -webkit-mask: radial-gradient(circle at 65% 35%, rgba(0, 0, 0, 0.95), transparent 72%);
  opacity: 0.72;
}

.hero-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.14), rgba(255, 138, 61, 0.02) 48%, transparent 70%);
  filter: blur(8px);
}

.hero-layout,
.section-layout {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding: 78px 0 96px;
  max-width: 1160px;
}

.detail-hero .hero-copy {
  padding-bottom: 28px;
}

.section {
  position: relative;
  padding: 114px 0 120px;
}

.section + .section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-eyebrow,
.kicker,
.mono-label {
  font-family: var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-eyebrow,
.kicker {
  color: var(--dim);
  font-size: 13px;
  margin-bottom: 20px;
}

.hero h1,
.section-title {
  margin: 0;
  letter-spacing: -0.06em;
}

.hero h1 {
  max-width: 1120px;
  font-size: clamp(54px, 9vw, 138px);
  line-height: 1.04;
  font-weight: 800;
}

.hero h1 .muted,
.section-title .muted {
  color: rgba(245, 245, 239, 0.70);
  font-weight: 300;
  display: block;
}

.hero-signature { white-space: nowrap; }

.hero-summary,
.section-intro,
.footer-copy,
.panel p,
.note-list,
.trade-table {
  color: var(--muted);
}

.hero-summary {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(17px, 2vw, 20px);
}

.section-body { min-width: 0; }

.section-title {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
}

.telegram-promo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.telegram-promo-copy {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

.telegram-promo-copy .section-intro {
  margin: 0;
  max-width: 520px;
}

.telegram-cta-wrap {
  display: flex;
  align-items: center;
}

.telegram-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 138, 61, 0.18), rgba(255, 138, 61, 0.10)),
    rgba(255, 255, 255, 0.03);
  color: #f5f5ef;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.telegram-cta:hover,
.telegram-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 138, 61, 0.34);
  box-shadow:
    0 24px 44px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.telegram-cta-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telegram-cta-badge {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 22, 34, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 239, 0.82);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.telegram-cta:hover .telegram-cta-badge,
.telegram-cta:focus-visible .telegram-cta-badge {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.telegram-phone-shell {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 0 12px;
}

.telegram-phone-shell::before {
  content: "";
  position: absolute;
  inset: 14% 8% 8% 14%;
  background:
    radial-gradient(circle at center, rgba(57, 156, 255, 0.24), transparent 56%),
    radial-gradient(circle at 30% 40%, rgba(255, 138, 61, 0.10), transparent 48%);
  filter: blur(36px);
  pointer-events: none;
}

.telegram-phone-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 31%;
  width: 6px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  box-shadow:
    0 94px 0 rgba(255, 255, 255, 0.16),
    294px 28px 0 rgba(255, 255, 255, 0.18);
  transform: translateX(-230px) rotate(-7deg);
  opacity: 0.72;
  pointer-events: none;
}

.telegram-phone {
  position: relative;
  width: min(100%, 438px);
  padding: 20px 16px 18px;
  border-radius: 54px;
  background:
    linear-gradient(145deg, rgba(7, 9, 12, 0.99), rgba(27, 30, 37, 0.99)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 12%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 38px 120px rgba(0, 0, 0, 0.5),
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: visible;
  transform: perspective(1800px) rotateX(18deg) rotateY(-16deg) rotateZ(-7deg);
  transform-origin: 55% 50%;
  z-index: 1;
}

.telegram-phone::before {
  content: "";
  position: absolute;
  inset: 8px -14px -12px 12px;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(10, 12, 16, 0.98), rgba(34, 38, 46, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
  z-index: -2;
  pointer-events: none;
}

.telegram-phone::after {
  content: "";
  position: absolute;
  inset: auto 2px -18px 18px;
  height: 30px;
  border-radius: 0 0 40px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  filter: blur(8px);
  opacity: 0.9;
  pointer-events: none;
}

.telegram-phone-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(12, 19, 30, 0.99), rgba(8, 13, 21, 0.99)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 0 0 9px #090d14,
    inset 0 -18px 28px rgba(0, 0, 0, 0.16);
}

.telegram-phone-screen::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  width: 122px;
  height: 28px;
  border-radius: 999px;
  background: #05070a;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    44px 7px 0 -9px rgba(255, 255, 255, 0.16);
  z-index: 6;
  pointer-events: none;
}

.telegram-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 16%);
  pointer-events: none;
}

.telegram-phone-status,
.telegram-phone-topbar,
.telegram-input-bar,
.telegram-message-chip,
.telegram-block-title,
.telegram-message-meta {
  font-family: var(--mono);
}

.telegram-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 14px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 239, 0.82);
}

.telegram-phone-icons,
.telegram-input-icons,
.telegram-phone-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.telegram-phone-icons span,
.telegram-input-icons span,
.telegram-phone-actions span {
  display: inline-flex;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.telegram-phone-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 28px 28px 22px 22px;
  background: linear-gradient(180deg, rgba(24, 34, 50, 0.98), rgba(15, 22, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.telegram-avatar {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(124, 199, 255, 0.95), rgba(55, 133, 235, 0.95));
  color: #09111c;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.telegram-phone-heading {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.telegram-phone-heading strong {
  font-size: 17px;
  line-height: 1.1;
  color: #f5f5ef;
}

.telegram-phone-heading span {
  font-size: 12px;
  color: rgba(245, 245, 239, 0.62);
}

.telegram-phone-actions {
  margin-left: auto;
}

.telegram-chat-surface {
  margin-top: 12px;
  padding: 18px 18px 16px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background:
    radial-gradient(circle at top, rgba(60, 84, 116, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(14, 21, 33, 0.98), rgba(9, 15, 24, 0.98));
  display: grid;
  gap: 18px;
  min-height: 500px;
  align-content: center;
}

.telegram-date-separator {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 239, 0.68);
  background: rgba(255, 255, 255, 0.06);
}

.telegram-message {
  display: flex;
}

.telegram-message.is-outgoing {
  justify-content: flex-end;
}

.telegram-message.is-incoming {
  justify-content: flex-start;
}

.telegram-bubble {
  width: min(100%, 352px);
  padding: 14px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.telegram-message.is-outgoing .telegram-bubble {
  border-bottom-right-radius: 10px;
  background: linear-gradient(180deg, rgba(47, 95, 142, 0.95), rgba(40, 82, 124, 0.95));
  border-color: rgba(124, 199, 255, 0.28);
}

.telegram-message.is-incoming .telegram-bubble {
  border-bottom-left-radius: 10px;
  background: linear-gradient(180deg, rgba(23, 31, 43, 0.98), rgba(15, 22, 32, 0.98));
}

.telegram-message[data-tone="entry"] .telegram-bubble {
  background: linear-gradient(180deg, rgba(18, 45, 42, 0.98), rgba(12, 29, 28, 0.98));
  border-color: rgba(126, 231, 180, 0.30);
}

.telegram-message[data-tone="exit"] .telegram-bubble {
  background: linear-gradient(180deg, rgba(34, 45, 28, 0.98), rgba(20, 27, 17, 0.98));
  border-color: rgba(255, 209, 102, 0.24);
}

.telegram-message-heading {
  display: grid;
  gap: 10px;
}

.telegram-message-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 239, 0.78);
}

.telegram-message-chip[data-tone="entry"],
.telegram-message-chip[data-tone="exit"] {
  color: #d8f5d7;
  background: rgba(126, 231, 180, 0.14);
  border: 1px solid rgba(126, 231, 180, 0.16);
}

.telegram-message-chip[data-tone="exit"] {
  color: #ffe8bf;
  background: rgba(255, 209, 102, 0.12);
  border-color: rgba(255, 209, 102, 0.2);
}

.telegram-message-chip[data-tone="muted"] {
  color: rgba(245, 245, 239, 0.74);
  background: rgba(255, 255, 255, 0.06);
}

.telegram-message-title {
  font-size: 15px;
  line-height: 1.5;
  color: #f5f5ef;
  font-weight: 600;
  text-wrap: balance;
}

.telegram-message-body,
.telegram-message-block {
  display: grid;
}

.telegram-message-body {
  margin-top: 12px;
  gap: 12px;
}

.telegram-message-block {
  gap: 6px;
}

.telegram-block-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(124, 199, 255, 0.88);
}

.telegram-line,
.telegram-message-text {
  font-size: 13px;
  line-height: 1.58;
  color: rgba(236, 242, 247, 0.92);
}

.telegram-message-text {
  font-weight: 500;
}

.telegram-message-meta {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 239, 0.56);
}

.telegram-message-checks {
  color: rgba(124, 199, 255, 0.94);
}

.telegram-input-bar {
  margin-top: 12px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(19, 28, 40, 0.98), rgba(15, 22, 31, 0.98));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(245, 245, 239, 0.52);
}

.section-intro {
  max-width: 740px;
  margin: 26px 0 0;
  font-size: 17px;
}

.hero-metrics,
.detail-metric-strip,
.principle-grid,
.strategy-list,
.chart-grid,
.evidence-grid {
  display: grid;
  gap: 18px;
}

.hero-metrics {
  margin-top: 36px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-metric-strip {
  margin-top: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-metric-strip.compact {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.strategy-list {
  margin-top: 36px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.principle-grid,
.evidence-grid {
  margin-top: 42px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-grid {
  margin-top: 42px;
  grid-template-columns: 1.2fr 1fr;
}

.panel,
.metric-tile,
.strategy-row,
.principle-card,
.freshness-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel,
.principle-card,
.freshness-panel {
  padding: 26px;
}

.strategy-row {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: stretch;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  min-height: 100%;
}

.strategy-row::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background: radial-gradient(circle at 78% 28%, rgba(255, 138, 61, 0.18), transparent 42%);
}

.strategy-row[data-performance-tone="positive"]::before {
  background: radial-gradient(circle at 78% 28%, rgba(90, 215, 163, 0.16), transparent 42%);
}

.strategy-row[data-performance-tone="negative"]::before {
  background: radial-gradient(circle at 78% 28%, rgba(240, 141, 127, 0.16), transparent 42%);
}

.strategy-row:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.022));
  border-color: rgba(255, 138, 61, 0.20);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.strategy-row-main,
.strategy-row-head,
.panel-head,
.breadcrumbs,
.hero-chip-row,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.strategy-row-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.strategy-row-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.strategy-row-title-group {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.strategy-row-title-group p {
  max-width: none;
}

.strategy-row-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.strategy-row h3,
.principle-card h3,
.panel-head h3 {
  margin: 0;
  font-size: clamp(26px, 2vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.strategy-row p,
.principle-card p,
.panel-note,
.footer-copy {
  margin: 0;
  font-size: 15px;
}

.strategy-row-primary {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  justify-items: start;
  width: 100%;
}

.strategy-primary-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.strategy-primary-value {
  margin: 0;
  font-size: clamp(50px, 5.5vw, 76px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 800;
  color: #f5f5ef;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.strategy-row[data-performance-tone="positive"] .strategy-primary-value {
  color: #7ee7b4;
}

.strategy-row[data-performance-tone="negative"] .strategy-primary-value {
  color: #ff9a8f;
}

.strategy-primary-context,
.strategy-freshness {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.strategy-row-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.metric-tile {
  padding: 20px;
  min-height: 144px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.metric-tile.compact {
  min-height: 132px;
}

.metric-label,
.panel-note,
.footer-link,
.breadcrumbs,
.meta-chip,
.card-submeta,
.note-pill {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-label,
.panel-note,
.footer-link,
.breadcrumbs,
.card-submeta {
  color: var(--dim);
}

.metric-value {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 800;
  color: #f5f5ef;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-context {
  color: var(--muted);
  font-size: 14px;
}

.metric-value.is-positive { color: #ffd2b1; }
.metric-value.is-negative { color: #f1b0a2; }

.strategy-row .metric-tile.compact {
  min-height: 132px;
  padding: 20px 22px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.strategy-row .metric-tile.compact[data-risk-tone="low"] {
  border-color: rgba(90, 215, 163, 0.32);
  background: rgba(90, 215, 163, 0.13);
}

.strategy-row .metric-tile.compact[data-risk-tone="medium"] {
  border-color: rgba(255, 209, 102, 0.34);
  background: rgba(255, 209, 102, 0.14);
}

.strategy-row .metric-tile.compact[data-risk-tone="high"] {
  border-color: rgba(255, 79, 79, 0.55);
  background: rgba(255, 79, 79, 0.22);
}

.strategy-row .metric-tile.compact[data-risk-tone="low"] .metric-value {
  color: #7ee7b4;
}

.strategy-row .metric-tile.compact[data-risk-tone="medium"] .metric-value {
  color: #ffd166;
}

.strategy-row .metric-tile.compact[data-risk-tone="high"] .metric-value {
  color: #ff6f6f;
}

.strategy-row .metric-value {
  font-size: clamp(38px, 3vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.strategy-row .metric-label,
.strategy-row .metric-context,
.strategy-row .card-submeta {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.strategy-row .metric-context {
  line-height: 1.45;
}

.strategy-row-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.strategy-row-sparkline {
  display: grid;
  align-content: start;
  gap: 12px;
  grid-column: 1;
  grid-row: 2;
  min-height: 100%;
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 14px;
}

.strategy-row-chart-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.strategy-sparkline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sparkline-wrap {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  padding: 14px 12px 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.strategy-row:hover .sparkline-wrap {
  transform: translateY(-1px) scale(1.005);
}

.strategy-row[data-performance-tone="positive"] .sparkline-wrap {
}

.strategy-row[data-performance-tone="negative"] .sparkline-wrap {
}

.sparkline-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sparkline-empty {
  width: 100%;
  height: 100%;
  min-height: 164px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

.status-pill,
.meta-chip,
.note-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  color: #f5f5ef;
}

.status-pill[data-tone="running"],
.status-pill[data-tone="ok"] {
  background: rgba(143, 214, 140, 0.14);
  border-color: rgba(143, 214, 140, 0.24);
  color: #d8f5d7;
}

.status-pill[data-tone="warning"] {
  background: rgba(244, 194, 107, 0.15);
  border-color: rgba(244, 194, 107, 0.24);
  color: #ffe4b1;
}

.status-pill[data-tone="danger"] {
  background: rgba(240, 141, 127, 0.15);
  border-color: rgba(240, 141, 127, 0.24);
  color: #ffd7cf;
}

.status-pill[data-tone="muted"] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.meta-chip {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.text-link,
.footer-link {
  color: #f5f5ef;
}

.text-link::after,
.footer-link::after {
  content: " ↗";
  color: var(--accent);
}

.freshness-panel {
  margin-top: 38px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
}

.detail-hero .hero-summary {
  max-width: 760px;
}

.panel-head {
  align-items: flex-start;
  margin-bottom: 22px;
}

.panel-head h3 { font-size: 28px; }

.chart-surface,
.backtest-visual {
  min-height: 340px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-surface svg { width: 100%; height: 100%; }
.backtest-visual img { width: 100%; height: 100%; object-fit: cover; }

.detail-chart-section {
  padding-top: 74px;
  padding-bottom: 18px;
}

.detail-chart-section .section-layout,
.detail-chart-section .section-body {
  width: 100%;
  max-width: none;
  margin: 0;
  gap: 0;
}

.detail-chart-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(88vh, 1120px);
  min-height: 760px;
}

.detail-chart-note {
  width: min(var(--page), calc(100vw - 40px));
  margin: 12px auto 0;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  text-align: right;
}

.detail-chart-frame {
  width: 100%;
  height: 100%;
  background: #050605;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overflow: hidden;
}

.detail-chart-frame.is-dragging {
  cursor: grabbing;
}

.custom-candle-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.detail-tv-widget,
.detail-tv-widget .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.detail-title-section {
  padding-top: 12px;
  padding-bottom: 52px;
}

.detail-title-block {
  display: grid;
  gap: 12px;
}

.detail-page-title {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.03;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.detail-page-summary {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.detail-backtest-section {
  padding-top: 12px;
  padding-bottom: 72px;
}

.detail-backtest-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

#trades.section {
  padding-top: 12px;
}

.backtest-guide {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.backtest-guide strong {
  color: #f5f5ef;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.backtest-metric-tile {
  position: relative;
  overflow: visible;
  cursor: help;
}

.backtest-metric-tile .metric-label {
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  text-transform: none;
}

.backtest-metric-tile .metric-context {
  font-size: 13px;
}

.backtest-metric-tile[data-tooltip]:hover,
.backtest-metric-tile[data-tooltip]:focus-visible {
  border-color: rgba(255, 138, 61, 0.42);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}

.backtest-metric-tile[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: calc(100% - 6px);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 61, 0.38);
  background: rgba(10, 12, 10, 0.96);
  color: #ebe8df;
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  z-index: 8;
}

.backtest-metric-tile[data-tooltip]:hover::after,
.backtest-metric-tile[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.empty-chart,
.placeholder-copy,
.empty-trades {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

.detail-backtest-section .detail-backtest-grid,
#trades .panel {
  margin-top: 20px;
}

.trade-table-wrap {
  overflow: auto;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trade-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.trade-table th,
.trade-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.trade-table th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.trade-table td strong {
  color: #f5f5ef;
  font-weight: 600;
}

.trade-row.is-focused-trade {
  background: rgba(124, 199, 255, 0.08);
}

.trade-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.trade-row:hover,
.trade-row:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  outline: none;
}

.trade-row.is-focused-trade:hover,
.trade-row.is-focused-trade:focus-visible {
  background: rgba(124, 199, 255, 0.12);
}

.trade-table td .mono-label {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font-size: 11px;
}

.trade-focus-button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f5ef;
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.trade-focus-button:hover,
.trade-focus-button:focus-visible {
  border-color: rgba(124, 199, 255, 0.72);
  background: rgba(124, 199, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.trade-focus-button:active {
  transform: translateY(1px);
}

.trade-focus-button.is-active {
  border-color: rgba(124, 199, 255, 0.9);
  background: rgba(124, 199, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(124, 199, 255, 0.18) inset;
}

.note-list {
  display: grid;
  gap: 14px;
}

.note-item {
  padding: 18px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.note-item strong {
  display: block;
  font-size: 14px;
  color: #f5f5ef;
  margin-bottom: 6px;
}

.breadcrumbs {
  justify-content: flex-start;
  margin-bottom: 18px;
}

.breadcrumbs span { color: var(--dim); }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0 36px;
}

.footer-inner {
  width: var(--page);
  margin: 0 auto;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.muted-inline { color: rgba(245, 245, 239, 0.72); }

@media (max-width: 1180px) {
  .telegram-promo-grid,
  .hero-metrics,
  .strategy-list,
  .detail-metric-strip,
  .principle-grid,
  .chart-grid,
  .evidence-grid,
  .freshness-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .strategy-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 920px) {
  .hero-layout,
  .section-layout {
    grid-template-columns: 1fr;
  }
  .telegram-promo-grid {
    grid-template-columns: 1fr;
  }
  .telegram-phone-shell {
    justify-items: center;
  }
  .telegram-phone {
    width: min(100%, 420px);
    max-width: 420px;
    transform: perspective(1600px) rotateX(11deg) rotateY(-10deg) rotateZ(-4deg);
  }
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0 16px;
  }
  .nav-links {
    display: flex;
    width: 100%;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    flex: 0 0 auto;
  }
  .hero h1 {
    font-size: clamp(44px, 14vw, 92px);
  }
  .section-title {
    font-size: clamp(34px, 10vw, 52px);
  }
  .hero-metrics,
  .strategy-list,
  .detail-metric-strip,
  .principle-grid,
  .chart-grid,
  .evidence-grid,
  .freshness-panel {
    grid-template-columns: 1fr;
  }
  .strategy-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .strategy-row-main {
    gap: 14px;
  }
  .strategy-row-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .strategy-row-main,
  .strategy-row-sparkline {
    grid-column: auto;
    grid-row: auto;
  }
  .strategy-row-sparkline {
    min-height: auto;
  }
  .sparkline-wrap,
  .sparkline-empty {
    min-height: 132px;
  }
  .detail-chart-shell {
    height: 80vh;
    min-height: 600px;
  }
  .detail-backtest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-title-section {
    padding-bottom: 56px;
  }
}

@media (max-width: 640px) {
  :root {
    --page: min(100%, calc(100% - 28px));
  }
  .topbar-inner {
    min-height: 68px;
  }
  .brand {
    font-size: 16px;
  }
  .hero {
    min-height: auto;
    padding-top: 78px;
  }
  .hero-copy {
    padding: 48px 0 72px;
  }
  .metric-value {
    font-size: clamp(30px, 11vw, 44px);
  }
  .strategy-row .metric-value {
    font-size: clamp(22px, 8.2vw, 30px);
  }
  .strategy-row-metrics {
    grid-template-columns: 1fr;
  }
  .strategy-primary-value {
    font-size: clamp(34px, 12vw, 52px);
  }
  .panel,
  .metric-tile,
  .strategy-row,
  .principle-card,
  .freshness-panel {
    padding: 20px;
  }
  .telegram-chat-surface {
    min-height: 420px;
    padding: 14px 12px 12px;
  }
  .telegram-bubble {
    width: min(100%, 100%);
    padding: 13px 14px;
  }
  .telegram-phone-topbar {
    padding: 14px;
  }
  .telegram-avatar {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
  .telegram-cta-badge {
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
  }
  .telegram-cta:hover .telegram-cta-badge,
  .telegram-cta:focus-visible .telegram-cta-badge {
    transform: translateX(-50%) translateY(0);
  }
  .section {
    padding: 88px 0 96px;
  }
  .sparkline-wrap,
  .sparkline-empty {
    min-height: 112px;
  }
  .detail-chart-shell {
    height: 74vh;
    min-height: 480px;
  }
  .detail-backtest-grid {
    grid-template-columns: 1fr;
  }
  .detail-chart-section {
    padding-top: 68px;
    padding-bottom: 18px;
  }
  .detail-page-title {
    font-size: clamp(28px, 8vw, 40px);
  }
}
