:root {
  --ink: #081525;
  --navy: #08284d;
  --blue: #1b4f88;
  --red: #a9002d;
  --muted: #304f78;
  --line: #d9e0e8;
  --soft: #f7f9fb;
  --white: #ffffff;
  --shell: 1360px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 112px), var(--shell));
  margin-inline: auto;
}

.site-header {
  min-height: 100px;
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 52px;
  height: 62px;
}

.brand-mark span { position: absolute; display: block; }

.mark-left {
  left: 4px;
  top: 10px;
  width: 14px;
  height: 40px;
  background: linear-gradient(145deg, #123762, #061729);
  transform: skewY(30deg);
}

.mark-right {
  right: 4px;
  top: 22px;
  width: 14px;
  height: 28px;
  background: linear-gradient(145deg, #123762, #061729);
  transform: skewY(-30deg);
}

.mark-left::after,
.mark-right::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 19px;
  height: 14px;
  background: #071a31;
}

.mark-left::after { left: 11px; transform: skewY(30deg); }
.mark-right::after { right: 11px; transform: skewY(-30deg); }

.mark-accent {
  right: 4px;
  top: 5px;
  width: 14px;
  height: 17px;
  background: linear-gradient(145deg, #c2003a, #860020);
  transform: skewY(-30deg);
}

.brand-copy { display: grid; gap: 2px; }

.brand-copy strong {
  font-size: clamp(22px, 2vw, 31px);
  line-height: 1;
  letter-spacing: .02em;
}

.brand-copy span {
  color: var(--blue);
  font-size: 18px;
  letter-spacing: .01em;
}

.site-header nav { display: flex; gap: clamp(30px, 5.2vw, 72px); }

.site-header nav a {
  position: relative;
  padding: 10px 0;
  text-decoration: none;
  font-size: 18px;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transition: right .2s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after { right: 0; }

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

.hero-grid {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: 52px;
  padding-block: 34px;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(52px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-copy p {
  max-width: 560px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
}

.button {
  display: inline-flex;
  min-width: 180px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid #970025;
  border-radius: 2px;
  background: linear-gradient(#b20035, #980027);
  color: white;
  box-shadow: 0 8px 18px rgba(120, 0, 31, .12);
  font-size: 19px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(120, 0, 31, .2); }

.device-scene {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop { position: relative; width: min(90%, 590px); margin-right: 62px; }

.laptop-screen {
  height: 330px;
  display: grid;
  grid-template-columns: 70px 1fr;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 16px 16px 3px 3px;
  background: white;
  box-shadow: 0 18px 40px rgba(8, 21, 37, .08);
}

.app-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  background: linear-gradient(180deg, #092c55, #082442);
}

.app-rail > span:not(.rail-orb) { width: 22px; height: 4px; border-radius: 3px; background: #69809c; }
.app-rail > span:nth-child(4) { height: 18px; border: 3px solid #69809c; background: transparent; border-radius: 2px; }

.rail-orb { width: 23px; height: 23px; border: 3px solid white; border-radius: 50%; margin-bottom: 6px; }

.app-window { padding: 44px 36px 28px; }
.window-title { display: block; width: 128px; height: 11px; margin-bottom: 28px; border-radius: 2px; background: #c7d0db; box-shadow: inset 0 0 0 1px #b5bfca; }

.dashboard-row { display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.chart-card { position: relative; height: 150px; padding: 27px 23px; border: 1px solid #ccd6e0; border-radius: 6px; }
.mini-line { display: block; width: 64px; height: 6px; border-radius: 5px; background: #b9c4d0; }
.line-two { width: 44px; margin-top: 9px; }
.chart-path { position: relative; height: 57px; margin: 9px 10px 0; border-bottom: 2px solid #2360a0; transform: skewY(-8deg); }
.chart-path::before, .chart-path::after { content: ""; position: absolute; height: 2px; background: #2360a0; transform-origin: left; }
.chart-path::before { left: 0; bottom: 0; width: 54%; transform: rotate(26deg); }
.chart-path::after { left: 48%; bottom: 24px; width: 56%; transform: rotate(-34deg); }
.chart-path i { position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%; background: #2360a0; }
.chart-path i:nth-child(1) { left: -3px; bottom: -4px; }
.chart-path i:nth-child(2) { left: 25%; bottom: 8px; }
.chart-path i:nth-child(3) { left: 48%; bottom: 20px; }
.chart-path i:nth-child(4) { left: 70%; bottom: 7px; }
.chart-path i:nth-child(5) { right: -3px; bottom: 29px; }
.chart-labels { display: flex; gap: 14px; margin-top: 13px; }
.chart-labels span { width: 34px; height: 7px; background: #ccd3da; border-radius: 2px; }
.donut-card { display: flex; flex-direction: column; align-items: center; gap: 9px; }
.donut { width: 54px; height: 54px; border: 10px solid #b6bec8; border-right-color: #28619b; border-top-color: #28619b; border-radius: 50%; transform: rotate(-42deg); }
.donut-card span { width: 78px; height: 6px; background: #c7cfd7; }
.donut-card span:last-child { width: 54px; }
.data-strip { height: 63px; margin-top: 22px; display: grid; grid-template-columns: 1.15fr 1fr 1fr; align-items: center; gap: 16px; padding: 12px 17px; border: 1px solid #ccd6e0; border-radius: 6px; }
.data-strip > div { display: flex; align-items: center; gap: 9px; }
.data-strip b { width: 22px; height: 22px; border-radius: 50%; background: #adb8c4; }
.data-strip span { width: 40px; height: 5px; background: #b8c2cc; }
.data-strip i { width: 9px; height: 9px; border-radius: 50%; background: #aab5c2; }

.laptop-base { height: 15px; margin: -1px -34px 0; border: 1px solid #c9d1d9; border-radius: 2px 2px 50% 50%; background: linear-gradient(#fff, #dfe5ea); box-shadow: 0 5px 7px rgba(8, 21, 37, .08); }

.phone {
  position: absolute;
  right: 0;
  bottom: 23px;
  width: 156px;
  height: 322px;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: white;
  box-shadow: 0 16px 28px rgba(8, 21, 37, .14);
}

.speaker { display: block; width: 31px; height: 4px; margin: 13px auto 5px; border-radius: 4px; background: var(--ink); }
.phone-toolbar { display: flex; justify-content: space-between; padding: 3px 15px 8px; }
.phone-toolbar i { width: 12px; height: 2px; background: #7e8fa2; }
.phone-card { height: 57px; margin: 7px 12px 15px; display: grid; grid-template-columns: 25px 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 0 10px; padding: 12px; border-radius: 7px; background: linear-gradient(135deg, #114782, #2b70b1); }
.phone-card b { grid-row: 1 / 3; width: 23px; height: 23px; border: 1px solid white; border-radius: 3px; background: rgba(255,255,255,.22); }
.phone-card span { height: 5px; background: #b7cce1; border-radius: 3px; }
.phone-card span:last-child { width: 70%; }
.phone ul { margin: 0 12px; padding: 0; list-style: none; }
.phone li { display: grid; grid-template-columns: 18px 1fr 10px; align-items: center; gap: 10px; height: 39px; }
.phone li b { width: 17px; height: 17px; border-radius: 2px; background: #b0bbc6; }
.phone li span { height: 6px; border-radius: 3px; background: #c6ced6; }
.phone li i { color: #58728d; font-style: normal; font-size: 19px; }
.phone-nav { position: absolute; inset: auto 0 0; height: 43px; display: flex; align-items: center; justify-content: space-around; border-top: 1px solid #d8dee5; color: #64798f; font-size: 14px; }

.capabilities { padding: 26px 0 32px; border-bottom: 1px solid var(--line); }
.capabilities h2 { margin: 0 0 20px; text-align: center; font-size: 34px; letter-spacing: -.025em; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.capability-card { min-height: 146px; display: flex; align-items: center; gap: 27px; padding: 25px 26px; border: 1px solid #cdd6e0; border-radius: 6px; background: white; box-shadow: 0 4px 14px rgba(8, 21, 37, .025); }
.capability-card h3 { margin: 0 0 8px; font-size: 20px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.45; }
.capability-icon { flex: 0 0 76px; width: 76px; height: 76px; display: grid; place-items: center; border-radius: 6px; color: white; background: linear-gradient(145deg, #0d3d70, #061b34); box-shadow: inset 0 0 18px rgba(255,255,255,.08); }
.phone-icon i { width: 27px; height: 46px; border: 3px solid white; border-radius: 5px; }
.phone-icon i::after { content: ""; display: block; width: 4px; height: 4px; margin: 35px auto 0; border-radius: 50%; background: white; }
.code-icon { font-size: 27px; font-weight: 700; letter-spacing: -3px; }
.layers-icon { position: relative; }
.layers-icon i { position: absolute; width: 35px; height: 25px; border: 3px solid white; transform: rotate(30deg) skew(-30deg); }
.layers-icon i:nth-child(1) { top: 18px; }
.layers-icon i:nth-child(2) { top: 28px; }
.layers-icon i:nth-child(3) { top: 38px; }

.company-info { padding: 30px 0 28px; border-bottom: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; }
.info-grid > div { padding-inline: 8px 70px; }
.info-grid > div + div { padding-left: 82px; border-left: 1px solid var(--line); }
.info-grid h2 { margin: 0 0 10px; font-size: 28px; }
.info-grid p, .info-grid a { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.info-grid a { color: var(--red); text-decoration: none; }
.info-grid a:hover, .info-grid a:focus-visible { text-decoration: underline; }

footer { color: var(--muted); }
.footer-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; }
.footer-inner p span { padding-inline: 8px; }
.footer-inner nav { display: flex; gap: 46px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover, .footer-inner a:focus-visible { text-decoration: underline; }

.legal-page { background: var(--soft); }
.legal-page .site-header, .legal-page footer { background: white; }
.legal-main { padding: 72px 0 92px; }
.legal-card { max-width: 920px; margin: 0 auto; padding: clamp(30px, 6vw, 72px); border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 16px 50px rgba(8,21,37,.05); }
.legal-card h1 { margin: 0 0 8px; font-size: clamp(38px, 6vw, 58px); letter-spacing: -.04em; }
.legal-card .updated { margin: 0 0 38px; color: #6b7e94; }
.legal-card h2 { margin: 34px 0 10px; font-size: 24px; }
.legal-card p, .legal-card li { color: #30465f; font-size: 17px; line-height: 1.65; }
.legal-card a { color: var(--red); }

.not-found { min-height: calc(100vh - 180px); display: grid; place-items: center; text-align: center; padding: 60px 24px; }
.not-found h1 { margin: 0 0 12px; font-size: clamp(54px, 11vw, 110px); }
.not-found p { color: var(--muted); font-size: 20px; }

@media (max-width: 1050px) {
  .shell { width: min(calc(100% - 56px), var(--shell)); }
  .hero-grid { grid-template-columns: 1fr; padding-block: 54px 30px; }
  .hero-copy { text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .device-scene { width: min(720px, 100%); margin-inline: auto; }
  .capability-grid { grid-template-columns: 1fr; gap: 16px; }
  .capability-card { min-height: 120px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 36px), var(--shell)); }
  .site-header, .header-inner { min-height: 84px; }
  .brand { gap: 10px; }
  .brand-mark { transform: scale(.74); transform-origin: left center; width: 42px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy span { display: none; }
  .site-header nav { gap: 18px; }
  .site-header nav a { font-size: 15px; }
  .hero-grid { gap: 25px; padding-top: 48px; }
  .hero-copy h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-copy p { font-size: 19px; }
  .device-scene { height: 290px; }
  .laptop { width: 88%; margin-right: 30px; }
  .laptop-screen { height: 245px; grid-template-columns: 48px 1fr; border-width: 3px; }
  .app-window { padding: 30px 18px 18px; }
  .dashboard-row { gap: 10px; }
  .chart-card { height: 110px; padding: 16px 12px; }
  .window-title { margin-bottom: 18px; }
  .data-strip { height: 48px; margin-top: 10px; padding: 8px; }
  .phone { width: 112px; height: 240px; right: -2px; bottom: 20px; border-width: 3px; border-radius: 20px; }
  .phone-card { margin-inline: 8px; padding: 8px; grid-template-columns: 20px 1fr; }
  .phone ul { margin-inline: 8px; }
  .phone li { height: 29px; }
  .phone-nav { height: 35px; }
  .capabilities { padding-top: 34px; }
  .capability-card { padding: 20px; gap: 18px; }
  .capability-icon { flex-basis: 62px; width: 62px; height: 62px; }
  .info-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-grid > div { padding: 0; }
  .info-grid > div + div { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 26px; }
}

@media (max-width: 480px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 5px; padding-block: 14px 11px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .hero-copy h1 { font-size: 40px; }
  .device-scene { height: 230px; }
  .laptop-screen { height: 195px; grid-template-columns: 35px 1fr; }
  .app-rail { gap: 10px; padding-top: 15px; }
  .app-rail > span:not(.rail-orb) { width: 15px; }
  .rail-orb { width: 17px; height: 17px; }
  .app-window { padding: 23px 12px 12px; }
  .window-title { width: 75px; height: 7px; margin-bottom: 10px; }
  .chart-card { height: 85px; padding: 10px 7px; }
  .chart-path { height: 36px; }
  .data-strip { display: none; }
  .phone { width: 86px; height: 185px; }
  .phone-card { height: 42px; margin-block: 4px 7px; }
  .phone-card b { width: 14px; height: 14px; }
  .phone li { height: 21px; gap: 5px; }
  .phone li b { width: 11px; height: 11px; }
  .capability-card { align-items: flex-start; }
  .capability-card p { font-size: 16px; }
  .footer-inner nav { gap: 28px; }
}

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