:root {
  color-scheme: dark;
  --bg: #070912;
  --panel: rgba(14, 19, 37, .78);
  --panel-strong: rgba(20, 29, 57, .9);
  --line: rgba(145, 171, 229, .18);
  --text: #f2f6ff;
  --muted: #a9b6d3;
  --dim: #71809f;
  --cyan: #63e7ff;
  --blue: #6b8cff;
  --violet: #b27aff;
  --orange: #ff9a62;
  --green: #5ef1b4;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: linear-gradient(145deg, #050711, #0a1020 50%, #0c0816); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.ambient, .grid, .glow { position: fixed; inset: 0; pointer-events: none; }
.ambient { z-index: -1; overflow: hidden; }
.grid { opacity: .26; background-image: linear-gradient(rgba(118, 158, 222, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(118, 158, 222, .07) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, black, transparent 80%); }
.glow { width: 32rem; height: 32rem; border-radius: 50%; filter: blur(80px); opacity: .2; }
.glow-one { inset: -9rem auto auto -8rem; background: var(--orange); }
.glow-two { inset: 10rem -10rem auto auto; background: var(--blue); }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; }
.brand small { color: var(--dim); font-size: .68rem; letter-spacing: .06em; }
.site-header nav { display: flex; align-items: center; gap: 25px; }
.site-header nav a { color: var(--muted); font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-header nav a:hover { color: var(--text); }

.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); min-height: 620px; align-items: center; gap: clamp(42px, 8vw, 100px); padding-block: 58px 86px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #b9c8e8; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 12px var(--cyan); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 830px; margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .95; letter-spacing: -.075em; }
h1 em { color: transparent; font-style: normal; background: linear-gradient(100deg, var(--cyan), #9ea9ff 52%, #d48bff); background-clip: text; -webkit-background-clip: text; }
.lead { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 24px; padding: 0 18px; border-radius: 13px; font-size: .82rem; font-weight: 800; text-decoration: none; }
.button-primary { color: #041017; background: linear-gradient(115deg, var(--cyan), #9a9dff); box-shadow: 0 14px 36px rgba(99, 231, 255, .18); }
.button-secondary { border: 1px solid var(--line); background: rgba(255,255,255,.045); }

.system-card { position: relative; overflow: hidden; min-height: 390px; padding: 22px; border: 1px solid rgba(113, 153, 255, .25); border-radius: 24px; background: linear-gradient(145deg, rgba(30, 48, 96, .72), rgba(9, 13, 29, .84)); box-shadow: 0 28px 80px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08); }
.system-card::after { position: absolute; right: -70px; bottom: -70px; width: 230px; height: 230px; border: 1px solid rgba(145, 181, 255, .14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(145,181,255,.035), 0 0 0 56px rgba(145,181,255,.025); content: ""; }
.system-card-top { display: flex; position: relative; z-index: 1; align-items: center; justify-content: space-between; color: var(--dim); font: .68rem ui-monospace, monospace; text-transform: uppercase; }
.system-card-top b, .card-top b { display: inline-flex; align-items: center; gap: 7px; color: #a7ffd5; font-weight: 700; }
.system-card-top i, .card-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.system-mark { position: relative; z-index: 1; margin: 44px 0 0; font-size: 7.2rem; font-weight: 800; line-height: .78; letter-spacing: -.12em; }
.system-card > p { position: relative; z-index: 1; margin: 17px 0 28px; color: var(--muted); }
.system-card ol { display: grid; position: relative; z-index: 1; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.system-card li { padding: 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: #d9e3fb; background: rgba(255,255,255,.035); font-size: .72rem; }
.system-card li span { margin-right: 6px; color: var(--cyan); font-family: ui-monospace, monospace; }

.project-section { padding-block: 50px 80px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 25px; }
.section-heading h2, .workflow h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.7vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
.section-heading > p { max-width: 430px; margin-bottom: 4px; color: var(--muted); line-height: 1.65; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { --accent: var(--cyan); display: flex; min-height: 485px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(20, 29, 57, .78), rgba(8, 12, 25, .88)); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 20px 48px rgba(0,0,0,.17); transition: transform .24s ease, border-color .24s ease; }
.project-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, white 10%); transform: translateY(-5px); }
.score-card { --accent: var(--orange); }
.tablet-card { --accent: var(--green); }
.admin-card { --accent: var(--cyan); }
.display-card { --accent: var(--violet); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8fa1c4; font: .68rem ui-monospace, monospace; text-transform: uppercase; }
.card-visual { display: flex; min-height: 145px; align-items: center; justify-content: center; margin: 24px 0 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 17px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 65%), rgba(2,5,14,.36); }
.score-visual { justify-content: space-evenly; }
.score-visual strong { font-size: 4.5rem; letter-spacing: -.08em; }
.score-visual span { padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 9px; color: var(--accent); font: 700 .8rem ui-monospace, monospace; }
.tablet-visual { gap: 18px; }
.tablet-visual strong { font-size: 4.1rem; letter-spacing: -.08em; }
.tablet-visual span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #07140f; background: var(--accent); font-weight: 900; }
.admin-visual { align-items: end; gap: 12px; padding: 30px; }
.admin-visual span { width: 14%; border-radius: 8px 8px 3px 3px; background: linear-gradient(var(--accent), #496ce7); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 30%, transparent); }
.admin-visual span:nth-child(1) { height: 36%; }.admin-visual span:nth-child(2) { height: 76%; }.admin-visual span:nth-child(3) { height: 55%; }.admin-visual span:nth-child(4) { height: 92%; }
.display-visual { gap: 16px; }
.display-visual strong { color: #d7c2ff; font: 800 2.2rem ui-monospace, monospace; letter-spacing: .05em; }
.display-visual span { color: #10061c; padding: 12px; border-radius: 10px; background: var(--accent); font-weight: 900; }
.card-copy h3 { margin-bottom: 9px; font-size: clamp(1.8rem, 3.5vw, 2.5rem); letter-spacing: -.045em; }
.card-copy p { color: var(--muted); line-height: 1.6; }
.card-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0; padding: 0; list-style: none; }
.card-copy li { padding: 6px 9px; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 999px; color: #d7e1f5; background: rgba(255,255,255,.035); font-size: .68rem; font-weight: 700; }
.card-link { display: flex; min-height: 46px; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); font-size: .78rem; font-weight: 800; text-decoration: none; }
.card-link span { color: var(--accent); font-size: 1rem; }
.card-link:hover { background: rgba(255,255,255,.09); }

.workflow { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; margin-block: 30px 80px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(125deg, rgba(34, 48, 91, .5), rgba(9, 13, 28, .82)); }
.workflow ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.workflow li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.075); border-radius: 14px; background: rgba(255,255,255,.025); }
.workflow li > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #06141a; background: linear-gradient(135deg, var(--cyan), #9ba0ff); font-weight: 900; }
.workflow strong { display: block; margin-bottom: 4px; }
.workflow li p { margin-bottom: 0; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-block: 30px 44px; border-top: 1px solid rgba(255,255,255,.08); color: var(--dim); font-size: .72rem; }
.site-footer a { color: var(--muted); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 40px; padding-block: 56px 70px; }
  .system-card { min-height: 330px; }
  .workflow { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 560px); }
  .site-header { min-height: 76px; }
  .site-header nav a:not(:last-child) { display: none; }
  .site-header nav { gap: 0; }
  .brand img { width: 36px; height: 36px; }
  .hero { padding-top: 40px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .hero-actions, .button { width: 100%; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 450px; padding: 17px; }
  .card-visual { min-height: 128px; margin-block: 18px; }
  .workflow { padding: 25px 18px; }
  .site-footer { flex-direction: column; }
}

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