:root {
  --color-bg: #f8f7fb;
  --color-surface: #ffffff;
  --color-surface-soft: #f2eefb;
  --text-primary: #17131f;
  --text-secondary: #5f586b;
  --text-tertiary: #837a93;
  --text-on-brand: #ffffff;
  --brand-primary: #8a3ffc;
  --brand-primary-hover: #7434db;
  --brand-secondary: #efe7ff;
  --border-color: #ded7ea;
  --border-color-strong: #c5bad7;
  --success-bg: #e9f8f1;
  --success-text: #147a4d;
  --shadow-card: 0 20px 50px rgba(37, 25, 61, 0.09);
  --control-radius: 8px;
  --section-max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--border-color);
  background: rgba(248, 247, 251, 0.92);
  padding: 14px clamp(18px, 4vw, 52px);
  backdrop-filter: blur(18px);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  border: 1px solid var(--border-color-strong);
  border-radius: var(--control-radius);
  background: var(--color-surface);
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 25, 61, 0.08);
}

.menu-button span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    width 180ms ease;
}

.menu-button span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.menu-button span:nth-child(2) {
  width: 21px;
}

.menu-button span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

.menu-button:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.site-header.is-menu-open .menu-button span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.is-menu-open .menu-button span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-button span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px clamp(12px, 1.45vw, 20px);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
}

.nav a {
  line-height: 1.2;
  white-space: nowrap;
}

.nav a:hover,
.back-link:hover,
.site-footer a:hover,
.policy-card a:hover {
  color: var(--brand-primary);
}

.hero,
.project-hero,
.section {
  width: min(var(--section-max), calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  min-height: auto;
  padding: 54px 0 58px;
}

.hero-copy h1,
.project-hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p,
.project-hero p {
  max-width: 640px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.62;
}

.eyebrow,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.status {
  color: var(--success-text);
  letter-spacing: 0;
  text-transform: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--control-radius);
  font-weight: 800;
  padding: 0 20px;
}

.button-primary {
  background: var(--brand-primary);
  color: var(--text-on-brand);
}

.button-primary:hover {
  background: var(--brand-primary-hover);
}

.button-secondary {
  border: 1px solid var(--border-color-strong);
  background: var(--color-surface);
  color: var(--text-primary);
}

.hero-panel {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 3vw, 28px);
}

.workspace-visual {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.signal-grid,
.simple-list {
  display: grid;
  gap: 14px;
}

.signal-grid article,
.simple-list div,
.feature-card,
.project-card,
.roadmap li {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  padding: 22px;
}

.simple-list div {
  display: grid;
  gap: 5px;
}

.simple-list span {
  color: var(--text-secondary);
  line-height: 1.55;
}

.signal-grid article {
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-soft));
}

.signal-grid span {
  color: var(--brand-primary);
  font-weight: 900;
}

.signal-grid strong,
.feature-card h3,
.project-card h3 {
  font-size: 20px;
}

.signal-grid p,
.feature-card p,
.project-card p,
.stacked-copy p,
.contact-section p,
.roadmap span {
  color: var(--text-secondary);
  line-height: 1.65;
}

.section {
  padding: 54px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  max-width: 820px;
}

.section-heading h2,
.split-section h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-card h3,
.project-card h3 {
  margin: 0 0 10px;
}

.feature-card p,
.project-card p {
  margin: 0;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: start;
}

.stacked-copy {
  display: grid;
  gap: 18px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  border-left: 3px solid var(--brand-primary);
  color: var(--text-secondary);
  padding-left: 12px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px);
}

.project-card {
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease;
}

.project-card-large {
  max-width: 620px;
}

.project-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

.project-link,
.back-link {
  color: var(--brand-primary);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  border-top: 1px solid var(--border-color);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 22px clamp(18px, 4vw, 52px);
  font-size: 14px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.project-hero {
  display: grid;
  gap: 14px;
  padding: clamp(38px, 6vw, 58px) 0 clamp(24px, 4vw, 34px);
}

.project-hero .hero-actions {
  margin-top: 10px;
}

.project-hero h1 {
  margin-top: 0;
}

.project-hero-detailed,
.contact-hero {
  max-width: var(--section-max);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.metric-strip div {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  padding: 16px;
}

.metric-strip dt {
  color: var(--brand-primary);
  font-size: 24px;
  font-weight: 900;
}

.metric-strip dd {
  margin: 6px 0 0;
  color: var(--text-secondary);
  line-height: 1.45;
}

.info-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.info-table th,
.info-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 230px;
  background: var(--color-surface-soft);
  color: var(--text-primary);
  font-size: 14px;
}

.service-table th {
  width: auto;
}

.service-table td:first-child {
  color: var(--text-primary);
  font-weight: 800;
}

.info-table td {
  color: var(--text-secondary);
  line-height: 1.6;
}

.info-table thead th {
  color: var(--text-primary);
}

.policy-note {
  max-width: 860px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.policy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.policy-document {
  max-width: var(--section-max);
}

.policy-card {
  border: 0;
  border-top: 1px solid var(--border-color);
  border-radius: 0;
  background: transparent;
  padding: clamp(18px, 3vw, 24px) 0 0;
}

.policy-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.25;
}

.policy-card p {
  max-width: 940px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.policy-card + .policy-card {
  margin-top: 2px;
}

.policy-card a {
  color: var(--brand-primary);
  font-weight: 700;
}

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

.layer-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  gap: 18px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  padding: 20px;
}

.layer-list strong {
  color: var(--text-primary);
}

.layer-list span {
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-button {
  width: fit-content;
}

.contact-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.contact-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 30px);
}

.contact-card-muted {
  background: linear-gradient(180deg, var(--color-surface), var(--color-surface-soft));
}

.contact-card .button {
  margin-top: 20px;
}

.contact-card h2 {
  margin: 18px 0 22px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.14;
}

.contact-details {
  display: grid;
  gap: 14px;
}

.contact-details div {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.contact-details strong {
  color: var(--text-primary);
}

.contact-details span,
.contact-details a {
  color: var(--text-secondary);
  line-height: 1.55;
}

.contact-details a:hover {
  color: var(--brand-primary);
}

.roadmap {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  align-items: start;
}

.roadmap li::before {
  counter-increment: roadmap;
  content: counter(roadmap);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-secondary);
  color: var(--brand-primary);
  font-weight: 900;
}

.roadmap strong,
.roadmap span {
  grid-column: 2;
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .menu-button {
    display: grid;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    justify-content: flex-start;
    gap: 8px;
  }

  .site-header.is-menu-open .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--control-radius);
    background: var(--color-surface);
    padding: 0 12px;
  }

  .hero,
  .split-section,
  .contact-section,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .layer-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero,
  .project-hero,
  .section {
    width: min(100% - 28px, var(--section-max));
  }

  .site-header {
    padding: 14px;
  }

  .site-header.is-menu-open .nav {
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-copy h1,
  .project-hero h1 {
    font-size: 36px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 14px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
