:root {
  color-scheme: dark;
  --bg: #060914;
  --bg-2: #0a1020;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(10, 15, 31, 0.9);
  --line: rgba(148, 163, 184, 0.16);
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --lime: #a3e635;
  --rose: #fb7185;
  --max: 1200px;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.15), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.18), transparent 26%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 45%, #050713);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.8);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--cyan);
  color: #041019;
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 20, 0.76);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.site-footer {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.98), rgba(167, 139, 250, 0.98));
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.24);
  color: #021018;
  font-size: 22px;
  font-weight: 900;
}

.brand-name {
  display: block;
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cyan);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-cta {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.09);
  color: var(--cyan);
}

.button {
  min-height: 52px;
  padding: 14px 22px;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  box-shadow: 0 18px 46px rgba(34, 211, 238, 0.2);
  color: #041019;
}

.button-secondary {
  border-color: rgba(226, 232, 240, 0.2);
  background: rgba(15, 23, 42, 0.64);
  color: #e2e8f0;
}

.button-secondary:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--cyan);
}

.hero {
  padding: 88px 0 70px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: 62px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #bae6fd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.12), 0 0 24px rgba(163, 230, 53, 0.5);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 0;
  margin-top: 22px;
  font-size: clamp(48px, 7vw, 90px);
  font-weight: 840;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.gradient-text {
  background: linear-gradient(90deg, var(--cyan), #dbeafe 45%, var(--violet));
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--muted-2);
  font-size: 20px;
  font-weight: 380;
  line-height: 1.7;
}

.hero-note {
  max-width: 560px;
  margin: 16px 0 0;
  color: #bae6fd;
  font-size: 15px;
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin-top: 40px;
}

.stat {
  min-height: 122px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.52);
}

.stat strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-photo {
  position: absolute;
  inset: 0 0 110px 80px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-photo img,
.story-media img,
.use-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ui-card,
.insight-float {
  position: absolute;
  border: 1px solid rgba(226, 232, 240, 0.16);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.ui-card {
  left: 0;
  top: 50px;
  width: 320px;
  padding: 18px;
  border-radius: 26px;
}

.mini-label,
.kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ui-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.comment {
  margin-top: 16px;
  padding: 14px 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.55;
}

.tag-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag,
.chip {
  display: inline-flex;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
  color: #cbd5e1;
}

.tag {
  padding: 6px 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.tag.cyan {
  border-color: rgba(34, 211, 238, 0.34);
  color: var(--cyan);
}

.tag.violet {
  border-color: rgba(167, 139, 250, 0.34);
  color: var(--violet);
}

.tag.lime {
  border-color: rgba(163, 230, 53, 0.28);
  color: var(--lime);
}

.insight-float {
  right: 0;
  bottom: 0;
  width: 280px;
  padding: 18px;
  border-radius: 24px;
}

.hero-visual.hero-output {
  min-height: auto;
}

.hero-output-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 15% 0%, rgba(34, 211, 238, 0.18), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(167, 139, 250, 0.16), transparent 30%),
    rgba(10, 15, 31, 0.88);
  box-shadow: var(--shadow);
}

.output-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.raw-comment {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(2, 6, 23, 0.34);
}

.raw-comment span,
.coded-fields span,
.example-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.raw-comment p {
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.55;
}

.coding-flow {
  position: relative;
  height: 42px;
}

.coding-flow::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--violet));
}

.coding-flow span {
  position: absolute;
  left: 20px;
  top: 14px;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.1);
}

.coded-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.coded-fields div {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.coded-fields strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.coded-fields strong.mixed {
  color: var(--violet);
}

.bars {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: #e2e8f0;
  font-size: 13px;
}

.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.section {
  padding: 92px 0;
}

.section-quiet {
  background: rgba(2, 6, 23, 0.16);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-head h2,
.panel h2,
.cta h2,
.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.section-head p,
.panel p,
.cta p,
.page-hero p {
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.75;
}

.section-head p,
.panel p,
.cta p {
  margin: 16px 0 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.story-right {
  display: grid;
  gap: 24px;
}

.story-media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.story-right .story-media {
  min-height: 292px;
}

.overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.82) 48%, rgba(2, 6, 23, 0.95));
}

.overlay h3 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.overlay p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.7;
}

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

.feature,
.use-card,
.panel,
.post,
.contact-card,
.compact-card,
.comparison-card,
.process-step,
.use-case-detail,
.list-item,
.enquiry-form {
  border: 1px solid rgba(226, 232, 240, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.feature {
  min-height: 270px;
  padding: 28px;
  border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.32);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #67e8f9, #c4b5fd);
  color: #041019;
  font-size: 24px;
  font-weight: 900;
}

.feature h3,
.use-card h3,
.post h3,
.contact-card h3 {
  margin-bottom: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.feature p,
.use-card p,
.post p,
.contact-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.feature .small {
  display: block;
  margin-top: 18px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.compact-grid,
.comparison-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.compact-card,
.comparison-card,
.process-step,
.list-item {
  border-radius: var(--radius-lg);
}

.compact-card,
.comparison-card,
.process-step {
  padding: 24px;
}

.compact-card h3,
.comparison-card h3,
.process-step h3,
.list-item h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.compact-card p,
.comparison-card p,
.process-step p,
.list-item p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.list-panel,
.use-case-list {
  display: grid;
  gap: 14px;
}

.list-item {
  padding: 20px;
}

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

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.use-card {
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.use-card img {
  height: 190px;
}

.use-card .content,
.contact-card {
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.panel,
.contact-card {
  border-radius: var(--radius-xl);
}

.panel {
  padding: 34px;
  background: rgba(15, 23, 42, 0.68);
}

.verify {
  padding: 14px 16px;
  border: 1px solid rgba(251, 113, 133, 0.28);
  border-radius: 16px;
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3 !important;
  font-size: 14px !important;
}

.chips {
  gap: 10px;
  margin-top: 22px;
}

.chip {
  padding: 10px 13px;
  color: #dbeafe;
  font-size: 13px;
}

.post-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.post {
  padding: 18px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
}

.use-case-detail {
  padding: 28px;
  border-radius: var(--radius-xl);
}

.use-case-detail h2 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.use-case-detail dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.use-case-detail dl div {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
}

.use-case-detail dt {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.use-case-detail dd {
  margin: 8px 0 0;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.62;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.22), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(167, 139, 250, 0.22), transparent 34%),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.cta p {
  max-width: 640px;
}

.page-hero {
  padding: 86px 0 46px;
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 40px;
  align-items: end;
}

.page-hero p {
  margin: 18px 0 0;
}

.page-panel {
  padding: 26px;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.58);
}

.page-panel ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-panel li {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.25);
  color: var(--muted-2);
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.enquiry-form {
  padding: 28px;
  border-radius: var(--radius-xl);
}

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

.field,
.field-full {
  display: grid;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.42);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(203, 213, 225, 0.55);
}

.enquiry-form .button {
  margin-top: 22px;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.output-visual {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: var(--radius-xl);
  background: rgba(10, 15, 31, 0.78);
  box-shadow: var(--shadow);
}

.output-visual + .output-visual {
  margin-top: 24px;
}

.output-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.output-header h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.output-header p,
.output-caption {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.output-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.breakdown-body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}

.theme-panel {
  padding: 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.24);
}

.theme-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-name {
  margin: 9px 0 20px;
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.sq-ring {
  position: relative;
  width: 190px;
  height: 190px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 69.1%, var(--violet) 69.1% 85.5%, var(--lime) 85.5% 100%);
}

.sq-ring::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: #080d1b;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.14);
}

.ring-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-center strong {
  font-size: 42px;
  line-height: 1;
}

.ring-center span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.legend {
  display: grid;
  gap: 10px;
}

.legend-item {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted-2);
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.breakdown-grid {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.subtheme-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(180px, 1.6fr) repeat(3, minmax(88px, 0.55fr));
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
}

.subtheme-name {
  font-weight: 900;
  line-height: 1.2;
}

.subtheme-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sq-bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.sq-bar {
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--c);
}

.sq-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.output-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.output-stat strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}

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

.quote-group {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
}

.quote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.quote-heading h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.quote-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quote-group blockquote {
  margin: 0;
  padding: 15px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.48;
}

.quote-group blockquote:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sentiment-pill {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.sentiment-pill.positive {
  background: rgba(163, 230, 53, 0.12);
  color: var(--lime);
}

.sentiment-pill.negative {
  background: rgba(251, 113, 133, 0.12);
  color: #fda4af;
}

.sentiment-pill.neutral {
  background: rgba(167, 139, 250, 0.12);
  color: var(--violet);
}

.table-wrap {
  padding: 24px;
  overflow-x: auto;
}

.coded-table {
  width: 100%;
  min-width: 860px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
}

.coded-table caption {
  padding: 0 0 12px;
  color: var(--muted);
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
}

.coded-table thead {
  background: rgba(2, 6, 23, 0.34);
}

.coded-table th,
.coded-table td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.42;
}

.coded-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.coded-table tr:last-child td {
  border-bottom: 0;
}

.excerpt-cell {
  max-width: 390px;
  color: var(--muted-2);
  font-size: 14px;
}

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.score.positive {
  color: var(--lime);
}

.score.negative {
  color: #fda4af;
}

.theme-chip {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.analysis-visuals {
  display: grid;
  gap: 24px;
}

.compact-evidence {
  margin-top: 28px;
}

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

.evidence-card {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.58);
}

.evidence-card blockquote {
  margin: 12px 0 16px;
  color: var(--muted-2);
  font-size: 15px;
  line-height: 1.55;
}

.evidence-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.evidence-fields > span:not(.sentiment-pill) {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.34);
  color: #dbeafe;
  font-size: 11px;
  font-weight: 800;
}

.evidence-action {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

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

@media (max-width: 1080px) {
  .hero-inner,
  .story-grid,
  .split,
  .cta,
  .page-hero .section-inner,
  .breakdown-body {
    grid-template-columns: 1fr;
  }

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

  .use-grid,
  .contact-grid,
  .compact-grid,
  .process-grid,
  .use-case-detail dl,
  .form-layout {
    grid-template-columns: 1fr 1fr;
  }

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

  .theme-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  }

  .subtheme-row {
    grid-template-columns: 1fr 1fr;
  }

  .quote-groups {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual.hero-output {
    min-height: auto;
  }

  .evidence-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .section-inner,
  .site-footer {
    width: min(100% - 36px, var(--max));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 64px 0 62px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .stats,
  .card-grid,
  .use-grid,
  .contact-grid,
  .compact-grid,
  .comparison-grid,
  .process-grid,
  .use-case-detail dl,
  .form-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .output-header {
    display: grid;
  }

  .subtheme-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual.hero-output {
    min-height: auto;
  }

  .hero-photo {
    inset: 120px 0 86px 0;
  }

  .coded-fields {
    grid-template-columns: 1fr;
  }

  .ui-card {
    left: 10px;
    right: 10px;
    top: 0;
    width: auto;
  }

  .insight-float {
    right: 10px;
    left: 10px;
    width: auto;
  }

  .section {
    padding: 72px 0;
  }

  .panel,
  .cta,
  .page-panel,
  .enquiry-form,
  .use-case-detail,
  .output-header,
  .theme-panel,
  .breakdown-grid,
  .quote-groups,
  .evidence-mini-grid,
  .table-wrap {
    padding: 24px;
  }

  .button {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
