:root {
  color-scheme: dark;
  --bg: #07110f;
  --bg-soft: #0c1714;
  --panel: #10201b;
  --panel-strong: #142b24;
  --text: #f4fbf7;
  --muted: #abc1b7;
  --line: rgba(202, 255, 229, 0.16);
  --accent: #4ade80;
  --accent-2: #38bdf8;
  --warning: #f8c15a;
  --danger: #ff7777;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --shell: min(1180px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(74, 222, 128, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 12px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.desktop-nav,
.header-actions,
.hero-actions,
.contact-buttons,
.share-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(74, 222, 128, 0.52);
  border-radius: var(--radius);
  background: #0d211a;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.desktop-nav {
  justify-content: center;
  gap: 6px;
}

.desktop-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  outline: none;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.button,
.icon-link,
.menu-button {
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: var(--radius);
  background: var(--accent);
  color: #07110f;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  font-size: 15px;
}

.button svg,
.icon-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button.small {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 14px;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--line);
}

.button:hover,
.icon-link:hover,
.menu-button:hover,
.button:focus-visible,
.icon-link:focus-visible,
.menu-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.62);
  outline: none;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(56, 189, 248, 0.12);
}

.icon-link,
.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.icon-link svg {
  fill: currentColor;
  stroke: none;
}

.menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(0, 0, 0, 0.58);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-panel {
  margin-left: auto;
  width: min(340px, 88vw);
  height: 100%;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #0a1713;
  box-shadow: var(--shadow);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-weight: 800;
}

.mobile-menu-head button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.mobile-menu a {
  display: block;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 38px;
  align-items: center;
  padding: 56px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.section-head h2,
.about-copy h2,
.contact-copy h2 {
  margin: 0;
  line-height: 1.05;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 9vw, 116px);
  font-weight: 900;
}

.hero-lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #d7e8e0;
  font-size: clamp(18px, 2.1vw, 24px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-board,
.request-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 31, 26, 0.82);
  box-shadow: var(--shadow);
}

.hero-board {
  overflow: hidden;
}

.board-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(74, 222, 128, 0.12);
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-grid article {
  min-height: 190px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.board-grid article:nth-child(2n) {
  border-right: 0;
}

.board-grid article:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.mini-icon,
.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: var(--radius);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
}

.board-grid h2,
.bot-grid h3,
.services-grid h3,
.project-card h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

.board-grid p,
.bot-grid p,
.services-grid p,
.project-card p,
.section-head p,
.about-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
}

.projects-section,
.bots-section,
.services-section,
.about-section,
.contact-section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-head p,
.about-copy p,
.contact-copy p {
  margin-top: 16px;
  font-size: 17px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(74, 222, 128, 0.12);
  color: var(--text);
  outline: none;
}

.projects-grid,
.bot-grid,
.services-grid {
  display: grid;
  gap: 16px;
}

.projects-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.bot-grid article,
.services-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus-within,
.bot-grid article:hover,
.services-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(255, 255, 255, 0.065);
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.12), rgba(56, 189, 248, 0.12)),
    #0d1d19;
}

.project-visual img {
  width: min(72%, 270px);
  height: auto;
  max-height: 175px;
  object-fit: contain;
}

.project-card-video {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  grid-column: 1 / -1;
}

.project-card-video .project-visual {
  min-height: 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: #030706;
}

.project-visual video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  max-height: 680px;
  object-fit: contain;
  background: #030706;
}

.project-card-video .project-content {
  align-self: center;
  padding: 32px;
}

.project-card-video .project-content h3 {
  min-height: 0;
  margin: 20px 0 16px;
  font-size: clamp(28px, 4vw, 44px);
}

.project-card-video .project-result {
  min-height: 0;
}

.project-concept {
  width: 100%;
  min-height: 170px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1b1a;
  color: #e2f4ee;
  font-size: .875rem;
  align-self: stretch;
}

.concept-header,
.concept-items {
  display: grid;
  gap: 8px;
}

.concept-header {
  grid-template-columns: 1fr auto;
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.concept-header span,
.concept-items span {
  color: #a8c7be;
}

.concept-items > div {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 6px;
  background: #17312b;
  overflow-wrap: anywhere;
}

[data-layout="landing"] .concept-items,
[data-layout="crm"] .concept-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-layout="landing"] .concept-items > :first-child {
  grid-column: 1 / -1;
  background: #25483a;
}

[data-layout="reports"] .concept-items > div {
  grid-template-columns: 1fr auto;
}

[data-layout="api"] .concept-items > div {
  border-inline-start: 3px solid #77bfac;
}

.project-placeholder {
  width: min(84%, 320px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(7, 17, 15, 0.62);
  padding: 18px;
}

.placeholder-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.placeholder-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.placeholder-line {
  height: 10px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.placeholder-line.short {
  width: 56%;
  background: rgba(56, 189, 248, 0.34);
}

.project-content {
  padding: 18px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.project-content h3 {
  min-height: 48px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.tech-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: #d7e8e0;
  font-size: 12px;
  font-weight: 700;
}

.project-result {
  min-height: 72px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--accent-2);
  font-weight: 800;
}

.project-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bot-grid article,
.services-grid article {
  padding: 20px;
}

.bot-grid ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.bot-grid li {
  color: #d7e8e0;
  font-size: 14px;
}

.bot-grid li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--accent);
  font-weight: 900;
}

.services-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: #d7e8e0;
}

.steps span {
  color: var(--accent);
  font-weight: 900;
}

.contact-buttons,
.share-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.request-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.request-form label {
  display: grid;
  gap: 8px;
  color: #d7e8e0;
  font-weight: 800;
}

.request-form [hidden] {
  display: none;
}

.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.request-form input {
  min-height: 46px;
  padding: 0 13px;
}

.request-form textarea {
  min-height: 144px;
  resize: vertical;
  padding: 13px;
}

.request-form input::placeholder,
.request-form textarea::placeholder {
  color: #81968d;
}

.request-form input:focus,
.request-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.68);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.form-submit {
  width: 100%;
}

.form-state {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-state.is-success {
  color: var(--accent);
}

.form-state.is-error {
  color: var(--danger);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: var(--shell);
  margin: 0 auto;
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .bot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .project-card-video {
    grid-template-columns: 1fr;
  }

  .project-card-video .project-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-card-video .project-content {
    padding: 22px;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav,
  .header-actions .small {
    display: none;
  }

  .header-actions {
    justify-self: end;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    padding-top: 44px;
  }

  .board-grid,
  .projects-grid,
  .bot-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .board-grid article,
  .board-grid article:nth-child(2n),
  .board-grid article:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .board-grid article:last-child {
    border-bottom: 0;
  }

  .projects-section,
  .bots-section,
  .services-section,
  .about-section,
  .contact-section {
    padding: 64px 0;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: min(100vw - 28px, 1180px);
  }

  .site-header {
    min-height: 66px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-mark,
  .icon-link,
  .menu-button {
    width: 36px;
    height: 36px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-lead,
  .section-head p,
  .about-copy p,
  .contact-copy p {
    font-size: 16px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-buttons,
  .share-actions {
    width: 100%;
  }

  .filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
