:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef3f1;
  --ink: #13202a;
  --muted: #60707a;
  --line: #d6dfda;
  --accent: #0e766d;
  --accent-dark: #075850;
  --warm: #a45f26;
  --code: #101b24;
  --shadow: 0 18px 46px rgba(19, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: var(--accent-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(214, 223, 218, 0.9);
  background: rgba(245, 247, 244, 0.94);
  backdrop-filter: blur(16px);
}

.nav,
.section,
.site-footer {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(145deg, #0f1d28, #123d3a);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(19, 32, 42, 0.18);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

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

.section {
  padding: 84px 0;
}

.section-band {
  width: 100%;
  padding-left: max(18px, calc((100% - 1160px) / 2));
  padding-right: max(18px, calc((100% - 1160px) / 2));
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 56px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(14, 118, 109, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 118, 109, 0.05) 1px, transparent 1px),
    linear-gradient(110deg, #f7faf8 0%, #edf4f1 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

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

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

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(2.25rem, 4.8vw, 3.8rem);
  line-height: 1.06;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 660px;
  color: #43545f;
  font-size: 1.08rem;
}

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

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

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: rgba(19, 32, 42, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.hero-visual {
  display: grid;
  gap: 16px;
}

.terminal-window,
.metrics-grid > div,
.result-panel,
.contact-form,
.tester-form,
.project-card {
  border: 1px solid rgba(19, 32, 42, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.terminal-window {
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 7px;
  padding: 14px 16px;
  background: var(--code);
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c9d3cf;
}

.terminal-window pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.metrics-grid > div {
  padding: 16px;
}

.metrics-grid span,
.project-card span,
.panel-kicker,
.signal-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--warm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metrics-grid strong {
  font-size: 1rem;
  line-height: 1.25;
}

.about-grid,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 54px;
  align-items: start;
}

.about-copy p,
.section-heading p,
.result-panel p,
.contact-section p,
.project-card p,
.form-note {
  color: var(--muted);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.tester-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #eef3f1;
}

.tester-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.test-badges,
.report-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-badges span,
.report-grid span {
  padding: 7px 10px;
  border: 1px solid rgba(14, 118, 109, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.tester-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 18px;
}

.tester-form,
.result-panel,
.contact-form {
  padding: 24px;
}

.tool-header,
.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: #1bbf89;
  box-shadow: 0 0 0 5px rgba(27, 191, 137, 0.12);
}

.report-status {
  padding: 5px 9px;
  border-radius: 6px;
  background: #e3f4ef;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
}

.report-list,
.result-panel ol,
.result-panel ul {
  margin-bottom: 0;
  padding-left: 22px;
  color: #43545f;
}

.report-grid {
  margin-top: 18px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 46px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 12px 14px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.92rem;
}

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

.project-card {
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
}

.project-visual {
  min-height: 178px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #13202a;
  background-size: 24px 24px, 24px 24px, auto;
}

.project-visual span {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbf9;
  font-size: 0.78rem;
  font-weight: 800;
}

.visual-playwright,
.visual-api,
.visual-python {
  background-color: #13202a;
}

.visual-agentic,
.visual-workflow,
.visual-performance {
  background-color: #123d3a;
}

.project-card div:last-child {
  padding: 20px;
}

.project-card a {
  font-weight: 800;
  text-decoration: none;
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 34px;
  padding-bottom: 34px;
}

.skills-strip span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: #43545f;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .hero,
  .about-grid,
  .tester-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .tester-intro {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 660px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

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

  .metrics-grid,
  .input-row {
    grid-template-columns: 1fr;
  }

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

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