:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body[data-route="signin"] { background: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transform: translateX(-50%);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgb(255 255 255 / 12%); }
.brand-name { font-size: 1rem; letter-spacing: -0.02em; }
.brand-name strong { font-weight: 750; }
.primary-nav { display: flex; align-items: center; gap: 28px; font-size: 0.88rem; font-weight: 650; }
.primary-nav > a:not(.button) { color: rgb(255 255 255 / 72%); text-decoration: none; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--white); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, .primary-nav a:focus-visible,
.brand:focus-visible, .back-link:focus-visible, .link-button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.button-small { min-height: 42px; padding-inline: 18px; }
.button-quiet { color: var(--white); border: 1px solid rgb(255 255 255 / 26%); background: rgb(255 255 255 / 8%); backdrop-filter: blur(10px); }
.button-primary { color: var(--white); background: var(--blue); box-shadow: 0 12px 30px rgb(9 105 243 / 28%); }
.button-primary:hover { background: #1676ff; box-shadow: 0 15px 34px rgb(9 105 243 / 38%); }
.button-light { color: var(--ink); background: var(--white); }
.button-full { width: 100%; margin-top: 8px; }
.button:disabled { cursor: not-allowed; opacity: 0.52; box-shadow: none; }

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 40px;
  overflow: hidden;
  padding: 150px max(24px, calc((100vw - 1180px) / 2)) 100px;
  color: var(--white);
  background: radial-gradient(circle at 78% 45%, rgb(9 105 243 / 22%), transparent 31%),
    radial-gradient(circle at 70% 74%, rgb(9 199 126 / 12%), transparent 24%),
    linear-gradient(145deg, #07111d 12%, #0a1828 62%, #07131f 100%);
}
.hero::after {
  position: absolute;
  right: -8%;
  bottom: -48%;
  width: 58vw;
  height: 58vw;
  border: 1px solid rgb(74 163 255 / 17%);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 90px rgb(9 105 243 / 2%), 0 0 0 180px rgb(9 105 243 / 2%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: linear-gradient(rgb(255 255 255 / 16%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 16%) 1px, transparent 1px);
  background-position: center;
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, transparent, #000 48%, #000);
  transform: perspective(700px) rotateX(67deg) translateY(36%);
  transform-origin: bottom;
}
.hero-copy, .hero-mark { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-dark { color: var(--green-deep); }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(3.7rem, 7vw, 6.9rem); font-weight: 780; letter-spacing: -0.072em; line-height: 0.93; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, var(--blue-bright), #79cbff 48%, #46e5a5); background-clip: text; -webkit-background-clip: text; }
.hero-intro { max-width: 680px; margin: 32px 0 0; color: rgb(255 255 255 / 70%); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.text-link { color: rgb(255 255 255 / 82%); font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 5px; transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(4px); }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { position: relative; z-index: 2; width: min(38vw, 430px); filter: drop-shadow(0 28px 42px rgb(0 0 0 / 45%)); }
.mark-halo { position: absolute; width: min(44vw, 500px); aspect-ratio: 1; border: 1px solid rgb(9 199 126 / 30%); border-radius: 50%; animation: halo 9s linear infinite; }
.mark-halo::before, .mark-halo::after { position: absolute; border: 1px solid rgb(74 163 255 / 21%); border-radius: 50%; content: ""; }
.mark-halo::before { inset: 8%; }
.mark-halo::after { inset: -8%; }
@keyframes halo { to { transform: rotate(360deg); } }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: var(--white); background: var(--blue); }
.principles p { display: flex; min-height: 92px; align-items: center; gap: 16px; margin: 0; border-right: 1px solid rgb(255 255 255 / 18%); font-weight: 720; }
.principles p + p { padding-left: 34px; }
.principles p:last-child { border: 0; }
.principles span { color: rgb(255 255 255 / 54%); font: 500 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.section { padding: 120px max(24px, calc((100vw - 1180px) / 2)); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr); gap: 70px; align-items: end; margin-bottom: 58px; }
.section h2, .closing-section h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); letter-spacing: -0.058em; line-height: 0.99; }
.section-heading > p, .approach-intro > p:last-child { margin: 0; color: var(--muted); font-size: 1.05rem; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; min-height: 490px; overflow: hidden; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper-bright); transition: transform 220ms ease, box-shadow 220ms ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card-blue { color: var(--white); border-color: #1a73ed; background: linear-gradient(145deg, #0b6cf0, #064ab1); }
.service-card-green { color: var(--ink); border-color: #55dba8; background: linear-gradient(145deg, #a7f1d1, #52dca7); }
.service-card-ink { color: var(--white); border-color: #263b50; background: linear-gradient(145deg, #15273a, #07111d); }
.card-number { margin: 75px 0 12px; opacity: 0.68; font: 600 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.service-card h3 { max-width: 430px; margin: 0; font-size: clamp(1.8rem, 3vw, 2.55rem); letter-spacing: -0.045em; line-height: 1.03; }
.service-card > p:not(.card-number) { max-width: 500px; margin: 20px 0 26px; opacity: 0.78; }
.service-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service-card li { padding: 7px 11px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.74rem; opacity: 0.72; }
.service-icon { position: absolute; top: 34px; right: 36px; width: 84px; height: 84px; }
.service-card-blue .service-icon span { position: absolute; inset: 15px 27px; border: 1px solid rgb(255 255 255 / 72%); transform: skewY(-34deg); }
.service-card-blue .service-icon span:nth-child(2) { transform: rotate(60deg) skewY(-34deg); }
.service-card-blue .service-icon span:nth-child(3) { transform: rotate(-60deg) skewY(-34deg); }
.icon-orbit { border: 1px solid rgb(7 17 29 / 55%); border-radius: 50%; }
.icon-orbit span { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.icon-orbit span:nth-child(1) { transform: translate(-50%, -50%); }
.icon-orbit span:nth-child(2) { transform: translate(30px, -4px); }
.icon-orbit span:nth-child(3) { transform: translate(-39px, -4px); }
.icon-stack span { position: absolute; width: 56px; height: 42px; border: 1px solid rgb(255 255 255 / 55%); transform: skewY(-18deg); }
.icon-stack span:nth-child(2) { top: 14px; left: 11px; }
.icon-stack span:nth-child(3) { top: 28px; left: 22px; }
.icon-type { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); font-family: Georgia, serif; font-size: 1.8rem; }

.approach-section { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr); gap: 100px; border-top: 1px solid var(--line); background: var(--paper-bright); }
.approach-intro { position: sticky; top: 50px; align-self: start; }
.approach-intro > p:last-child { max-width: 520px; margin-top: 26px; }
.approach-steps { margin: 0; padding: 0; list-style: none; counter-reset: approach; }
.approach-steps li { position: relative; min-height: 160px; padding: 14px 20px 34px 88px; border-left: 1px solid var(--line); counter-increment: approach; }
.approach-steps li::before { position: absolute; top: 0; left: -24px; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-bright); content: "0" counter(approach); font: 650 0.72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.approach-steps li:last-child { border-color: transparent; }
.approach-steps span { font-size: 1.5rem; font-weight: 760; letter-spacing: -0.03em; }
.approach-steps p { max-width: 500px; margin: 10px 0 0; color: var(--muted); }

.closing-section { display: flex; min-height: 390px; align-items: end; justify-content: space-between; gap: 40px; padding: 100px max(24px, calc((100vw - 1180px) / 2)); color: var(--white); background: radial-gradient(circle at 70% 20%, rgb(9 199 126 / 15%), transparent 30%), linear-gradient(120deg, #07111d, #0a2236); }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 32px max(24px, calc((100vw - 1180px) / 2)); color: rgb(255 255 255 / 64%); background: #050c14; font-size: 0.78rem; }
.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }
.footer-brand { color: var(--white); }

.signin-view { min-height: 100vh; }
.signin-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); }
.signin-context { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 80px max(40px, calc((100vw - 1180px) / 2)); color: var(--white); background: radial-gradient(circle at 70% 36%, rgb(9 105 243 / 26%), transparent 32%), linear-gradient(145deg, #07111d, #0c2033); }
.back-link { position: absolute; top: 38px; left: max(40px, calc((100vw - 1180px) / 2)); color: rgb(255 255 255 / 68%); font-size: 0.86rem; text-decoration: none; }
.signin-context h1 { max-width: 650px; margin: 0; font-size: clamp(3.4rem, 6vw, 6.5rem); letter-spacing: -0.065em; line-height: 0.94; }
.signin-context > p:not(.eyebrow) { max-width: 600px; margin: 28px 0 0; color: rgb(255 255 255 / 66%); font-size: 1.05rem; }
.signin-geometry { position: absolute; right: -130px; bottom: -130px; width: 360px; height: 360px; border: 1px solid rgb(9 199 126 / 28%); border-radius: 50%; }
.signin-geometry span { position: absolute; top: 50%; left: 50%; width: 330px; height: 1px; background: rgb(74 163 255 / 35%); }
.signin-geometry span:nth-child(2) { transform: rotate(60deg); }
.signin-geometry span:nth-child(3) { transform: rotate(-60deg); }
.signin-panel { position: relative; display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 8vw, 110px); background: var(--paper-bright); }
.signin-panel > img { margin-bottom: 26px; border-radius: 50%; box-shadow: 0 12px 35px rgb(7 17 29 / 17%); }
.signin-panel h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 3.5rem); letter-spacing: -0.055em; line-height: 1; }
.signin-panel h2:focus { outline: none; }
.signin-lead { margin: 13px 0 34px; color: var(--muted); }
.preview-badge { position: absolute; top: 32px; right: 32px; padding: 6px 11px; border: 1px solid #b8c6c0; border-radius: 999px; color: var(--green-deep); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.signin-actions { display: grid; gap: 12px; }
.signin-panel label, .password-label { font-size: 0.82rem; font-weight: 760; }
.password-label { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.link-button { padding: 0; color: var(--blue); border: 0; background: transparent; font-size: 0.78rem; cursor: pointer; }
.signin-panel input { width: 100%; min-height: 52px; padding: 0 15px; color: var(--ink); border: 1px solid #bfc8c4; border-radius: 10px; background: var(--white); outline: none; }
.signin-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(9 105 243 / 13%); }
.form-note, .form-status { margin: 4px 0 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.form-status:not(:empty) { padding: 10px; color: #07543d; border-radius: 8px; background: #dff8ed; }

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: minmax(0, 1fr); padding-top: 145px; }
  .hero-copy { min-width: 0; max-width: 100%; }
  .hero-mark { position: absolute; right: -80px; bottom: -60px; opacity: 0.2; }
  .hero-mark img { width: 420px; }
  .principles { grid-template-columns: 1fr; padding-block: 14px; }
  .principles p, .principles p + p { min-height: 58px; padding-left: 0; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 18%); }
  .principles p:last-child { border-bottom: 0; }
  .section-heading, .approach-section { grid-template-columns: 1fr; gap: 42px; }
  .approach-intro { position: static; }
  .signin-shell { grid-template-columns: 1fr; }
  .signin-context { min-height: 470px; padding: 110px 40px 70px; }
  .signin-panel { min-height: 620px; }
}

@media (max-width: 680px) {
  .site-header { width: calc(100% - 32px); }
  .primary-nav > a:not(.button) { display: none; }
  .brand-name { font-size: 0.9rem; }
  .hero { padding-inline: 20px; padding-bottom: 84px; }
  .hero h1 { max-width: 100%; font-size: clamp(2.85rem, 12vw, 3.35rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section { padding-block: 84px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 460px; padding: 28px; }
  .service-icon { top: 26px; right: 26px; }
  .closing-section { min-height: 430px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer p:last-child { justify-self: start; }
  .signin-context { min-height: 510px; padding-inline: 24px; }
  .back-link { left: 24px; }
  .signin-panel { min-height: 650px; padding: 76px 24px 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
