:root {
  --navy-950: #070d18;
  --navy-900: #0b1220;
  --navy-800: #111c2d;
  --cyan: #22d3ee;
  --lime: #a3e635;
  --white: #f8fafc;
  --muted: #91a0b5;
  --line: rgba(148, 163, 184, 0.16);
  --font-geist-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-geist-mono: "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--navy-950);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--white);
  background: var(--navy-950);
  font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 5px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  color: var(--navy-950);
  background: var(--cyan);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(18px);
}

.brand img, .footer-brand img { display: block; width: 190px; height: auto; }
.site-header nav { display: flex; gap: 34px; color: #b7c2d2; font-size: 14px; }
.site-header nav a, .header-login { transition: color 0.2s ease; }
.site-header nav a:hover { color: var(--white); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.language-toggle button {
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #718197;
  background: transparent;
  cursor: pointer;
  font: 700 10px var(--font-geist-mono), monospace;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, background 0.2s ease;
}

.language-toggle button:hover { color: var(--white); }
.language-toggle button.active { color: var(--navy-950); background: var(--cyan); }

.header-login {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 10px;
  color: var(--cyan);
  font-family: var(--font-geist-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.header-login:hover { color: var(--navy-950); background: var(--cyan); }

.hero {
  position: relative;
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 7vw, 110px);
  max-width: 1500px;
  margin: 0 auto;
  padding: 84px clamp(24px, 6vw, 100px) 76px;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(24px, 6vw, 100px);
  right: clamp(24px, 6vw, 100px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.hero-glow-one { width: 440px; height: 440px; top: 0; left: -160px; background: var(--cyan); opacity: 0.12; }
.hero-glow-two { width: 300px; height: 300px; right: 4%; bottom: 0; background: var(--lime); opacity: 0.04; }

.eyebrow, .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.09), 0 0 22px var(--lime);
}

.hero h1 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(62px, 7.1vw, 112px);
  font-weight: 670;
  letter-spacing: -0.07em;
  line-height: 0.93;
}
.hero h1 span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(34, 211, 238, 0.72); }
.hero h1 .hero-title-main { color: var(--white); -webkit-text-stroke: 0; }
.hero-intro { max-width: 620px; margin: 32px 0 0; color: #aab6c8; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #041019; background: var(--cyan); box-shadow: 0 15px 45px rgba(34, 211, 238, 0.14); }
.button-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.button-ghost:hover { border-color: rgba(34, 211, 238, 0.35); }

.quick-stats { display: flex; gap: 44px; margin: 58px 0 0; }
.quick-stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.quick-stats dt { color: #718197; font: 10px var(--font-geist-mono), monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.quick-stats dd { margin: 0; color: #dbe5f3; font: 21px var(--font-geist-mono), monospace; }

.stack-visual {
  position: relative;
  padding: 64px 22px 22px;
  border: 1px solid rgba(34, 211, 238, 0.17);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(17, 28, 45, 0.93), rgba(8, 15, 27, 0.72));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
}
.stack-visual::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.035); border-radius: 20px; pointer-events: none; }
.roof-line { position: absolute; top: -58px; left: 50%; width: 172px; height: 172px; border-top: 4px solid var(--cyan); border-left: 4px solid var(--cyan); border-radius: 7px 0 0; opacity: .76; transform: translateX(-50%) rotate(45deg); filter: drop-shadow(0 0 12px rgba(34,211,238,.2)); }
.stack-label { position: relative; z-index: 2; display: flex; justify-content: space-between; margin: 0 6px 14px; color: #718197; font: 9px var(--font-geist-mono), monospace; letter-spacing: .11em; }
.live-label { color: #9fc94a; }
.live-label i, .managed-status i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(163,230,53,.65); }

.stack-layer {
  position: relative;
  z-index: 2;
  min-height: 86px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(7,13,24,.82);
  transition: border-color .2s ease, transform .2s ease;
}
.stack-layer:hover { transform: translateX(-4px); border-color: rgba(34,211,238,.3); }
.stack-layer.active { border-color: rgba(163,230,53,.2); }
.layer-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(34,211,238,.2); border-radius: 12px; color: var(--cyan); background: rgba(34,211,238,.045); font: 700 10px var(--font-geist-mono), monospace; }
.stack-layer strong, .stack-layer span { display: block; }
.stack-layer strong { font-size: 14px; }
.stack-layer span { margin-top: 5px; color: #718197; font-size: 11px; }
.stack-layer b { color: #4e6077; font: 13px var(--font-geist-mono), monospace; }
.stack-footnote { position: relative; z-index: 2; margin: 20px 6px 0; color: #66778d; font: 9px var(--font-geist-mono), monospace; letter-spacing: .04em; }
.stack-footnote > span:first-child { display: inline-block; width: 18px; height: 1px; margin: 0 8px 3px 0; background: #0891b2; }

.section { max-width: 1500px; margin: 0 auto; padding: 130px clamp(24px, 6vw, 100px); }
.section-heading { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 60px; align-items: end; margin-bottom: 54px; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading h2, .about-copy h2, .control-copy h2 { margin: 0; max-width: 800px; font-size: clamp(40px,4.2vw,68px); line-height: 1.03; letter-spacing: -.055em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

.project-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.project-card { position: relative; min-height: 480px; display: flex; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg,rgba(17,28,45,.8),rgba(10,18,32,.72)); transition: transform .25s ease,border-color .25s ease; }
.project-card:hover { transform: translateY(-7px); border-color: rgba(34,211,238,.28); }
.project-card::before { content: ""; position: absolute; width: 250px; height: 250px; top: 30px; right: -100px; border-radius: 50%; background: var(--card-glow,var(--cyan)); filter: blur(95px); opacity: .1; }
.project-card.lime { --card-glow: var(--lime); }
.project-card.blue { --card-glow: #568cff; }
.project-topline { display: flex; justify-content: space-between; color: #53657c; font: 9px var(--font-geist-mono), monospace; letter-spacing: .12em; }
.project-mark { width: 78px; height: 78px; display: grid; place-items: center; margin-top: 50px; border: 1px solid rgba(34,211,238,.22); border-radius: 20px; color: var(--cyan); background: rgba(34,211,238,.05); font: 750 22px var(--font-geist-mono), monospace; letter-spacing: -.05em; }
.lime .project-mark { color: var(--lime); border-color: rgba(163,230,53,.22); background: rgba(163,230,53,.045); }
.blue .project-mark { color: #78a1ff; border-color: rgba(120,161,255,.22); background: rgba(120,161,255,.05); }
.project-copy { margin-top: auto; }
.project-copy > p:first-child { margin: 0 0 8px; color: var(--cyan); font: 10px var(--font-geist-mono), monospace; letter-spacing: .07em; }
.project-copy h3 { margin: 0; font-size: 29px; letter-spacing: -.04em; }
.project-copy > p:last-child { min-height: 72px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.project-card > a { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: #cfdae8; font-size: 13px; }
.project-card > a span { color: var(--cyan); font-size: 18px; }

.servers-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.server-list { border-top: 1px solid var(--line); }
.server-row { min-height: 120px; display: grid; grid-template-columns: 50px minmax(210px,1fr) minmax(260px,1.4fr) 160px 42px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); transition: background .2s ease,padding .2s ease; }
.server-row:hover { padding-inline: 14px; background: rgba(34,211,238,.025); }
.server-index { color: #42536a; font: 11px var(--font-geist-mono), monospace; }
.server-title > span { color: var(--cyan); font: 9px var(--font-geist-mono), monospace; letter-spacing: .13em; }
.server-title h3 { margin: 8px 0 0; font-size: 23px; letter-spacing: -.035em; }
.server-row > p { color: var(--muted); font-size: 14px; }
.managed-status { color: #8cae4b; font: 9px var(--font-geist-mono), monospace; letter-spacing: .08em; }
.server-row > a, .row-end, .role-list article > a { width: 40px; height: 40px; display: grid; place-items: center; justify-self: end; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan); transition: background .2s ease,color .2s ease; }
.server-row > a:hover, .role-list article > a:hover { color: var(--navy-950); background: var(--cyan); }
.row-end { color: #43536a; }

.about-section { display: grid; grid-template-columns: minmax(0,.9fr) minmax(430px,1.1fr); align-items: center; gap: clamp(70px,10vw,150px); }
.about-lead { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.role-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.role-tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #8292a8; font: 9px var(--font-geist-mono), monospace; letter-spacing: .08em; text-transform: uppercase; }
.role-list { border-top: 1px solid var(--line); }
.role-list article { min-height: 160px; display: grid; grid-template-columns: 48px 1fr 42px; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.role-number { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(34,211,238,.2); border-radius: 10px; color: var(--cyan); font: 10px var(--font-geist-mono), monospace; }
.role-list article p { margin: 0 0 8px; color: var(--cyan); font: 9px var(--font-geist-mono), monospace; letter-spacing: .12em; }
.role-list article h3 { margin: 0; font-size: 25px; }
.role-list article div > span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

.control-section { max-width: 1300px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 70px; margin: 20px auto 110px; padding: 60px; border: 1px solid rgba(34,211,238,.22); border-radius: 24px; background: radial-gradient(circle at 88% 20%,rgba(34,211,238,.12),transparent 28%),linear-gradient(135deg,rgba(17,28,45,.92),rgba(9,17,30,.92)); }
.control-copy h2 { font-size: clamp(38px,4vw,59px); }
.control-copy > p:last-child { max-width: 620px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.control-button { min-width: 270px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px; border-radius: 14px; color: var(--navy-950); background: var(--cyan); box-shadow: 0 18px 50px rgba(34,211,238,.13); transition: transform .2s ease; }
.control-button:hover { transform: translateY(-3px); }
.control-button span { font-size: 17px; font-weight: 750; }
.control-button small { display: block; margin-bottom: 7px; font: 600 8px var(--font-geist-mono), monospace; letter-spacing: .1em; }
.control-button > span + span { font-size: 22px; }

footer { min-height: 130px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 30px clamp(24px,5vw,82px); border-top: 1px solid var(--line); color: #607087; font: 9px var(--font-geist-mono), monospace; letter-spacing: .05em; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }
.footer-brand img { width: 154px; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 110px; padding-top: 100px; }
  .hero-copy { max-width: 840px; }
  .stack-visual { width: min(100%,620px); margin: 0 auto; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 390px; }
  .project-copy > p:last-child { min-height: 0; }
  .server-row { grid-template-columns: 44px minmax(180px,1fr) minmax(220px,1.2fr) 42px; }
  .managed-status { display: none; }
  .about-section { grid-template-columns: 1fr; }
  .control-section { margin-inline: 24px; }
}

@media (max-width: 720px) {
  .site-header { height: 74px; padding-inline: 18px; }
  .brand img { width: 148px; }
  .header-login { padding: 10px 12px; font-size: 10px; }
  .header-login { width: 38px; overflow: hidden; white-space: nowrap; color: transparent; gap: 0; }
  .header-login span { color: var(--cyan); }
  .header-login:hover span { color: var(--navy-950); }
  .header-actions { gap: 7px; }
  .language-toggle button { min-width: 31px; padding-inline: 6px; }
  .hero { min-height: 0; padding: 82px 20px 60px; }
  .hero h1 { font-size: clamp(52px,16vw,78px); }
  .hero-intro { font-size: 16px; }
  .quick-stats { gap: 24px; justify-content: space-between; }
  .stack-visual { padding: 58px 14px 16px; border-radius: 22px; }
  .stack-layer { grid-template-columns: 44px 1fr auto; gap: 11px; padding: 12px; }
  .layer-icon { width: 44px; height: 44px; }
  .section { padding: 94px 20px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 38px; }
  .project-card { min-height: 410px; }
  .server-row { grid-template-columns: 34px 1fr 40px; gap: 14px; padding: 24px 0; }
  .server-row:hover { padding-inline: 8px; }
  .server-row > p { grid-column: 2 / 4; margin: -7px 0 0; }
  .about-section { gap: 70px; }
  .role-list article { grid-template-columns: 40px 1fr 38px; gap: 15px; }
  .control-section { grid-template-columns: 1fr; gap: 36px; margin: 10px 20px 80px; padding: 38px 24px; }
  .control-button { min-width: 0; width: 100%; }
  footer { grid-template-columns: 1fr; justify-items: start; gap: 5px; padding-block: 38px; }
  footer p:nth-child(2), footer p:last-child { text-align: left; }
}

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