:root {
  --ink: #14161a;
  --muted: #636b76;
  --line: #d8dde5;
  --paper: #f6f7f9;
  --white: #ffffff;
  --night: #101419;
  --teal: #0f766e;
  --gold: #b9892e;
  --blue: #245a9a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(20, 22, 26, 0.08);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.hero {
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(16, 20, 25, 0.96), rgba(16, 20, 25, 0.56)),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=1800&q=82") center / cover;
  color: var(--white);
}

.hero-content {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 80px 24px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: 0;
}

.tagline {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  white-space: nowrap;
}

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

.button.primary:hover {
  background: #0b5f58;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.button.secondary.dark {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button.secondary.dark:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

.section {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

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

.section-heading p:not(.eyebrow),
.about-copy p {
  max-width: 720px;
  color: var(--muted);
}

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

.work-list div {
  min-height: 110px;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background: var(--white);
  font-weight: 800;
}

.focus-section,
.systems-section {
  background: var(--paper);
}

.packages-section {
  background: var(--white);
}

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

.card,
.systems-list article {
  min-height: 230px;
  padding: 28px;
  background: var(--white);
}

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

.package-card {
  min-height: 270px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.premium-package {
  grid-column: span 3;
  min-height: 240px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(185, 137, 46, 0.12)),
    var(--paper);
}

.package-label {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.package-card p {
  color: var(--muted);
}

.text-link {
  color: var(--teal);
  font-weight: 800;
}

.text-link:hover {
  color: #0b5f58;
}

.openclaw-section {
  background: var(--night);
  color: var(--white);
}

.openclaw-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.consulting-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.consulting-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.consulting-panel h3 {
  color: var(--white);
}

.consulting-panel p,
.feature-list {
  color: rgba(255, 255, 255, 0.72);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 10px;
}

.wide-panel {
  grid-column: span 2;
}

.wide-panel .button {
  margin-top: 10px;
}

.systems-visual {
  min-height: 230px;
  margin: 0;
  grid-column: span 2;
  background: var(--night);
  overflow: hidden;
}

.systems-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.card p,
.systems-list p,
.about-copy {
  color: var(--muted);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-profile {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.about-profile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--night);
  color: var(--white);
}

.contact-section h2 {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  padding: 28px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
  }

  .nav {
    min-height: 0;
    padding: 18px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 72px 24px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 32px;
  }

  .tagline {
    font-size: 23px;
  }

  .work-list,
  .cards,
  .package-grid,
  .consulting-layout,
  .systems-list,
  .about-section,
  .about-profile {
    grid-template-columns: 1fr;
  }

  .premium-package,
  .wide-panel {
    grid-column: auto;
  }

  .systems-visual {
    grid-column: auto;
  }

  .contact-section {
    display: grid;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }
}
