:root {
  --brand-primary: #5196ff;
  --brand-primary-hover: #3b82f6;
  --brand-dark: #1a2a3a;
  --brand-soft: #eef5ff;

  --text-main: #334155;
  --text-sub: #64748b;
  --text-on-dark: #cbd5e1;

  --white: #ffffff;
  --bg-white: #ffffff;
  --bg-muted: #f1f5f9;
  --border-color: #e2e8f0;

  --shadow-brand: 0 4px 14px rgba(81, 150, 255, 0.39);
  --shadow-brand-hover: 0 6px 20px rgba(81, 150, 255, 0.23);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: clamp(14px, 2.2vw + 12px, 16px);
  scroll-behavior: smooth;
}

body {
  font-family:
      'Helvetica Neue',
      Arial,
      'Hiragino Kaku Gothic ProN',
      'Hiragino Sans',
      Meiryo,
      sans-serif;
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
      scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
}

.hero-custom {
  background: linear-gradient(135deg,
          var(--white) 0%,
          var(--brand-soft) 100%);
  padding: 10rem 0;
}

.hero-title {
  color: var(--brand-dark);
  font-size: clamp(2rem, 4.5vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 2rem;
}

.hero-title span {
  color: var(--brand-primary);
}

.hero-title-typing {
  position: relative;
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.hero-title-typing-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 0.12em solid var(--brand-primary);
  padding-right: 0.1em;
  animation: caret 0.7s steps(1, end) infinite;
}

@keyframes caret {

  0%,
  50% {
      border-color: var(--brand-primary);
  }

  50.01%,
  100% {
      border-color: transparent;
  }
}

.hero-subtitle {
  color: var(--text-sub);
  font-size: clamp(1rem, 1.2vw + 0.75rem, 1.25rem);
  max-width: 650px;
  margin: 0 auto 3rem;
}

.btn-brand,
.btn-outline {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.btn-brand:focus-visible,
.btn-outline:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

.btn-brand {
  padding: 1.1rem 3rem;
  border: none;
  background-color: var(--brand-primary);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}

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

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

.btn-outline:hover {
  background-color: var(--brand-primary);
  color: var(--white);
}

.section-services {
  background-color: var(--bg-white);
  padding: 8rem 0;
}

.section-services .columns,
.contact-area .columns {
  margin-left: 0;
  margin-right: 0;
}

.card-custom {
  width: 100%;
  height: 100%;
  padding: 3rem;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.card-custom:hover {
  border-color: var(--brand-primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  color: var(--brand-primary);
  font-size: 2rem;
}

.card-title {
  margin: 0 0 1rem;
  color: var(--brand-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.card-text {
  margin: 0;
  color: var(--text-sub);
  font-size: 1rem;
}

.section-header {
  margin-bottom: 5rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 1.5rem;
  color: var(--brand-dark);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 800;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  margin: 0 auto;
  border: none;
  border-radius: 2px;
  background-color: var(--brand-primary);
}

.contact-area {
  padding: 8rem 0;
  background-color: var(--brand-dark);
  color: var(--white);
  text-align: center;
}

.contact-area h2 {
  margin: 0 0 1.5rem;
  color: var(--white);
  font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);
  font-weight: 800;
}

.contact-text {
  margin: 0 0 3.5rem;
  color: var(--text-on-dark);
  font-size: clamp(1rem, 1vw + 0.75rem, 1.2rem);
}

.contact-area .btn-brand {
  background-color: var(--white);
  color: var(--brand-dark);
  box-shadow: none;
}

.contact-area .btn-brand:hover {
  background-color: var(--bg-muted);
  color: var(--brand-primary);
}

@media (max-width: 768px) {
  .hero-custom {
      padding: 6rem 0;
  }

  .hero-title {
      font-size: clamp(1.5rem, 7vw + 0.5rem, 2.25rem);
      margin-bottom: 1.5rem;
  }

  .hero-subtitle {
      font-size: clamp(0.9rem, 2.5vw + 0.6rem, 1.1rem);
      margin-bottom: 2rem;
  }

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

  .section-header h2,
  .contact-area h2 {
      font-size: clamp(1.35rem, 5vw + 0.5rem, 1.75rem);
  }

  .card-icon {
      width: 64px;
      height: 64px;
      font-size: 1.5rem;
  }

  .card-title {
      font-size: 1.25rem;
  }

  .card-text {
      font-size: 0.9375rem;
  }

  .section-services .box.card-custom {
      padding: 1.5rem;
  }

  .contact-text {
      margin-bottom: 2.5rem;
      font-size: clamp(0.9rem, 2vw + 0.5rem, 1rem);
  }

  .btn-brand {
      padding: 0.9rem 2rem;
      font-size: 0.9375rem;
  }

  .btn-outline {
      padding: 0.65rem 1.5rem;
      font-size: 0.9375rem;
  }
}