/* ============================================================
   Wang Jun — Songyuan Wangjun Network Technology Co., Ltd.
   Editorial/Magazine Style Design System
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;0,900;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg: #FAFAFA;
  --bg-alt: #F1F5F9;
  --primary: #1E1B4B;
  --primary-light: #312E81;
  --accent: #06B6D4;
  --accent-glow: rgba(6, 182, 212, 0.25);
  --coral: #FB7185;
  --coral-glow: rgba(251, 113, 133, 0.3);
  --text: #0F172A;
  --text-muted: #475569;
  --text-light: #64748B;
  --white: #FFFFFF;
  --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --card-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.05);
  --card-shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-width: 1280px;
  --header-height: 80px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
  height: var(--header-height);
}

.site-header.scrolled {
  box-shadow: var(--card-shadow-lg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: conic-gradient(from 0deg, var(--accent), var(--coral), var(--accent));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.logo:hover .logo-icon::after {
  opacity: 1;
  animation: logoSpin 3s linear infinite;
}

@keyframes logoSpin {
  to { transform: rotate(360deg); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-title.light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ============================================================
   HERO — Full-bleed with diagonal color block
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--bg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 70%;
  height: 140%;
  background: var(--primary);
  transform: skewX(-12deg);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(6, 182, 212, 0.08) 100%);
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  padding: 2rem 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 5.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.hero-headline .accent-block {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.05em 0.2em;
  border-radius: 4px;
}

.hero-headline .coral-block {
  display: inline-block;
  color: var(--coral);
  position: relative;
}

.hero-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: #0891B2;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* Hero visual — 3D card stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
  height: 500px;
}

.card-stack {
  position: relative;
  width: 320px;
  height: 400px;
}

.stack-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--card-shadow-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.stack-card:nth-child(1) {
  transform: rotate(-6deg) translateY(20px);
  z-index: 3;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.stack-card:nth-child(2) {
  transform: rotate(3deg) translateY(10px) translateX(10px);
  z-index: 2;
  background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.stack-card:nth-child(3) {
  transform: rotate(10deg) translateY(0) translateX(20px);
  z-index: 1;
  background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
  border: 1px solid rgba(15, 23, 42, 0.03);
}

.card-stack:hover .stack-card:nth-child(1) {
  transform: rotate(0deg) translateY(0px);
}

.card-stack:hover .stack-card:nth-child(2) {
  transform: rotate(0deg) translateY(10px) translateX(0px);
}

.card-stack:hover .stack-card:nth-child(3) {
  transform: rotate(0deg) translateY(20px) translateX(0px);
}

.stack-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.stack-card:nth-child(1) .card-icon {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent);
}

.stack-card:nth-child(2) .card-icon {
  background: rgba(30, 27, 75, 0.08);
  color: var(--primary);
}

.stack-card:nth-child(3) .card-icon {
  background: rgba(251, 113, 133, 0.12);
  color: var(--coral);
}

.stack-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stack-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.stack-card .card-bar {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin-top: auto;
}

.stack-card:nth-child(1) .card-bar { background: var(--accent); }
.stack-card:nth-child(2) .card-bar { background: var(--primary); }
.stack-card:nth-child(3) .card-bar { background: var(--coral); }

/* ============================================================
   STATS STRIP — Full-bleed
   ============================================================ */

.stats-strip {
  background: var(--primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.015) 10px,
    rgba(255, 255, 255, 0.015) 20px
  );
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* ============================================================
   ABOUT — Pull-quote magazine style
   ============================================================ */

.about-section {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-visual {
  position: relative;
}

.about-visual .color-block {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.about-visual .color-block::after {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle at center, rgba(251, 113, 133, 0.4) 0%, transparent 70%);
}

.about-visual .floating-shape {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
}

.pull-quote {
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--accent);
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.pull-quote blockquote::before {
  content: open-quote;
  font-size: 4rem;
  line-height: 0;
  vertical-align: -0.4em;
  color: var(--accent);
  font-style: normal;
  margin-right: 0.1em;
}

.pull-quote cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pull-quote cite strong {
  color: var(--primary);
  font-weight: 700;
}

.about-body {
  margin-top: 2rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-body p + p {
  margin-top: 1.25rem;
}

/* ============================================================
   SERVICES — Horizontal scroll panels
   ============================================================ */

.services-section {
  padding: 8rem 0;
  background: var(--bg-alt);
  position: relative;
}

.services-section .section-header {
  margin-bottom: 3rem;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.services-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem calc((100vw - var(--max-width)) / 2 + 2rem) 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.services-scroll::-webkit-scrollbar {
  height: 6px;
}

.services-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.services-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

.service-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-xl);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:nth-child(2)::before { background: var(--coral); }
.service-card:nth-child(3)::before { background: var(--primary); }
.service-card:nth-child(4)::before { background: var(--accent); }
.service-card:nth-child(5)::before { background: var(--coral); }

.service-card .s-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(30, 27, 75, 0.06);
  line-height: 1;
  margin-bottom: -0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-card .s-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.25rem;
}

.s-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent);
}

/* ============================================================
   PROCESS — Accordion / collapsible
   ============================================================ */

.process-section {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
}

.process-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
  z-index: 0;
  pointer-events: none;
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.process-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.process-item.active {
  box-shadow: var(--card-shadow-lg);
}

.process-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--transition);
}

.process-trigger:hover {
  background: rgba(6, 182, 212, 0.03);
}

.process-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  background: rgba(30, 27, 75, 0.06);
  color: var(--primary);
  transition: all var(--transition);
}

.process-item.active .process-num {
  background: var(--primary);
  color: var(--white);
}

.process-trigger h3 {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.process-arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform var(--transition);
}

.process-arrow::before,
.process-arrow::after {
  content: '';
  position: absolute;
  background: var(--text-muted);
  transition: var(--transition);
}

.process-arrow::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.process-arrow::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
}

.process-item.active .process-arrow {
  transform: rotate(45deg);
}

.process-item.active .process-arrow::after {
  opacity: 0;
}

.process-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.process-item.active .process-panel {
  max-height: 300px;
}

.process-content {
  padding: 0 1.5rem 1.5rem;
  padding-left: calc(1.5rem + 48px + 1.25rem);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.process-content ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.process-content ul li + li {
  margin-top: 0.5rem;
}

/* Process visual */
.process-visual {
  position: sticky;
  top: calc(var(--header-height) + 3rem);
}

.process-visual .process-display {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.process-display::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
}

.process-display .pd-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.process-display h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-display p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
}

/* ============================================================
   CASE STUDIES — Staggered masonry
   ============================================================ */

.cases-section {
  padding: 8rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.cases-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all var(--transition);
  position: relative;
}

.case-card:nth-child(1) { margin-top: 0; }
.case-card:nth-child(2) { margin-top: 3rem; }
.case-card:nth-child(3) { margin-top: -1.5rem; }
.case-card:nth-child(4) { margin-top: 2rem; }
.case-card:nth-child(5) { margin-top: -2rem; }
.case-card:nth-child(6) { margin-top: 4rem; }

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-xl);
}

.case-visual {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.case-visual.c1 { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 100%); }
.case-visual.c2 { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }
.case-visual.c3 { background: linear-gradient(135deg, #FB7185 0%, #E11D48 100%); }
.case-visual.c4 { background: linear-gradient(135deg, #312E81 0%, #4338CA 100%); }
.case-visual.c5 { background: linear-gradient(135deg, #0891B2 0%, #06B6D4 100%); }
.case-visual.c6 { background: linear-gradient(135deg, #1E1B4B 0%, #FB7185 100%); }

.case-visual .case-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
    linear-gradient(135deg, rgba(255,255,255,0.1) 25%, transparent 25%),
    linear-gradient(-135deg, rgba(255,255,255,0.1) 25%, transparent 25%);
  background-size: 20px 20px;
}

.case-info {
  padding: 1.5rem;
}

.case-info .case-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.case-info h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.case-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   TESTIMONIALS — Diagonal split section
   ============================================================ */

.testimonials-section {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--bg) 0%, var(--bg) 55%, var(--primary) 55.5%, var(--primary) 100%);
  z-index: 0;
}

.testimonials-section .container {
  position: relative;
  z-index: 1;
}

.testimonials-section .section-header {
  max-width: 50%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0;
  color: var(--accent);
  position: absolute;
  top: 2rem;
  left: 2rem;
  opacity: 0.3;
  pointer-events: none;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-card .t-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.t-author .t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}

.t-author .t-avatar.av1 { background: var(--primary); }
.t-author .t-avatar.av2 { background: var(--accent); }

.t-author .t-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.t-author .t-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   CONTACT — Two-column layout
   ============================================================ */

.contact-section {
  padding: 8rem 0;
  background: var(--bg-alt);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail .cd-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .cd-text strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-detail .cd-text span {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--card-shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-submit {
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.visible {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-muted);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  padding: 6rem 0;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.08);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(251, 113, 133, 0.08);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: #0F172A;
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
}

.footer-bottom .legal-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom .legal-links a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer-bottom .legal-links a:hover {
  color: var(--accent);
}

/* ============================================================
   ANIMATIONS (Intersection Observer triggers)
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.animate-fade-in.visible {
  opacity: 1;
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* ============================================================
   LEGAL PAGES (Privacy / Terms)
   ============================================================ */

.legal-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
  background: var(--bg);
}

.legal-hero {
  background: var(--primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  margin-top: var(--header-height);
}

.legal-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(6, 182, 212, 0.1));
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.legal-hero p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  position: relative;
  z-index: 1;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.legal-content section {
  margin-bottom: 3rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.5rem 0 0.75rem;
}

.legal-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ul li,
.legal-content ol li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #0891B2;
}

.legal-content strong {
  color: var(--primary);
  font-weight: 600;
}

.legal-content .last-updated {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.legal-content address {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    height: 350px;
    order: -1;
  }

  .card-stack {
    width: 260px;
    height: 320px;
  }

  .about-section .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual .color-block {
    max-width: 400px;
  }

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

  .process-visual {
    position: static;
  }

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

  .case-card:nth-child(n) {
    margin-top: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .stat-divider:nth-child(2),
  .stat-divider:nth-child(6) {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .hero-visual {
    height: 280px;
  }

  .card-stack {
    width: 220px;
    height: 280px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .services-scroll {
    padding: 1rem 1rem 2rem;
  }

  .service-card {
    flex: 0 0 290px;
  }

  .cases-masonry {
    grid-template-columns: 1fr;
  }

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

  .testimonials-section::before {
    background: linear-gradient(160deg, var(--bg) 0%, var(--bg) 65%, var(--primary) 65.5%, var(--primary) 100%);
  }

  .testimonials-section .section-header {
    max-width: 100%;
  }

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

  .contact-form-wrap {
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .legal-content {
    padding: 2rem 1.5rem;
  }
}
