/* =================================================================
   UPBYTE® PREMIUM MOBILE UX – styles_premium.css
   Implements: Hero Visual Break, Stats Refactor, Badge Modernize,
   Proof Injection, Scroll Flow Engineering
   
   Design Reference: Linear.app / Stripe / Vercel / Notion
   Zero layout destruction. Mobile-first. GPU-friendly.
   ================================================================= */


/* -----------------------------------------------------------------
   TASK 1: HERO VISUAL BREAK
   Subtle integration/flow pattern below hero badges.
   Pure CSS + inline SVG approach. 140–180px.
   Signals: "Software gebaut hier"
   ----------------------------------------------------------------- */

/* Hidden - replaced by interactive-network canvas */
.hero-visual-break {
  display: none;
}

.hero-visual-break svg {
  width: 100%;
  height: 100%;
}

/* Subtle fade-in on scroll – GPU accelerated */
.hero-visual-break {
  animation: heroBreakFadeIn 1.2s ease-out both;
  animation-delay: 0.4s;
}

@keyframes heroBreakFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

/* Mobile: slightly smaller */
@media (max-width: 575.98px) {
  .hero-visual-break {
    height: 120px;
    margin-top: 32px;
  }
}


/* -----------------------------------------------------------------
   TASK 2: STATS SECTION – MOBILE PREMIUM REFACTOR
   Hero .live-stats: compact inline with soft dividers
   Ergebnis section stats: 2-column tight grid on mobile
   ----------------------------------------------------------------- */

/* --- Hero Stats (3 items) --- */

.live-stats {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-bottom: 32px;
}

.live-stats .stat {
  position: relative;
  padding: 16px 24px;
  text-align: center;
}

/* Soft vertical dividers between stats */
.live-stats .stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 98, 114, 0.15) 50%,
    transparent 100%
  );
}

.live-stats .stat-number {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1F2933;
  letter-spacing: -0.01em;
}

.live-stats .stat-label {
  display: block;
  font-size: 0.8rem;
  color: #616E7C;
  margin-top: 2px;
}

/* Mobile: stack vertically but compact inline-style */
@media (max-width: 575.98px) {
  .live-stats {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .live-stats .stat {
    padding: 10px 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .live-stats .stat-number {
    font-size: 0.9rem;
  }

  .live-stats .stat-label {
    font-size: 0.78rem;
    margin-top: 0;
  }

  /* Horizontal dividers on mobile instead of vertical */
  .live-stats .stat + .stat::before {
    top: 0;
    left: 15%;
    width: 70%;
    height: 1px;
  }
}

/* Tablet: keep horizontal but tighter */
@media (min-width: 576px) and (max-width: 991.98px) {
  .live-stats .stat {
    padding: 12px 16px;
  }
}


/* --- Ergebnis Section Stats (4 items) --- */

.ergebnis-stats .stat {
  padding: 20px 12px;
}

.ergebnis-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #006272;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ergebnis-stats .stat-label {
  display: block;
  font-size: 0.85rem;
  color: #616E7C;
  margin-top: 4px;
  line-height: 1.4;
}

/* Mobile 2-column grid */
@media (max-width: 575.98px) {
  .ergebnis-stats .stat {
    padding: 16px 8px;
  }

  .ergebnis-stats .stat-number {
    font-size: 1.25rem;
  }

  .ergebnis-stats .stat-label {
    font-size: 0.78rem;
  }
}


/* -----------------------------------------------------------------
   TASK 3: TRUST BADGES – MODERN CHIP ROW
   2x2 grid on mobile, horizontal scrollable on small phones.
   Modern product UI feel (not marketing badge list).
   ----------------------------------------------------------------- */

.guarantee-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.guarantee-badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #3E4C59;
  background: #F5F7FA;
  border: 1px solid rgba(0, 98, 114, 0.08);
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.guarantee-badges .badge:hover {
  background: #EDF2F7;
  border-color: rgba(0, 98, 114, 0.15);
}

/* Mobile: 2x2 grid */
@media (max-width: 575.98px) {
  .guarantee-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
    margin-top: 24px;
  }

  .guarantee-badges .badge {
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
    padding: 8px 10px;
    white-space: normal;
    line-height: 1.3;
  }
}

/* Tiny phones: still 2 columns but smaller text */
@media (max-width: 359.98px) {
  .guarantee-badges .badge {
    font-size: 0.68rem;
    padding: 6px 8px;
  }
}


/* -----------------------------------------------------------------
   TASK 4: PROOF INJECTION – ABSTRACT UI WIREFRAME
   Pure CSS "software proof" visual. Looks like a blurred, abstract
   dashboard/interface wireframe. Signals competence without
   showing actual screenshots.
   ----------------------------------------------------------------- */

.proof-visual {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
}

.proof-wireframe {
  position: relative;
  background: #FAFBFC;
  border: 1px solid rgba(0, 98, 114, 0.08);
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}

/* Abstract sidebar */
.proof-wireframe::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  background: linear-gradient(180deg, #F0F4F8 0%, #E4E9EF 100%);
  border-right: 1px solid rgba(0, 98, 114, 0.06);
  border-radius: 12px 0 0 12px;
}

/* Abstract header bar */
.proof-wireframe::after {
  content: '';
  position: absolute;
  left: 56px;
  top: 0;
  right: 0;
  height: 36px;
  background: #F5F7FA;
  border-bottom: 1px solid rgba(0, 98, 114, 0.06);
  border-radius: 0 12px 0 0;
}

.proof-wireframe-inner {
  position: relative;
  margin-left: 56px;
  margin-top: 36px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

/* Abstract data rows */
.proof-row {
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #E4E9EF 0%, #F0F4F8 100%);
}

.proof-row:nth-child(1) { width: 85%; }
.proof-row:nth-child(2) { width: 70%; }
.proof-row:nth-child(3) { width: 92%; }
.proof-row:nth-child(4) { width: 60%; }

/* Abstract status dots in header */
.proof-dots {
  position: absolute;
  top: 10px;
  right: 16px;
  display: flex;
  gap: 6px;
  z-index: 1;
}

.proof-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D9E2EC;
}

.proof-dots span:first-child { background: #006272; opacity: 0.4; }
.proof-dots span:nth-child(2) { background: #006272; opacity: 0.25; }
.proof-dots span:last-child { background: #D9E2EC; }

/* Sidebar nav items */
.proof-nav {
  position: absolute;
  left: 12px;
  top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1;
}

.proof-nav span {
  width: 32px;
  height: 6px;
  border-radius: 3px;
  background: #D9E2EC;
  display: block;
}

.proof-nav span:first-child { background: rgba(0, 98, 114, 0.25); }

/* Caption under wireframe */
.proof-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #9AA5B4;
  margin-top: 12px;
  font-style: italic;
}

/* Mobile: slightly smaller */
@media (max-width: 575.98px) {
  .proof-visual {
    padding: 16px;
  }
  
  .proof-wireframe::before {
    width: 40px;
  }

  .proof-wireframe-inner {
    margin-left: 40px;
    padding: 8px;
    min-height: 60px;
  }

  .proof-nav {
    left: 8px;
  }

  .proof-nav span {
    width: 24px;
  }

  .proof-row {
    height: 8px;
  }
}


/* -----------------------------------------------------------------
   TASK 5: SCROLL FLOW ENGINEERING
   Visual rhythm breaks between sections.
   Subtle gradient transitions + micro visual elements.
   Breaks "monotone scroll fatigue".
   ----------------------------------------------------------------- */

/* --- Section Rhythm Dividers --- */

/* Gradient transition between hero and results */
.rhythm-divider {
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 98, 114, 0.12) 30%,
    rgba(0, 98, 114, 0.12) 70%,
    transparent 100%
  );
}

/* Wider, more visible variant */
.rhythm-divider--accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 98, 114, 0.08) 20%,
    rgba(0, 98, 114, 0.15) 50%,
    rgba(0, 98, 114, 0.08) 80%,
    transparent 100%
  );
}

/* --- Section Breathing Space --- */

/* Add subtle padding variation between sections for rhythm */
.section-breathe-sm { padding-top: 40px; padding-bottom: 40px; }
.section-breathe-md { padding-top: 64px; padding-bottom: 64px; }
.section-breathe-lg { padding-top: 80px; padding-bottom: 80px; }

@media (max-width: 575.98px) {
  .section-breathe-sm { padding-top: 28px; padding-bottom: 28px; }
  .section-breathe-md { padding-top: 44px; padding-bottom: 44px; }
  .section-breathe-lg { padding-top: 56px; padding-bottom: 56px; }
}


/* --- Micro Visual Break between About + KI Section --- */

.micro-visual-break {
  text-align: center;
  padding: 20px 0;
}

.micro-visual-break svg {
  width: 80px;
  height: 2px;
  opacity: 0.3;
}


/* -----------------------------------------------------------------
   KI & DATA SECTION – PREMIUM REFINEMENT
   Task 1: Icon hierarchy (already correct at 36px)
   Task 2: Micro depth layer behind cards
   Task 3: Software reality signals (engineering micro-visuals)
   Task 4: Section rhythm (headline → divider → cards)
   ----------------------------------------------------------------- */

/* --- Section wrapper: subtle grid background pattern --- */

.tech-section {
  position: relative;
  overflow: hidden;
}

/* Micro dot-grid background – "engineering paper" feel
   Only visible subconsciously. Opacity 3%. */
.tech-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(0, 98, 114, 0.035) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle radial depth glow behind card area */
.tech-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 98, 114, 0.025) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

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

/* --- Rhythm divider between headline and cards --- */

.tech-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 48px;
  max-width: 200px;
}

.tech-section-divider::before,
.tech-section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 98, 114, 0.12) 100%
  );
}

.tech-section-divider::after {
  background: linear-gradient(
    90deg,
    rgba(0, 98, 114, 0.12) 0%,
    transparent 100%
  );
}

/* Center dot in divider */
.tech-section-divider span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 98, 114, 0.2);
  flex-shrink: 0;
}


/* --- Tech Card: depth layer + refinement --- */

.tech-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 98, 114, 0.06);
  border-radius: 12px;
  padding: 32px 28px;
  height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

/* Subtle inner radial glow – feels like depth without being visible */
.tech-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background: radial-gradient(
    circle,
    rgba(0, 98, 114, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.tech-card:hover {
  border-color: rgba(0, 98, 114, 0.12);
  box-shadow: 0 2px 12px rgba(0, 98, 114, 0.04);
}

.tech-card > * {
  position: relative;
  z-index: 1;
}

.tech-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
}


/* --- Icon: subtle background depth --- */

.tech-card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 98, 114, 0.06);
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Micro glow ring behind icon – barely visible */
.tech-card-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: radial-gradient(
    circle,
    rgba(0, 98, 114, 0.04) 0%,
    transparent 70%
  );
  z-index: -1;
}

.tech-card-icon svg {
  width: 18px;
  height: 18px;
  max-width: 18px;
  max-height: 18px;
  color: #006272;
  flex-shrink: 0;
}


/* --- Software Reality Signal: LIVE UI PANELS --- */
/* Concrete "software is running" mini-panels inside tech cards.
   Not wireframes. Not placeholders. Recognizable system UI. */


/* === SHARED: Mini Panel Chrome === */

.live-panel {
  margin-top: 24px;
  border-radius: 8px;
  border: 1px solid rgba(0, 98, 114, 0.08);
  background: #fff;
  overflow: hidden;
  font-size: 0.78rem;
}

.live-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #F7F9FC;
  border-bottom: 1px solid rgba(0, 98, 114, 0.06);
}

.live-panel-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #52606D;
  letter-spacing: 0.02em;
}

.live-panel-badge {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.live-panel-badge--ok {
  color: #2F855A;
  background: rgba(47, 133, 90, 0.08);
}

.live-panel-badge--active {
  color: #006272;
  background: rgba(0, 98, 114, 0.08);
}

.live-panel-body {
  padding: 10px 14px;
}


/* === KI PANEL: Document Recognition List === */

.doc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
}

/* Checkmark circle */
.doc-check {
  width: 16px;
  height: 16px;
  max-width: 16px;
  max-height: 16px;
  border-radius: 50%;
  background: rgba(47, 133, 90, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.doc-check svg {
  width: 10px;
  height: 10px;
  max-width: 10px;
  max-height: 10px;
  color: #2F855A;
}

.doc-label {
  color: #3E4C59;
  font-size: 0.78rem;
}

.doc-type {
  margin-left: auto;
  font-size: 0.65rem;
  color: #9AA5B4;
  font-family: "DM Sans", monospace;
}

/* Panel footer with pipeline status */
.live-panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-top: 1px solid rgba(0, 98, 114, 0.05);
  background: #FAFBFC;
}

.live-panel-footer .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2F855A;
  animation: statusPulse 2.5s ease-in-out infinite;
}

.live-panel-footer .status-text {
  font-size: 0.68rem;
  color: #616E7C;
  letter-spacing: 0.01em;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}


/* === TRUST PANEL: Security Status === */

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 98, 114, 0.03);
}

.status-row:last-child {
  border-bottom: none;
}

.status-key {
  font-size: 0.72rem;
  color: #7B8794;
}

.status-value {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3E4C59;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Tiny inline status indicator */
.status-value .status-ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2F855A;
  flex-shrink: 0;
}

/* Trust badge chips in footer */
.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid rgba(0, 98, 114, 0.05);
  background: #FAFBFC;
}

.trust-chip {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  color: #006272;
  background: rgba(0, 98, 114, 0.06);
  border: 1px solid rgba(0, 98, 114, 0.08);
}


/* === MOBILE === */

@media (max-width: 575.98px) {
  .live-panel {
    margin-top: 20px;
    font-size: 0.75rem;
  }

  .live-panel-header {
    padding: 7px 12px;
  }

  .live-panel-body {
    padding: 8px 12px;
  }

  .doc-item {
    gap: 6px;
    padding: 4px 0;
  }

  .doc-label {
    font-size: 0.75rem;
  }

  .status-key,
  .status-value {
    font-size: 0.7rem;
  }

  .trust-chips {
    padding: 8px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-panel-footer .status-dot {
    animation: none;
    opacity: 0.7;
  }
}

/* --- Tech card + section mobile --- */

@media (max-width: 575.98px) {
  .tech-card {
    padding: 24px 20px;
  }

  .tech-section-divider {
    margin-bottom: 32px;
    max-width: 160px;
  }
}

@media (max-width: 991.98px) {
  .tech-section::before {
    background-size: 20px 20px;
  }
}


/* -----------------------------------------------------------------
   BRANCHEN SECTION – SOFTWARE VISUAL REPLACEMENT
   Replaces hospitality stock photo with pure CSS/SVG
   process automation dashboard wireframe.
   Hover overlay: "Automatisierung aktiv" signal.
   ----------------------------------------------------------------- */

/* --- Section wrapper refinement --- */

.branchen-section {
  position: relative;
}

/* --- Left column: text refinement --- */

.branchen-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.branchen-text .lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: #1F2933;
  margin-bottom: 16px;
  line-height: 1.5;
}

.branchen-text .text-gray {
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Micro capability tags */
.branchen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.branchen-tags span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #52606D;
  background: rgba(0, 98, 114, 0.04);
  border: 1px solid rgba(0, 98, 114, 0.08);
  border-radius: 100px;
  letter-spacing: 0.01em;
}

/* Tiny dot before tag text */
.branchen-tags span::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 98, 114, 0.3);
  flex-shrink: 0;
}


/* --- Right column: Software Process Visual --- */

.software-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 98, 114, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* --- Dashboard chrome: title bar --- */

.sw-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #F7F9FC;
  border-bottom: 1px solid rgba(0, 98, 114, 0.06);
}

.sw-titlebar-dots {
  display: flex;
  gap: 5px;
}

.sw-titlebar-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9E2EC;
}

.sw-titlebar-dots span:first-child { background: rgba(0, 98, 114, 0.2); }

.sw-titlebar-label {
  font-size: 0.68rem;
  color: #9AA5B4;
  letter-spacing: 0.02em;
  margin-left: auto;
}

/* --- Dashboard body --- */

.sw-body {
  display: flex;
  min-height: 200px;
}

/* Sidebar navigation */
.sw-sidebar {
  width: 48px;
  background: #F7F9FC;
  border-right: 1px solid rgba(0, 98, 114, 0.05);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sw-sidebar-item {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(0, 98, 114, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-sidebar-item--active {
  background: rgba(0, 98, 114, 0.1);
}

.sw-sidebar-item span {
  width: 12px;
  height: 2px;
  background: rgba(0, 98, 114, 0.2);
  border-radius: 1px;
}

.sw-sidebar-item--active span {
  background: rgba(0, 98, 114, 0.4);
}

/* Main content area */
.sw-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Dashboard content: labeled data rows --- */

.sw-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(0, 98, 114, 0.015);
}

.sw-row--header {
  background: transparent;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 98, 114, 0.05);
}

/* Text labels for concrete data */
.sw-label {
  font-size: 0.72rem;
  color: #3E4C59;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sw-label--header {
  font-size: 0.62rem;
  color: #9AA5B4;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.sw-label--id {
  width: 28px;
  font-family: "DM Sans", monospace;
  font-size: 0.65rem;
  color: #9AA5B4;
}

.sw-label--name {
  font-weight: 500;
}

.sw-label--date {
  width: 52px;
  font-size: 0.65rem;
  color: #7B8794;
  text-align: right;
}

/* Status indicator */
.sw-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: auto;
}

.sw-status--green { background: rgba(40, 167, 69, 0.5); }
.sw-status--amber { background: rgba(255, 193, 7, 0.5); }
.sw-status--blue { background: rgba(0, 98, 114, 0.3); }

/* --- Process flow visual at bottom of dashboard --- */

.sw-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 10px 12px;
  margin-top: auto;
  border-top: 1px solid rgba(0, 98, 114, 0.04);
}

.sw-flow-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 98, 114, 0.06);
  position: relative;
}

.sw-flow-node span {
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 98, 114, 0.15);
}

.sw-flow-node--active {
  background: rgba(0, 98, 114, 0.12);
}

.sw-flow-node--active span {
  background: rgba(0, 98, 114, 0.3);
}

/* Arrow connector between nodes */
.sw-flow-arrow {
  width: 20px;
  height: 1px;
  background: rgba(0, 98, 114, 0.12);
  position: relative;
}

.sw-flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 0;
  height: 0;
  border-left: 4px solid rgba(0, 98, 114, 0.15);
  border-top: 2.5px solid transparent;
  border-bottom: 2.5px solid transparent;
}


/* --- Hover Overlay: "Automatisierung aktiv" --- */

.sw-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
  border-radius: 12px;
}

.software-visual:hover .sw-hover-overlay {
  opacity: 1;
}

.sw-hover-overlay .sw-hover-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #006272;
  background: rgba(0, 98, 114, 0.06);
  border: 1px solid rgba(0, 98, 114, 0.12);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* Pulsing dot in badge */
.sw-hover-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #006272;
  opacity: 0.6;
  animation: swPulse 2s ease-in-out infinite;
}

@keyframes swPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 0.8; transform: scale(1.1); }
}


/* --- Caption below visual --- */

.sw-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #9AA5B4;
  margin-top: 12px;
  font-style: italic;
}


/* --- Mobile: visual below text, tighter --- */

@media (max-width: 767.98px) {
  .branchen-text {
    margin-bottom: 32px;
  }

  .sw-body {
    min-height: 160px;
  }

  .sw-sidebar {
    width: 36px;
  }

  .sw-sidebar-item {
    width: 20px;
    height: 20px;
    border-radius: 4px;
  }

  .sw-sidebar-item span {
    width: 10px;
  }

  .sw-content {
    padding: 12px;
    gap: 8px;
  }

  .sw-row {
    padding: 6px 8px;
    gap: 6px;
  }

  .sw-label { font-size: 0.68rem; }
  .sw-label--id { width: 24px; font-size: 0.6rem; }
  .sw-label--date { width: 40px; font-size: 0.6rem; }

  .sw-flow-node {
    width: 28px;
    height: 16px;
  }

  .sw-flow-arrow {
    width: 14px;
  }

  .branchen-tags span {
    font-size: 0.68rem;
    padding: 4px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw-hover-dot {
    animation: none;
    opacity: 0.6;
  }

  .software-visual:hover .sw-hover-overlay {
    opacity: 1;
    transition: none;
  }
}

.pricing-feature {
  position: relative;
  padding: 24px 20px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.pricing-feature:hover {
  background: rgba(0, 98, 114, 0.02);
}

/* Soft dividers between pricing features */
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 768px) {
  .pricing-features {
    flex-direction: row;
    gap: 0;
  }
  
  .pricing-feature {
    flex: 1;
    position: relative;
  }

  .pricing-feature + .pricing-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 98, 114, 0.1) 50%,
      transparent 100%
    );
  }
}


/* --- Success Story Cards: premium refinement --- */

.success-story {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.success-story:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}


/* --- Contact Section: subtle top accent --- */

#contact-section {
  position: relative;
}

#contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 98, 114, 0.12) 50%,
    transparent 100%
  );
}


/* -----------------------------------------------------------------
   GENERAL: MOBILE PREMIUM POLISH
   Fine-tuning for overall premium perception
   ----------------------------------------------------------------- */

/* Smoother section transitions */
.page-section {
  position: relative;
}

/* Premium focus state for form inputs */
.contact-form-section .form-control:focus {
  border-color: rgba(0, 98, 114, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.08);
}

/* CTA button micro-enhancement */
.btn-primary {
  transition: all 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* Contact cards: subtle hover lift */
.contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}


/* -----------------------------------------------------------------
   PERFORMANCE: Reduce Motion for accessibility
   ----------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hero-visual-break {
    animation: none;
    opacity: 0.85;
  }

  .success-story:hover,
  .contact-card:hover {
    transform: none;
  }

  .btn-primary:active {
    transform: none;
  }
}


/* =================================================================
   LIVE AUTOMATION FLOW – Scroll-driven SVG overlay
   Position: fixed viewport overlay, pointer-events none.
   Path draws progressively on scroll. Nodes activate per section.
   ================================================================= */

.flow-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1s ease 0.6s;
}

.flow-wrap.flow--ready {
  opacity: 1;
}

.flow-svg {
  display: block;
}

/* Labels */
.fl-label {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: rgba(0, 98, 114, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ── Mobile ── */

@media (max-width: 767.98px) {
  .fl-label {
    font-size: 7px;
  }
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .flow-wrap {
    transition: none;
    opacity: 1;
  }
}


/* =================================================================
   PHASE 1: AMBIENT SITE LIFE
   Ultra-subtle background motion - site never feels static
   GPU-only: transform + opacity | CPU target: <3%
   ================================================================= */

/* Ambient gradient layer - very slow drift */
.ambient-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.ambient-layer.ambient--ready {
  opacity: 1;
}

/* Primary gradient - ultra slow movement */
.ambient-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(0, 98, 114, 0.015) 0%,
    transparent 50%
  ),
  radial-gradient(
    ellipse at 70% 80%,
    rgba(0, 98, 114, 0.012) 0%,
    transparent 45%
  );
  animation: ambientDrift 120s ease-in-out infinite;
  will-change: transform;
}

/* Secondary shimmer - very subtle light movement */
.ambient-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 50%,
    transparent 100%
  );
  animation: ambientShimmer 25s ease-in-out infinite;
  will-change: transform;
}

@keyframes ambientDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(2%, 1%) rotate(0.5deg);
  }
  50% {
    transform: translate(-1%, 2%) rotate(-0.3deg);
  }
  75% {
    transform: translate(1%, -1%) rotate(0.2deg);
  }
}

@keyframes ambientShimmer {
  0%, 100% {
    transform: translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(400%);
    opacity: 0;
  }
}

/* Mobile: Reduce ambient intensity */
@media (max-width: 767.98px) {
  .ambient-gradient {
    animation-duration: 180s;
    opacity: 0.6;
  }
  .ambient-shimmer {
    display: none;
  }
}

/* Reduced motion: Disable ambient layer */
@media (prefers-reduced-motion: reduce) {
  .ambient-layer {
    display: none;
  }
}

/* Pause when document hidden */
.document-hidden .ambient-gradient,
.document-hidden .ambient-shimmer {
  animation-play-state: paused;
}


/* =================================================================
   VISUAL ENHANCEMENTS - Phase 2 Upgrade
   GPU-friendly animations, prefers-reduced-motion compliant
   ================================================================= */

/* ── Hero Status Micro Blocks ── */

.hero-status-micro {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
  opacity: 0;
  animation: heroStatusFadeIn 0.8s ease-out 1s forwards;
}

.status-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #616E7C;
  letter-spacing: 0.02em;
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2F855A;
  flex-shrink: 0;
}

.status-indicator--ok {
  background: #2F855A;
}

.status-indicator--pulse {
  animation: microPulse 1.8s ease-in-out infinite;
}

.status-indicator--sync {
  background: transparent;
  border: 1.5px solid var(--up-primary, #006272);
  border-top-color: transparent;
  animation: microSpin 1.2s linear infinite;
}

@keyframes microPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

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

@keyframes heroStatusFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.9; transform: translateY(0); }
}

@media (max-width: 575.98px) {
  .hero-status-micro {
    gap: 16px;
    flex-wrap: wrap;
  }
  .status-block {
    font-size: 0.68rem;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-indicator--pulse,
  .status-indicator--sync {
    animation: none;
  }
  .hero-status-micro {
    animation: none;
    opacity: 0.9;
  }
}


/* ── Panel Progress Bar ── */

.panel-progress {
  height: 2px;
  background: rgba(0, 98, 114, 0.06);
  border-radius: 1px;
  margin-top: 12px;
  overflow: hidden;
}

.panel-progress-bar {
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 98, 114, 0.35) 50%,
    transparent 100%
  );
  animation: progressScan 1.8s ease-in-out infinite;
}

@keyframes progressScan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

@media (prefers-reduced-motion: reduce) {
  .panel-progress-bar {
    animation: none;
    opacity: 0.5;
    transform: translateX(100%);
  }
}


/* ── Scroll-Triggered Section Animations ── */

.ergebnis-stats .stat,
.tech-card,
.success-story,
.pricing-feature,
.contact-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.ergebnis-stats .stat.section-visible,
.tech-card.section-visible,
.success-story.section-visible,
.pricing-feature.section-visible,
.contact-card.section-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ergebnis-stats .stat,
  .tech-card,
  .success-story,
  .pricing-feature,
  .contact-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ── Branchen Row Highlight Animation ── */

.software-visual:not(:hover) .sw-row:not(.sw-row--header) {
  animation: rowHighlight 6s ease-in-out infinite;
}

.software-visual .sw-row:nth-child(2) { animation-delay: 0s; }
.software-visual .sw-row:nth-child(3) { animation-delay: 1.5s; }
.software-visual .sw-row:nth-child(4) { animation-delay: 3s; }
.software-visual .sw-row:nth-child(5) { animation-delay: 4.5s; }

@keyframes rowHighlight {
  0%, 20%, 100% { background: rgba(0, 98, 114, 0.012); }
  10% { background: rgba(0, 98, 114, 0.055); }
}

@media (prefers-reduced-motion: reduce) {
  .software-visual .sw-row {
    animation: none !important;
  }
}


/* =================================================================
   FOCUS STATES & KEYBOARD UX
   Premium-grade accessibility without ugly browser defaults
   ================================================================= */

/* Base focus ring - visible but elegant */
:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.25);
  border-radius: inherit;
}

/* Buttons - stronger focus */
.btn:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.35), 0 0 0 6px rgba(0, 98, 114, 0.1);
}

/* Links - underline focus */
a:focus-visible:not(.btn) {
  outline: none;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-color: var(--up-primary, #006272);
  text-underline-offset: 3px;
}

/* Cards - subtle lift on focus */
.tech-card:focus-within,
.success-story:focus-within,
.stat:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 98, 114, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Form inputs - clean focus */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--up-primary, #006272);
  box-shadow: 0 0 0 3px rgba(0, 98, 114, 0.12);
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--up-primary, #006272);
  color: #fff;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-to-content:focus {
  top: 0;
}


/* =================================================================
   TECH SECTION ICON FIX
   Icons were too large/dominant - reducing to proper scale
   ================================================================= */

.tech-card-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.tech-card-icon svg {
  width: 22px;
  height: 22px;
}

/* Ensure consistent icon stroke */
.tech-card h3 {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* =================================================================
   VISIBILITY-AWARE ANIMATIONS
   Pause CSS animations when tab is not visible
   ================================================================= */

/* Applied via JS when document is hidden */
.document-hidden .panel-progress-bar,
.document-hidden .status-indicator--pulse,
.document-hidden .status-indicator--sync,
.document-hidden .sw-row {
  animation-play-state: paused !important;
}

/* Pause hero status when out of viewport */
.hero-status-micro:not(.in-viewport) .status-indicator--pulse,
.hero-status-micro:not(.in-viewport) .status-indicator--sync {
  animation-play-state: paused;
}


/* =================================================================
   PHASE 4: MICRO INTERACTIONS - ELITE LEVEL
   Premium hover states, subtle sheen, depth shifts
   ================================================================= */

/* Button micro-sheen on hover */
.btn,
.btn-primary,
.btn-mod {
  position: relative;
  overflow: hidden;
}

.btn::before,
.btn-primary::before,
.btn-mod::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
  pointer-events: none;
}

.btn:hover::before,
.btn-primary:hover::before,
.btn-mod:hover::before {
  left: 100%;
}

/* Card hover elevation - subtle lift + shadow depth */
.tech-card,
.success-story,
.stat,
.pricing-feature {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease-out;
}

.tech-card:hover,
.success-story:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(0, 98, 114, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.04);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(0, 98, 114, 0.10),
    0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Badge micro-interaction */
.badge,
.guarantee-badges .badge {
  transition:
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease,
    background-color 0.2s ease;
}

.badge:hover,
.guarantee-badges .badge:hover {
  transform: translateY(-1px) scale(1.02);
}

/* Live panel status dot - enhanced pulse */
.live-panel .status-dot {
  position: relative;
}

.live-panel .status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  transform: translate(-50%, -50%);
  animation: statusRing 2.5s ease-out infinite;
  opacity: 0;
}

@keyframes statusRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

/* Software visual hover - enhanced depth */
.software-visual {
  transition: box-shadow 0.4s ease;
}

.software-visual:hover {
  box-shadow:
    0 12px 40px rgba(0, 98, 114, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Section divider subtle reveal */
.rhythm-divider {
  opacity: 0.6;
  transition: opacity 0.8s ease;
}

.rhythm-divider.in-viewport {
  opacity: 1;
}

/* Runtime reduced motion - disable all micro interactions */
.reduce-motion-runtime .btn::before,
.reduce-motion-runtime .btn-primary::before,
.reduce-motion-runtime .btn-mod::before {
  display: none;
}

.reduce-motion-runtime .tech-card:hover,
.reduce-motion-runtime .success-story:hover,
.reduce-motion-runtime .stat:hover,
.reduce-motion-runtime .badge:hover {
  transform: none;
}

.reduce-motion-runtime .live-panel .status-dot::after {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .btn-primary::before,
  .btn-mod::before {
    display: none;
  }

  .tech-card:hover,
  .success-story:hover,
  .stat:hover,
  .badge:hover {
    transform: none;
  }

  .live-panel .status-dot::after {
    animation: none;
  }

  @keyframes statusRing {
    0%, 100% { opacity: 0; }
  }
}


/* =================================================================
   GEO/AI DISCOVERY SECTION STYLES
   Optimized for LLM retrieval and semantic clarity
   ================================================================= */

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-item {
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 98, 114, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 4px 20px rgba(0, 98, 114, 0.08);
  transform: translateY(-2px);
}

.service-item strong {
  display: block;
  font-size: 1.05rem;
  color: var(--up-primary, #006272);
  margin-bottom: 8px;
}

.service-item p {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Check List (positive) */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #374151;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #059669;
  font-weight: 700;
  font-size: 1rem;
}

/* X List (negative) */
.x-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.x-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #6b7280;
}

.x-list li::before {
  content: '✗';
  position: absolute;
  left: 0;
  top: 0;
  color: #9ca3af;
  font-weight: 700;
  font-size: 1rem;
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.faq-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(0, 98, 114, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 2px 12px rgba(0, 98, 114, 0.06);
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1F2933;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--up-primary, #006272);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px 18px 20px;
}

.faq-answer p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
}

/* Mobile adjustments */
@media (max-width: 575.98px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-item {
    padding: 20px;
  }

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

  .faq-item summary {
    padding: 16px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 16px 16px 16px;
  }
}


/* =================================================================
   PREMIUM CURSOR INTERACTIONS (Desktop)
   Subtle magnetic pull + glow effects
   ================================================================= */

/* Magnetic button container */
.btn-magnetic {
  position: relative;
  display: inline-block;
}

/* Hover glow - very subtle */
.btn::after,
.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(0, 98, 114, 0.15) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: -1;
}

.btn:hover::after,
.btn-primary:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Text micro-shift on hover */
.btn span,
.nav-link {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover span {
  transform: translateY(-1px);
}


/* =================================================================
   TOUCH RIPPLE (Mobile)
   Soft material-like touch feedback
   ================================================================= */

.touch-ripple {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.touch-ripple::after {
  content: '';
  position: absolute;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  width: 150px;
  height: 150px;
  background: rgba(0, 98, 114, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.touch-ripple.rippling::after {
  animation: touchRipple 0.6s ease-out forwards;
}

@keyframes touchRipple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* Apply touch ripple to interactive elements on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .tech-card,
  .service-item,
  .faq-item summary {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
  }
}


/* =================================================================
   TEXT SCAN HIGHLIGHT (Micro WOW)
   Subtle scanning effect on headings
   ================================================================= */

.section-title {
  position: relative;
  background: linear-gradient(
    90deg,
    currentColor 0%,
    currentColor 45%,
    rgba(0, 98, 114, 0.7) 50%,
    currentColor 55%,
    currentColor 100%
  );
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position 0s;
}

.section-title.text-scanned {
  animation: textScan 1.5s ease-out forwards;
}

@keyframes textScan {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .touch-ripple::after {
    display: none;
  }
}


/* =================================================================
   CONNECTION PULSE (Micro WOW)
   Subtle pulse between sections
   ================================================================= */

.rhythm-divider {
  position: relative;
}

.rhythm-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--up-primary, #006272);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.rhythm-divider.in-viewport::before {
  animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rhythm-divider::before {
    animation: none;
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ============================================================
   INTERACTIVE NETWORK - PREMIUM VISUALIZATION
   High-end gradient mesh + data flow animation
   ============================================================ */

.interactive-network {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 40px 0 20px;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 16px;
  background: linear-gradient(180deg,
    rgba(249, 250, 251, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 100%
  );
}

.interactive-network .network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

/* Tablet */
@media (max-width: 991px) {
  .interactive-network {
    height: 180px;
    margin: 30px 0 15px;
  }
}

/* Mobile: Still impressive but smaller */
@media (max-width: 767px) {
  .interactive-network {
    height: 150px;
    margin: 25px 0 10px;
    border-radius: 12px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .interactive-network {
    height: 120px;
  }
}

/* Reduced motion: Show static state */
@media (prefers-reduced-motion: reduce) {
  .interactive-network {
    height: 80px;
    background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 98, 114, 0.03) 50%,
      transparent 100%
    );
  }

  .interactive-network .network-canvas {
    display: none;
  }
}
