:root {
  --black: #161616;
  --ink: #252525;
  --muted: #5f5a50;
  --line: #c7b978;
  --paper: #e8d989;
  --white: #ffffff;
  --yellow: #fff05f;
  --yellow-strong: #f5d90a;
  --red: #ef2b32;
  --red-dark: #bb151c;
  --gray: #d8cc93;
  --shadow: 0 20px 60px rgba(22, 22, 22, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(239, 43, 50, 0.38);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(232, 217, 137, 0.92), rgba(232, 217, 137, 0.74) 46%, rgba(196, 133, 54, 0.58)),
    url("../img/header-infra-bg.svg") center / cover;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: min(230px, 48vw);
  height: auto;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--black);
  color: var(--yellow);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--black);
  border-radius: 6px;
  background: var(--yellow);
  padding: 9px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--black);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(115deg, rgba(196, 181, 78, 0.64), rgba(232, 217, 137, 0.1) 44%),
    radial-gradient(circle at 90% 15%, rgba(153, 39, 34, 0.16), transparent 28%);
}

.hero h1,
.page-hero h1,
.contact-page h1 {
  max-width: 820px;
  margin: 0;
  color: var(--black);
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2.35rem, 4.2vw, 3.55rem);
  line-height: 1.05;
}

.hero h1 span {
  display: block;
}

.hero h1 span:first-child {
  white-space: nowrap;
}

.hero-text,
.page-hero p,
.contact-page p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.22rem);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid var(--black);
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 0 var(--black);
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.primary.dark {
  background: var(--black);
  color: var(--yellow);
}

.button.secondary {
  background: var(--yellow);
  color: var(--black);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(22, 22, 22, 0.72), rgba(22, 22, 22, 0.42)),
    url("../img/panel-infra-bg.svg") center / cover;
  border: 3px solid var(--black);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.panel-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.status-grid a {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 16px;
  background: rgba(255, 253, 244, 0.9);
  border-left: 6px solid var(--red);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  transition: background 160ms ease, transform 160ms ease;
}

.status-grid a:hover {
  background: rgba(255, 249, 183, 0.94);
  transform: translateX(4px);
}

.status-grid strong,
.status-grid small {
  display: block;
}

.status-grid strong {
  color: var(--black);
}

.status-grid small {
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-pill,
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: 2px solid var(--black);
  color: var(--black);
}

.icon-pill {
  width: 42px;
  height: 42px;
  border-radius: 6px;
}

.icon-pill svg,
.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.section,
.page-hero,
.client-layout,
.download-list,
.contact-page {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

.section {
  background:
    linear-gradient(180deg, rgba(222, 207, 127, 0.82), rgba(198, 184, 112, 0.72));
}

.section-heading {
  display: grid;
  grid-template-columns: 0.65fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2,
.split-section h2,
.cta-band h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(1.8rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 24px;
  background:
    linear-gradient(150deg, rgba(22, 22, 22, 0.9), rgba(22, 22, 22, 0.66)),
    url("../img/panel-infra-bg.svg") center / cover;
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(22, 22, 22, 0.12);
}

.service-card:nth-child(2) {
  background-position: 42% center;
}

.service-card:nth-child(3) {
  background-position: 72% center;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(239, 43, 50, 0.46), transparent 22%);
  opacity: 0.72;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card h3,
.feature-list h2,
.download-item h2,
.login-preview h2 {
  margin: 16px 0 10px;
  color: var(--black);
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card h3 {
  color: var(--white);
}

.service-card p,
.feature-list p,
.download-item p,
.login-preview p,
.split-section p {
  margin: 0;
  color: var(--muted);
}

.service-card p {
  color: #eee8d2;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.card-icon:hover {
  background: var(--white);
  color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--black);
}

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 34px;
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
  background: var(--black);
  color: var(--white);
}

.split-section h2,
.split-section p {
  color: var(--white);
}

.ai-showcase {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 380px;
  padding: clamp(18px, 4vw, 30px);
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 240, 95, 0.16), rgba(239, 43, 50, 0.16)),
    #202020;
  background-size: 34px 34px, 34px 34px, auto, auto;
  border: 2px solid rgba(255, 240, 95, 0.34);
  border-radius: 8px;
}

.ai-showcase::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 90deg, transparent, rgba(255, 240, 95, 0.24), transparent, rgba(239, 43, 50, 0.22), transparent);
  animation: aiSweep 7s linear infinite;
}

.ai-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 240, 95, 0.11), transparent);
  animation: aiScan 3.6s ease-in-out infinite;
}

.ai-showcase p,
.ai-showcase .text-link {
  position: relative;
  z-index: 2;
}

.ai-terminal {
  position: relative;
  z-index: 2;
  min-height: 250px;
  overflow: hidden;
  background: #101010;
  border: 2px solid rgba(255, 240, 95, 0.48);
  border-radius: 8px;
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 240, 95, 0.22);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-bar span:nth-child(1) {
  background: var(--red);
}

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

.terminal-bar span:nth-child(3) {
  background: #62d26f;
}

.terminal-bar strong {
  margin-left: 8px;
  color: #d7d1bb;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.terminal-screen {
  position: relative;
  min-height: 208px;
  padding: clamp(16px, 3vw, 24px);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.terminal-pane {
  position: absolute;
  inset: clamp(16px, 3vw, 24px);
  display: grid;
  align-content: start;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: terminalCycle 15s infinite;
  animation-delay: var(--pane-delay);
}

.terminal-pane.codex {
  --pane-delay: -1s;
}

.terminal-pane.claude {
  --pane-delay: 4s;
}

.terminal-pane.gemini {
  --pane-delay: 9s;
}

.terminal-title {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: var(--black);
  background: var(--yellow);
  border-radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-pane code {
  display: block;
  max-width: 100%;
  opacity: 0;
  transform: translateX(-8px);
  color: #fffdf4;
  font: inherit;
  font-size: clamp(0.72rem, 1.6vw, 0.92rem);
  line-height: 1.45;
  white-space: normal;
  animation: terminalLine 15s ease infinite;
}

.terminal-pane code span {
  color: var(--yellow);
  font-weight: 900;
}

.terminal-pane code:nth-of-type(1) {
  animation-delay: var(--pane-delay);
}

.terminal-pane code:nth-of-type(2) {
  animation-delay: calc(var(--pane-delay) + 0.55s);
}

.terminal-pane code:nth-of-type(3) {
  animation-delay: calc(var(--pane-delay) + 1.1s);
}

.terminal-pane code:nth-of-type(4) {
  animation-delay: calc(var(--pane-delay) + 1.65s);
}

.terminal-pane::after {
  content: "";
  width: 10px;
  height: 18px;
  margin-top: 2px;
  background: var(--yellow);
  animation: cursorBlink 0.9s steps(2, start) infinite;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--yellow);
  font-weight: 900;
  border-bottom: 2px solid var(--yellow);
}

@keyframes terminalCycle {
  0%,
  32% {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  36%,
  100% {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes terminalLine {
  0%,
  3% {
    opacity: 0;
    transform: translateX(-8px);
  }

  7%,
  32% {
    opacity: 1;
    transform: translateX(0);
  }

  36%,
  100% {
    opacity: 0;
    transform: translateX(8px);
  }
}

@keyframes aiSweep {
  to {
    transform: rotate(1turn);
  }
}

@keyframes aiScan {
  0% {
    transform: translateY(-100%);
  }

  50%,
  100% {
    transform: translateY(100%);
  }
}

@keyframes cursorBlink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}
.page-hero {
  background: linear-gradient(120deg, var(--yellow), var(--paper) 55%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.compact {
  padding-top: 34px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-list article {
  padding: 24px;
  background: var(--white);
  border-left: 7px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
  scroll-margin-top: 106px;
}

.cta-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin: 0 clamp(18px, 5vw, 72px) clamp(42px, 7vw, 84px);
  padding: clamp(24px, 4vw, 42px);
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 8px;
}

.cta-band p {
  margin: 10px 0 0;
  color: var(--ink);
}

.client-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.login-preview,
.support-item,
.download-item,
.contact-form {
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  box-shadow: 0 1px 0 var(--line);
}

.login-preview {
  padding: 24px;
}

.disabled-form,
.contact-form {
  display: grid;
  gap: 14px;
}

.disabled-form {
  margin-top: 22px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--black);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--black);
}

.support-actions {
  display: grid;
  gap: 14px;
}

.support-item {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.support-item:hover {
  border-color: var(--red);
}

.support-item strong {
  color: var(--black);
  font-size: 1.15rem;
}

.support-item span {
  color: var(--muted);
}

.download-list {
  display: grid;
  gap: 16px;
}

.download-item {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
}

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-cards a,
.contact-cards span {
  display: grid;
  padding: 18px;
  background: var(--white);
  border-left: 7px solid var(--red);
  border-radius: 8px;
}

.contact-cards strong {
  color: var(--black);
}

.contact-cards span span,
.contact-cards small {
  color: var(--muted);
  font: inherit;
}

.contact-form {
  padding: 24px;
}

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

.site-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--black);
}

.site-footer strong,
.site-footer span,
.footer-links a {
  display: block;
}

.site-footer span {
  color: #d7d1bb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--yellow);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 74px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    background:
      linear-gradient(rgba(232, 217, 137, 0.94), rgba(232, 217, 137, 0.88)),
      url("../img/header-infra-bg.svg") center / cover;
    border-bottom: 1px solid var(--line);
  }

  .site-header.open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero,
  .section-heading,
  .split-section,
  .client-layout,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

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

  .service-card {
    min-height: auto;
  }

  .ai-showcase {
    min-height: 300px;
  }

  .cta-band,
  .download-item,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand img {
    width: 178px;
  }

  .hero h1,
  .page-hero h1,
  .contact-page h1 {
    font-size: 2.05rem;
    line-height: 1.05;
  }

  .hero h1 span:first-child {
    white-space: normal;
  }

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

  .button {
    padding-inline: 14px;
    text-align: center;
  }

  .terminal-screen {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .terminal-pane {
    visibility: hidden;
    opacity: 0;
    transform: none;
  }

  .terminal-pane.codex {
    visibility: visible;
    opacity: 1;
  }

  .terminal-pane code {
    opacity: 1;
    transform: none;
  }
}
