@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root {
  /* Brand Color Palette (DisplayPilot Concept V3) */
  --primary: #162660;
  /* Royal Blue - Headlines, Footer, primary buttons, borders */
  --primary-dark: #0f1a44;
  --primary-light: #203580;

  --bg-white: #ffffff;
  /* White - Base background, cards */
  --bg-powder: #d0e6fd;
  /* Powder Blue - Sektionsflächen, Info/Nutzenblöcke */
  --bg-bone: #f1e4d1;
  /* Bone - Claim/Story, warm sections */

  --text-dark: #1a202c;
  /* Dark gray/black for copy */
  --text-muted: #4a5568;
  /* Muted gray for secondary text */
  --text-white: #ffffff;

  --border-light: rgba(22, 38, 96, 0.08);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Fonts */
  --font-main: 'Arial', sans-serif;
  /* Arial through-out, Web-secure and CI-compliant */
  --font-hand: 'Caveat', cursive;
  /* Signature font */

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows & Radius */
  --shadow-sm: 0 4px 12px rgba(22, 38, 96, 0.03);
  --shadow-md: 0 12px 36px -10px rgba(22, 38, 96, 0.06);
  --shadow-lg: 0 30px 60px -15px rgba(22, 38, 96, 0.1);
  --radius-card: 20px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Section Colors (CI Sektionsrhythmus) */
.section-white {
  background-color: var(--bg-white);
}

.section-powder {
  background-color: var(--bg-powder);
}

.section-bone {
  background-color: var(--bg-bone);
}

.section-dark {
  background-color: var(--primary);
  color: var(--text-white);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  color: var(--primary);
  font-weight: 700;
  line-height: 1.15;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: var(--text-white);
}

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

.section-dark p {
  color: var(--bg-powder);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Buttons (CI Royal Blue) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  font-family: var(--font-main);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(22, 38, 96, 0.25);
}

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

.btn-outline:hover {
  background-color: rgba(22, 38, 96, 0.05);
  transform: translateY(-2px);
}

/* White outline button for dark backgrounds */
.btn-outline-white {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.w-100 {
  width: 100%;
}

/* Sticky Header (Light background for Colored Logo) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links .btn {
  color: var(--text-white) !important;
}

.nav-links .btn:hover {
  color: var(--text-white) !important;
}

.logo-header-img {
  height: 38px;
  width: auto;
  display: block;
}

.logo-footer-img {
  height: 38px;
  width: auto;
  display: block;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--primary);
  height: 2.5px;
  width: 24px;
  position: relative;
  transition: var(--transition-fast);
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  top: -8px;
}

.nav-toggle-label span::after {
  top: 8px;
}

/* Hero Section */
.hero {
  padding: 12rem 0 7rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
}

.hero-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}

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

.hero-tv-wrapper {
  position: relative;
}

/* Welcome-Screen TV Mockup Navigation (Startseite Hero) */
.device-frame-tv {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  box-shadow: 0 35px 80px rgba(22, 38, 96, 0.22);
  border: 6px solid #1a1a1f;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

.welcome-screen-container {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.welcome-overlay-blue {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(22, 38, 96, 0.85) 0%, rgba(32, 53, 128, 0.65) 100%);
  z-index: 1;
}

.welcome-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.welcome-header {
  text-align: center;
}

.welcome-logo {
  height: 18px;
  width: auto;
  margin-bottom: 0.25rem;
}

.welcome-header h2 {
  color: var(--text-white);
  font-size: 1.05rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.welcome-header p {
  color: var(--bg-powder);
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* TV Navigation Kacheln (6-Grid) */
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  width: 100%;
  max-width: 580px;
}

.welcome-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-fast);
  cursor: pointer;
  min-height: 60px;
}

.welcome-tile:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.welcome-tile-accent {
  background: var(--bg-bone);
  border-color: var(--bg-bone);
  color: var(--primary);
}

.welcome-tile-accent:hover {
  background: var(--bg-white);
  border-color: var(--bg-white);
}

.tile-icon {
  width: 14px;
  height: 14px;
  margin-bottom: 0.15rem;
}

.welcome-tile h4 {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

.welcome-tile p {
  font-size: 0.58rem;
  color: inherit;
  opacity: 0.85;
}

.welcome-tile-accent p {
  font-weight: 600;
}

.glass-reflection {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%);
  pointer-events: none;
  z-index: 5;
}

/* Sections Global */
.section {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 5rem;
  max-width: 800px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

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

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 6-Phasen Betreuung (Horizontal Grid with Outline Numbers) */
.phases-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.phase-card {
  display: flex;
  flex-direction: column;
}

.phase-number {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--primary);
  margin-bottom: 1rem;
}

.phase-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.phase-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.phase-desc-wrapper {
  margin-top: 4rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

/* Einblicke Bildband (3-Columns Grid) */
.media-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.media-band-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/3;
  border: 1px solid var(--border-light);
}

.media-band-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.media-band-card:hover img {
  transform: scale(1.04);
}

/* Grid for 6-Cards Layout (Klinik / Hotellerie / MedTab features) */
.feature-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card-6 {
  background-color: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
}

.feature-card-6:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--bg-powder);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.feature-card-6 h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card-6 p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Split content area */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split-media {
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.split-media picture {
  display: block;
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
}

.split-text {
  display: flex;
  flex-direction: column;
}

.split-text h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.split-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.split-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
}

.split-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.split-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--primary-light);
  border-radius: 50%;
}

/* Product Comparison Table (Klinik Softwarepakete) */
.table-wrapper {
  overflow-x: auto;
  margin-top: 3rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--bg-white);
}

th,
td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

th {
  background-color: var(--bg-powder);
  color: var(--primary);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: none;
}

/* Teaser / Teaserbox */
.teaser-box {
  background-color: var(--bg-powder);
  border-radius: var(--radius-card);
  padding: 3rem;
  margin-top: 5rem;
  border: 1px solid var(--border-light);
}

/* Partner / References Logo Wall */
.partner-logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 3rem;
}

.partner-logo-item-mini {
  background-color: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 1rem 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-weight: 700;
  opacity: 0.65;
  transition: var(--transition-fast);
}

.partner-logo-item-mini:hover {
  opacity: 1;
  color: var(--primary);
  border-color: var(--primary);
}

/* Zahlen & Fakten Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* Callout / Handshake block */
.callout-section {
  position: relative;
  background-color: var(--primary);
  color: var(--text-white);
  padding: 8rem 0;
  overflow: hidden;
}

.callout-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(22, 38, 96, 0.95) 45%, rgba(22, 38, 96, 0.7) 100%), url('assets/business_handshake.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.95;
}

.callout-container {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.callout-tagline {
  color: var(--bg-powder);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.callout-section h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.callout-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--bg-powder);
  margin-bottom: 2rem;
}

.callout-cta-handwritten {
  font-family: var(--font-hand);
  font-size: 2.5rem;
  color: var(--bg-powder);
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: 1rem;
}

/* Contact block */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.contact-info-col h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-col p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 3rem;
}

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

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

.contact-detail-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.contact-detail-item div {
  font-size: 1rem;
  color: var(--text-dark);
}

.contact-form-col {
  background-color: var(--bg-powder);
  border-radius: var(--radius-card);
  padding: 3.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  color: var(--text-dark);
  transition: var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 38, 96, 0.12);
}

/* Footer Section (CI Royal Blue) */
footer {
  background-color: var(--primary);
  color: var(--text-white);
  padding: 6rem 0 3rem 0;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--bg-powder);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.footer-contact-item svg {
  color: var(--bg-powder);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item p {
  font-size: 0.95rem;
  color: var(--text-white);
  line-height: 1.55;
}

.footer-contact-item p strong {
  display: block;
  font-weight: 600;
  color: var(--bg-powder);
  margin-bottom: 0.25rem;
}

.footer-contact-item a:hover {
  color: var(--bg-powder);
}

.footer-signature-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.footer-signature {
  font-family: var(--font-hand);
  font-size: 3rem;
  color: var(--bg-powder);
  text-align: right;
  line-height: 1.1;
  transform: rotate(-3deg);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--bg-powder);
}

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

.footer-bottom-links a:hover {
  color: var(--text-white);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .device-frame-tv {
    max-width: 600px;
    margin: 0 auto;
  }

  .phases-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .media-band-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .footer-main-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .brand-logos-row {
    justify-content: center;
  }

  .footer-contact-item {
    justify-content: center;
    text-align: center;
  }

  .footer-signature-col {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-left: 1px solid var(--border-light);
    padding: 7rem 2rem 2rem 2rem;
    transition: var(--transition-normal);
    z-index: 1000;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.25rem;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 1.25rem;
    display: block;
    width: 100%;
  }

  .nav-links .btn {
    width: 100%;
    text-align: center;
  }

  .nav-toggle:checked~nav {
    right: 0;
  }

  .nav-toggle:checked~.nav-toggle-label span {
    background: transparent;
  }

  .nav-toggle:checked~.nav-toggle-label span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .nav-toggle:checked~.nav-toggle-label span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .welcome-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.25rem;
  }

  .welcome-tile {
    min-height: 40px;
    padding: 0.25rem 0.35rem;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
    border-radius: 4px;
  }

  .welcome-tile .tile-icon {
    width: 14px;
    height: 14px;
    margin-bottom: 0;
  }

  .welcome-tile .tile-icon svg {
    width: 12px;
    height: 12px;
  }

  .welcome-tile h4 {
    font-size: 0.58rem;
    line-height: 1.15;
  }

  .welcome-tile p {
    display: none;
  }

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

  .feature-grid-6 {
    grid-template-columns: 1fr;
  }

  .contact-form-col {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   Layout refinements – vertical rhythm & spacing on smaller
   screens (the 8rem/12rem desktop paddings are too large on
   tablet & mobile and pushed content far apart).
   ============================================================ */
@media (max-width: 1024px) {
  .section {
    padding: 5.5rem 0;
  }

  .hero {
    padding: 9rem 0 4.5rem 0;
  }

  .section-header {
    margin-bottom: 3.5rem;
  }

  .callout-section {
    padding: 5.5rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 7.5rem 0 3.5rem 0;
  }

  .section-title,
  .callout-section h2 {
    font-size: 2.1rem;
  }

  .split-text h2 {
    font-size: 1.9rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  /* Keep the callout CTA row from overflowing on narrow screens */
  .callout-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .callout-container .btn {
    margin-bottom: 0.5rem;
  }
}

/* Interactive Demo Link styling */
.demo-link {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.demo-link:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.demo-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  background: rgba(22, 38, 96, 0.85); /* Deep Royal Blue */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background var(--transition-fast);
}

.demo-link:hover .demo-badge {
  background: var(--primary); /* Deep blue highlight on hover */
}

.demo-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10B981; /* Live green indicator */
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
}

/* Desktop Calendly default */
.calendly-desktop-container {
  display: block;
}
.calendly-mobile-container {
  display: none !important;
}

/* Mobile responsive Calendly */
@media (max-width: 768px) {
  .calendly-desktop-container {
    display: none !important;
  }
  .calendly-mobile-container {
    display: block !important;
  }
}