:root {
  --bg: #f6f4ee;
  --paper: #fffdf7;
  --ink: #171818;
  --muted: #5f6465;
  --line: #d8d2c4;
  --dark: #111513;
  --green: #5fff9b;
  --blue: #2e6df6;
  --rust: #bf4d2f;
  --gold: #d8a728;
  --shadow: 0 24px 60px rgba(17, 21, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    linear-gradient(90deg, rgba(17, 21, 19, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(17, 21, 19, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 34px 34px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(17, 21, 19, 0.12);
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--dark);
  background: var(--green);
  box-shadow: 4px 4px 0 var(--dark);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(17, 21, 19, 0.14);
  background: rgba(255, 253, 247, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

main {
  overflow: visible;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.44fr) minmax(560px, 1fr);
  grid-template-areas:
    "console scene";
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  align-content: start;
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.cinematic-hero {
  isolation: isolate;
  min-height: calc(100vh - 72px);
  overflow: visible;
  background: #000;
  color: #fffdf7;
}

.hero-scene {
  position: sticky;
  top: 92px;
  grid-area: scene;
  z-index: 1;
  height: min(800px, calc(100vh - 116px));
  min-height: 640px;
  align-self: start;
  border: 0;
  background: #000;
  box-shadow: none;
  overflow: hidden;
}

.hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 60% 30%, rgba(115, 247, 255, 0.16), transparent 22%),
    radial-gradient(circle at 72% 45%, rgba(255, 130, 34, 0.14), transparent 18%),
    radial-gradient(circle at 48% 76%, rgba(46, 109, 246, 0.14), transparent 24%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  animation: electricFlash 6.2s infinite;
}

.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 30%, rgba(0, 0, 0, 0.18) 56%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.hero-brain-image,
.energy-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-brain-image {
  z-index: 0;
  display: block;
  object-fit: contain;
  object-position: center 46%;
  transform: translateX(-34%);
  transform-origin: center center;
  filter: saturate(1.08) contrast(1.08);
  will-change: transform;
}

.energy-overlay {
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.82;
}

.business-computer {
  position: absolute;
  right: clamp(24px, 7%, 72px);
  bottom: clamp(46px, 8%, 78px);
  z-index: 4;
  width: clamp(172px, 22vw, 250px);
  color: #fffdf7;
  filter: drop-shadow(0 0 26px rgba(95, 255, 155, 0.28));
  pointer-events: none;
}

.business-computer-screen {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 2px solid rgba(115, 247, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(3, 13, 16, 0.94), rgba(4, 10, 26, 0.94)),
    #061016;
  box-shadow:
    inset 0 0 28px rgba(46, 109, 246, 0.34),
    0 0 36px rgba(115, 247, 255, 0.2);
  animation: screenCharge 3.8s ease-in-out infinite;
}

.business-computer-screen strong {
  color: var(--green);
  font-size: clamp(1.5rem, 2.6vw, 2.35rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.business-computer-screen span {
  color: rgba(255, 253, 247, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.business-computer-neck {
  width: 30px;
  height: 42px;
  margin: 0 auto;
  background: linear-gradient(90deg, #070b12, #17242a, #070b12);
  border-inline: 1px solid rgba(115, 247, 255, 0.34);
}

.business-computer-base {
  width: 62%;
  height: 12px;
  margin: 0 auto;
  border: 1px solid rgba(115, 247, 255, 0.38);
  background: #070b12;
  box-shadow: 0 0 20px rgba(95, 255, 155, 0.22);
}

.scene-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.64), transparent 32%, rgba(0, 0, 0, 0.16)),
    radial-gradient(circle at 67% 42%, transparent 0%, transparent 40%, rgba(0, 0, 0, 0.42) 100%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: clamp(22px, 4vw, 46px);
  left: clamp(22px, 4vw, 52px);
  right: clamp(22px, 4vw, 52px);
  z-index: 5;
}

.hero-copy,
.section {
  max-width: 1180px;
}

.cinematic-hero .hero-copy {
  max-width: 690px;
  padding-top: 0;
}

.cinematic-hero .eyebrow {
  color: #73f7ff;
  text-shadow: 0 0 24px rgba(115, 247, 255, 0.48);
}

.cinematic-hero h1 {
  max-width: 660px;
  color: #fffdf7;
  font-size: clamp(2.7rem, 4.6vw, 5.2rem);
  text-shadow:
    0 18px 55px rgba(0, 0, 0, 0.72),
    0 0 34px rgba(46, 109, 246, 0.28);
}

.cinematic-hero .lede {
  max-width: 650px;
  color: rgba(255, 253, 247, 0.88);
  font-size: clamp(1rem, 1.45vw, 1.24rem);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.68);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lede {
  max-width: 760px;
  color: #353938;
  font-size: clamp(1.1rem, 1.8vw, 1.42rem);
  line-height: 1.55;
}

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

.button,
.mini-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 2px solid var(--dark);
  color: var(--dark);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button {
  padding: 0 18px;
}

.button:hover,
.mini-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--dark);
}

.button.primary {
  background: var(--green);
}

.button.ghost {
  background: var(--paper);
}

.cinematic-hero .button.ghost {
  background: rgba(255, 253, 247, 0.9);
}

.operator-panel {
  border: 2px solid var(--dark);
  background: var(--dark);
  color: #e9f5ec;
  box-shadow: var(--shadow);
}

.hero-console {
  position: relative;
  grid-area: console;
  z-index: 3;
  align-self: start;
  max-width: 430px;
  justify-self: start;
  border-color: rgba(255, 253, 247, 0.5);
  background: rgba(17, 21, 19, 0.78);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.36),
    0 0 44px rgba(95, 255, 155, 0.16);
  backdrop-filter: blur(16px);
}

.hero-console .hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.hero-console .button {
  width: 100%;
  min-height: 44px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@keyframes electricFlash {
  0%,
  11%,
  16%,
  42%,
  47%,
  100% {
    opacity: 0;
  }

  12% {
    opacity: 0.48;
  }

  13.5% {
    opacity: 0.13;
  }

  14.5% {
    opacity: 0.36;
  }

  43% {
    opacity: 0.32;
  }

  44% {
    opacity: 0.08;
  }
}

@keyframes screenCharge {
  0%,
  100% {
    box-shadow:
      inset 0 0 24px rgba(46, 109, 246, 0.28),
      0 0 30px rgba(115, 247, 255, 0.14);
  }

  50% {
    box-shadow:
      inset 0 0 36px rgba(95, 255, 155, 0.28),
      0 0 42px rgba(95, 255, 155, 0.26);
  }
}

.hero-console::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 46%;
  width: 126px;
  height: 4px;
  display: none;
  background: linear-gradient(90deg, rgba(95, 255, 155, 0.95), rgba(95, 255, 155, 0));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(95, 255, 155, 0.8);
}

.hero-console::after {
  content: "";
  position: absolute;
  right: -16px;
  top: calc(46% - 9px);
  width: 20px;
  height: 20px;
  display: none;
  border: 2px solid var(--green);
  background: rgba(17, 21, 19, 0.9);
  box-shadow: 0 0 22px rgba(95, 255, 155, 0.8);
}

.scene-readout {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.scene-readout strong {
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.business-screen-title strong {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 0.95;
}

.scene-readout span {
  color: #dce5df;
  font-size: 0.85rem;
  text-align: right;
}

.panel-header {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.panel-header span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--green);
}

.panel-header span:nth-child(2) {
  background: var(--gold);
}

.panel-header span:nth-child(3) {
  background: var(--rust);
}

.terminal-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.terminal-line b {
  color: var(--green);
}

.terminal-line span {
  color: #dce5df;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric-grid div {
  min-height: 118px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.metric-grid div:last-child {
  border-right: 0;
}

.metric-grid strong {
  display: block;
  color: var(--green);
  font-size: 2.5rem;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 10px;
  color: #dce5df;
  font-size: 0.9rem;
}

.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-block: 2px solid var(--dark);
  background: var(--paper);
}

.strip span {
  flex: 1 1 190px;
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  font-weight: 900;
  text-align: center;
}

.section {
  margin: 0 auto;
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 42px);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.section p {
  color: #414747;
  line-height: 1.65;
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-list article,
.demo-card,
.contact-card,
.system-stack div,
.demo-output {
  border: 2px solid var(--dark);
  background: var(--paper);
  box-shadow: 6px 6px 0 rgba(17, 21, 19, 0.9);
}

.proof-list article {
  padding: 18px;
}

.proof-list p,
.demo-card p,
.system-stack p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.demo-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 18px;
}

.demo-card.live {
  background: #effff2;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 24px;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--dark);
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag {
  background: #e7ecff;
}

.mini-action {
  width: 100%;
  margin-top: auto;
  padding: 0 12px;
  background: var(--gold);
}

.demo-output {
  margin-top: 22px;
  padding: 22px;
  min-height: 90px;
  background: var(--dark);
  color: #e9f5ec;
  line-height: 1.6;
}

.demo-output b {
  color: var(--green);
}

.analytics-controls {
  max-width: 680px;
  margin-bottom: 20px;
}

.analytics-output pre {
  overflow-x: auto;
  padding: 14px;
  background: rgba(255, 253, 247, 0.08);
}

.system-stack {
  display: grid;
  gap: 12px;
}

.system-stack div {
  display: grid;
  grid-template-columns: 54px minmax(90px, 0.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.system-stack span {
  color: var(--rust);
  font-size: 1.4rem;
  font-weight: 900;
}

.system-stack b {
  font-size: 1.05rem;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.65fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--dark);
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 2px solid var(--dark);
  background: #fff;
  color: var(--dark);
  font: inherit;
  padding: 12px;
}

select {
  min-height: 48px;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-note {
  max-width: 680px;
  padding: 12px 14px;
  border-left: 4px solid var(--green);
  background: rgba(95, 255, 155, 0.12);
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-note a {
  color: var(--dark);
  font-weight: 900;
  text-decoration: underline;
}

.form-note.success {
  color: #176536;
}

.form-note.error {
  color: var(--rust);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 2px solid var(--dark);
  background: var(--dark);
  color: #e9f5ec;
  font-weight: 800;
}

.resume-page {
  background: #eeede7;
}

.resume-shell {
  padding: clamp(24px, 5vw, 56px) clamp(16px, 5vw, 72px);
}

.resume-document {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 2px solid var(--dark);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--dark);
}

.resume-header {
  padding-bottom: 22px;
  border-bottom: 2px solid var(--dark);
}

.resume-header h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.96;
}

.resume-title {
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 1.08rem;
  font-weight: 900;
}

.resume-contact {
  margin: 0;
  color: var(--muted);
}

.resume-document section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.resume-document section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.resume-document h2 {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
  line-height: 1.05;
}

.resume-document h3 {
  margin-bottom: 7px;
}

.resume-document p,
.resume-document li {
  color: #333838;
  line-height: 1.58;
}

.resume-document ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-tags li {
  padding: 7px 10px;
  border: 1px solid var(--dark);
  background: #fff;
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.resume-project {
  margin-top: 18px;
}

.resume-project:first-of-type {
  margin-top: 0;
}

.resume-project.compact p {
  margin-bottom: 0;
}

@media print {
  body {
    background: #fff;
  }

  .topbar {
    display: none;
  }

  .resume-shell {
    padding: 0;
  }

  .resume-document {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "scene"
      "console";
    min-height: auto;
    align-items: stretch;
    align-content: start;
  }

  .cinematic-hero {
    min-height: auto;
  }

  .hero-scene {
    position: relative;
    top: auto;
    height: clamp(640px, 88vh, 760px);
    min-height: 0;
  }

  .scene-glow {
    background:
      linear-gradient(180deg, rgba(16, 20, 18, 0.08) 0%, rgba(16, 20, 18, 0.1) 58%, rgba(16, 20, 18, 0.46) 100%),
      radial-gradient(circle at 52% 42%, transparent 0%, transparent 54%, rgba(16, 20, 18, 0.32) 100%);
  }

  .business-computer {
    right: clamp(20px, 6vw, 52px);
    bottom: 44px;
    width: clamp(168px, 32vw, 230px);
  }

  .cinematic-hero .hero-copy {
    max-width: none;
  }

  .hero-console {
    justify-self: stretch;
    max-width: none;
  }

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

@media (max-width: 640px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
  }

  nav a {
    flex: 1 1 42%;
    justify-content: center;
  }

  .hero-actions {
    display: grid;
  }

  .cinematic-hero {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero-scene {
    height: 660px;
    margin-inline: -4px;
  }

  .business-computer {
    right: 18px;
    bottom: 28px;
    width: min(210px, calc(100vw - 64px));
  }

  .business-computer-screen {
    min-height: 104px;
    padding: 14px;
  }

  .cinematic-hero h1 {
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .cinematic-hero .lede {
    font-size: 1rem;
    line-height: 1.48;
  }

  .operator-panel {
    width: 100%;
  }

  .scene-readout {
    display: grid;
  }

  .scene-readout span {
    text-align: left;
  }

  .hero-console::before,
  .hero-console::after {
    display: none;
  }

  .terminal-line {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .system-stack div {
    grid-template-columns: 1fr;
  }
}
