:root {
  --ink: #172039;
  --muted: #697189;
  --line: #e6e8f0;
  --surface: #ffffff;
  --soft: #f6f7fb;
  --purple: #6657e8;
  --purple-dark: #4b3ec8;
  --purple-soft: #eeebff;
  --green: #27a779;
  --orange: #ef9d45;
  --blue: #4e8de6;
  --shadow: 0 16px 45px rgba(29, 35, 67, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.topbar { height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: flex; align-items: center; gap: 36px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--purple); border-radius: 10px; box-shadow: 0 7px 18px rgba(102,87,232,.28); }
.brand-mark svg { width: 24px; fill: #fff; }
.brand-mark .brand-cut { fill: var(--purple); }
.desktop-nav { align-self: stretch; display: flex; align-items: stretch; gap: 30px; margin-left: 22px; }
.desktop-nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--purple); }
.desktop-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--purple); border-radius: 3px 3px 0 0; }
.profile { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.profile > span:last-child { display: grid; font-size: 13px; }
.profile small { color: var(--muted); margin-top: 2px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(135deg, #7c6ef1, #4d3cc8); font-size: 12px; font-weight: 800; }
.menu-button, .mobile-nav { display: none; }

main { overflow: hidden; }
.hero { min-height: 480px; padding: 70px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: clamp(50px, 8vw, 110px); color: white; background: radial-gradient(circle at 90% 15%, rgba(141,126,255,.34), transparent 25%), radial-gradient(circle at 12% 95%, rgba(95,73,222,.3), transparent 25%), linear-gradient(120deg, #171937, #2d2862 60%, #423584); position: relative; }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -120px; bottom: -210px; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.08); color: #d9d5ff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #7ee4b8; box-shadow: 0 0 0 4px rgba(126,228,184,.12); }
.hero h1 { margin: 20px 0 16px; font-size: clamp(38px, 4.4vw, 62px); line-height: 1.04; letter-spacing: -.045em; }
.hero h1 span { color: #aca3ff; }
.hero > div > p { max-width: 640px; color: #c9c9da; font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--purple); box-shadow: 0 10px 24px rgba(54,38,184,.3); }
.button.primary:hover { background: #7466ef; }
.button.secondary { color: white; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.project-card { position: relative; z-index: 2; padding: 26px; color: var(--ink); background: rgba(255,255,255,.97); border: 1px solid rgba(255,255,255,.5); border-radius: 20px; box-shadow: 0 24px 60px rgba(9,10,31,.28); }
.card-heading, .phase-top, .panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.card-heading > span:first-child { font-size: 12px; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pill { padding: 6px 9px; border-radius: 99px; background: #fff0e3; color: #c56f21; font-size: 11px; font-weight: 700; }
.version-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; margin: 24px 0; padding: 18px; background: var(--soft); border-radius: 13px; }
.version-flow div { display: grid; gap: 6px; }
.version-flow div:last-child { text-align: right; }
.version-flow small { color: var(--muted); font-size: 11px; }
.version-flow strong { font-size: 18px; }
.flow-arrow { color: var(--purple); font-weight: 900; }
.project-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.project-facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.project-facts div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.project-facts dd { margin: 0; font-size: 14px; font-weight: 750; }

.metrics { width: min(1180px, calc(100% - 48px)); margin: -28px auto 0; position: relative; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: 16px; box-shadow: var(--shadow); }
.metrics article { min-width: 0; padding: 23px 24px; display: flex; align-items: center; gap: 13px; position: relative; }
.metrics article + article { border-left: 1px solid var(--line); }
.metric-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.metric-icon.purple { background: var(--purple-soft); color: var(--purple); }
.metric-icon.blue { background: #eaf3ff; color: var(--blue); }
.metric-icon.orange { background: #fff1e5; color: var(--orange); }
.metric-icon.green { background: #e6f7f1; color: var(--green); }
.metrics article div { display: grid; gap: 2px; }
.metrics strong { font-size: 20px; }
.metrics small { color: var(--muted); white-space: nowrap; }
.trend { position: absolute; right: 16px; top: 15px; color: var(--green); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 86px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.kicker { display: block; margin-bottom: 9px; color: var(--purple); font-size: 11px; font-weight: 850; letter-spacing: .14em; }
.section h2, .cta-section h2, dialog h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.section-heading p, .cta-section p { margin: 10px 0 0; color: var(--muted); line-height: 1.6; }
.duration { flex: none; display: grid; gap: 3px; padding: 12px 16px; background: white; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 11px; }
.duration strong { color: var(--ink); font-size: 14px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-card { min-height: 345px; padding: 23px; display: flex; flex-direction: column; background: white; border: 1px solid var(--line); border-radius: 17px; transition: transform .25s, box-shadow .25s; }
.phase-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.phase-card.current { border-top: 3px solid var(--purple); }
.phase-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--purple); background: var(--purple-soft); font-size: 13px; font-weight: 850; }
.phase-time { color: var(--muted); font-size: 11px; }
.phase-card h3 { margin: 20px 0 8px; font-size: 18px; }
.phase-card p { min-height: 59px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.phase-card ul { list-style: none; margin: 17px 0; padding: 0; display: grid; gap: 10px; color: #49516a; font-size: 12px; }
.phase-card li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 900; }
.phase-status { margin-top: auto; align-self: flex-start; padding: 6px 9px; border-radius: 7px; color: var(--purple); background: var(--purple-soft); font-size: 10px; font-weight: 750; }
.phase-status.pending { color: var(--muted); background: var(--soft); }

.split-section { padding-bottom: 86px; display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; }
.panel { padding: 27px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 25px rgba(29,35,67,.04); }
.panel h2 { font-size: 24px; }
.health { padding: 7px 10px; border-radius: 8px; background: #e8f8f1; color: #21845f; font-size: 11px; font-weight: 700; }
.health i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--green); }
.catalogue-layout { margin-top: 28px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: center; }
.donut-wrap { display: flex; align-items: center; gap: 24px; }
.donut { width: 140px; height: 140px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--purple) 0 83%, #b3aaf8 83% 95%, #f0b467 95% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 18px; background: white; border-radius: 50%; }
.donut span { position: relative; z-index: 1; display: grid; text-align: center; }
.donut strong { font-size: 26px; }
.donut small { color: var(--muted); }
.legend { display: grid; gap: 13px; font-size: 11px; color: var(--muted); }
.legend span { display: grid; grid-template-columns: auto 1fr; gap: 0 7px; align-items: center; }
.legend strong { grid-column: 2; color: var(--ink); margin-top: 2px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.ready { background: var(--purple); }.legend-dot.review { background: #b3aaf8; }.legend-dot.blocked { background: #f0b467; }
.quality-list { display: grid; gap: 17px; }
.quality-list div { display: grid; gap: 8px; }
.quality-list span { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.quality-list b { color: var(--ink); }
progress { width: 100%; height: 7px; border: 0; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: #eceef4; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--purple); border-radius: 99px; }
.icon-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.integration-list { display: grid; margin-top: 18px; }
.integration { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.integration-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; font-weight: 900; }
.integration-icon.shop { color: var(--purple); background: var(--purple-soft); }
.integration-icon.supplier { color: var(--blue); background: #eaf3ff; }
.integration-icon.market { color: var(--orange); background: #fff1e5; }
.integration div { display: grid; gap: 3px; }
.integration strong { font-size: 13px; }
.integration small { color: var(--muted); font-size: 10px; }
.tag { padding: 5px 7px; border-radius: 6px; font-size: 9px; font-weight: 800; }
.ready-tag { color: var(--green); background: #e8f8f1; }.setup-tag { color: var(--blue); background: #eaf3ff; }.study-tag { color: #b46b22; background: #fff1e5; }
.sync-note { margin-top: 12px; padding: 13px; display: flex; gap: 10px; align-items: center; background: var(--soft); border-radius: 10px; }
.sync-note > span { color: var(--purple); }
.sync-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.sync-note strong { color: var(--ink); font-size: 11px; }

.cta-section { padding: 50px max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 50px; color: white; background: linear-gradient(120deg, #5a49d9, #7364e8); }
.cta-section p { color: #ddd9ff; }
.kicker.light { color: #d3ceff; }
.button.white { flex: none; color: var(--purple-dark); background: white; box-shadow: 0 12px 30px rgba(34,23,120,.2); }
footer { min-height: 70px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; color: var(--muted); background: white; font-size: 11px; }

dialog { width: min(520px, calc(100% - 32px)); padding: 32px; border: 0; border-radius: 20px; color: var(--ink); box-shadow: 0 30px 90px rgba(19,20,46,.3); }
dialog::backdrop { background: rgba(17,18,41,.62); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; color: var(--muted); font-size: 27px; cursor: pointer; }
dialog ol { margin: 25px 0; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: scope; }
dialog li { counter-increment: scope; display: grid; grid-template-columns: 34px 1fr; gap: 3px 12px; align-items: center; }
dialog li::before { content: counter(scope); grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--purple); background: var(--purple-soft); font-size: 12px; font-weight: 800; }
dialog li span { color: var(--muted); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 30; max-width: 360px; padding: 15px 18px; color: white; background: #20243d; border-radius: 11px; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .desktop-nav { gap: 18px; margin-left: 0; }
  .desktop-nav a { font-size: 12px; }
  .profile > span:last-child { display: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metrics article:nth-child(4) { border-top: 1px solid var(--line); }
  .roadmap-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar { height: 64px; padding: 0 18px; }
  .desktop-nav, .profile { display: none; }
  .menu-button { margin-left: auto; width: 40px; height: 40px; padding: 10px; display: grid; align-content: center; gap: 4px; border: 0; background: transparent; cursor: pointer; }
  .menu-button span { height: 2px; background: var(--ink); border-radius: 2px; }
  .mobile-nav { position: fixed; top: 64px; left: 0; right: 0; z-index: 19; padding: 14px 20px 20px; display: none; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 12px 0; color: var(--muted); font-size: 14px; font-weight: 650; }
  .hero { padding: 52px 24px 70px; grid-template-columns: 1fr; gap: 35px; }
  .hero h1 { font-size: 39px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .project-card { padding: 21px; }
  .metrics { width: calc(100% - 32px); margin-top: -25px; grid-template-columns: 1fr; }
  .metrics article + article { border-left: 0; border-top: 1px solid var(--line); }
  .trend { right: 22px; }
  .section { width: calc(100% - 32px); padding-top: 64px; }
  .section-heading { align-items: stretch; flex-direction: column; gap: 20px; }
  .duration { align-self: flex-start; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .phase-card { min-height: 315px; }
  .split-section { padding-bottom: 64px; }
  .panel { padding: 22px; }
  .panel-heading { align-items: flex-start; }
  .health { display: none; }
  .catalogue-layout { grid-template-columns: 1fr; gap: 28px; }
  .donut-wrap { justify-content: center; }
  .cta-section { padding: 42px 24px; align-items: stretch; flex-direction: column; gap: 26px; }
  .button.white { align-self: flex-start; }
  footer { padding: 22px 24px; align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 34px; }
  .project-facts { grid-template-columns: 1fr; }
  .project-facts div:nth-child(even) { padding-left: 0; border-left: 0; }
  .donut-wrap { align-items: flex-start; }
  .donut { width: 120px; height: 120px; }
  .integration { grid-template-columns: auto 1fr; }
  .integration .tag { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
