:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-2: #0d1118;
  --ink: #f4f7fb;
  --muted: #a2adbc;
  --soft: #d7dee8;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .2);
  --panel: rgba(17, 22, 31, .78);
  --panel-solid: #111720;
  --panel-2: rgba(255, 255, 255, .06);
  --accent: #2dd4bf;
  --accent-2: #f97316;
  --accent-3: #f43f5e;
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #fb7185;
  --shadow: 0 22px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(135deg, rgba(45, 212, 191, .10), transparent 34%),
    linear-gradient(225deg, rgba(249, 115, 22, .08), transparent 30%),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 15, .12), rgba(8, 10, 15, .92));
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(8, 10, 15, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(45, 212, 191, .45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 212, 191, .28), rgba(249, 115, 22, .2));
  color: #ffffff;
  box-shadow: 0 0 26px rgba(45, 212, 191, .16);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel-2);
}

.section-band,
.section {
  padding: clamp(58px, 8vw, 116px) clamp(16px, 5vw, 64px);
}

.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .62fr);
  align-items: center;
  gap: clamp(28px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 10px;
  border: 1px solid rgba(45, 212, 191, .25);
  border-radius: 8px;
  background: rgba(45, 212, 191, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 960px;
  margin-bottom: 12px;
  font-size: clamp(48px, 11vw, 148px);
  line-height: .86;
  letter-spacing: 0;
}

h2 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(32px, 5.3vw, 72px);
  line-height: .96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.16;
}

.role {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: clamp(22px, 3vw, 43px);
  line-height: 1.08;
  font-weight: 850;
}

.intro {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.button.primary {
  border-color: rgba(45, 212, 191, .55);
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #04110f;
}

.button.ghost {
  background: rgba(255, 255, 255, .045);
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 212, 191, .55);
  box-shadow: 0 16px 34px rgba(20, 184, 166, .18);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.work-visual {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--panel-solid);
  filter: saturate(.95) contrast(1.08);
}

.signal-card,
.project-card,
.blog-card,
.link-card,
.metric-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-card::before,
.project-card::before,
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, .55), transparent);
}

.signal-card {
  padding: 22px;
}

.signal-card span,
.project-type,
.blog-date,
.metric-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.1;
}

.section {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

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

.project-card,
.blog-card,
.link-card,
.metric-card {
  padding: 22px;
}

.project-card {
  min-height: 284px;
  display: flex;
  flex-direction: column;
}

.project-card p,
.blog-card p,
.metric-card p {
  color: var(--muted);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.tag {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  color: #d7f8f4;
  font-size: 12px;
  font-weight: 850;
}

.analyzer-section {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, .08), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0));
}

.analyzer-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 920px;
  margin-bottom: 18px;
}

.analyzer-form input {
  min-height: 54px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .055);
  color: white;
  font: inherit;
  outline: none;
}

.analyzer-form input::placeholder {
  color: #7f8b9b;
}

.analyzer-form input:focus {
  border-color: rgba(45, 212, 191, .65);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .12);
}

.analyzer-status {
  max-width: 920px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: var(--soft);
}

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

.metric-card {
  background: rgba(11, 15, 22, .9);
  box-shadow: none;
}

.metric-value {
  margin: 8px 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
}

.metric-card.good { border-color: rgba(34, 197, 94, .55); }
.metric-card.warn { border-color: rgba(245, 158, 11, .62); }
.metric-card.bad { border-color: rgba(251, 113, 133, .62); }

.blog-card {
  min-height: 245px;
}

.blog-card a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent);
  font-weight: 900;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 92px;
}

.link-card:hover {
  border-color: rgba(45, 212, 191, .45);
  background: rgba(45, 212, 191, .08);
}

.link-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(16px, 5vw, 64px);
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .project-grid,
  .blog-grid,
  .link-grid,
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-visual {
    grid-column: 1 / -1;
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 15px;
  }

  .section-band,
  .section {
    padding: 54px 14px;
  }

  h1 {
    font-size: clamp(46px, 18vw, 66px);
    line-height: .9;
  }

  h2 {
    font-size: clamp(30px, 12vw, 44px);
  }

  .role {
    font-size: 21px;
  }

  .intro {
    font-size: 16px;
  }

  .hero-actions,
  .analyzer-form {
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .analyzer-form .button {
    width: 100%;
  }

  .hero-panel,
  .project-grid,
  .blog-grid,
  .link-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .blog-card {
    min-height: auto;
  }

  .link-card {
    align-items: flex-start;
    flex-direction: column;
  }

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