:root {
  color-scheme: dark;
  --ink: #f6f3e8;
  --muted: #c2c7b8;
  --soft: #89917f;
  --bg: #10120f;
  --bg-2: #171a15;
  --line: rgba(246, 243, 232, 0.14);
  --line-strong: rgba(246, 243, 232, 0.24);
  --lime: #b7ff47;
  --teal: #2de2c8;
  --copper: #e39755;
  --ivory: #f6f3e8;
  --danger: #ff684d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(246, 243, 232, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(246, 243, 232, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #10120f 0%, #151a14 36%, #0f1716 68%, #17130f 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 82%, transparent);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.38;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #f6f3e8;
  color: #10120f;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-header nav a:hover {
  color: var(--lime);
}

.header-cta,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.header-cta {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  color: var(--ivory);
  background: rgba(246, 243, 232, 0.06);
}

.primary-action {
  padding: 0 18px;
  background: var(--lime);
  color: #10120f;
  box-shadow: 0 18px 50px rgba(183, 255, 71, 0.2);
}

.secondary-action {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(246, 243, 232, 0.06);
}

.header-cta svg,
.primary-action svg,
.secondary-action svg,
article svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.25;
}

main,
footer {
  position: relative;
  z-index: 2;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(22px, 4vw, 60px) 0 clamp(38px, 6vw, 86px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--teal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow span {
  width: 36px;
  height: 2px;
  background: currentColor;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 24px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.91;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 660px;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  padding: 18px 18px 18px 0;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
  padding-right: 0;
}

.signal-strip dt {
  margin-bottom: 5px;
  color: var(--ivory);
  font-family: "IBM Plex Mono", monospace;
  font-size: 17px;
  font-weight: 700;
}

.signal-strip dd {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 590px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 92%;
  aspect-ratio: 1;
  border: 1px solid rgba(45, 226, 200, 0.18);
  transform: rotate(7deg);
  background:
    repeating-linear-gradient(90deg, rgba(246, 243, 232, 0.035) 0 1px, transparent 1px 22px),
    linear-gradient(135deg, rgba(45, 226, 200, 0.05), rgba(227, 151, 85, 0.08));
}

.hero-visual::after {
  content: "ANDERLAN_AI / SUPER_AGENTES";
  position: absolute;
  right: -10px;
  top: 56px;
  color: rgba(246, 243, 232, 0.35);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0;
  writing-mode: vertical-rl;
}

.portrait-shell {
  position: relative;
  width: min(410px, 78vw);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
}

.portrait-shell img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06);
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(16, 18, 15, 0.64), transparent 46%),
    linear-gradient(135deg, rgba(183, 255, 71, 0.18), transparent 36%, rgba(45, 226, 200, 0.18));
  mix-blend-mode: multiply;
}

.scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(183, 255, 71, 0.22), transparent);
  height: 28%;
  animation: scan 5.6s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(-120%); opacity: 0; }
  20%, 65% { opacity: 1; }
  80% { transform: translateY(360%); opacity: 0; }
}

.ops-panel {
  position: absolute;
  left: 0;
  bottom: 46px;
  width: min(330px, 82vw);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(16, 18, 15, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ops-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.ops-row:last-child {
  border-bottom: 0;
}

.ops-row span {
  color: var(--soft);
}

.ops-row strong {
  color: var(--lime);
}

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 232, 0.04);
}

.trust-band p {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--ivory);
  font-size: clamp(21px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 124px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.proof-copy h2,
.cta-section h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-head p:last-child,
.proof-copy p,
.cta-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.42;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-grid article,
.method-list article,
.proof-board div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 243, 232, 0.07), rgba(246, 243, 232, 0.025)),
    rgba(16, 18, 15, 0.5);
}

.service-grid article {
  min-height: 242px;
  padding: 24px;
}

.service-grid svg {
  margin-bottom: 34px;
  color: var(--lime);
}

.service-grid h3,
.method-list h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.04;
}

.service-grid p,
.method-list p,
.proof-board span {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.42;
}

.method {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(90deg, rgba(227, 151, 85, 0.08), transparent 32%),
    rgba(246, 243, 232, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.method-list article {
  min-height: 300px;
  padding: 22px;
}

.method-list span {
  display: block;
  margin-bottom: 80px;
  color: var(--copper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.proof {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 0.6fr);
  gap: clamp(26px, 6vw, 86px);
  align-items: center;
}

.proof-copy p {
  max-width: 620px;
  margin-top: 22px;
}

.proof-board {
  display: grid;
  gap: 10px;
}

.proof-board div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  font-family: "IBM Plex Mono", monospace;
}

.proof-board strong {
  color: var(--ivory);
  font-size: 14px;
}

.proof-board span {
  text-align: right;
  font-size: 13px;
}

.cta-section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto clamp(26px, 5vw, 56px);
  padding: clamp(46px, 7vw, 78px);
  border: 1px solid rgba(183, 255, 71, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(183, 255, 71, 0.16), transparent 42%),
    linear-gradient(90deg, rgba(45, 226, 200, 0.08), rgba(227, 151, 85, 0.1)),
    #13160f;
}

.cta-section h2 {
  max-width: 820px;
  margin-bottom: 20px;
}

.cta-section p {
  max-width: 640px;
  margin-bottom: 28px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

footer a {
  color: var(--lime);
}

@media (max-width: 960px) {
  .site-header nav {
    display: none;
  }

  .hero,
  .section-head,
  .proof {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-visual {
    min-height: 520px;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    width: min(100% - 24px, var(--max));
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    padding: 0 12px;
  }

  .hero,
  .section,
  .trust-band p,
  .cta-section,
  footer {
    width: min(100% - 24px, var(--max));
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
  }

  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .ops-panel {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
  }

  .hero-visual::after {
    display: none;
  }

  .service-grid,
  .method-list {
    grid-template-columns: 1fr;
  }

  .method-list article {
    min-height: 238px;
  }

  .method-list span {
    margin-bottom: 46px;
  }

  .proof-board div,
  footer {
    display: grid;
  }

  .proof-board span {
    text-align: left;
  }

  .cta-section {
    padding: 34px 20px;
  }
}

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

  .scanline {
    animation: none;
    display: none;
  }
}
