:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #eef3fb;
  --ink: #121a2b;
  --muted: #66728a;
  --line: rgba(18, 26, 43, 0.08);
  --line-strong: rgba(18, 26, 43, 0.14);
  --blue: #577bff;
  --teal: #7adbd3;
  --navy: #0f1728;
  --shadow: 0 24px 60px rgba(26, 37, 60, 0.1);
  --shell: min(1240px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(122, 219, 211, 0.14), transparent 18%),
    radial-gradient(circle at 84% 20%, rgba(87, 123, 255, 0.11), transparent 22%),
    linear-gradient(180deg, #f7f8fc 0%, #f2f5fb 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 320px;
  height: 320px;
  left: -150px;
  top: 200px;
  background: radial-gradient(circle, rgba(122, 219, 211, 0.12) 0%, rgba(122, 219, 211, 0) 72%);
}

body::after {
  width: 380px;
  height: 380px;
  right: -150px;
  bottom: 80px;
  background: radial-gradient(circle, rgba(87, 123, 255, 0.1) 0%, rgba(87, 123, 255, 0) 72%);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, .brand, .focus-index, .panel-tag { font-family: Outfit, sans-serif; letter-spacing: 0; }

.site-shell,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(100%, var(--shell));
  margin: 0 auto;
}

.site-section {
  padding: 18px 0;
}

.section-inner {
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-inner {
  min-height: calc(100vh - 36px);
}

.site-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-layout {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: 34px 36px;
  align-items: center;
}

.hero-layout > *,
.focus-layout > *,
.contact-wrap > * {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 800;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.92;
}

.lead,
.hero-notes span,
.focus-card p,
.contact-copy p,
.form-note,
.board-panel span {
  max-width: 100%;
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 54ch;
  margin: 18px 0 0;
}

.hero-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #6b92ff);
  box-shadow: 0 16px 30px rgba(87, 123, 255, 0.24);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: var(--line-strong);
}

.button.dark {
  color: #fff;
  background: linear-gradient(135deg, #111827, #1b2740);
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.24);
}

.button:hover { transform: translateY(-2px); }

.hero-notes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-notes article {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 34px rgba(21, 30, 49, 0.06);
}

.hero-notes strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
}

.system-board {
  position: relative;
  min-height: 700px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgba(122, 219, 211, 0.26), transparent 18%),
    radial-gradient(circle at 74% 68%, rgba(87, 123, 255, 0.18), transparent 22%),
    linear-gradient(180deg, #eff4ff 0%, #ffffff 100%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 26px 60px rgba(21, 30, 49, 0.12);
}

.hero-word {
  position: absolute;
  left: 34px;
  top: 24px;
  z-index: 0;
  font-size: clamp(5rem, 13vw, 8.8rem);
  line-height: 0.9;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 24, 39, 0.08);
  pointer-events: none;
}

.board-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(87, 123, 255, 0.12);
  pointer-events: none;
}

.orbit-a {
  width: 420px;
  height: 420px;
  left: 66px;
  top: 80px;
}

.orbit-b {
  width: 290px;
  height: 290px;
  right: 54px;
  bottom: 76px;
}

.board-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.board-lines path {
  fill: none;
  stroke: url(#lineGlow);
  stroke-width: 3;
  opacity: 0.55;
}

.board-lines circle:nth-of-type(3n + 1) { fill: #4c79ff; opacity: 0.9; }
.board-lines circle:nth-of-type(3n + 2) { fill: #7cded6; opacity: 0.92; }
.board-lines circle:nth-of-type(3n) { fill: #ffffff; stroke: rgba(17, 24, 39, 0.18); stroke-width: 4; }

.board-panel {
  position: absolute;
  z-index: 2;
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 34px rgba(21, 30, 49, 0.08);
  backdrop-filter: blur(10px);
}

.panel-main {
  left: 42px;
  right: 42px;
  bottom: 42px;
  padding: 24px;
}

.panel-top {
  right: 44px;
  top: 118px;
  min-width: 180px;
}

.panel-right {
  left: 70px;
  top: 132px;
  min-width: 180px;
}

.panel-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.system-board h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
}

.board-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.contact-copy h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.focus-layout {
  column-count: 3;
  column-gap: 18px;
}

.focus-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  padding: 24px;
  break-inside: avoid;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 24, 39, 0.06);
  box-shadow: 0 20px 40px rgba(21, 30, 49, 0.08);
}

.focus-card.large {
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(87, 123, 255, 0.08), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.92);
}

.focus-card.medium:nth-child(2) {
  min-height: 250px;
}

.focus-card.medium:nth-child(3) {
  min-height: 360px;
}

.focus-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.focus-card h3 {
  margin: 0 0 10px;
  font-size: 1.36rem;
  line-height: 1.1;
}

.contact-section .section-inner {
  background: linear-gradient(180deg, #0f1728 0%, #121d31 100%);
  color: #f5f7ff;
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  gap: 26px;
  align-items: start;
}

.contact-copy p:last-child,
.contact-section .form-note {
  color: rgba(245, 247, 255, 0.72);
}

.contact-form {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

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

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0.95rem 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(122, 219, 211, 0.44);
  box-shadow: 0 0 0 4px rgba(122, 219, 211, 0.18);
}

textarea {
  min-height: 154px;
  resize: vertical;
}

.form-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-note {
  min-height: 24px;
  margin: 0;
}

.site-footer {
  padding: 6px 0 30px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: rgba(18, 26, 43, 0.62);
  font-size: 0.9rem;
}

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

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 380ms ease, transform 380ms ease;
}

html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

.tilt-card {
  will-change: transform;
  transition: transform 180ms ease;
}

@media (max-width: 1120px) {
  .hero-layout,
  .contact-wrap,
  .row.two {
    grid-template-columns: 1fr;
  }

  .focus-layout {
    column-count: 2;
  }

  .hero-notes {
    grid-template-columns: 1fr;
  }

  .system-board {
    min-height: 620px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(1240px, calc(100vw - 18px));
  }

  .site-section {
    padding: 10px 0;
  }

  .section-inner {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-inner {
    min-height: auto;
  }

  .site-header {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav {
    gap: 16px;
    flex-wrap: wrap;
  }

  h1 {
    max-width: 9ch;
    font-size: 2rem;
    word-break: normal;
  }

  .lead {
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
  }

  .system-board {
    min-height: 520px;
    border-radius: 26px;
  }

  .hero-word {
    left: 18px;
    top: 16px;
    font-size: 4.4rem;
  }

  .panel-main,
  .panel-top,
  .panel-right {
    left: 16px;
    right: 16px;
  }

  .panel-top {
    top: 78px;
    min-width: 0;
  }

  .panel-right {
    top: auto;
    bottom: 148px;
    min-width: 0;
  }

  .panel-main {
    bottom: 16px;
    padding: 18px;
  }

  .orbit-a,
  .orbit-b {
    display: none;
  }

  .focus-layout {
    column-count: 1;
  }

  .contact-form {
    padding: 18px;
    border-radius: 22px;
  }
}
