/* ============================================================
   svdk — MVP styles
   Design tokens from docs/brand-identity.md
   Layout spec from mvp/tz_var.md
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #0A0A0A;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  margin: 0;
}

/* ---------- Design tokens ---------- */
:root {
  --page-bg: #FFFFFF;
  --text-primary: #0A0A0A;
  --text-secondary: #6B7280;
  --hairline: #E5E3DC;

  --cta-bg: #000000;
  --cta-text: #FFFFFF;

  --panel-bg: #0A0F1C;
  --panel-glow: #6EC3FF;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-divider: rgba(255, 255, 255, 0.10);
  --card-glow: #FF7A6B;
  --tag-border: rgba(255, 255, 255, 0.15);

  --radius-card: 18px;
  --radius-pill: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Hero layout ---------- */
.hero {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
}

/* ---------- Left column ---------- */
.hero__left {
  display: flex;
  flex-direction: column;
  padding: 56px 72px;
  background: var(--page-bg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 88px;
}

.brand__mark {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1;
}

.brand__divider {
  width: 1px;
  height: 18px;
  background: var(--hairline);
}

.brand__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0.005em;
}

.content {
  max-width: 560px;
  margin-top: 40px;
}

/* Eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.eyebrow__line {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--text-secondary);
  flex-shrink: 0;
}

/* H1 */
.hero__title {
  margin: 0 0 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(48px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Subhead */
.hero__subhead {
  margin: 0 0 44px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
}

/* CTA row */
.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--cta-bg);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.btn--primary:hover {
  opacity: 0.92;
}

.btn__arrow {
  font-size: 16px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn--secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: var(--hairline);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
}

.btn--secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn--secondary .btn__arrow {
  margin-left: 6px;
  font-size: 0.95em;
}

/* Trust line */
.trust {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* ---------- Right column (dark panel) ---------- */
.hero__right {
  position: relative;
  background: var(--panel-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 56px;
  isolation: isolate;
}

.panel__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: -1px -1px;
  pointer-events: none;
  z-index: 0;
}

.panel__glow {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at center, rgba(110, 195, 255, 0.22) 0%, rgba(110, 195, 255, 0.08) 30%, transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 1;
}

.panel__ticks {
  position: absolute;
  inset: 32px;
  pointer-events: none;
  z-index: 1;
}

.panel__ticks .tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: rgba(255, 255, 255, 0.18);
  border-style: solid;
  border-width: 0;
}

.tick--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.tick--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.tick--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.tick--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* Cards */
.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 880px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 22px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FAFAF7;
  overflow: hidden;
  min-height: 340px;
}

.card--featured::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(255, 122, 107, 0.55) 0%, rgba(255, 122, 107, 0.18) 40%, transparent 70%);
  filter: blur(4px);
  pointer-events: none;
}

.card__dot {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.card__eyebrow {
  margin: 8px 0 0;
  padding-left: 18px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.card__title {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.card__divider {
  border-top: 1px solid var(--card-divider);
  margin: 4px 0;
}

.card__desc {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.card__body {
  margin: 0;
  padding-left: 18px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  flex: 1;
}

.card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-left: 18px;
  margin-top: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--tag-border);
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ---------- Responsive: mobile (<768px) ---------- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
  }

  .hero__left {
    padding: 32px 28px 56px;
  }

  .brand {
    margin-bottom: 56px;
  }

  .content {
    margin-top: 16px;
  }

  .hero__title {
    font-size: clamp(40px, 11vw, 48px);
  }

  .hero__subhead {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .cta {
    margin-bottom: 40px;
  }

  .btn {
    height: 48px;
    font-size: 14px;
    padding: 0 20px;
  }

  .btn--secondary {
    width: 100%;
  }

  .hero__right {
    padding: 48px 24px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    min-height: 0;
  }
}

/* ---------- Tablet refinements (768–1100px) ---------- */
@media (max-width: 1100px) and (min-width: 769px) {
  .hero__left {
    padding: 48px 40px;
  }

  .hero__right {
    padding: 40px 28px;
  }

  .cards {
    gap: 12px;
  }

  .card {
    padding: 18px 16px 16px;
    min-height: 300px;
  }

  .card__title {
    font-size: 15px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .card__tags {
    padding-left: 0;
  }

  .card__eyebrow,
  .card__title,
  .card__desc,
  .card__body {
    padding-left: 8px;
  }
}

/* ============================================================
   Cases page (/cases.html)
   Reuses hero tokens: --page-bg, --text-primary, --text-secondary,
   --hairline, --cta-bg, --cta-text, --font-sans, --font-mono
   ============================================================ */

/* ---------- Sub-nav ---------- */
.subnav {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  column-gap: 18px;
  padding: 28px 72px;
  border-bottom: 1px solid var(--hairline);
  background: var(--page-bg);
}

.subnav .brand__mark,
.subnav .brand__divider,
.subnav .brand__name {
  /* reuse tokens from brand__* block via inheritance */
}

.subnav__links {
  display: flex;
  gap: 28px;
  justify-self: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.subnav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.subnav__links a:hover {
  color: var(--text-primary);
}

.subnav__links a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.subnav__cta {
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.subnav__cta:hover {
  background: var(--text-primary);
  color: var(--cta-text);
  border-color: var(--text-primary);
}

.subnav__cta .subnav__cta--short { display: none; }

/* ---------- Page container ---------- */
.page-cases {
  background: var(--page-bg);
}

.cases {
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 72px 96px;
}

/* ---------- Intro ---------- */
.cases__intro {
  max-width: 760px;
  margin-bottom: 88px;
}

.cases__intro .eyebrow {
  margin-bottom: 24px;
}

.cases__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 24px;
}

.cases__lede {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 640px;
}

/* ---------- Case ---------- */
.case {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--hairline);
}

.case--muted {
  border-top: 1px solid var(--hairline);
  background: transparent;
}

.case__header {
  max-width: 760px;
  margin-bottom: 40px;
}

.case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.case__sep {
  color: var(--text-secondary);
  opacity: 0.6;
}

.case__title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0 0 16px;
}

.case__summary {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 640px;
}

/* ---------- Facts grid ---------- */
.case__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 48px;
  padding: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.fact {
  padding: 18px 20px;
  border-right: 1px solid var(--hairline);
}

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

.fact dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.fact dd {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-primary);
}

/* ---------- Body sections ---------- */
.case__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 900px;
}

.case__section {
  margin-bottom: 40px;
}

.case__section:last-child {
  margin-bottom: 0;
}

.case__h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin: 0;
  padding-top: 6px;
}

.case__section p {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
}

.case__section p:last-child {
  margin-bottom: 0;
}

.case__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
}

.case__list li:last-child {
  margin-bottom: 0;
}

.case__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 1px;
  background: var(--text-primary);
}

.case__list strong {
  font-weight: 600;
}

/* ---------- CTA strip ---------- */
.cases__cta {
  margin-top: 96px;
  padding: 56px 40px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: var(--page-bg);
}

.cases__cta-text {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 72px 56px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__line {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-footer__mark {
  font-weight: 500;
  color: var(--text-primary);
}

.site-footer__sep {
  color: var(--text-secondary);
  opacity: 0.6;
}

.site-footer__line--mono a,
.site-footer__line--mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-footer__line--mono a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.site-footer__line--mono a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ---------- Responsive: cases page ---------- */
@media (max-width: 768px) {
  .subnav {
    grid-template-columns: auto 1fr auto;
    padding: 20px 24px;
    column-gap: 14px;
  }

  .subnav .brand__divider,
  .subnav .brand__name {
    display: none;
  }

  .subnav__links {
    gap: 18px;
    justify-self: start;
    margin-left: 12px;
  }

  .subnav__cta {
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .subnav__cta .subnav__cta--full { display: none; }
  .subnav__cta .subnav__cta--short { display: inline; }

  .cases {
    padding: 48px 24px 64px;
  }

  .cases__intro {
    margin-bottom: 56px;
  }

  .case {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .fact:nth-child(1),
  .fact:nth-child(2) {
    border-bottom: 1px solid var(--hairline);
  }

  .fact:nth-child(2n) {
    border-right: 0;
  }

  .case__body {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .case__h3 {
    margin-bottom: 8px;
  }

  .cases__cta {
    padding: 40px 24px;
    margin-top: 64px;
  }

  .cases__cta-text {
    font-size: 18px;
  }

  .site-footer {
    padding: 32px 24px 40px;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .subnav,
  .cases,
  .site-footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}
