:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --text: #111827;
  --text-muted: #6b7280;
  --surface: #ffffff;
  --surface-soft: #f9fafb;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --footer: #111827;
  --white: #ffffff;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 60px;
  --space-7: 80px;

  --radius-1: 10px;
  --radius-2: 16px;
  --radius-3: 20px;
  --shadow-card: 0 15px 40px rgba(17, 24, 39, 0.08);
  --transition: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

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

a {
  text-decoration: none;
}

section {
  padding: var(--space-6) 0;
}

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

.hero-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
 
}

.hero-text {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
}

.hero-image {
  background: var(--surface);
  padding: var(--space-3);
}

.hero-image img {
  animation: imageFloat 5.5s ease-in-out infinite;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2);
  box-shadow: 0 24px 54px rgba(37, 99, 235, 0.14);
  object-fit: cover;
  width: 100%;
}

.card-custom img,
.case-hero-media img,
.case-gallery img,
.blog-featured-image,
.article-inline-image,
.service-visual {
  transition: transform 0.55s ease, box-shadow 0.55s ease;
}

.card-custom:hover img,
.case-hero-media:hover img,
.case-gallery img:hover,
.blog-featured-image:hover,
.article-inline-image:hover,
.service-visual:hover {
  transform: scale(1.03);
}

@keyframes imageFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.section-surface {
  background: var(--surface-soft);
  border-radius: 30px;
  padding: var(--space-6);
}

.page-hero {
  padding-bottom: var(--space-5);
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.blog-meta span {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
}

.contact-info-card,
.contact-form-card {
  padding: var(--space-4);
}

.contact-item {
  align-items: flex-start;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 18px;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
}

.contact-item-last {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.contact-content a,
.contact-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.contact-form-card label {
  color: var(--text);
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-1);
  font-size: 14px;
  outline: 0;
  padding: 14px 16px;
  width: 100%;
}

.contact-form-card input,
.contact-form-card select {
  height: 54px;
}

.contact-form-card select {
  background: var(--surface);
  color: var(--text);
}

.contact-form-card textarea {
  height: 150px;
  resize: none;
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
  border-color: var(--primary);
}

html {
  scroll-behavior: smooth;
}

.reading-progress {
  background: var(--primary);
  height: 4px;
  left: 0;
  position: fixed;
  top: 0;
  width: 0;
  z-index: 1100;
}

.blog-detail-hero {
  padding-bottom: var(--space-5);
}

.blog-back-link {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  margin-bottom: var(--space-3);
}

.blog-detail-heading {
  max-width: 900px;
}

.blog-detail-heading h1 {
  color: var(--text);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: var(--space-3);
}

.blog-detail-heading p,
.article-lead {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.blog-detail-meta {
  margin-bottom: var(--space-2);
}

.blog-featured-image {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-3);
  margin-bottom: var(--space-5);
  object-fit: cover;
  width: 100%;
}

.article-reader {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(34, 197, 94, 0.07)),
    var(--surface);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-3);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: var(--space-3);
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 0 var(--space-5);
  overflow: hidden;
  padding: var(--space-3);
  position: relative;
}

.article-reader::before {
  background: linear-gradient(180deg, var(--primary), #22c55e);
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 5px;
}

.reader-play {
  align-items: center;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  color: var(--white);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 30px;
  height: 68px;
  justify-content: center;
  padding: 0;
  transition: var(--transition);
  width: 68px;
}

.reader-play i {
  line-height: 1;
  transform: translateX(1px);
}

.reader-play:hover,
.article-reader.is-playing .reader-play {
  background: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
  transform: translateY(-2px);
}

.reader-meta {
  min-width: 0;
}

.reader-meta strong {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.reader-meta strong i {
  font-size: 17px;
}

.reader-meta > span {
  color: var(--text);
  display: block;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-progress-track {
  background: #dbeafe;
  border-radius: 999px;
  height: 8px;
  margin: 14px 0 9px;
  overflow: hidden;
  width: 100%;
}

.reader-progress-track span {
  background: linear-gradient(90deg, var(--primary), #22c55e);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 0.3s ease;
  width: 0;
}

.reader-time {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
}

.reader-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.reader-actions button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  font-size: 16px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 13px;
  transition: var(--transition);
}

.reader-actions button:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.reader-unavailable {
  background: #f8fafc;
  border-color: var(--border);
}

.reader-unavailable .reader-play,
.reader-unavailable .reader-actions {
  display: none;
}

.reading-highlight {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(34, 197, 94, 0.1));
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.blog-detail-grid {
  align-items: start;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 300px minmax(0, 1fr);
}

.article-sidebar {
  display: grid;
  gap: var(--space-3);
  position: sticky;
  top: 100px;
}

.toc-card,
.share-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-3);
}

.toc-card h2,
.share-card h2 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.toc-nav {
  display: grid;
  gap: 4px;
}

.toc-nav a {
  border-left: 3px solid transparent;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.4;
  padding: 8px 10px;
  transition: var(--transition);
}

.toc-nav a:hover,
.toc-nav a.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.share-actions {
  display: flex;
  gap: 10px;
}

.share-actions a,
.share-actions button {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  transition: var(--transition);
  width: 42px;
}

.share-actions button {
  cursor: pointer;
}

.share-actions a:hover,
.share-actions button:hover {
  background: var(--primary);
  color: var(--white);
}

.article-body {
  max-width: 820px;
}

.article-body section {
  padding: 0;
  scroll-margin-top: 110px;
}

.article-body section + section {
  margin-top: var(--space-5);
}

.article-body h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-2);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 800;
  margin: var(--space-3) 0 10px;
}

.article-body p,
.article-body li {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
}

.article-body p {
  margin-bottom: var(--space-2);
}

.article-body code {
  background: var(--primary-light);
  border-radius: 6px;
  color: var(--primary-dark);
  font-size: 0.92em;
  padding: 2px 6px;
}

.flow-strip,
.workflow-list,
.checklist-grid {
  margin: var(--space-3) 0;
}

.flow-strip {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-3);
}

.flow-strip span {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 16px;
}

.flow-strip i,
.checklist-grid i {
  color: var(--primary);
}

.code-block {
  background: #0f172a;
  border-radius: var(--radius-2);
  margin: var(--space-3) 0;
  overflow: hidden;
  position: relative;
}

.code-block pre {
  margin: 0;
  overflow-x: auto;
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.code-block code {
  background: transparent;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.7;
  padding: 0;
}

.copy-code {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  position: absolute;
  right: 14px;
  top: 12px;
}

.article-inline-image {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-2);
  margin: var(--space-3) 0;
  object-fit: cover;
  width: 100%;
}

.workflow-list {
  display: grid;
  gap: var(--space-2);
}

.workflow-list div {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
}

.workflow-list strong {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: var(--white);
  display: inline-flex;
  flex: 0 0 34px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.article-table {
  border: 1px solid var(--border);
  border-collapse: collapse;
  width: 100%;
}

.article-table th,
.article-table td {
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  padding: 14px;
}

.article-table th {
  background: var(--primary-light);
  color: var(--text);
  font-weight: 800;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  margin: var(--space-3) 0;
  padding: var(--space-2) var(--space-3);
}

.article-check-list,
.checklist-grid {
  display: grid;
  gap: 12px;
}

.article-check-list {
  list-style: none;
  padding-left: 0;
}

.article-check-list li {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  padding: 12px 14px;
}

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

.checklist-grid span {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-1);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  padding: 12px 14px;
}

.case-detail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.case-hero-grid {
  align-items: center;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
}

.case-kicker {
  color: var(--primary);
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.case-hero-copy h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: var(--space-3);
}

.case-hero-copy p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.case-tags-large {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-tags-large span {
  background: var(--primary-light);
  border-radius: 999px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 14px;
}

.case-hero-media img {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  width: 100%;
}

.case-metrics-section {
  padding: 0 0 var(--space-5);
}

.case-metrics-grid {
  background: var(--text);
  border-radius: var(--radius-3);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.case-metrics-grid div {
  background: #172033;
  padding: var(--space-3);
}

.case-metrics-grid strong {
  color: var(--white);
  display: block;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 6px;
}

.case-metrics-grid span {
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 700;
}

.case-detail-content {
  padding-top: 0;
}

.case-gallery {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1.1fr 0.9fr;
  margin-bottom: var(--space-5);
}

.case-gallery img {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-2);
  object-fit: cover;
  width: 100%;
}

.case-pain-grid,
.case-result-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, 1fr);
  margin: var(--space-3) 0;
}

.case-pain-grid div,
.case-result-grid div,
.case-decision-list div {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-3);
}

.case-pain-grid i {
  color: var(--primary);
  font-size: 26px;
}

.case-result-grid strong {
  color: var(--primary);
  display: block;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 6px;
}

.case-decision-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.case-final-cta {
  align-items: center;
  background: var(--primary-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-3);
  display: flex;
  gap: var(--space-3);
  justify-content: space-between;
  margin-top: var(--space-4);
  padding: var(--space-4);
}

.case-final-cta h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.case-final-cta p {
  margin-bottom: 0;
}

.service-page-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.services-page {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
}

.service-card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-4);
  transition: var(--transition);
}

.service-page-card:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-card);
  transform: translateY(-6px);
}

.service-page-card h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
}

.service-page-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.service-page-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-page-card li {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  line-height: 1.45;
}

.service-page-card li i {
  color: var(--primary);
  flex: 0 0 auto;
}

.service-page-card .link-more {
  margin-top: auto;
  padding-top: var(--space-3);
}

.service-detail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.service-detail-grid {
  align-items: center;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}

.service-detail-grid h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: var(--space-2);
}

.service-detail-grid p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.service-visual {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--primary-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-3);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
  padding: var(--space-4);
}

.service-visual i {
  font-size: 58px;
}

.service-visual span {
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.service-detail-content {
  display: grid;
  gap: var(--space-3);
}

.service-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-3);
  padding: var(--space-4);
}

.service-panel h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: var(--space-2);
}

.service-panel p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 0;
}

.service-feature-grid,
.service-process-grid {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-feature-grid div,
.service-process-grid div {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: var(--space-2);
}

.service-feature-grid div {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
}

.service-feature-grid i {
  color: var(--primary);
}

.service-process-grid strong {
  color: var(--primary);
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.service-process-grid span {
  color: var(--text-muted);
  display: block;
  font-size: 14px;
  line-height: 1.55;
}
