/* ================================================
   Beyond Infinity — Stylesheet
   ================================================ */

:root {
  --navy:       #0B1B3E;
  --navy-mid:   #112548;
  --blue:       #1B4FD8;
  --blue-light: #3B6BF7;
  --gold:       #F0A500;
  --gold-light: #FFC933;
  --light:      #F4F7FF;
  --white:      #FFFFFF;
  --gray-100:   #F8FAFC;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --gray-700:   #374151;
  --gray-800:   #1E293B;
  --dark:       #1C2635;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(11, 27, 62, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 27, 62, 0.16);
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --t:         0.25s;
  --container: 1200px;
}

/* ================================================
   RESET & BASE
   ================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ================================================
   LAYOUT
   ================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { overflow: hidden; }

/* ================================================
   BUTTONS
   ================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              transform var(--t) var(--ease);
  white-space: nowrap;
  -webkit-appearance: none;
}

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

.btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(27, 79, 216, 0.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--lg   { padding: 16px 32px; font-size: 16px; border-radius: 10px; }
.btn--full { width: 100%; }

/* ================================================
   SECTION TYPOGRAPHY
   ================================================ */

.section-badge {
  display: inline-block;
  background: rgba(27, 79, 216, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  line-height: 1.75;
  max-width: 580px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle { margin: 0 auto; }

/* ================================================
   REVEAL ANIMATIONS
   ================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background var(--t) var(--ease),
              padding var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}

.nav.scrolled {
  background: rgba(28, 38, 53, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.nav__container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-right: auto;
  flex-shrink: 0;
}

.nav__logo-icon {
  background: var(--blue);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--t);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}

.nav__links a:hover        { color: var(--white); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__links a.active       { color: var(--white); }
.nav__links a.active::after { transform: scaleX(1); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  flex-shrink: 0;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================
   HERO
   ================================================ */

.hero {
  min-height: 100vh;
  background: linear-gradient(150deg, var(--navy) 0%, #0D2356 55%, #0F3272 100%);
  display: flex;
  flex-direction: column;
  padding-top: 90px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 72% 45%, rgba(27, 79, 216, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 15% 85%, rgba(240, 165, 0, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* subtle grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  flex: 1;
  padding-top: 48px;
  padding-bottom: 72px;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.28);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: dot-pulse 2.2s ease-in-out infinite;
}

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

/* Title */
.hero__title {
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 900;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.hero__title--accent {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

/* Subtitle */
.hero__subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.78;
  max-width: 510px;
  margin-bottom: 40px;
}

/* CTA row */
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Stats */
.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero__stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.hero__stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ------------------------------------------------
   Chart Widget (Hero Visual)
   ------------------------------------------------ */

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.chart-widget {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
}

.chart-widget__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-widget__title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.chart-widget__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #10B981;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-widget__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: dot-pulse 2s infinite;
}

/* Chart area */
.chart-widget__chart {
  position: relative;
  height: 128px;
  margin-bottom: 20px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 100%;
}

.chart-bar {
  flex: 1;
  height: var(--h);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: bar-rise 1s var(--ease) both;
  position: relative;
}

.chart-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  white-space: nowrap;
}

.chart-bar--accent { background: rgba(27, 79, 216, 0.6); }
.chart-bar--gold   { background: linear-gradient(to top, var(--gold), var(--gold-light)); }

.chart-bar:nth-child(1) { animation-delay: 0.0s; }
.chart-bar:nth-child(2) { animation-delay: 0.08s; }
.chart-bar:nth-child(3) { animation-delay: 0.16s; }
.chart-bar:nth-child(4) { animation-delay: 0.24s; }
.chart-bar:nth-child(5) { animation-delay: 0.32s; }
.chart-bar:nth-child(6) { animation-delay: 0.40s; }
.chart-bar:nth-child(7) { animation-delay: 0.48s; }
.chart-bar:nth-child(8) { animation-delay: 0.56s; }

@keyframes bar-rise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* SVG line overlay */
.chart-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chart-polyline {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: line-draw 1.8s 0.6s var(--ease) forwards;
}

@keyframes line-draw { to { stroke-dashoffset: 0; } }

/* KPI row */
.chart-widget__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-kpi strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.chart-kpi span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

/* Floating channel tags */
.channel-tags {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.channel-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(28, 38, 53, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.channel-tag svg { width: 13px; height: 13px; flex-shrink: 0; }

.channel-tag--1 {
  top: -18px; left: 16px;
  color: #60A5FA;
  animation: float-tag 3.5s ease-in-out infinite;
}

.channel-tag--2 {
  top: -18px; right: 16px;
  color: #6EE7B7;
  animation: float-tag 3.5s 1.1s ease-in-out infinite;
}

.channel-tag--3 {
  bottom: -18px; left: 50%; transform: translateX(-50%);
  color: var(--gold-light);
  animation: float-tag-center 3.5s 2.2s ease-in-out infinite;
}

@keyframes float-tag {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

@keyframes float-tag-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-6px); }
}

/* Scroll indicator */
.hero__scroll {
  text-align: center;
  padding-bottom: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.hero__scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid rgba(255, 255, 255, 0.25);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  transform: rotate(45deg);
  animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.35; }
  50%       { transform: rotate(45deg) translateY(5px); opacity: 0.75; }
}

/* ================================================
   SERVICES
   ================================================ */

.services {
  padding: 112px 0;
  background: var(--gray-100);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Row 2: card 4 in col 1, card 5 spans cols 2-3 */
.service-card:nth-child(4) { grid-column: 1; }
.service-card:nth-child(5) { grid-column: 2 / 4; }

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t) var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue);
}

/* Featured card (AEO) */
.service-card--featured {
  background: linear-gradient(140deg, var(--navy) 0%, #0E2860 100%);
  border-color: transparent;
}

.service-card--featured:hover { border-color: rgba(240, 165, 0, 0.5); }

.service-card--featured h3 { color: var(--white); }

.service-card--featured p  { color: rgba(255, 255, 255, 0.68); }

.service-card--featured .service-card__platforms li {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.service-card__badge-new {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-card__number {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.service-card--featured .service-card__number { color: var(--gold-light); }

/* Icon */
.service-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg { width: 22px; height: 22px; }

.service-card__icon--blue  { background: rgba(27, 79, 216, 0.1);  color: var(--blue); }
.service-card__icon--green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.service-card__icon--red   { background: rgba(239, 68, 68, 0.1);  color: #EF4444; }
.service-card__icon--amber { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.service-card__icon--gold  { background: rgba(240, 165, 0, 0.2);  color: var(--gold); }

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.service-card__platforms li {
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ================================================
   ABOUT
   ================================================ */

.about {
  padding: 112px 0;
  background: var(--white);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about__text {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.82;
  margin-bottom: 20px;
}

.about__text:last-of-type { margin-bottom: 32px; }

.about__pillars {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pillar {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pillar__icon {
  width: 26px;
  height: 26px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar__icon svg { width: 13px; height: 13px; }

.pillar strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.pillar p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.stat-box {
  background: var(--light);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--t), box-shadow var(--t);
}

.stat-box:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.stat-box__number {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-box__label {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Team panel */
.team-panel {
  background: var(--light);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}

.team-panel__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.team-member + .team-member {
  border-top: 1px solid var(--gray-200);
}

.team-member__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.team-member strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.team-member span {
  font-size: 12px;
  color: var(--gray-600);
}

/* ================================================
   CASE STUDIES
   ================================================ */

.cases {
  padding: 112px 0;
  background: var(--gray-100);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease);
}

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

.case-card__header {
  padding: 24px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.case-card__header--mining { background: linear-gradient(135deg, #0B3B2E 0%, #0D5238 100%); }
.case-card__header--tech   { background: linear-gradient(135deg, #0F1B5E 0%, #1A3898 100%); }
.case-card__header--bio    { background: linear-gradient(135deg, #3B0764 0%, #6D28D9 100%); }

.case-card__tag {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.case-card__channels {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.case-card__channels span {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.case-card__body { padding: 24px; }

.case-card__body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-card__body p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.72;
  margin-bottom: 24px;
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1.5px solid var(--gray-200);
}

.metric strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}

.metric span {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.4;
  font-weight: 500;
}

/* ================================================
   CONTACT
   ================================================ */

.contact {
  padding: 112px 0;
  background: var(--white);
}

.contact__container {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact__info .section-title { font-size: 36px; }

.contact__info > p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.78;
  margin: 18px 0 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  color: var(--gray-800);
}

.contact__detail svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
  flex-shrink: 0;
}

/* Form */
.contact__form {
  background: var(--gray-100);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(27, 79, 216, 0.12);
}

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

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  padding: 8px 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 7px;
  transition: border-color var(--t), background var(--t);
  user-select: none;
}

.checkbox-label:hover { border-color: var(--blue); }

.checkbox-label:has(input:checked) {
  border-color: var(--blue);
  background: rgba(27, 79, 216, 0.05);
  color: var(--blue);
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--blue);
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

/* Submit */
.contact__form .btn--primary { margin-top: 6px; }

.contact__form.sending .btn--primary {
  background: var(--gray-400);
  border-color: var(--gray-400);
  pointer-events: none;
}

.contact__form.success .btn--primary {
  background: #059669;
  border-color: #059669;
}

.form-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
  line-height: 1.5;
}

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

.footer { background: var(--dark); }

.footer__container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  padding-top: 64px;
  padding-bottom: 52px;
}

.footer__logo {
  margin-bottom: 18px;
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  max-width: 300px;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer__links h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--t);
}

.footer__links a:hover { color: var(--white); }

.footer__address {
  margin-top: 20px;
  font-style: normal;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.footer__impressum {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
}

.footer__impressum h4 {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__impressum p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  max-width: 720px;
}

.footer__impressum p + p { margin-top: 8px; }

.footer__impressum a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}

.footer__impressum a:hover { color: rgba(255, 255, 255, 0.75); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

/* ================================================
   RESPONSIVE — TABLET (≤1024px)
   ================================================ */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero__visual { order: -1; }

  .chart-widget { max-width: 420px; margin: 0 auto; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(4) { grid-column: auto; }
  .service-card:nth-child(5) { grid-column: 1 / -1; }

  .about__container { grid-template-columns: 1fr; gap: 48px; }

  .cases__grid { grid-template-columns: 1fr 1fr; }
  .cases__grid .case-card:last-child { grid-column: 1 / -1; }

  .contact__container { grid-template-columns: 1fr; gap: 48px; }

  .footer__container { grid-template-columns: 1fr; gap: 40px; }
}

/* ================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================ */

@media (max-width: 768px) {
  /* Nav */
  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(28, 38, 53, 0.98);
    padding: 20px 24px 28px;
    gap: 22px;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav__links.open a { font-size: 17px; }

  /* Hero */
  .hero__stats   { flex-direction: column; gap: 20px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Services */
  .services__grid { grid-template-columns: 1fr; }
  .service-card:nth-child(5) { grid-column: auto; }

  /* Cases */
  .cases__grid { grid-template-columns: 1fr; }
  .cases__grid .case-card:last-child { grid-column: auto; }
  .case-card__metrics { grid-template-columns: repeat(3, 1fr); }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px 20px; }

  /* About */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__container { gap: 32px; }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ================================================ */

@media (max-width: 480px) {
  .stats-grid           { grid-template-columns: 1fr; }
  .footer__links        { grid-template-columns: 1fr; }
  .case-card__metrics   { grid-template-columns: 1fr; gap: 10px; }
  .chart-widget         { padding: 20px; }
  .channel-tag--3       { display: none; }
  .section-header       { margin-bottom: 40px; }
}

/* ================================================
   LANGUAGE SWITCHER
   ================================================ */

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  transition: background var(--t), border-color var(--t);
  white-space: nowrap;
}

.lang-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.lang-switcher__chevron {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  transition: transform var(--t) var(--ease);
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  list-style: none;
  min-width: 168px;
  overflow: hidden;
  padding: 4px 0;
  z-index: 200;
}

.lang-switcher__dropdown.open {
  display: block;
}

.lang-switcher__dropdown li { margin: 0; }

.lang-switcher__dropdown button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 16px;
  text-align: left;
  transition: background var(--t), color var(--t);
  width: 100%;
}

.lang-switcher__dropdown button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.lang-switcher__dropdown button.active {
  color: var(--gold);
  font-weight: 700;
}
