:root {
  --bg: #071110;
  --panel: rgba(20, 31, 30, 0.86);
  --panel-strong: #13201f;
  --line: rgba(144, 255, 255, 0.16);
  --cyan: #18f6ff;
  --cyan-soft: #73f5ff;
  --green: #28ff65;
  --pink: #f4b2ff;
  --white: #edf8f8;
  --muted: #93a1a1;
  --black: #020707;
  --shadow: 0 0 26px rgba(24, 246, 255, 0.15);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(rgba(24, 246, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 246, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(40, 255, 101, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 255, 101, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px, 32px 32px, 8px 8px, 8px 8px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 10%, rgba(24, 246, 255, 0.08), transparent 35%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.035) 1px, transparent 1px, transparent 4px);
  mix-blend-mode: overlay;
  opacity: 0.4;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 38px;
  background: rgba(14, 24, 23, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--cyan);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.7rem, 3.1vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

.brand span {
  color: var(--cyan);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 36px);
  color: #d8e2e2;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 10px 0;
  font-size: clamp(0.84rem, 1.7vw, 1.5rem);
  color: rgba(237, 248, 248, 0.78);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--white);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--cyan);
}

.terminal-button,
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 28px;
  border: 1px solid #071c1d;
  background: linear-gradient(180deg, #27f8ff, #66e9ef);
  color: var(--black);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.terminal-button {
  font-size: 0.85rem;
}

.menu-button {
  display: none;
}

.section-shell {
  width: min(100% - 48px, 1400px);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 138px) 0;
}

.hero {
  min-height: calc(100vh - 86px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  padding-top: 92px;
}

.system-chip,
.log-label {
  display: inline-flex;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 5px 10px;
  background: rgba(40, 255, 101, 0.08);
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 #000;
}

h1 {
  margin-top: 34px;
  font-size: clamp(3.25rem, 6vw, 6.7rem);
  line-height: 0.98;
  color: var(--cyan-soft);
}

h1 span,
.process-head h2 span,
.deploy-cta span {
  color: var(--pink);
}

.hero-tags {
  color: var(--green);
  font-size: clamp(1.25rem, 2.8vw, 2.45rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-tags b::before {
  content: "•";
  margin: 0 10px;
}

.terminal-note {
  max-width: 760px;
  margin: 28px 0 48px;
  padding-left: 26px;
  border-left: 3px solid var(--cyan);
  color: #d4dddd;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.65;
}

.action-icon {
  margin-right: 12px;
  width: 20px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--black);
  line-height: 1;
}

.portal-card {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid rgba(24, 246, 255, 0.48);
  background:
    repeating-linear-gradient(45deg, rgba(24, 246, 255, 0.08) 0 2px, transparent 2px 8px),
    radial-gradient(circle, rgba(244,178,255,0.17), transparent 47%),
    #14201f;
  border-radius: 8px;
  padding: clamp(28px, 5vw, 70px);
  box-shadow: inset 0 0 70px rgba(24, 246, 255, 0.16), var(--shadow);
  overflow: hidden;
}

.tesseract-card {
  padding: 0;
  background:
    linear-gradient(45deg, rgba(24, 246, 255, 0.08) 25%, transparent 25%, transparent 50%, rgba(24, 246, 255, 0.08) 50%, rgba(24, 246, 255, 0.08) 75%, transparent 75%),
    radial-gradient(circle at 50% 50%, rgba(24, 246, 255, 0.2), rgba(244, 178, 255, 0.12) 34%, transparent 66%),
    #14201f;
  background-size: 18px 18px, 100% 100%, 100% 100%;
}

.tesseract-card::before,
.tesseract-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.tesseract-card::before {
  inset: 0;
  background:
    linear-gradient(rgba(24, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.34;
}

.tesseract-card::after {
  inset: 12%;
  border: 1px solid rgba(24, 246, 255, 0.16);
  box-shadow:
    0 0 50px rgba(24, 246, 255, 0.18),
    inset 0 0 46px rgba(244, 178, 255, 0.13);
  transform: rotate(45deg);
}

.tesseract-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tesseract-hud {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(40, 255, 101, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(40, 255, 101, 0.55);
}

.portal-frame {
  position: relative;
  height: 100%;
  background: radial-gradient(circle, #151d23 0 28%, transparent 29%);
  filter: saturate(1.2);
}

.portal-depth,
.portal-core {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 18px solid rgba(24, 246, 255, 0.52);
  transform: rotate(45deg);
  box-shadow: 0 0 28px rgba(24, 246, 255, 0.46), inset 0 0 26px rgba(244, 178, 255, 0.38);
}

.depth-a { width: 86%; height: 86%; border-color: rgba(24, 246, 255, 0.35); }
.depth-b { width: 64%; height: 64%; border-color: rgba(244, 178, 255, 0.52); }
.depth-c { width: 43%; height: 43%; border-color: rgba(24, 246, 255, 0.62); }
.portal-core {
  width: 28%;
  height: 28%;
  border: 0;
  background: radial-gradient(circle, #1f2730, #101516);
  transform: rotate(45deg);
}

.section-heading {
  margin-bottom: 48px;
}

.section-heading h2 {
  color: var(--cyan-soft);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.section-heading h2 span {
  color: var(--pink);
}

.section-heading p {
  max-width: 780px;
  color: #d4dddd;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.7;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(144, 255, 255, 0.1);
  padding-bottom: 30px;
}

.split-heading a,
.terminal-card a {
  color: var(--green);
  font-weight: 800;
  text-transform: uppercase;
}

.featured-grid,
.portfolio-grid,
.stack-grid,
.contact-grid {
  display: grid;
  gap: 28px;
}

.featured-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.featured-card,
.terminal-card,
.stack-card,
.process-card,
.contact-form,
.ops-panel,
.deploy-cta {
  border: 1px solid rgba(237, 248, 248, 0.16);
  background: linear-gradient(115deg, rgba(23, 35, 34, 0.96), rgba(20, 31, 30, 0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.featured-card {
  overflow: hidden;
  border-radius: 4px;
}

.project-visual {
  min-height: 270px;
  position: relative;
  padding: 20px;
  background-color: #101515;
  overflow: hidden;
}

.project-visual::before,
.process-image::before,
.map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(24, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 246, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

.visual-ai::after {
  content: "";
  position: absolute;
  left: 13%;
  right: 8%;
  bottom: -28%;
  height: 92%;
  background:
    radial-gradient(circle at 50% 30%, rgba(24, 246, 255, 0.65), transparent 4px),
    conic-gradient(from 20deg, rgba(24, 246, 255, 0.88), rgba(244,178,255,0.9), rgba(40,255,101,0.12), rgba(24,246,255,0.88));
  clip-path: polygon(50% 0, 95% 18%, 100% 65%, 70% 100%, 28% 97%, 0 62%, 5% 18%);
  filter: blur(0.2px) drop-shadow(0 0 22px rgba(24, 246, 255, 0.4));
  opacity: 0.7;
}

.visual-mobile::after {
  content: "";
  position: absolute;
  inset: 44px 26% 18px 26%;
  border: 9px solid #202528;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 35%, #f0a344 0 9%, #81249a 10% 18%, transparent 19%),
    linear-gradient(160deg, #282e34, #101214 48%, #231321);
  transform: rotate(-18deg);
  box-shadow: 0 26px 45px #000;
}

.project-visual span {
  position: relative;
  z-index: 1;
  float: right;
  margin-left: 8px;
  border: 1px solid var(--green);
  color: var(--green);
  padding: 4px 9px;
  background: #06100f;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body {
  padding: 28px;
  background: var(--panel-strong);
}

.project-body h3,
.terminal-card h3,
.stack-card h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--white);
}

.project-body p,
.terminal-card p,
.stack-card p {
  color: #d7dfdf;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

.portfolio {
  padding-top: 72px;
}

.log-label {
  margin-bottom: 18px;
  border: 0;
  color: var(--cyan);
  background: transparent;
  padding: 0;
}

.portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terminal-card {
  min-height: 235px;
  position: relative;
  padding: 34px;
  border-radius: 4px;
}

.tag {
  position: absolute;
  right: 26px;
  top: 26px;
  border: 1px solid currentColor;
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.green { color: var(--green); }
.pink { color: var(--pink); }
.cyan { color: var(--cyan); }

.meta {
  color: rgba(147, 161, 161, 0.52) !important;
  font-family: "IBM Plex Mono", monospace !important;
  font-size: 0.86rem;
}

.stack-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.stack-card {
  min-height: 240px;
  padding: 42px;
}

.stack-card.wide {
  grid-column: span 1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.pill-row span {
  border: 1px solid var(--green);
  color: var(--green);
  padding: 8px 12px;
  background: rgba(4, 12, 11, 0.8);
  text-transform: uppercase;
  font-weight: 700;
}

.pill-row.muted span {
  border-color: rgba(237, 248, 248, 0.18);
  color: var(--white);
}

pre {
  margin: 30px 0 0;
  padding: 30px;
  overflow: auto;
  color: var(--green);
  background: #020707;
  border-top: 1px solid rgba(237, 248, 248, 0.1);
  box-shadow: inset 0 18px 40px rgba(0, 0, 0, 0.55);
}

.infra-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.infra-list span {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(4, 12, 11, 0.52);
  color: #dfe8e8;
  font-weight: 800;
}

.mini-modules,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.mini-modules div,
.payment-grid span {
  padding: 22px;
  background: rgba(4, 12, 11, 0.52);
}

.mini-modules strong {
  display: block;
  color: var(--green);
  font-size: 1.8rem;
}

.mini-modules span {
  font-weight: 900;
}

.payment {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 26px;
  align-items: center;
}

.payment h3,
.payment p {
  grid-column: 1;
}

.payment-grid {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  grid-template-columns: repeat(4, 1fr);
}

.payment-grid span {
  color: var(--cyan-soft);
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
}

.process-head {
  max-width: 720px;
  margin: 0 auto 86px;
  text-align: center;
}

.process-head p:first-child {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.process-head h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.process-head p:last-child,
.deploy-cta p {
  color: #d5dddd;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr);
  gap: 18px 40px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
  scroll-margin-top: 120px;
}

.process-card {
  min-height: 210px;
  padding: 28px;
}

.process-card span {
  display: inline-flex;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 4px 7px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.process-card h3 {
  margin-top: 28px;
  font-size: 1.6rem;
}

.process-card p {
  color: #dde5e5;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
}

.node {
  width: 34px;
  height: 34px;
  border: 2px solid var(--cyan);
  border-radius: 8px;
  box-shadow: 0 0 16px var(--cyan);
}

.node::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin: 11px auto;
  background: var(--cyan);
}

.process-image {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background-color: #070b0b;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(237, 248, 248, 0.09);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.45);
}

.process-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 36%, rgba(0, 0, 0, 0.25)),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.34));
  opacity: 0.86;
}

.image-server { background-image: url("assets/process-server.svg"); }
.image-dashboard { background-image: url("assets/process-dashboard.svg"); }
.image-code { background-image: url("assets/process-code.svg"); }
.image-shield { background-image: url("assets/process-shield.svg"); }
.image-chip { background-image: url("assets/process-chip.svg"); }

.deploy-cta {
  margin-top: 120px;
  padding: 60px 24px;
  text-align: center;
}

.deploy-cta h3 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
}

.contact-head h2 {
  margin-top: 28px;
  font-size: clamp(3rem, 6vw, 6.6rem);
}

.contact-grid {
  grid-template-columns: 1fr 0.48fr;
  align-items: start;
  margin-top: 60px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding: 48px;
}

label {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.full {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-bottom: 1px solid rgba(237, 248, 248, 0.28);
  background: #06100f;
  color: var(--white);
  padding: 22px;
  font: inherit;
  font-size: 1.1rem;
  outline: none;
}

textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-form .primary-action {
  width: min(100%, 270px);
  border: 0;
  cursor: pointer;
}

.ready {
  align-self: center;
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
}

.ops-panel {
  padding: 44px;
}

.ops-panel h3 {
  color: var(--cyan);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.ops-panel p {
  margin-top: 36px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.segmented {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.segmented button {
  min-height: 40px;
  border: 1px solid rgba(237, 248, 248, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.segmented button:first-child {
  color: var(--cyan);
  border-color: var(--cyan);
}

.timeline-pref {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.timeline-pref b {
  color: var(--cyan);
  text-transform: uppercase;
}

.contact-lines {
  display: grid;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
}

.contact-lines a {
  color: var(--pink);
}

.map-panel {
  position: relative;
  height: 170px;
  margin-top: 44px;
  background:
    radial-gradient(circle at 65% 55%, rgba(24,246,255,0.8) 0 2px, transparent 3px),
    linear-gradient(140deg, rgba(24,246,255,0.12), rgba(244,178,255,0.14)),
    #06100f;
  overflow: hidden;
}

.map-panel span {
  position: absolute;
  left: 58%;
  top: 46%;
  width: 46px;
  height: 46px;
  border: 5px solid var(--cyan);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px rgba(24, 246, 255, 0.8);
}

.site-footer {
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 38px;
  border-top: 1px solid rgba(144, 255, 255, 0.12);
  background: rgba(7, 17, 16, 0.92);
  color: var(--muted);
  text-transform: uppercase;
}

.site-footer span:first-child {
  color: var(--pink);
  font-weight: 900;
}

.site-footer nav {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
}

.site-footer .status {
  justify-self: end;
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 0 22px;
  }

  .terminal-button {
    display: none;
  }

  .menu-button {
    display: grid;
    gap: 7px;
    width: 46px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    background: #091312;
  }

  .menu-button span {
    width: 23px;
    height: 2px;
    background: var(--cyan);
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 22px 22px;
    background: rgba(14, 24, 23, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 0;
  }

  .hero,
  .featured-grid,
  .portfolio-grid,
  .stack-grid,
  .contact-grid,
  .payment,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .portal-card {
    max-width: 620px;
    width: 100%;
    justify-self: center;
  }

  .split-heading {
    align-items: start;
    flex-direction: column;
  }

  .payment h3,
  .payment p,
  .payment-grid {
    grid-column: auto;
    grid-row: auto;
  }

  .payment-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .node {
    justify-self: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .site-footer .status {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, 1400px);
  }

  .brand {
    font-size: 1.45rem;
    letter-spacing: 0.08em;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-tags {
    display: grid;
    gap: 8px;
  }

  .hero-tags b {
    display: none;
  }

  .project-visual {
    min-height: 210px;
  }

  .terminal-card,
  .stack-card,
  .contact-form,
  .ops-panel {
    padding: 24px;
  }

  .tag {
    position: static;
    display: inline-flex;
    margin-bottom: 18px;
  }

  .mini-modules,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  pre {
    padding: 20px;
    font-size: 0.82rem;
  }

  .contact-head h2 {
    font-size: 2.7rem;
  }
}
