/* ── Hero illustration animation ── */
@keyframes heroFloat {
  0%,100% { transform: translateY(-50%) scale(1) rotate(-1deg); }
  50%      { transform: translateY(-52%) scale(1.04) rotate(0.5deg); }
}
#hero-illus-wrap {
  animation: heroFloat 9s ease-in-out infinite;
  will-change: transform, opacity;
  transition: opacity 0.12s linear;
}

:root {
  --font-sans: 'Inter', sans-serif;

  --brand-50: #ecfdf5;
  --brand-100: #d1fae5;
  --brand-300: #6ee7b7;
  --brand-400: #34d399;
  --brand-500: #10b981;
  --brand-600: #059669;
  --brand-700: #047857;

  --neutral-900: #171717;
  --neutral-700: #404040;
  --neutral-600: #525252;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-200: #e5e5e5;
  --neutral-100: #f5f5f5;

  --radius-pill: 999px;
  --radius-lg: 0.75rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
  max-width: 100%;
}

.hero-title {
  line-height: 1.14;
  letter-spacing: -0.05em;
  margin-left: auto;
  margin-right: auto;
}

.hero-title-line {
  display: block;
}

.contact-title {
  overflow-wrap: anywhere;
  line-height: 1.08;
}

.cooperation-heading {
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.12;
}

.feature-heading-line {
  display: block;
}

.section-lead {
  color: var(--neutral-600);
  font-size: clamp(1rem, 1vw + 0.9rem, 1.25rem);
  line-height: 1.85;
  font-weight: 300;
  overflow-wrap: anywhere;
}

.content-narrow {
  max-width: 42rem;
  min-width: 0;
}

.case-study-grid {
  display: grid;
  gap: 2rem;
}

.case-study-card {
  border-radius: 2rem;
  border: 1px solid rgba(229, 229, 229, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(23, 23, 23, 0.06);
  padding: clamp(1.5rem, 2vw, 2.5rem);
  backdrop-filter: blur(14px);
}

.dark .case-study-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.74);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.case-study-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.case-study-meta .badge-brand {
  white-space: normal;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.case-study-highlight {
  border-left: 3px solid rgba(16, 185, 129, 0.55);
  padding-left: 1.25rem;
  font-size: clamp(1.1rem, 1vw + 1rem, 1.45rem);
  line-height: 1.9;
  color: var(--neutral-900);
  font-weight: 500;
}

.dark .case-study-highlight {
  color: rgba(255, 255, 255, 0.92);
}

/* Brand helpers */
.brand-dot,
.text-brand { color: var(--brand-500); }
.bg-brand { background-color: var(--brand-500); }
.border-brand { border-color: var(--brand-500); }
.text-muted { color: var(--neutral-500); }
.font-display { font-family: var(--font-sans); }

.badge-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.1);
  color: var(--brand-600);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dark .badge-brand { color: var(--brand-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.2s ease,
    background-color 0.3s ease,
    color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-pill {
  height: 3.5rem;
  padding: 0 2rem;
  border-radius: var(--radius-pill);
}

.btn-form {
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 0.75rem;
  border-radius: var(--radius-pill);
}

.btn-contrast {
  background: var(--neutral-900);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.2);
}
.dark .btn-contrast {
  background: #ffffff;
  color: #0a0a0a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.btn-contrast:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(16, 185, 129, 0.24);
}

.btn-brand {
  background: var(--neutral-900);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.dark .btn-brand {
  background: var(--brand-500);
  color: var(--neutral-900);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.35);
}
.btn-brand:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

/* Smooth Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(5px);
  will-change: transform, opacity, filter;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
/* Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
/* Utilities */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
input, select, textarea {
  outline: none;
  max-width: 100%;
  min-width: 0;
}

.card-copy p,
.card-copy li {
  color: var(--neutral-600);
  line-height: 1.8;
}

.dark .card-copy p,
.dark .card-copy li {
  color: rgba(255, 255, 255, 0.74);
}

/* Page Views System */
.page-view {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}
.page-view.active {
  display: block;
  opacity: 1;
}
/* Grain Overlay */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}
.dark .bg-noise { opacity: 0.03; }

@media (max-width: 640px) {
  .pain-points-strip {
    overflow: visible;
  }

  .pain-points-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    width: min(100%, 18rem);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pain-point-item {
    width: 100%;
    justify-content: flex-start;
    white-space: normal;
  }

  .feature-heading-line {
    display: block;
    white-space: nowrap;
  }

  .hero-title {
    line-height: 1.12;
    letter-spacing: -0.02em;
    width: 100%;
  }

  .hero-title-line {
    display: inline;
  }

  .feature-heading {
    font-size: clamp(1.95rem, 8vw, 2.35rem);
  }

  .cooperation-heading {
    font-size: clamp(1.15rem, 7.1vw, 1.55rem);
    line-height: 1.12;
  }

  .cooperation-heading-line {
    display: block;
    white-space: nowrap;
  }

  .principles-heading {
    font-size: clamp(1.8rem, 7.2vw, 2.25rem);
    line-height: 1.22;
  }

  .contact-title {
    line-height: 1.14;
  }

  .section-lead {
    line-height: 1.75;
  }

  .case-study-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .case-study-meta {
    gap: 0.5rem;
  }

  .case-study-highlight {
    padding-left: 1rem;
    line-height: 1.8;
  }
}
