/* ============================================
   LIAYM - Blueprint Precision Aesthetic
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Backgrounds */
  --bg-cream: #FAF8F5;
  --bg-blueprint: #0A1628;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FDFCFB;

  /* Text */
  --text-primary: #1C1C1C;
  --text-secondary: #5C6370;
  --text-muted: #8B9099;
  --text-inverse: #F5F5F5;
  --text-inverse-muted: rgba(245, 245, 245, 0.7);

  /* Accent */
  --accent: #1E5EE8;
  --accent-hover: #1549B8;
  --accent-light: #E8F0FD;
  --accent-glow: rgba(30, 94, 232, 0.15);

  /* Utility */
  --border: #E5E2DD;
  --border-light: #F0EDE8;
  --grid-line: rgba(30, 94, 232, 0.06);
  --grid-line-dark: rgba(245, 245, 245, 0.08);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 28, 28, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 28, 28, 0.06);
  --shadow-lg: 0 8px 24px rgba(28, 28, 28, 0.08);
  --shadow-accent: 0 4px 16px rgba(30, 94, 232, 0.2);

  /* Typography */
  --font-primary: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Spacing */
  --section-padding: clamp(4rem, 10vw, 8rem);
  --container-width: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-reveal: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.text-muted {
  color: var(--text-secondary);
}

.highlight {
  color: var(--accent);
  position: relative;
}

/* ---------- Layout ---------- */
.section-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding) var(--container-padding);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary svg {
  transition: transform var(--transition-base);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  color: var(--accent);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(80px + var(--section-padding)) var(--container-padding) var(--section-padding);
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}

/* Hero background image - chaos to order illustration */
.hero-bg-image {
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 600px;
  height: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 1023px) {
  .hero-bg-image {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    top: auto;
    right: auto;
    transform: none;
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .hero-bg-image {
    opacity: 0.9;
    right: 5%;
  }
}

.hero-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  opacity: 0.3;
}

.hero-corner-tl {
  top: 80px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.hero-corner-tr {
  top: 80px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.hero-corner-bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.hero-corner-br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

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

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-tools {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.tools-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 48px;
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tool-icon {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
}

/* Hero Visual - Blueprint House */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 320px;
  display: none;
}

@media (min-width: 1024px) {
  .hero-visual {
    display: block;
  }
}

.blueprint-element {
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--accent);
  opacity: 0.6;
}

.blueprint-annotations {
  position: absolute;
  inset: 0;
}

.annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  opacity: 0;
  animation: fadeInAnnotation 0.5s ease forwards;
}

.annotation-1 {
  top: 20%;
  right: 0;
  animation-delay: 1s;
}

.annotation-2 {
  top: 45%;
  right: -20px;
  animation-delay: 1.3s;
}

.annotation-3 {
  top: 70%;
  right: 0;
  animation-delay: 1.6s;
}

@keyframes fadeInAnnotation {
  to { opacity: 0.8; }
}

.annotation-line {
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.annotation-text {
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  background: var(--accent-light);
  border-radius: 2px;
}

/* ---------- Statistics Section ---------- */
.stats {
  background: var(--bg-blueprint);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.stats-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--section-padding) var(--container-padding);
  position: relative;
  text-align: center;
}

.stats-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 3rem;
  color: var(--text-inverse);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-card {
  position: relative;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;
}

.stat-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
}

.stat-corner-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.stat-corner-tr {
  top: -1px;
  right: -1px;
  border-left: none;
  border-bottom: none;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-inverse);
  margin-top: 0.75rem;
}

.stat-detail {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
  margin-top: 0.25rem;
}

.stats-source {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
}

.source-icon {
  opacity: 0.5;
}

/* ---------- Problem Section ---------- */
.problem {
  background: var(--bg-cream);
}

.problem .section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .problem .section-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.problem-list {
  list-style: none;
  margin-top: 2rem;
}

.problem-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.problem-item:first-child {
  padding-top: 0;
}

.problem-marker {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  background: var(--accent);
  transform: rotate(45deg);
}

.problem-text {
  color: var(--text-secondary);
}

.problem-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Problem Visual */
.problem-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  opacity: 0.9;
}

/* ---------- Solution Section ---------- */
.solution {
  background: linear-gradient(to bottom, var(--bg-cream), #F5F3EF);
}

.solution .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.solution-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.card-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

.card-corner-tl {
  top: 12px;
  left: 12px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.card-corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 12px;
  color: var(--accent);
  margin: 0 auto 1.5rem;
}

.card-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  flex-grow: 1;
  min-height: 5rem;
}

.card-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
}

.card-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Process Section ---------- */
.process {
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.process-accent {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 40%;
  max-width: 500px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .process-accent {
    display: none;
  }
}

.process .section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.process-steps {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

@media (min-width: 640px) {
  .process-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .process-step {
    grid-template-columns: 1fr 64px 1fr;
    text-align: right;
  }

  .process-step:nth-child(odd) .step-content {
    grid-column: 1;
    grid-row: 1;
  }

  .process-step:nth-child(odd) .step-number {
    grid-column: 2;
    grid-row: 1;
  }

  .process-step:nth-child(even) {
    text-align: left;
  }

  .process-step:nth-child(even) .step-number {
    grid-column: 2;
  }

  .process-step:nth-child(even) .step-content {
    grid-column: 3;
  }
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  z-index: 1;
  box-shadow: 0 0 0 8px var(--accent-light);
  transition: all var(--transition-base);
}

.process-step:hover .step-number {
  box-shadow: 0 0 0 12px var(--accent-light), 0 4px 20px rgba(30, 94, 232, 0.2);
  transform: scale(1.05);
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.step-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0.3;
}

@media (min-width: 640px) {
  .process-step:nth-child(odd) .step-corner {
    right: calc(50% + 48px);
    top: 28px;
  }

  .process-step:nth-child(even) .step-corner {
    left: calc(50% + 48px);
    top: 28px;
  }
}

/* ---------- Integrations Section ---------- */
.integrations {
  background: #F5F3EF;
}

.integrations .section-title {
  text-align: center;
}

.integrations .section-subtitle {
  text-align: center;
}

/* Carousel Container */
.integrations-carousel {
  position: relative;
  height: 140px;
  overflow: hidden;
  margin: 2rem 0;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Individual Carousel Items */
.carousel-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

/* Position Classes */
.carousel-item.center {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 5;
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--accent-light);
}

.carousel-item.left-1 {
  transform: translateX(-180px) scale(0.85);
  opacity: 0.6;
  z-index: 4;
}

.carousel-item.right-1 {
  transform: translateX(180px) scale(0.85);
  opacity: 0.6;
  z-index: 4;
}

.carousel-item.left-2 {
  transform: translateX(-320px) scale(0.7);
  opacity: 0.25;
  z-index: 3;
}

.carousel-item.right-2 {
  transform: translateX(320px) scale(0.7);
  opacity: 0.25;
  z-index: 3;
}

.carousel-item.hidden {
  transform: translateX(0) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .carousel-item.left-1 {
    transform: translateX(-130px) scale(0.8);
  }
  .carousel-item.right-1 {
    transform: translateX(130px) scale(0.8);
  }
  .carousel-item.left-2,
  .carousel-item.right-2 {
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .carousel-item.left-1 {
    transform: translateX(-100px) scale(0.75);
    opacity: 0.4;
  }
  .carousel-item.right-1 {
    transform: translateX(100px) scale(0.75);
    opacity: 0.4;
  }
  .carousel-item {
    padding: 1rem 1.5rem;
  }
}

/* Carousel Icon */
.carousel-icon {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

/* Square icons slightly larger */
.carousel-icon[src*="hektor"],
.carousel-icon[src*="apimo"],
.carousel-icon[src*="gmail"],
.carousel-icon[src*="outlook"],
.carousel-icon[src*="excel"],
.carousel-icon[src*="googlesheets"],
.carousel-icon[src*="whatsapp"],
.carousel-icon[src*="sms"],
.carousel-icon[src*="calendly"],
.carousel-icon[src*="ac3"] {
  height: 52px;
}

/* Carousel Label */
.carousel-label-container {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.carousel-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.625rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.carousel-label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: labelPulse 2s ease-in-out infinite;
}

.carousel-label {
  padding-left: 2.25rem;
}

@keyframes labelPulse {
  0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateY(-50%) scale(1.3); }
}

.carousel-label.changing {
  opacity: 0;
  transform: translateY(4px);
}

/* ---------- FAQ Section ---------- */
.faq {
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.faq-accent {
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 35%;
  max-width: 400px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
}

@media (max-width: 768px) {
  .faq-accent {
    display: none;
  }
}

.faq .section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-base);
}

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

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 8px;
  color: var(--accent);
  transition: all var(--transition-base);
}

.faq-item[open] .faq-icon {
  background: var(--accent);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 1.5rem 3rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact {
  background: var(--bg-blueprint);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* Decorative CTA accent image */
.cta-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--section-padding) var(--container-padding);
  position: relative;
  z-index: 1;
}

.contact-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(30, 94, 232, 0.5);
}

.contact-corner-tl {
  top: 40px;
  left: 40px;
  border-right: none;
  border-bottom: none;
}

.contact-corner-tr {
  top: 40px;
  right: 40px;
  border-left: none;
  border-bottom: none;
}

.contact-content {
  text-align: center;
  margin-bottom: 3rem;
}

/* Badge above title */
.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  background: rgba(30, 94, 232, 0.2);
  border: 2px solid rgba(30, 94, 232, 0.5);
  color: #5B9BFF;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  box-shadow: 0 0 30px rgba(30, 94, 232, 0.3);
}

.contact-badge svg {
  width: 20px;
  height: 20px;
  animation: pulse 2s ease-in-out infinite;
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: var(--text-inverse-muted);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto;
}

/* Trust indicators */
.contact-trust {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 0;
  border-top: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.trust-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(30, 94, 232, 0.5);
}

.trust-item svg {
  color: #5B9BFF;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .contact-trust {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .trust-item {
    font-size: 0.9375rem;
    padding: 0.625rem 1rem;
  }
}

/* Form Styles */
.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem;
}

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

@media (min-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-group-full {
    grid-column: 1 / -1;
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-inverse);
}

.required {
  color: var(--accent);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--text-inverse);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

.form-input::placeholder {
  color: var(--text-inverse-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 94, 232, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

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

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.form-checkbox input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-mark {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.form-checkbox input:checked + .checkbox-mark {
  background: var(--accent);
  border-color: var(--accent);
}

.form-checkbox input:checked + .checkbox-mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

.form-checkbox input:focus + .checkbox-mark {
  box-shadow: 0 0 0 3px rgba(30, 94, 232, 0.2);
}

.checkbox-text {
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
  line-height: 1.5;
}

.checkbox-text a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-text a:hover {
  color: var(--text-inverse);
}

/* Submit Button */
.btn-text,
.btn-loading,
.btn-arrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-loading {
  display: none;
}

.form-submitting .btn-text,
.form-submitting .btn-arrow {
  display: none;
}

.form-submitting .btn-loading {
  display: flex;
}

.spinner {
  animation: spin 1s linear infinite;
}

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

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

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

.form-success.show + .contact-form {
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 94, 232, 0.1);
  border-radius: 50%;
  color: var(--accent);
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-blueprint);
  color: var(--text-inverse);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 3rem var(--container-padding);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr auto 1fr;
    text-align: left;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-legal {
    text-align: right;
    justify-content: flex-end;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-brand {
    align-items: flex-start;
  }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-inverse);
  font-weight: 600;
  margin-bottom: 0.5rem;
  transition: color var(--transition-base);
}

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

.footer-logo .logo-mark {
  color: var(--accent);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-author {
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
  margin-bottom: 0.375rem;
}

.footer-email {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  transition: color var(--transition-base);
}

.footer-email:hover {
  color: white;
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-inverse-muted);
}

.footer-legal a {
  transition: color var(--transition-base);
}

.footer-legal a:hover {
  color: var(--text-inverse);
}

.footer-sep {
  opacity: 0.5;
}

.footer-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(30, 94, 232, 0.3);
}

.footer-corner-bl {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.footer-corner-br {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

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

/* Stagger delays */
.hero-badge { transition-delay: 0.1s; }
.hero-title { transition-delay: 0.2s; }
.hero-subtitle { transition-delay: 0.3s; }
.hero .btn { transition-delay: 0.4s; }
.hero-tools { transition-delay: 0.5s; }
.hero-visual { transition-delay: 0.6s; }

.stats-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.solution-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.solution-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.solution-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.problem-list .reveal:nth-child(1) { transition-delay: 0.1s; }
.problem-list .reveal:nth-child(2) { transition-delay: 0.2s; }
.problem-list .reveal:nth-child(3) { transition-delay: 0.3s; }
.problem-list .reveal:nth-child(4) { transition-delay: 0.4s; }

.process-steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.process-steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.process-steps .reveal:nth-child(4) { transition-delay: 0.3s; }

.faq-list .reveal:nth-child(1) { transition-delay: 0.1s; }
.faq-list .reveal:nth-child(2) { transition-delay: 0.15s; }
.faq-list .reveal:nth-child(3) { transition-delay: 0.2s; }
.faq-list .reveal:nth-child(4) { transition-delay: 0.25s; }
.faq-list .reveal:nth-child(5) { transition-delay: 0.3s; }

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: calc(80px + 3rem) var(--container-padding) 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--accent);
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.legal-page p,
.legal-page ul {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-page ul {
  padding-left: 1.5rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Utilities ---------- */
.hidden {
  display: none !important;
}

/* Print Styles */
@media print {
  .site-header,
  .contact,
  .site-footer {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
