/* ==========================================================================
   vusiredirsolution — site stylesheet
   Design language measured from the reference site: white canvas, black
   display type, blue action colour (#166aea), soft lavender section tints,
   42px pill buttons, 12px panels, 72px header.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --muted: #5c5f6b;
  --muted-strong: #2c2e36;
  --accent: #166aea;
  --accent-dark: #0f57c9;
  --accent-ink: #ffffff;
  --accent-soft: #eef3ff;
  --panel: #f6f7fd;
  --panel-2: #f6f7fd;
  --line: #e3e5ee;
  --line-soft: #eef0f6;
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 42px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 48px);
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Type helpers ----------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.lead,
.page-lead,
.section-lead {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  max-width: 58ch;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: rgba(0, 0, 0, 0.22);
  color: var(--ink);
  background: #fff;
}

.btn-ghost:hover {
  border-color: #000;
}

.btn-dark {
  background: #fff;
  color: #000;
}

.btn-dark:hover {
  background: var(--accent);
  color: #fff;
}

.btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-outline-dark:hover {
  border-color: #fff;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--accent);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}

.text-link:hover {
  color: var(--accent-dark);
  gap: 12px;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(20, 40, 90, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--accent);
  flex: none;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-word {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}

.nav-link-mobile {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 88px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -140px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 163, 255, 0.35), rgba(246, 247, 253, 0) 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: -180px;
  bottom: -220px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(189, 212, 237, 0.35), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(42px, 5.6vw, 66px);
  letter-spacing: -0.028em;
  line-height: 1.02;
}

.accent-word {
  color: var(--accent);
}

.hero .lead {
  margin-top: 24px;
  max-width: 52ch;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--font-head);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero-stats dd {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-media {
  position: relative;
  padding-bottom: 26px;
}

.browser-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(30, 55, 120, 0.14);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px 10px;
}

.frame-dots {
  display: inline-flex;
  gap: 5px;
}

.frame-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d7dae5;
}

.frame-dots i:first-child {
  background: rgba(22, 106, 234, 0.6);
}

.frame-url {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.frame-screen {
  overflow: hidden;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  aspect-ratio: 16 / 10.6;
}

.frame-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-detail {
  position: absolute;
  right: -14px;
  bottom: -6px;
  width: 44%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(30, 55, 120, 0.16);
}

.hero-detail img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  object-position: top center;
}

/* Systems index ---------------------------------------------------------- */

.systems {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.systems-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 34px;
}

.systems-lead p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-left: 1px solid var(--line);
}

.systems-grid li {
  padding: 4px 18px;
  border-right: 1px solid var(--line);
}

.system-index {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: #9a9daa;
}

.systems-grid strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.system-note {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Sections --------------------------------------------------------------- */

.section {
  padding: clamp(64px, 8.5vw, 112px) 0;
}

.section-tight {
  padding-top: clamp(32px, 4vw, 56px);
}

.section-panel {
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head h2 {
  margin-top: 14px;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.04;
}

.section-head .section-lead {
  padding-bottom: 4px;
}

/* Cards ------------------------------------------------------------------ */

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

.value-card {
  padding: 30px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.card-index {
  display: block;
  margin-bottom: 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.value-card h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.value-card p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-card {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.feature-card .card-index {
  margin-bottom: 16px;
  color: #9a9daa;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.feature-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

/* Showcase --------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.showcase h2 {
  margin-top: 14px;
  font-size: clamp(34px, 4.2vw, 52px);
}

.showcase .section-lead {
  margin-top: 20px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--muted-strong);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

.media-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 10.8;
  object-fit: cover;
  object-position: top center;
}

.media-frame figcaption {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, 5vw, 64px);
}

.case-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.case-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.case-figure figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.case-figure strong {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
}

.case-figure span {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Process ---------------------------------------------------------------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.process-grid li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.process-index {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.process-grid h3 {
  margin-top: 26px;
  font-size: 22px;
  font-weight: 500;
}

.process-grid p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--muted);
}

/* Page hero -------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding-top: clamp(56px, 7vw, 96px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 42%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 163, 255, 0.3), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.02;
}

.page-lead {
  margin-top: 22px;
  max-width: 64ch;
}

.page-hero-compact {
  padding-bottom: clamp(24px, 3vw, 40px);
}

/* Plans ------------------------------------------------------------------ */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plan-card-featured {
  border-color: rgba(22, 106, 234, 0.45);
  box-shadow: 0 18px 40px rgba(22, 106, 234, 0.08);
}

.plan-meta {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.plan-card h2 {
  margin-top: 14px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.plan-text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--muted);
}

.plan-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.plan-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted-strong);
}

.plan-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: rgba(22, 106, 234, 0.7);
}

.plan-card .text-link {
  margin-top: auto;
  padding-top: 24px;
}

.plans-note {
  max-width: 78ch;
  margin-top: 28px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* Stack list ------------------------------------------------------------- */

.stack-list {
  border-top: 1px solid var(--line);
}

.stack-list li {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}

.stack-index {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #9a9daa;
}

.stack-list strong {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.stack-note {
  font-size: 14px;
  color: var(--muted);
}

/* FAQ -------------------------------------------------------------------- */

.faq-wrap {
  max-width: 1040px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 17px;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  max-width: 80ch;
  padding: 0 0 24px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* Work ------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.work-card figure {
  margin: 0;
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.work-card-wide {
  grid-column: span 2;
}

.work-card-wide img {
  aspect-ratio: 16 / 8;
}

.work-meta {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
}

.work-tag {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-meta h2 {
  margin-top: 8px;
  font-size: 25px;
  font-weight: 500;
}

.work-meta p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* About ------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about-copy p {
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--muted-strong);
}

.about-copy p + p {
  margin-top: 18px;
}

.about-facts {
  display: grid;
  gap: 18px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.about-facts dt {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-facts dd {
  margin-top: 5px;
  font-size: 14.5px;
  line-height: 1.6;
}

.about-facts a {
  color: var(--accent);
}

/* Contact ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.contact-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dae6;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9daa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 106, 234, 0.12);
}

.field [aria-invalid='true'] {
  border-color: #d92d20;
}

.field-error {
  margin-top: 6px;
  font-size: 12.5px;
  color: #d92d20;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
}

.form-note {
  flex: 1 1 220px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.success-panel {
  padding: 12px 0 8px;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
}

.success-panel h2 {
  margin-top: 18px;
  font-size: 31px;
  font-weight: 500;
}

.success-panel p {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.success-panel .btn {
  margin-top: 24px;
}

.contact-aside {
  display: grid;
  gap: 26px;
}

.aside-block {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.aside-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.aside-label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.aside-email {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--accent);
  border-bottom: 1px solid rgba(22, 106, 234, 0.35);
}

.aside-block p,
.aside-block address {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-strong);
}

/* Legal ------------------------------------------------------------------ */

.legal-hero {
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.legal-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.legal-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.legal-meta {
  display: grid;
  gap: 3px;
  padding-bottom: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

.legal-meta strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.legal-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
}

.legal-toc-title {
  display: block;
  margin-bottom: 14px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.legal-toc nav {
  display: grid;
  gap: 8px;
}

.legal-toc nav a {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.legal-toc nav a:hover {
  color: var(--ink);
}

.legal-toc-links {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.legal-toc-links a {
  font-size: 12.5px;
  color: var(--accent);
}

.legal-body {
  max-width: 74ch;
}

.legal-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-strong);
}

.legal-block {
  margin-top: 40px;
  scroll-margin-top: 100px;
}

.legal-block h2 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.legal-block p {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.legal-block ul {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.legal-block li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.legal-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(22, 106, 234, 0.65);
}

/* 404 -------------------------------------------------------------------- */

.notfound {
  padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 11vw, 150px);
}

.notfound h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.8vw, 72px);
}

.notfound p {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 16px;
  color: var(--muted);
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* CTA band --------------------------------------------------------------- */

.cta-section {
  padding-top: 0;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: clamp(34px, 5vw, 60px);
  border-radius: 20px;
  background: #000;
  color: #fff;
}

.cta-band h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.04;
}

.cta-band p {
  margin-top: 12px;
  max-width: 46ch;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.68);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}

/* Footer ----------------------------------------------------------------- */

.site-footer {
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 34px;
}

.footer-name {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.footer-tagline {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.footer-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-email {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(22, 106, 234, 0.4);
  color: var(--accent);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.footer-links a {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-domain {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-registry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.footer-address {
  max-width: 62ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.footer-address span {
  display: inline-block;
  margin-right: 8px;
  color: #9a9daa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 10.5px;
}

.footer-legal {
  display: flex;
  gap: 22px;
  flex: none;
}

.footer-legal a {
  font-size: 12px;
  color: var(--muted);
}

.footer-legal a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 26px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #8a8d99;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-media {
    max-width: 720px;
  }

  .systems-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .systems-grid {
    border-left: none;
  }

  .systems-grid li:first-child {
    padding-left: 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .showcase,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

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

  .legal-toc {
    position: static;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px var(--pad) 26px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(20, 40, 90, 0.08);
  }

  .nav-open .main-nav {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-head);
    font-size: 20px;
    color: var(--ink);
  }

  .nav-link.is-active::after {
    display: none;
  }

  .nav-link-mobile {
    display: block;
    color: var(--accent);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav-open .nav-toggle span:first-child {
    transform: translateY(2.8px) rotate(45deg);
  }

  .nav-open .nav-toggle span:last-child {
    transform: translateY(-2.7px) rotate(-45deg);
  }

  .value-grid,
  .feature-grid,
  .case-strip,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    border-left: none;
  }

  .work-card-wide {
    grid-column: auto;
  }

  .work-card-wide img {
    aspect-ratio: 16 / 10;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .footer-registry {
    flex-direction: column;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .legal-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .legal-meta {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .header-inner {
    height: 68px;
  }

  .brand-word {
    font-size: 16px;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-stats dt {
    font-size: 23px;
  }

  .hero-detail {
    display: none;
  }

  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .systems-grid li {
    border-right: none;
    padding: 0;
  }

  .section-head h2,
  .showcase h2 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

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

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .stack-list li {
    grid-template-columns: 40px 1fr;
    gap: 10px 14px;
  }

  .stack-note {
    grid-column: 2;
    font-size: 13px;
  }

  .work-card img,
  .media-frame img {
    aspect-ratio: 4 / 3;
  }

  .cta-band {
    border-radius: 16px;
    padding: 28px 22px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-links {
    gap: 14px 20px;
  }

  .footer-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
