:root {
  --bg: #060b14;
  --bg2: #0a1220;
  --card: #0d1727;
  --line: rgba(92, 132, 200, .22);
  --cyan: #00c2ff;
  --blue: #2563eb;
  --violet: #8b5cf6;
  --text: #e6eef8;
  --muted: #93a6c4;
  --white: #f6faff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 75% 8%, rgba(37, 99, 235, .17), transparent 28%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}
.case-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 20, .88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.case-nav > div {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
}
.case-brand { text-decoration: none; font-weight: 900; color: #fff; }
.case-nav-links { margin-left: auto; display: flex; gap: 16px; }
.case-nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.case-cta { border-radius: 12px; padding: 10px 16px; background: var(--blue); color: #fff !important; font-weight: 800; }
.case-wrap { width: min(1180px, calc(100% - 40px)); margin: auto; }
.case-hero { padding: 80px 0 56px; }
.case-type {
  display: inline-flex;
  border: 1px solid rgba(0, 194, 255, .22);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.case-hero h1 { max-width: 900px; font-size: clamp(38px, 6vw, 76px); line-height: 1.02; letter-spacing: -.05em; margin: 18px 0; }
.case-lead { max-width: 760px; color: var(--muted); font-size: 18px; }
.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.case-fact { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13, 23, 39, .72); }
.case-fact b { display: block; color: #fff; }
.case-fact span { color: var(--muted); font-size: 13px; }
.case-shots { display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: start; padding-bottom: 70px; }
.case-shot { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); box-shadow: 0 24px 70px rgba(0, 0, 0, .3); }
.case-shot img { display: block; width: 100%; height: auto; }
.case-section { padding: 70px 0; border-top: 1px solid var(--line); }
.case-section h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.1; letter-spacing: -.035em; margin: 0 0 18px; }
.case-section-intro { max-width: 760px; color: var(--muted); }
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.case-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 0 24px 24px;
  background: linear-gradient(150deg, rgba(16, 28, 47, .95), rgba(10, 18, 32, .88));
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  text-decoration: none;
}
.case-card-cover { margin: 0 -24px 20px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 20px 20px 0 0; background: #101c2f; }
.case-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s ease; }
.case-card:hover .case-card-cover img { transform: scale(1.035); }
.case-card h2, .case-card h3 { color: var(--white); }
.case-card .case-type { align-self: flex-start; }
.case-card-demo { display: inline-flex; min-height: 36px; align-self: flex-start; align-items: center; justify-content: center; margin-top: 16px; padding: 8px 13px; border: 1px solid rgba(0, 194, 255, .72); border-radius: 999px; background: linear-gradient(135deg, rgba(0, 194, 255, .92), rgba(37, 99, 235, .88)); box-shadow: 0 0 22px rgba(0, 194, 255, .25); color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; line-height: 1.2; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.case-card-demo:hover { transform: translateY(-2px); border-color: #8ce9ff; box-shadow: 0 0 30px rgba(0, 194, 255, .42); }
.case-card h2 { margin: 14px 0 0; }
.case-card strong { font-size: 18px; color: #fff; }
.case-card p { flex: 1; color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.case-card-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: auto; padding-top: 24px; }
.case-card-link { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 12px; border: 1px solid rgba(0, 194, 255, .36); border-radius: 12px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 800; line-height: 1.25; text-align: center; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.case-card-link:hover { transform: translateY(-2px); }
.case-card-link:hover { border-color: var(--cyan); background: rgba(0, 194, 255, .08); }
.case-card-link.demo { border-color: rgba(139, 92, 246, .5); color: #e6ddff; }
.case-card-link.demo:hover { border-color: var(--violet); background: rgba(139, 92, 246, .14); }
.case-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.case-list div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 23, 39, .65); color: #cbd6e6; }
.case-list div::before { content: "✓"; color: #34d399; font-weight: 900; margin-right: 10px; }
.case-callout { padding: 34px; border-radius: 26px; background: linear-gradient(135deg, rgba(37, 99, 235, .2), rgba(124, 58, 237, .15)); border: 1px solid rgba(0, 194, 255, .25); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.case-callout h2 { margin: 0; }
.case-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 13px; padding: 11px 20px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 800; white-space: nowrap; }
.case-note { margin-top: 20px; padding: 15px 18px; border-radius: 14px; background: rgba(0, 194, 255, .06); border: 1px solid rgba(0, 194, 255, .14); color: var(--muted); font-size: 13px; }
.case-footer { padding: 34px 0; color: var(--muted); font-size: 13px; }
.case-footer .case-wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 850px) {
  .case-facts, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-shots { grid-template-columns: 1fr; }
  .case-shots .mobile { width: min(320px, 70%); margin: auto; }
  .case-callout { display: block; }
  .case-callout .case-button { margin-top: 18px; }
}

@media (max-width: 560px) {
  .case-wrap, .case-nav > div { width: calc(100% - 28px); }
  .case-nav-links a:not(.case-cta) { display: none; }
  .case-hero { padding-top: 50px; }
  .case-facts, .case-grid, .case-list { grid-template-columns: 1fr; }
  .case-card { min-height: 326px; }
  .case-card-actions { grid-template-columns: 1fr; }
  .case-shots .mobile { width: 70%; }
}
