:root {
  color-scheme: light;
  --background: #f6f5f1;
  --surface: #ffffff;
  --ink: #181817;
  --muted: #686761;
  --line: #d9d7cf;
  --accent: #0d6b5b;
  --accent-dark: #07463c;
  --soft-accent: #d9eee8;
  --shadow: 0 24px 80px rgba(33, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 28px));
  margin: 14px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(217, 215, 207, 0.72);
  border-radius: 999px;
  background: rgba(246, 245, 241, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.visual-caption,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--background);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.nav-links {
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100dvh - 80px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.25rem, 5.8vw, 6.1rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 530px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.94rem;
  font-weight: 750;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.primary {
  background: var(--accent);
  color: #ffffff;
}

.primary:hover,
.primary:focus-visible {
  background: var(--accent-dark);
  outline: none;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: #aaa79d;
  background: var(--surface);
  outline: none;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 520px;
  padding: 38px 28px 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(217, 238, 232, 0.68)),
    var(--soft-accent);
  box-shadow: var(--shadow);
}

.code-window {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(24, 24, 23, 0.14);
  border-radius: 18px;
  background: #151715;
  box-shadow: 0 28px 70px rgba(24, 24, 23, 0.18);
}

.code-window::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(13, 107, 91, 0.2), transparent 36%);
  pointer-events: none;
}

.code-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.52);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

.code-titlebar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.code-titlebar strong {
  margin-left: 8px;
  font-weight: 650;
}

.code-window pre {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 24px;
  color: #e7eee9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  line-height: 1.72;
  white-space: pre-wrap;
}

.token-muted {
  color: #9be0ce;
}

.token-string {
  color: #f2c178;
}

.visual-caption {
  position: relative;
  z-index: 2;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
}

.section,
.statement {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service {
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.service:last-child {
  border-right: 0;
}

.service-index {
  display: block;
  margin-bottom: 58px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.service p,
.statement p {
  color: var(--muted);
  line-height: 1.65;
}

.statement {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: end;
  padding: 76px;
  border-radius: 26px;
  background: var(--ink);
  color: var(--background);
}

.statement .eyebrow {
  color: #9be0ce;
}

.statement p {
  margin-bottom: 0;
  color: #cfccc2;
}

.contact-section {
  padding-bottom: 56px;
}

.contact-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.contact-link {
  flex: 0 0 auto;
  border-bottom: 2px solid var(--accent);
  color: var(--accent-dark);
  font-size: clamp(1.1rem, 2.4vw, 2rem);
  font-weight: 800;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 900px) {
  .hero,
  .section-heading,
  .statement {
    grid-template-columns: 1fr;
  }

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

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

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

  .service {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service:last-child {
    border-bottom: 0;
  }

  .service-index {
    margin-bottom: 34px;
  }

  .statement {
    padding: 42px 28px;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 28px, 1160px);
    margin-top: 14px;
    padding: 14px;
    border-radius: 24px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 12px;
  }

  .hero,
  .section,
  .statement,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.9rem, 14vw, 4rem);
    line-height: 0.98;
  }

  .hero-summary {
    margin-bottom: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
    border-radius: 20px;
  }

  .visual-caption {
    align-items: flex-start;
    flex-direction: column;
  }

  .section {
    padding: 66px 0;
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .service {
    padding: 24px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
