:root {
  --ink: #101114;
  --muted: #666b75;
  --paper: #f7f7f2;
  --panel: #ffffff;
  --line: rgba(16, 17, 20, 0.14);
  --accent: #d7ff55;
  --accent-2: #00a6a6;
  --accent-3: #ff5e5b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(247, 247, 242, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.header-cta {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.brand {
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.header-cta:hover {
  color: var(--ink);
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  background: var(--accent);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 118px clamp(18px, 4vw, 54px) 0;
  color: #f7f7f2;
  background:
    radial-gradient(circle at 76% 24%, rgba(215, 255, 85, 0.2), transparent 25%),
    linear-gradient(135deg, #101114 0%, #1d2321 55%, #111 100%);
}

#codeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.36;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(30px, 6vw, 82px);
  min-height: calc(100vh - 198px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

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

h1 {
  max-width: 980px;
  margin-bottom: 24px;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(36px, 6vw, 78px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 900;
}

h3 {
  font-size: 26px;
  line-height: 1.05;
}

.hero-lede,
.intro > p,
.split p,
.apply-copy p,
.footer p {
  color: rgba(16, 17, 20, 0.72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-lede {
  max-width: 740px;
  color: rgba(247, 247, 242, 0.82);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 4px;
  font-weight: 900;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 6px 6px 0 var(--accent-3);
}

.button.ghost {
  color: #f7f7f2;
  background: rgba(255, 255, 255, 0.08);
}

.terminal-card {
  border: 1px solid rgba(247, 247, 242, 0.22);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 18px 18px 0 rgba(215, 255, 85, 0.22);
  backdrop-filter: blur(10px);
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.14);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-3);
}

.terminal-top span:nth-child(2) {
  background: #ffd166;
}

.terminal-top span:nth-child(3) {
  background: var(--accent);
}

.terminal-top strong {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: rgba(247, 247, 242, 0.72);
}

pre {
  margin: 0;
  padding: 22px;
  white-space: pre-wrap;
}

code {
  font-family: "JetBrains Mono", monospace;
}

.terminal-card code {
  color: var(--accent);
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.75;
}

.ticker {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0;
  margin: 0 calc(clamp(18px, 4vw, 54px) * -1);
  overflow: hidden;
  border-top: 1px solid rgba(247, 247, 242, 0.2);
  background: var(--accent);
  color: var(--ink);
}

.ticker span {
  flex: 0 0 auto;
  padding: 18px 34px;
  border-right: 1px solid var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  text-transform: uppercase;
  animation: crawl 20s linear infinite;
}

@keyframes crawl {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.section,
.metrics,
.apply-section,
.footer {
  padding: clamp(70px, 10vw, 132px) clamp(18px, 4vw, 54px);
}

.intro,
.split,
.apply-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metrics div {
  min-height: 150px;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}

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

.metrics strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(42px, 6vw, 86px);
  line-height: 0.9;
}

.metrics span {
  color: var(--muted);
  font-weight: 700;
}

.code-panel {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--ink);
  box-shadow: 12px 12px 0 var(--accent-2);
}

.code-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  min-height: 58px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(247, 247, 242, 0.12);
  color: var(--accent);
}

.code-row span {
  color: rgba(247, 247, 242, 0.35);
  font-family: "JetBrains Mono", monospace;
}

.code-row code {
  overflow-wrap: anywhere;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 16px 18px;
  border-left: 6px solid var(--accent-2);
  background: #fff;
  font-weight: 700;
}

.section-heading {
  max-width: 950px;
  margin-bottom: 42px;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.role-card {
  min-height: 310px;
  padding: 28px;
  background: var(--paper);
}

.role-card span {
  display: block;
  margin-bottom: 48px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  color: var(--accent-3);
}

.role-card p,
.steps p,
.promise-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.process {
  color: #f7f7f2;
  background: var(--ink);
}

.process .eyebrow,
.process h2 {
  color: var(--accent);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(247, 247, 242, 0.22);
}

.steps div {
  min-height: 220px;
  padding: 28px;
  background: var(--ink);
}

.steps strong {
  display: block;
  margin-bottom: 18px;
  font-size: 26px;
}

.steps p {
  color: rgba(247, 247, 242, 0.72);
}

.promise {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 76px);
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.promise-grid p {
  margin: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.apply-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.apply-copy .response-time {
  max-width: 560px;
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 6px solid var(--accent-2);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

.application-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--accent);
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font: 500 16px Inter, sans-serif;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 166, 166, 0.28);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-transform: none;
  font-weight: 700;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-button {
  width: 100%;
  border-color: var(--ink);
  font-size: 16px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--accent-2);
  font-weight: 800;
}

.form-status.error {
  color: var(--accent-3);
}

.footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  color: #f7f7f2;
  background: var(--ink);
}

.footer-main p {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(247, 247, 242, 0.66);
}

.footer a {
  color: var(--accent);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 20px;
  font-weight: 900;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-column h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.footer-column a,
.footer-column span,
.footer-column p {
  margin: 0;
  color: rgba(247, 247, 242, 0.7);
  font-size: 14px;
  line-height: 1.55;
}

.footer-column a {
  font-weight: 700;
}

.footer-column a:hover {
  color: var(--accent);
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 26px;
  padding: 10px 16px;
  border: 1px solid #25d366;
  color: #07130c !important;
  background: #25d366;
  font-size: 14px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  background: #55e184;
}

.whatsapp-mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 900 9px/1 Inter, sans-serif;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(247, 247, 242, 0.46);
  font-size: 12px;
}

@media (max-width: 1000px) {
  .hero-grid,
  .intro,
  .split,
  .promise,
  .apply-section,
  .footer {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    grid-column: 1;
  }

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

  .footer-main,
  .footer-bottom {
    grid-column: 1 / -1;
  }

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

  .terminal-card {
    margin-bottom: 44px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: sticky;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    gap: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(247, 247, 242, 0.98);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 200ms ease, opacity 160ms ease, transform 160ms ease, visibility 160ms;
  }

  .nav-links a {
    display: flex;
    min-height: 52px;
    align-items: center;
    padding: 0 18px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
  }

  .site-header.menu-open .nav-links {
    max-height: 240px;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px 9px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 52px 18px 0;
  }

  .hero-grid {
    min-height: auto;
    gap: 38px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: 44px;
    line-height: 0.94;
  }

  h2 {
    font-size: 36px;
    line-height: 1;
  }

  h3 {
    font-size: 23px;
  }

  .hero-lede,
  .intro > p,
  .split p,
  .apply-copy p,
  .footer p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .terminal-card {
    margin: 0 4px 36px 0;
    box-shadow: 8px 8px 0 rgba(215, 255, 85, 0.22);
  }

  .terminal-top {
    padding: 13px;
  }

  pre {
    padding: 16px;
  }

  .terminal-card code {
    font-size: 12px;
    line-height: 1.65;
  }

  .ticker span {
    padding: 14px 22px;
    font-size: 13px;
  }

  .section,
  .apply-section,
  .footer {
    padding: 56px 18px;
  }

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

  .metrics,
  .role-grid,
  .steps,
  .promise-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .metrics {
    padding: 0;
  }

  .metrics div,
  .role-card,
  .steps div {
    min-height: auto;
  }

  .metrics div {
    padding: 28px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .metrics strong {
    font-size: 48px;
  }

  .role-card,
  .steps div {
    padding: 22px 20px;
  }

  .role-card span {
    margin-bottom: 30px;
  }

  .code-panel {
    margin-right: 6px;
    box-shadow: 6px 6px 0 var(--accent-2);
  }

  .code-row {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 54px;
    padding: 8px 12px;
    font-size: 12px;
  }

  .check-list li,
  .promise-grid p {
    padding: 16px;
  }

  .application-form {
    gap: 16px;
    margin-right: 6px;
    padding: 20px 16px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  input,
  select,
  textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-main,
  .footer-bottom {
    grid-column: 1;
  }

  .whatsapp-button {
    justify-content: center;
    width: 100%;
    min-height: 52px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .hero,
  .section,
  .apply-section,
  .footer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .terminal-top strong {
    font-size: 10px;
  }

  .button {
    min-height: 52px;
    padding: 0 16px;
  }
}

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

  .ticker span,
  .menu-toggle span,
  .nav-links {
    animation: none;
    transition: none;
  }
}
