:root {
  --ink: #0f172a;
  --muted: #526176;
  --line: #dbe2ee;
  --paper: #ffffff;
  --wash: #f6f8fc;
  --purple: #6d28d9;
  --cyan: #0891b2;
  --orange: #ea580c;
  --green: #15803d;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(15, 23, 42, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(109, 40, 217, .11), transparent 26rem),
    radial-gradient(circle at 95% 10%, rgba(8, 145, 178, .12), transparent 24rem),
    var(--wash);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; border-radius: 10px; color: white; background: var(--ink); font-weight: 800; }
.skip-link:focus { top: 16px; }
.back-to-top { position: fixed; right: clamp(14px, 2.5vw, 30px); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 50; min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: white; background: rgba(15,23,42,.92); box-shadow: 0 12px 28px rgba(15,23,42,.24); text-decoration: none; font-size: 12px; font-weight: 800; }
.site-nav { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 25px; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, #4f46e5, var(--purple)); box-shadow: 0 8px 22px rgba(79,70,229,.25); font-size: 13px; letter-spacing: .06em; }
.nav-links { display: flex; align-items: center; gap: 28px; color: #475569; font-size: 14px; font-weight: 700; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-current { color: var(--purple); }
.nav-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid rgba(15,23,42,.16); border-radius: 999px; background: rgba(255,255,255,.7); }

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

.hero {
  padding: clamp(72px, 10vw, 126px) 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.hero h1 {
  max-width: 890px;
  margin: 0 auto 22px;
  font-size: clamp(2.55rem, 6.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--purple), #4f46e5 50%, var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero p {
  max-width: 740px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
}

.intro-note {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #475569;
  background: rgba(255, 255, 255, .72);
  font-size: .86rem;
}

.case-grid {
  display: grid;
  gap: 32px;
  padding: 16px 0 96px;
}

.case {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  border: 1px solid rgba(203, 213, 225, .88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.case:nth-child(even) .case-visual { order: 2; }

.case-visual {
  position: relative;
  min-height: 100%;
  padding: 28px;
  background: linear-gradient(145deg, #f8fafc, #eef2ff);
}

.case-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
  border-radius: 19px;
}

.case-number {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  color: #fff;
  background: rgba(15, 23, 42, .82);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .16);
  font-size: .85rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.case-copy {
  padding: clamp(32px, 5vw, 58px);
}

.category {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.case h2 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.section-label {
  margin: 23px 0 6px;
  color: #334155;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.case p { margin: 0; color: var(--muted); }

.prompt {
  position: relative;
  margin: 8px 0 0;
  padding: 17px 18px 17px 44px;
  border-left: 4px solid var(--purple);
  border-radius: 0 14px 14px 0;
  color: #312e81;
  background: #f5f3ff;
  font-size: .95rem;
  font-style: italic;
}

.prompt::before {
  content: "“";
  position: absolute;
  top: 3px;
  left: 15px;
  color: #a78bfa;
  font-family: Georgia, serif;
  font-size: 2.5rem;
  font-style: normal;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.tags span {
  padding: 7px 11px;
  border: 1px solid #dbe2ee;
  border-radius: 999px;
  color: #475569;
  background: #fff;
  font-size: .76rem;
  font-weight: 750;
}

.closing {
  margin-bottom: 84px;
  padding: clamp(34px, 6vw, 64px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(120deg, #1e1b4b, #4c1d95 55%, #155e75);
  text-align: center;
  box-shadow: 0 24px 60px rgba(49, 46, 129, .2);
}

.closing h2 { margin: 0 0 13px; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1.1; }
.closing p { max-width: 710px; margin: 0 auto; color: #e0e7ff; }
.closing-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing-button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid rgba(255,255,255,.38); border-radius: 12px; color: white; background: rgba(255,255,255,.08); text-decoration: none; font-size: 14px; font-weight: 800; }
.closing-button.primary { color: #1e1b4b; background: white; }
footer { min-height: 108px; padding: 26px max(20px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 25px; color: #9ca6ba; background: #0f172a; font-size: 11px; }
.footer-brand { color: white; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: white; text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { max-width: 290px; text-align: right; }
.footer-meta p { margin: 0; }
.footer-meta p + p { margin-top: 6px; color: #7f8ba4; font-size: 9px; line-height: 1.45; }

@media (max-width: 820px) {
  .case { grid-template-columns: 1fr; }
  .case:nth-child(even) .case-visual { order: 0; }
  .case-visual { min-height: auto; padding: 18px; }
  .case-visual img { min-height: 0; }
  .case-copy { padding: 30px 26px 38px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .site-nav { height: 70px; }
  .brand { gap: 9px; font-size: 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
  .nav-links > a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }
  .nav-cta { min-height: 42px; padding: 9px 13px; font-size: 13px; }
  .hero { padding-top: 58px; }
  .case-grid { gap: 22px; }
  .prompt { padding-left: 38px; }
  .back-to-top { width: 48px; min-height: 48px; padding: 0; }
  .back-to-top-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .closing { width: 100%; margin-bottom: 0; border-radius: 0; }
  .closing-actions, .closing-button { width: 100%; }
  footer { align-items: flex-start; flex-direction: column; padding-top: 34px; padding-bottom: 34px; }
  .footer-contact { justify-content: flex-start; flex-direction: column; }
  .footer-meta { max-width: none; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
