:root {
  --bg: #041322;
  --bg-deep: #020b13;
  --soft-sea: #bfd0d0;
  --soft-sea-strong: #dbe7e5;
  --text: #f5f8f8;
  --muted: #91a9b7;
  --line: rgba(182, 211, 224, .24);
  --line-strong: rgba(216, 232, 236, .54);
  --page-x: clamp(28px, 4.15vw, 78px);
  --page-y: clamp(26px, 4vh, 48px);
  --content-top: clamp(150px, 22vh, 208px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 74% 30%, rgba(57, 110, 154, .12), transparent 28%),
    linear-gradient(125deg, #041423 0%, #020b13 100%);
}

.hero__backdrop,
.hero__wash,
.hero__glow,
.hero__grid,
.scanline,
.blueprint,
.hero__visual { pointer-events: none; }

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -8;
  background:
    radial-gradient(circle at 74% 22%, rgba(93, 164, 205, .07), transparent 18%),
    linear-gradient(180deg, rgba(2,9,16,.1), rgba(2,9,16,.45) 100%);
}

.hero__visual {
  position: absolute;
  right: -2vw;
  bottom: -1vh;
  width: min(63vw, 980px);
  max-width: 980px;
  z-index: -7;
  transform-origin: 72% 58%;
  will-change: transform;
  animation: visualFloat 16s ease-in-out infinite alternate;
  filter: saturate(.97) contrast(1.02);
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .96;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -6;
  background:
    linear-gradient(90deg,
      rgba(3,15,27,1) 0%,
      rgba(3,15,27,.995) 25%,
      rgba(3,15,27,.96) 34%,
      rgba(3,15,27,.84) 44%,
      rgba(3,15,27,.46) 56%,
      rgba(3,15,27,.12) 72%,
      rgba(3,15,27,.02) 100%),
    linear-gradient(180deg, rgba(2,9,16,.08), rgba(2,9,16,.36) 100%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -5;
  background:
    radial-gradient(circle at 63% 42%, rgba(111, 188, 223, .14), transparent 18%),
    radial-gradient(circle at 78% 68%, rgba(255, 177, 101, .08), transparent 20%);
  animation: glowPulse 7s ease-in-out infinite alternate;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -4;
  opacity: .11;
  background-image:
    linear-gradient(rgba(139, 180, 202, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 180, 202, .22) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, transparent 18%, black 34%, black 94%, transparent 100%);
  animation: gridShift 28s linear infinite;
}

.blueprint {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  opacity: .58;
  mask-image: linear-gradient(90deg, transparent 16%, rgba(0,0,0,.6) 28%, black 40%, black 90%, transparent 100%);
}

.blueprint path,
.blueprint circle {
  fill: none;
  stroke: #84b7d2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.bp-grid { opacity: .18; }
.bp-construction {
  opacity: .34;
  stroke-dasharray: 12 8;
  animation: dashShift 22s linear infinite;
}
.bp-ship-outline {
  opacity: .42;
  animation: blueprintLift 8s ease-in-out infinite alternate;
}
.bp-routing {
  opacity: .65;
  stroke-width: 1.15;
  stroke-dasharray: 240 28;
  animation: traceShift 12s linear infinite;
}
.bp-micro { opacity: .34; }

.scanline {
  position: absolute;
  z-index: -2;
  top: -6%;
  bottom: -6%;
  left: 42%;
  width: 24%;
  transform: skewX(-10deg);
  background: linear-gradient(90deg, transparent 0%, rgba(164, 219, 241, .04) 34%, rgba(196, 237, 251, .22) 50%, rgba(164, 219, 241, .04) 66%, transparent 100%);
  filter: blur(10px);
  opacity: 0;
  animation: scanSweep 8s ease-in-out infinite;
}

.header {
  position: absolute;
  inset: var(--page-y) var(--page-x) auto var(--page-x);
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.header > * { pointer-events: auto; }

.brand {
  display: inline-flex;
  width: clamp(106px, 7vw, 132px);
  opacity: .97;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.linkedin {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 232, 234, .54);
  border-radius: 7px;
  background: rgba(4, 17, 29, .18);
  backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.linkedin:hover {
  transform: translateY(-2px);
  border-color: rgba(233, 243, 243, .82);
  background: rgba(200, 221, 225, .10);
}
.linkedin svg {
  width: 20px;
  fill: var(--soft-sea-strong);
}

.content {
  position: relative;
  z-index: 3;
  width: min(640px, 44vw);
  min-width: 510px;
  padding: var(--content-top) 0 128px var(--page-x);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  color: rgba(233, 239, 242, .84);
  font-size: clamp(10px, .73vw, 13px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.eyebrow__line {
  flex: 0 0 clamp(42px, 3.4vw, 62px);
  height: 1px;
  background: rgba(217, 232, 233, .72);
}

.headline {
  margin: 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(64px, 5.9vw, 110px);
  font-weight: 600;
  line-height: .90;
  letter-spacing: -.055em;
}
.headline span { display: block; }
.headline__accent {
  margin-top: .10em;
  color: var(--soft-sea);
}

.subheadline {
  margin: 30px 0 0;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(22px, 1.8vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -.03em;
}

.description {
  margin: 26px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.55;
}

.actions {
  display: flex;
  gap: 16px;
  margin-top: 42px;
}

.button {
  position: relative;
  overflow: hidden;
  min-width: 218px;
  height: 62px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 1px solid rgba(214, 232, 236, .36);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-118%);
  background: linear-gradient(102deg, transparent 22%, rgba(255,255,255,.18) 48%, transparent 76%);
  transition: transform .68s ease;
}
.button:hover::before { transform: translateX(120%); }
.button:hover { transform: translateY(-2px); }

.button--primary {
  color: #082033;
  background: var(--soft-sea-strong);
  border-color: var(--soft-sea-strong);
}
.button--primary:hover {
  background: #eef5f3;
  border-color: #eef5f3;
}

.button--secondary {
  background: rgba(3, 14, 24, .24);
  backdrop-filter: blur(8px);
}
.button--secondary:hover {
  background: rgba(202, 222, 226, .08);
  border-color: rgba(222, 237, 239, .68);
}
.button svg {
  width: 21px;
  fill: currentColor;
}
.button__arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform .25s ease;
}
.button:hover .button__arrow { transform: translateX(5px); }

.email-link {
  display: inline-block;
  margin-top: 18px;
  color: rgba(200, 221, 227, .78);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid rgba(200, 221, 227, .22);
  transition: color .22s ease, border-color .22s ease;
}
.email-link:hover {
  color: rgba(234, 243, 244, .98);
  border-color: rgba(234, 243, 244, .58);
}

.status {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(22px, 3.6vh, 36px);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(220, 231, 234, .62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soft-sea-strong);
  box-shadow: 0 0 0 0 rgba(210, 229, 228, .36);
  animation: statusPulse 2.8s ease-out infinite;
}

.mobile-mail {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(218, 231, 231, .95);
  color: #082033;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mobile-mail svg {
  width: 18px;
  fill: currentColor;
}

.intro {
  opacity: 0;
  transform: translateY(14px);
  animation: intro .8s cubic-bezier(.22,.61,.36,1) forwards;
}
.intro--1 { animation-delay: .06s; }
.intro--2 { animation-delay: .14s; }
.intro--3 { animation-delay: .24s; }
.intro--4 { animation-delay: .36s; }
.intro--5 { animation-delay: .48s; }
.intro--6 { animation-delay: .60s; }

@keyframes intro {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes visualFloat {
  from { transform: translate3d(0,0,0) scale(1.01); }
  to   { transform: translate3d(-1.2%, -.5%, 0) scale(1.04); }
}
@keyframes glowPulse {
  from { opacity: .84; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.02); }
}
@keyframes gridShift {
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(96px, 96px, 0); }
}
@keyframes dashShift { to { stroke-dashoffset: -180; } }
@keyframes traceShift { to { stroke-dashoffset: -460; } }
@keyframes blueprintLift {
  from { transform: translate3d(0,0,0); opacity: .36; }
  to   { transform: translate3d(0,-8px,0); opacity: .46; }
}
@keyframes scanSweep {
  0%   { transform: translateX(-32%) skewX(-10deg); opacity: 0; }
  14%  { opacity: .10; }
  40%  { opacity: .28; }
  56%  { opacity: .18; }
  100% { transform: translateX(156%) skewX(-10deg); opacity: 0; }
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(210,229,228,.34); }
  72% { box-shadow: 0 0 0 9px rgba(210,229,228,0); }
  100% { box-shadow: 0 0 0 0 rgba(210,229,228,0); }
}

@media (max-width: 1500px) {
  .hero__visual {
    width: min(60vw, 880px);
    right: -3vw;
  }
  .content {
    width: min(620px, 47vw);
    min-width: 480px;
    padding-top: clamp(146px, 20vh, 190px);
  }
  .headline { font-size: clamp(60px, 5.3vw, 90px); }
}

@media (max-width: 1180px) {
  :root {
    --page-x: clamp(24px, 3.7vw, 40px);
    --content-top: clamp(130px, 18vh, 168px);
  }

  .hero__visual {
    width: min(64vw, 780px);
    right: -8vw;
    bottom: 0;
  }

  .hero__wash {
    background:
      linear-gradient(90deg,
        rgba(3,15,27,1) 0%,
        rgba(3,15,27,.99) 30%,
        rgba(3,15,27,.92) 42%,
        rgba(3,15,27,.64) 58%,
        rgba(3,15,27,.16) 78%,
        rgba(3,15,27,.04) 100%),
      linear-gradient(180deg, rgba(2,9,16,.08), rgba(2,9,16,.34) 100%);
  }

  .content {
    width: min(60vw, 580px);
    min-width: 0;
  }

  .headline { font-size: clamp(56px, 7vw, 82px); }
  .subheadline { font-size: clamp(21px, 2.6vw, 28px); }
  .description { font-size: 16px; max-width: 32ch; }
  .blueprint { opacity: .50; }
}

@media (max-width: 820px) {
  :root {
    --page-x: 22px;
    --page-y: 22px;
    --content-top: 116px;
  }

  .hero {
    min-height: 100svh;
  }

  .brand { width: 100px; }

  .hero__visual {
    width: 116vw;
    right: -28vw;
    bottom: -2vh;
  }

  .hero__wash {
    background:
      linear-gradient(180deg,
        rgba(3,15,27,.985) 0%,
        rgba(3,15,27,.95) 36%,
        rgba(3,15,27,.70) 62%,
        rgba(3,15,27,.60) 100%),
      linear-gradient(90deg, rgba(3,15,27,.97) 0%, rgba(3,15,27,.74) 56%, rgba(3,15,27,.40) 100%);
  }

  .hero__grid {
    opacity: .08;
    mask-image: linear-gradient(180deg, transparent 10%, black 38%, black 100%);
  }

  .blueprint {
    opacity: .28;
    mask-image: linear-gradient(180deg, transparent 8%, black 38%, black 100%);
  }

  .scanline {
    left: 18%;
    width: 48%;
  }

  .content {
    width: 100%;
    min-width: 0;
    padding: var(--content-top) var(--page-x) 132px;
  }

  .eyebrow {
    gap: 12px;
    margin-bottom: 22px;
    font-size: 9px;
    letter-spacing: .18em;
  }
  .eyebrow__line { flex-basis: 34px; }

  .headline {
    font-size: clamp(48px, 15vw, 72px);
    line-height: .93;
  }

  .subheadline {
    margin-top: 24px;
    font-size: 21px;
  }

  .description {
    margin-top: 20px;
    font-size: 14px;
    max-width: 28ch;
  }

  .actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    max-width: 380px;
  }

  .button {
    width: 100%;
    min-width: 0;
    height: 56px;
  }

  .email-link {
    font-size: 13px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .status {
    left: var(--page-x);
    right: auto;
    bottom: calc(74px + env(safe-area-inset-bottom));
    font-size: 8px;
  }

  .mobile-mail {
    display: inline-flex;
  }
}

@media (min-width: 821px) and (max-height: 820px) {
  :root { --content-top: 126px; }
  .content { padding-bottom: 86px; }
  .eyebrow { margin-bottom: 18px; }
  .headline { font-size: clamp(56px, 5.2vw, 82px); }
  .subheadline { margin-top: 22px; }
  .description { margin-top: 18px; }
  .actions { margin-top: 28px; }
  .button { height: 58px; }
  .email-link { margin-top: 14px; }
  .status { bottom: 18px; }
}

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

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero__visual {
    translate: var(--px, 0px) var(--py, 0px);
    transition: translate .8s cubic-bezier(.22,.61,.36,1);
  }
  .blueprint {
    translate: var(--bpx, 0px) var(--bpy, 0px);
    transition: translate 1s cubic-bezier(.22,.61,.36,1);
  }
}
