:root {
  color-scheme: dark;
  --bg: #060708;
  --ink: #f4efe7;
  --muted: #b7b0a5;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(11, 14, 17, 0.68);
  --cyan: #36d6ff;
  --amber: #ffb63d;
  --red: #ff4d5e;
  --green: #6effa6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  padding: 96px clamp(20px, 5vw, 72px) 60px;
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(4, 5, 6, 0.32), rgba(4, 5, 6, 0.74) 34%, rgba(4, 5, 6, 0.42) 72%, rgba(4, 5, 6, 0.18)),
    linear-gradient(0deg, var(--bg), transparent 34%),
    radial-gradient(circle at 17% 66%, rgba(255, 182, 61, 0.14), transparent 24%),
    radial-gradient(circle at 76% 32%, rgba(54, 214, 255, 0.18), transparent 26%);
}

.nav {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 4, 5, 0.36);
  backdrop-filter: blur(16px);
}

.brand,
.nav__links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 182, 61, 0.7);
  color: var(--amber);
  font-weight: 800;
}

.brand__portrait {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid rgba(54, 214, 255, 0.42);
  opacity: 0.86;
}

.brand strong {
  font-size: 0.92rem;
  text-transform: uppercase;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.88rem;
}

.nav__links a:hover {
  color: var(--ink);
}

.hero__content {
  position: relative;
  z-index: 2;
  grid-column: 2;
  max-width: 820px;
  justify-self: start;
}

.kicker {
  margin: 0 0 16px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.8rem, 7.8vw, 8.7rem);
  line-height: 0.86;
  letter-spacing: 0;
}

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

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

.lede,
.section__intro p,
.lab__copy p,
.contact p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.hero__actions,
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 0.9rem;
}

.button--primary {
  background: var(--ink);
  color: #070808;
  border-color: var(--ink);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  backdrop-filter: blur(14px);
}

.signal-panel {
  position: absolute;
  z-index: 2;
  right: clamp(20px, 5vw, 72px);
  bottom: 56px;
  width: min(360px, 33vw);
  padding: 18px;
  border: 1px solid rgba(54, 214, 255, 0.28);
  background: rgba(2, 9, 13, 0.58);
  backdrop-filter: blur(20px);
}

.signal-panel__label {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.signal-panel p {
  margin: 0;
  color: #d9f8ff;
  line-height: 1.45;
}

.ticker {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: #0d1114;
}

.ticker span {
  flex: 1 0 max-content;
  min-width: 150px;
  padding: 18px 22px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

.section {
  padding: clamp(74px, 10vw, 150px) clamp(20px, 5vw, 72px);
}

.section__intro {
  max-width: 920px;
  margin-bottom: 38px;
}

.proof-grid,
.offer-list,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-grid article,
.offer-list article,
.portfolio-card {
  min-height: 260px;
  padding: 28px;
  background: #0b0f11;
}

.proof-grid article:nth-child(2),
.offer-list article:nth-child(2),
.portfolio-card:nth-child(2) {
  background: #11100d;
}

.metric {
  display: block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-size: clamp(3rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 0.85;
}

.proof-grid p,
.offer-list p,
.portfolio-card p {
  color: var(--muted);
  line-height: 1.55;
}

.portfolio {
  background:
    linear-gradient(180deg, rgba(54, 214, 255, 0.07), transparent 34%),
    #07090a;
}

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

.portfolio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  color: var(--ink);
  transition: background 160ms ease, transform 160ms ease;
}

.portfolio-card:hover {
  background: #11171a;
  transform: translateY(-2px);
}

.portfolio-card--feature {
  grid-column: span 3;
  background:
    linear-gradient(135deg, rgba(54, 214, 255, 0.16), rgba(255, 182, 61, 0.08)),
    #081014;
}

.portfolio-card--feature:nth-child(2):not(:hover) {
  background:
    linear-gradient(135deg, rgba(54, 214, 255, 0.16), rgba(255, 182, 61, 0.08)),
    #081014;
}

.portfolio-card__type {
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-card__link {
  margin-top: auto;
  padding-top: 28px;
  color: var(--amber);
  font-weight: 800;
}

.portfolio-card__link::after {
  content: " ->";
}

.lab {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(54, 214, 255, 0.1), transparent 34%),
    #090b0d;
}

.lab__screen {
  min-height: 460px;
  border: 1px solid rgba(110, 255, 166, 0.24);
  background: rgba(1, 8, 7, 0.76);
  box-shadow: 0 0 70px rgba(54, 214, 255, 0.12);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--red);
}

.terminal-bar span:nth-child(2) {
  background: var(--amber);
}

.terminal-bar span:nth-child(3) {
  background: var(--green);
}

pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
  color: #b9ffd8;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.8rem, 1.25vw, 1rem);
  line-height: 1.7;
  white-space: pre-wrap;
}

.offer-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-list article {
  min-height: 230px;
}

.contact {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(255, 182, 61, 0.13), transparent 30%),
    linear-gradient(135deg, #0e0d0a, #08090a 52%, #051015);
}

@media (max-width: 980px) {
  .signal-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 520px;
    margin-top: 32px;
  }

  .hero {
    min-height: 88vh;
    grid-template-columns: 1fr;
  }

  .hero__content {
    grid-column: 1;
    max-width: 760px;
    padding-top: 34vh;
  }

  .hero__image {
    object-position: 18% center;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(4, 5, 6, 0.44), rgba(4, 5, 6, 0.72) 52%, rgba(4, 5, 6, 0.44)),
      linear-gradient(0deg, var(--bg), transparent 48%),
      radial-gradient(circle at 18% 58%, rgba(255, 182, 61, 0.16), transparent 28%),
      radial-gradient(circle at 78% 26%, rgba(54, 214, 255, 0.16), transparent 28%);
  }

  .proof-grid,
  .offer-list,
  .portfolio-grid,
  .lab {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card--feature {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 92px;
    align-items: start;
  }

  .hero__content {
    padding-top: 31vh;
  }

  .hero__image {
    object-position: 12% center;
  }

  .nav {
    height: auto;
    padding-block: 14px;
    align-items: flex-start;
  }

  .nav__links {
    gap: 10px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(2.9rem, 15.4vw, 4.35rem);
  }

  .brand strong {
    display: none;
  }

  .proof-grid article,
  .offer-list article {
    min-height: 210px;
  }
}
