:root {
  --bg: #07111c;
  --bg-soft: #0a1623;
  --panel: rgba(13, 27, 41, .82);
  --panel-strong: #0d1b29;
  --text: #f5f8fb;
  --muted: #9eafbf;
  --muted-2: #718497;
  --line: rgba(255,255,255,.085);
  --blue: #1597ff;
  --blue-soft: #4bb6ff;
  --amber: #ff9f43;
  --violet: #a78bfa;
  --green: #58d2bc;
  --radius: 28px;
  --shadow: 0 30px 80px rgba(0,0,0,.32);
  --max: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(21,151,255,.18), transparent 28rem),
    radial-gradient(circle at 95% 10%, rgba(75,182,255,.10), transparent 24rem),
    linear-gradient(180deg, #050a10 0%, #07111c 46%, #08131e 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 88%);
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.wrap {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

/* cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,151,255,.16), transparent 70%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .3s ease;
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-glow.is-active { opacity: 1; }

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(5,10,16,.70);
  backdrop-filter: blur(22px) saturate(140%);
  transition: background .25s ease, box-shadow .25s ease;
}

.topbar.scrolled {
  background: rgba(5,10,16,.90);
  box-shadow: 0 12px 34px rgba(0,0,0,.22);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: -.025em;
}

.brand-main { font-size: 1.22rem; }
.brand-main strong { color: var(--blue); }
.brand-dot { color: #536577; }
.brand-serverland { color: #dce6ef; font-size: .96rem; }

.navlinks {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #b8c6d2;
  font-size: .93rem;
}

.navlinks a {
  position: relative;
  transition: color .2s ease;
}

.navlinks a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--blue);
  transition: right .25s ease;
}

.navlinks a:hover, .navlinks a.active { color: #fff; }
.navlinks a:hover::after, .navlinks a.active::after { right: 0; }

.nav-cta {
  padding: 11px 16px;
  border: 1px solid rgba(75,182,255,.28);
  border-radius: 999px;
  background: rgba(21,151,255,.10);
}

.hero {
  min-height: 720px;
  padding: 100px 0 74px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 64px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #bac6d1;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 20px var(--blue);
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3.8rem, 7.8vw, 7.4rem);
  line-height: .86;
  letter-spacing: -.075em;
  font-weight: 900;
}

h1 .blue { color: var(--blue); }

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: #aab9c7;
  font-size: clamp(1.04rem,1.7vw,1.22rem);
  line-height: 1.72;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 165px;
  padding: 14px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #0876d4);
  box-shadow: 0 18px 38px rgba(21,151,255,.22);
}

.btn.primary:hover { box-shadow: 0 22px 48px rgba(21,151,255,.30); }

.btn.secondary {
  background: rgba(255,255,255,.035);
  color: #dfe7ef;
}

.hero-panel {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 38px;
  background:
    linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.012)),
    linear-gradient(180deg, #101e2c, #09131d);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: -135px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,151,255,.37), transparent 70%);
}

.hero-panel::after {
  content: "4";
  position: absolute;
  right: -20px;
  top: -82px;
  font-size: 29rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.12em;
  color: rgba(255,255,255,.035);
}

.hero-panel-content { position: relative; z-index: 2; }

.hero-panel-kicker {
  color: #dfe8f1;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.hero-panel h2 {
  margin: 9px 0 10px;
  font-size: clamp(2rem,3vw,2.8rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero-panel p {
  margin: 0;
  max-width: 420px;
  color: #8fa2b5;
  line-height: 1.65;
}

.floating-points { position: absolute; inset: 0; pointer-events: none; }

.floating-points span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: .65;
  box-shadow: 0 0 28px rgba(21,151,255,.75);
  animation: drift 7s ease-in-out infinite;
}

.floating-points span:nth-child(1){top:19%;left:18%;animation-delay:-1s}
.floating-points span:nth-child(2){top:32%;right:19%;animation-delay:-3s;width:5px;height:5px}
.floating-points span:nth-child(3){top:56%;left:30%;animation-delay:-5s;width:6px;height:6px}
.floating-points span:nth-child(4){top:17%;right:36%;animation-delay:-2s;width:4px;height:4px}

@keyframes drift {
  0%,100% { transform: translate3d(0,0,0); opacity:.35; }
  50% { transform: translate3d(0,-16px,0); opacity:.95; }
}

section.content-section { padding: 86px 0; }

.section-head {
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2.2rem,4vw,3.7rem);
  letter-spacing: -.055em;
}

.section-head p {
  max-width: 620px;
  margin: 0;
  color: #91a4b5;
  line-height: 1.7;
}

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

.service {
  --accent: var(--blue);
  position: relative;
  min-height: 330px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(155deg, rgba(255,255,255,.048), rgba(255,255,255,.01)),
    rgba(10,22,34,.82);
  box-shadow: 0 14px 44px rgba(0,0,0,.14);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .28s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.service::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
  transition: transform .35s ease;
}

.service:hover {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.service:hover::before { transform: scale(1.18); }

.service-top {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.service-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  color: var(--accent);
}

.service-icon svg { width: 31px; height: 31px; stroke: currentColor; }

.arrow {
  color: #708397;
  font-size: 1.45rem;
  transition: transform .25s ease, color .25s ease;
}

.service:hover .arrow { color: var(--accent); transform: translate(4px,-4px); }

.soon-badge {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.service h3 {
  position: relative;
  z-index: 2;
  margin: 26px 0 8px;
  font-size: 2rem;
  letter-spacing: -.045em;
}

.service .tag {
  position: relative;
  z-index: 2;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.service p {
  position: relative;
  z-index: 2;
  max-width: 530px;
  margin: 14px 0 0;
  color: #97a9b9;
  line-height: 1.67;
}

.service.auto { --accent: var(--amber); }
.service.workshop { --accent: var(--blue); }
.service.academy { --accent: var(--violet); }
.service.serverland { --accent: var(--green); }

.service.is-soon {
  cursor: default;
  opacity: .78;
}

.service.is-soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: 0 14px 44px rgba(0,0,0,.14);
}

.service.is-soon::before { opacity: .5; }

.identity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10,22,34,.78);
  padding: 30px;
  box-shadow: 0 14px 42px rgba(0,0,0,.12);
}

.card h3 { margin: 0 0 17px; font-size: 1.65rem; letter-spacing: -.035em; }
.card p { margin: 0; color: #98aabc; line-height: 1.72; }

.divider { height: 1px; margin: 20px 0; background: var(--line); }

.meta { display: grid; gap: 12px; color: #ccd6df; }
.meta span { display: inline-block; min-width: 92px; color: #73879a; }

.contact-list { display: grid; }

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: #d5dee6;
  transition: color .2s ease, padding-left .2s ease;
}

.contact-item:last-child { border-bottom: 0; }
.contact-item:hover { color: #fff; padding-left: 5px; }

.contact-item small {
  color: #6f8397;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

footer {
  padding: 34px 0 50px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #71869a;
  font-size: .88rem;
}

.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-row strong { color: #a8b7c5; font-weight: 650; }

@media (max-width: 920px) {
  .navlinks { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 34px; padding-top: 66px; }
  .hero-panel { min-height: 390px; }
  .services, .identity { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 22px), var(--max)); }
  .nav { min-height: 68px; }
  .brand-main { font-size: 1.05rem; }
  .brand-serverland { font-size: .83rem; }
  .hero { padding: 52px 0 34px; }
  h1 { font-size: clamp(3.2rem,17vw,5rem); }
  .hero-panel { min-height: 340px; padding: 24px; border-radius: 26px; }
  section.content-section { padding: 60px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .service { min-height: 300px; padding: 24px; }
  .card { padding: 24px; }
  .footer-row { flex-direction: column; }
}

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