:root {
  --ink: #17161d;
  --muted: #656471;
  --soft: #8b8997;
  --line: #e7e5ed;
  --paper: #ffffff;
  --canvas: #f7f6fa;
  --violet: #7657ff;
  --violet-2: #a68fff;
  --pink: #f4b4d8;
  --blue: #7bc8ff;
  --green: #20b486;
  --amber: #efad3d;
  --red: #e84e5f;
  --shadow: 0 24px 70px rgba(27, 20, 58, 0.09);
  --shadow-sm: 0 12px 34px rgba(27, 20, 58, 0.07);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Inter", "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(166,143,255,.10), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(244,180,216,.13), transparent 28rem),
    var(--canvas);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[lang="fa"],
[dir="rtl"] {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
}

body[data-theme="wallex"] {
  --brand: #6d70ff;
  --brand-2: #34d7c3;
  --brand-soft: #ececff;
  --brand-dark: #101d31;
}
body[data-theme="digikala"] {
  --brand: #ef4056;
  --brand-2: #f6a8b3;
  --brand-soft: #fff0f2;
  --brand-dark: #24181b;
}

::selection { background: color-mix(in srgb, var(--brand) 22%, white); }
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 54%, white); outline-offset: 4px; }

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  transform: translateY(-180%);
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.case-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231,229,237,.82);
  background: rgba(247,246,250,.82);
  backdrop-filter: blur(18px);
}
.case-topbar__inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.back-link,
.next-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #34323d;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 750;
  transition: background .2s ease, transform .2s ease;
}
.back-link:hover,
.next-link:hover { background: #fff; transform: translateY(-1px); }
.case-topbar__project {
  color: var(--soft);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.side-rail {
  position: fixed;
  inset-inline-end: 22px;
  inset-block-start: 50%;
  transform: translateY(-50%);
  z-index: 35;
  display: grid;
  gap: 9px;
}
.side-rail a {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d7d4e0;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  transition: width .2s ease, background .2s ease;
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}
.side-rail a:hover,
.side-rail a[aria-current="true"] { width: 30px; background: var(--brand); }

.case-main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.case-section { padding: 104px 0; scroll-margin-top: 76px; }
.case-section--compact { padding: 70px 0; }
.case-section--flush-top { padding-top: 32px; }

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: center;
  gap: 58px;
  padding: 88px clamp(28px, 5vw, 68px);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 40px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.72)),
    linear-gradient(135deg, var(--brand-soft), #fff);
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  inset-inline-end: -180px;
  inset-block-start: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent), transparent 67%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  inset-inline-start: 36%;
  inset-block-end: -150px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 29%, transparent), transparent 68%);
  pointer-events: none;
}
.hero__content,
.hero__visual { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.1rem);
  line-height: .91;
  letter-spacing: -.075em;
  color: var(--ink);
}
.hero h1 span { color: var(--brand); }
.hero__dek {
  max-width: 680px;
  margin: 30px 0 0;
  color: #4f4d59;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.55;
}
.hero__badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #4d4b58;
  font-size: .78rem;
  font-weight: 750;
}
.badge--status { border-color: #f2d38d; background: #fff7df; color: #825e11; }
.badge--verified { border-color: #b8e8d8; background: #effbf7; color: #15654c; }
.badge--hypothesis { border-color: #d8ccff; background: #f5f1ff; color: #5c40a7; }
.badge--proposed { border-color: #ffd0d5; background: #fff1f3; color: #a13142; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.hero-meta__item { min-height: 104px; padding: 18px; background: rgba(255,255,255,.93); }
.hero-meta__label { display: block; margin-bottom: 7px; color: var(--soft); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-meta__value { color: #32303a; font-size: .93rem; font-weight: 720; line-height: 1.45; }

.hero__visual { display: grid; place-items: center; }
.hero-orbit {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px dashed color-mix(in srgb, var(--brand) 28%, transparent);
  border-radius: 50%;
}
.hero-orbit::after { inset: 0; opacity: .45; }
.orbit-chip {
  position: absolute;
  z-index: 3;
  min-width: 118px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 35px rgba(34,28,65,.12);
  backdrop-filter: blur(12px);
}
.orbit-chip strong { display: block; color: var(--ink); font-size: .92rem; }
.orbit-chip small { display: block; color: var(--soft); font-size: .69rem; }
.orbit-chip--a { inset-inline-start: -2%; inset-block-start: 15%; }
.orbit-chip--b { inset-inline-end: -2%; inset-block-start: 23%; }
.orbit-chip--c { inset-inline-end: 8%; inset-block-end: 8%; }
.orbit-chip--d { inset-inline-start: 4%; inset-block-end: 12%; }

.phone {
  position: relative;
  width: 272px;
  min-height: 554px;
  padding: 10px;
  border-radius: 42px;
  background: #171722;
  box-shadow: 0 40px 90px rgba(23,22,29,.24), inset 0 0 0 1px rgba(255,255,255,.12);
}
.phone::before {
  content: "";
  position: absolute;
  z-index: 5;
  width: 96px;
  height: 24px;
  inset-block-start: 10px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #171722;
}
.phone__screen {
  position: relative;
  min-height: 534px;
  overflow: hidden;
  border-radius: 34px;
  background: #f7f8fc;
  color: #1b2430;
}
.phone__status { height: 36px; padding: 11px 16px 0; display: flex; justify-content: space-between; color: #6e7481; font-size: .62rem; font-weight: 800; }
.phone__body { padding: 13px 16px 18px; }
.phone__topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.phone__title { margin: 0; font-size: 1.12rem; line-height: 1.2; }
.phone__muted { color: #737987; font-size: .72rem; line-height: 1.45; }
.phone__card { padding: 14px; margin-bottom: 11px; border: 1px solid #e5e7ee; border-radius: 15px; background: #fff; box-shadow: 0 8px 20px rgba(39,45,64,.05); }
.phone__card--accent { color: #fff; border: 0; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 72%, #16213b)); }
.phone__label { color: #818594; font-size: .61rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.phone__value { margin-top: 4px; font-size: 1.22rem; font-weight: 850; letter-spacing: -.03em; }
.phone__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.phone__pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #eef1f7; color: #5c6271; font-size: .62rem; font-weight: 800; }
.phone__pill--good { background: #e8f8f1; color: #187257; }
.phone__pill--warn { background: #fff2dd; color: #956214; }
.phone__pill--risk { background: #ffeaed; color: #ad3345; }
.phone__button { width: 100%; min-height: 42px; margin-top: 9px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 850; }
.phone__button--secondary { border: 1px solid #dedfe7; background: #fff; color: #343944; }
.phone__progress { height: 7px; margin: 9px 0 6px; overflow: hidden; border-radius: 999px; background: #e9ebf1; }
.phone__progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--amber), var(--red)); }
.phone__divider { height: 1px; margin: 11px 0; background: #eceef3; }
.phone__mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.phone__mini { padding: 9px; border-radius: 10px; background: #f5f6fa; }
.phone__mini span { display: block; color: #888c98; font-size: .55rem; }
.phone__mini strong { display: block; margin-top: 2px; font-size: .72rem; }
.phone[dir="rtl"] .phone__body { text-align: right; }

.section-intro { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 64px; align-items: start; margin-bottom: 48px; }
.section-kicker { margin: 0; color: var(--brand); font-size: .77rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.section-title { margin: 11px 0 0; max-width: 820px; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.055em; }
.section-lede { max-width: 760px; margin: 0; color: #54525d; font-size: clamp(1.05rem, 1.45vw, 1.24rem); line-height: 1.75; }
.section-lede + .section-lede { margin-top: 18px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.28fr) minmax(320px, .72fr); }
.split--wide-right { grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); }
.stack { display: grid; gap: 20px; }

.panel {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-sm);
}
.panel--quiet { box-shadow: none; background: rgba(255,255,255,.63); }
.panel--dark { color: #fff; border-color: rgba(255,255,255,.1); background: var(--brand-dark); }
.panel--brand { border-color: transparent; background: linear-gradient(145deg, var(--brand-soft), #fff); }
.panel__number { display: block; margin-bottom: 18px; color: var(--brand); font-size: .74rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.panel h3 { margin: 0 0 12px; font-size: clamp(1.25rem, 2vw, 1.72rem); line-height: 1.25; letter-spacing: -.025em; }
.panel p { margin: 0; color: #63616d; }
.panel--dark p { color: rgba(255,255,255,.72); }
.panel p + p { margin-top: 12px; }
.panel ul { margin: 16px 0 0; padding-inline-start: 20px; color: #5f5d68; }
.panel li + li { margin-top: 8px; }

.integrity-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px 26px;
  border: 1px solid #eadfb9;
  border-radius: 20px;
  background: #fffaf0;
}
.integrity-note__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #fff0c4; font-size: 1.1rem; }
.integrity-note h3 { margin: 0 0 5px; font-size: 1rem; }
.integrity-note p { margin: 0; color: #6e6042; font-size: .91rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { min-height: 168px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(31,27,48,.05); }
.metric__value { display: block; margin-bottom: 8px; color: var(--brand); font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; font-weight: 870; letter-spacing: -.055em; }
.metric__label { display: block; color: #34323b; font-size: .9rem; font-weight: 800; }
.metric__source { display: block; margin-top: 10px; color: var(--soft); font-size: .68rem; line-height: 1.4; }

.evidence-legend { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.evidence-card { min-height: 245px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.evidence-card__tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 8px; margin-bottom: 18px; border-radius: 999px; font-size: .65rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.evidence-card__tag--verified { background: #e9f9f3; color: #156c51; }
.evidence-card__tag--inferred { background: #f3efff; color: #5e42a7; }
.evidence-card__tag--proposed { background: #fff0f2; color: #a22c40; }
.evidence-card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.evidence-card p { margin: 0; color: #66636e; font-size: .92rem; }
.evidence-card__source { display: block; margin-top: 18px; color: var(--soft); font-size: .7rem; }

.quote-block {
  position: relative;
  padding: clamp(36px, 6vw, 74px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), color-mix(in srgb, var(--brand) 38%, var(--brand-dark)));
  box-shadow: var(--shadow);
}
.quote-block::before { content: "“"; position: absolute; inset-inline-start: 24px; inset-block-start: -35px; color: rgba(255,255,255,.09); font-family: Georgia, serif; font-size: 15rem; line-height: 1; }
.quote-block blockquote { position: relative; max-width: 960px; margin: 0; font-size: clamp(1.8rem, 4.2vw, 3.8rem); line-height: 1.14; letter-spacing: -.04em; font-weight: 700; }
.quote-block cite { display: block; margin-top: 24px; color: rgba(255,255,255,.65); font-size: .82rem; font-style: normal; }

.audit-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); }
.audit-item { display: grid; grid-template-columns: 56px minmax(180px, .7fr) minmax(0, 1.3fr); gap: 18px; align-items: start; padding: 24px; background: #fff; }
.audit-item__index { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: .75rem; font-weight: 900; }
.audit-item h3 { margin: 4px 0 0; font-size: 1rem; }
.audit-item p { margin: 2px 0 0; color: #66636f; font-size: .9rem; }

.journey { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.journey-step { position: relative; min-height: 210px; padding: 22px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.journey-step::after { content: "→"; position: absolute; inset-inline-end: -15px; inset-block-start: 46%; z-index: 2; width: 20px; color: #b2aebb; text-align: center; font-weight: 900; }
.journey-step:last-child::after { display: none; }
.journey-step__num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 900; }
.journey-step h3 { margin: 16px 0 8px; font-size: .95rem; }
.journey-step p { margin: 0; color: #77747f; font-size: .77rem; line-height: 1.55; }
.journey-step--critical { border-color: color-mix(in srgb, var(--brand) 34%, var(--line)); background: linear-gradient(155deg, var(--brand-soft), #fff); }

.blueprint { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.blueprint table { width: 100%; min-width: 900px; border-collapse: collapse; table-layout: fixed; }
.blueprint th,
.blueprint td { padding: 18px 16px; border-inline-end: 1px solid var(--line); border-block-end: 1px solid var(--line); vertical-align: top; text-align: start; }
.blueprint th:last-child,
.blueprint td:last-child { border-inline-end: 0; }
.blueprint tr:last-child td { border-block-end: 0; }
.blueprint thead th { background: #faf9fc; color: #4e4b57; font-size: .73rem; letter-spacing: .05em; text-transform: uppercase; }
.blueprint tbody th { width: 156px; background: #faf9fc; color: var(--brand); font-size: .74rem; font-weight: 850; }
.blueprint td { color: #67646f; font-size: .8rem; line-height: 1.55; }
.blueprint .pain { color: #a63143; font-weight: 700; }
.blueprint .opportunity { color: #176c52; font-weight: 700; }

.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.principle { min-height: 260px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.principle__icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1rem; font-weight: 900; }
.principle h3 { margin: 0 0 10px; font-size: 1.16rem; }
.principle p { margin: 0; color: #6b6873; font-size: .9rem; }
.principle small { display: block; margin-top: 16px; color: var(--soft); font-size: .68rem; }

.prototype-shell { padding: clamp(26px, 5vw, 60px); border-radius: 32px; color: #fff; background: var(--brand-dark); box-shadow: var(--shadow); }
.prototype-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.prototype-head h3 { max-width: 700px; margin: 0; font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.08; letter-spacing: -.04em; }
.prototype-head p { max-width: 370px; margin: 0; color: rgba(255,255,255,.62); font-size: .86rem; }
.prototype-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 30px; }
.prototype-control,
.prototype-result { min-height: 420px; padding: 28px; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: rgba(255,255,255,.055); }
.prototype-label { display: block; margin-bottom: 9px; color: rgba(255,255,255,.56); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prototype-big { display: block; color: #fff; font-size: clamp(2.5rem, 6vw, 5.1rem); line-height: 1; font-weight: 860; letter-spacing: -.055em; }
.prototype-sub { display: block; margin-top: 7px; color: rgba(255,255,255,.58); font-size: .8rem; }
.range-wrap { margin: 36px 0 24px; }
.range-wrap input[type="range"] { width: 100%; accent-color: var(--brand-2); }
.range-labels { display: flex; justify-content: space-between; margin-top: 8px; color: rgba(255,255,255,.46); font-size: .68rem; }
.prototype-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
.prototype-fact { padding: 13px; border-radius: 13px; background: rgba(255,255,255,.07); }
.prototype-fact span { display: block; color: rgba(255,255,255,.48); font-size: .62rem; }
.prototype-fact strong { display: block; margin-top: 3px; font-size: .85rem; }
.result-card { padding: 20px; margin-top: 22px; border-radius: 18px; background: #fff; color: var(--ink); }
.result-card__status { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: #eaf8f3; color: #176c52; font-size: .66rem; font-weight: 850; }
.result-card__status[data-level="warn"] { background: #fff1d7; color: #966313; }
.result-card__status[data-level="risk"] { background: #ffe9ed; color: #aa3345; }
.result-card h4 { margin: 17px 0 4px; font-size: 1.02rem; }
.result-card p { margin: 0; color: #676470; font-size: .82rem; }
.result-gauge { position: relative; height: 10px; margin: 22px 0 8px; overflow: hidden; border-radius: 999px; background: linear-gradient(90deg, #31bd8f 0 42%, #efb447 42% 70%, #e94f60 70%); }
.result-gauge i { position: absolute; width: 14px; height: 14px; inset-block-start: 50%; transform: translate(-50%,-50%); border: 3px solid #fff; border-radius: 50%; background: #151821; box-shadow: 0 1px 6px rgba(0,0,0,.22); }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.segmented button { min-height: 48px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); font-size: .76rem; font-weight: 780; }
.segmented button[aria-pressed="true"] { border-color: transparent; background: #fff; color: var(--ink); }
.offer-list { display: grid; gap: 10px; margin-top: 20px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: rgba(255,255,255,.045); }
.offer[data-recommended="true"] { border-color: color-mix(in srgb, var(--brand-2) 60%, transparent); background: color-mix(in srgb, var(--brand) 23%, transparent); }
.offer__name { display: block; font-size: .87rem; font-weight: 820; }
.offer__meta { display: block; margin-top: 4px; color: rgba(255,255,255,.52); font-size: .67rem; }
.offer__price { text-align: end; font-size: .86rem; font-weight: 850; }
.offer__price small { display: block; color: rgba(255,255,255,.47); font-size: .61rem; font-weight: 600; }
.recommendation { margin-top: 18px; padding: 17px; border-radius: 14px; background: #fff; color: var(--ink); }
.recommendation strong { display: block; }
.recommendation p { margin: 6px 0 0; color: #686572; font-size: .78rem; }

.screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; align-items: start; }
.screen-card { padding: 26px 18px 18px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.72); text-align: center; }
.screen-card .phone { margin: 0 auto; transform: scale(.9); transform-origin: top center; }
.screen-card__caption { margin: -34px 8px 8px; text-align: start; }
.screen-card__caption span { color: var(--brand); font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.screen-card__caption h3 { margin: 6px 0 7px; font-size: 1.15rem; }
.screen-card__caption p { margin: 0; color: #6b6873; font-size: .82rem; }

.before-after { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 22px; align-items: center; }
.before-after__arrow { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; }
.state-card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.state-card--before { background: #faf9fc; }
.state-card--after { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); background: linear-gradient(155deg, var(--brand-soft), #fff); }
.state-card__label { display: block; color: var(--soft); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.state-card h3 { margin: 10px 0 12px; font-size: 1.35rem; }
.state-card ul { margin: 0; padding-inline-start: 18px; color: #66636f; font-size: .9rem; }
.state-card li + li { margin-top: 8px; }

.standard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.standard { display: grid; grid-template-columns: 70px 1fr; gap: 18px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.standard__code { width: 70px; min-height: 58px; display: grid; place-items: center; padding: 8px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); text-align: center; font-size: .7rem; font-weight: 900; line-height: 1.25; }
.standard h3 { margin: 0 0 5px; font-size: 1rem; }
.standard p { margin: 0; color: #696672; font-size: .82rem; }
.standard small { display: block; margin-top: 8px; color: var(--soft); font-size: .67rem; }

.study-plan { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; counter-reset: study; }
.study-card { min-height: 240px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; counter-increment: study; }
.study-card::before { content: counter(study, decimal-leading-zero); display: block; margin-bottom: 26px; color: var(--brand); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.study-card h3 { margin: 0 0 9px; font-size: 1rem; }
.study-card p { margin: 0; color: #6c6974; font-size: .8rem; }
.study-card strong { color: #33313a; }

.metric-tree { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; }
.north-star { min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; padding: 38px; border-radius: 26px; color: #fff; background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 52%, var(--brand-dark))); box-shadow: var(--shadow); }
.north-star__label { font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }
.north-star h3 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.north-star p { margin: 0; color: rgba(255,255,255,.72); }
.guardrail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.guardrail { min-height: 170px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.guardrail span { color: var(--brand); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.guardrail h3 { margin: 12px 0 6px; font-size: 1rem; }
.guardrail p { margin: 0; color: #6b6874; font-size: .78rem; }

.roadmap { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.roadmap-card { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.roadmap-card__phase { display: inline-flex; padding: 6px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: .67rem; font-weight: 900; }
.roadmap-card h3 { margin: 18px 0 10px; }
.roadmap-card ul { margin: 0; padding-inline-start: 18px; color: #686570; font-size: .83rem; }
.roadmap-card li + li { margin-top: 8px; }

.source-list { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.source-list a { display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; background: #fff; text-decoration: none; }
.source-list a:hover { background: var(--brand-soft); }
.source-list__num { color: var(--brand); font-size: .72rem; font-weight: 900; }
.source-list__title { color: #33313b; font-size: .88rem; font-weight: 740; }
.source-list__type { color: var(--soft); font-size: .68rem; text-transform: uppercase; }

.case-footer { padding: 76px 0 110px; }
.next-project { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: clamp(28px,5vw,58px); border-radius: 30px; color: #fff; background: var(--brand-dark); text-decoration: none; box-shadow: var(--shadow); }
.next-project__label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.53); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.next-project h2 { margin: 0; font-size: clamp(2rem,4.8vw,4.6rem); line-height: 1; letter-spacing: -.055em; }
.next-project__arrow { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand-dark); font-size: 1.4rem; transition: transform .2s ease; }
.next-project:hover .next-project__arrow { transform: translateX(5px); }

.rtl-demo { direction: rtl; text-align: right; }
.ltr-token { direction: ltr; unicode-bidi: isolate; display: inline-block; font-variant-numeric: tabular-nums; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1120px) {
  .side-rail { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__visual { margin-top: 10px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .journey { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .journey-step:nth-child(3)::after { display: none; }
  .principle-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .screen-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .study-plan { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  .case-topbar__project { display: none; }
  .case-main, .case-topbar__inner { width: min(100% - 24px, var(--max)); }
  .case-section { padding: 76px 0; }
  .hero { margin-top: 12px; padding: 52px 22px; border-radius: 28px; }
  .hero h1 { font-size: clamp(3.2rem, 17vw, 5.2rem); }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-orbit { width: 350px; max-width: 100%; }
  .orbit-chip { min-width: 104px; padding: 9px 10px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .prototype-head { display: block; }
  .prototype-head p { margin-top: 14px; }
  .prototype-grid { grid-template-columns: 1fr; }
  .standard-grid { grid-template-columns: 1fr; }
  .metric-tree { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .before-after__arrow { transform: rotate(90deg); margin: 0 auto; }
}

@media (max-width: 620px) {
  .case-topbar__inner { min-height: 58px; }
  .next-link { display: none; }
  .hero__visual { overflow: hidden; }
  .hero-orbit { transform: scale(.87); margin: -24px 0; }
  .phone { width: 260px; }
  .metric-grid, .principle-grid, .screen-grid, .study-plan, .guardrail-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey-step::after { content: "↓"; inset-inline-end: auto; inset-inline-start: 50%; inset-block-start: auto; inset-block-end: -19px; }
  .journey-step:nth-child(3)::after { display: block; }
  .journey-step:last-child::after { display: none; }
  .audit-item { grid-template-columns: 44px 1fr; }
  .audit-item p { grid-column: 2; }
  .prototype-shell { padding: 24px 16px; }
  .prototype-control, .prototype-result { padding: 20px 16px; min-height: auto; }
  .segmented { grid-template-columns: 1fr; }
  .integrity-note { grid-template-columns: 1fr; }
  .source-list a { grid-template-columns: 36px 1fr; }
  .source-list__type { display: none; }
  .next-project { grid-template-columns: 1fr; }
  .next-project__arrow { width: 54px; height: 54px; }
}

@media print {
  body { background: #fff; }
  .case-topbar, .side-rail, .prototype-shell button, .case-footer { display: none !important; }
  .case-main { width: 100%; }
  .case-section { padding: 42px 0; break-inside: avoid; }
  .hero, .panel, .metric, .evidence-card, .principle, .screen-card, .standard, .study-card { box-shadow: none; }
  .reveal { opacity: 1; transform: none; }
}

/* July 2026 refinement: calmer editorial hierarchy */
.section-intro {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 72px);
}
.section-title {
  max-width: 680px;
  font-size: clamp(2rem, 3.35vw, 3.55rem);
  line-height: 1.055;
  letter-spacing: -.047em;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(3.25rem, 6.2vw, 6.35rem);
}
.prototype-head h3 {
  font-size: clamp(1.75rem, 3.25vw, 2.85rem);
}
.north-star h3 {
  font-size: clamp(2rem, 3.25vw, 3.35rem);
  line-height: 1.04;
}
.next-project h2 {
  font-size: clamp(1.9rem, 3.8vw, 3.75rem);
  line-height: 1.03;
}

@media (max-width: 800px) {
  .section-intro { grid-template-columns: 1fr; gap: 20px; }
  .section-title { font-size: clamp(2rem, 9vw, 3.15rem); }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
}

@media (max-width: 620px) {
  .section-title { font-size: clamp(1.9rem, 10vw, 2.65rem); line-height: 1.08; }
  .prototype-head h3 { font-size: clamp(1.65rem, 9vw, 2.35rem); }
  .north-star h3 { font-size: clamp(1.9rem, 10vw, 2.7rem); }
  .next-project h2 { font-size: clamp(1.9rem, 10vw, 2.75rem); }
}
