/* === Top page hero === */
.hero {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f8faff 0%, #f0f0ff 35%, #faf8ff 65%, #f5f8ff 100%);
}

/* Background grid pattern */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(44, 107, 237, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 107, 237, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

/* Floating gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orb-float 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 400px;
  height: 400px;
  background: var(--color-blue);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 300px;
  height: 300px;
  background: var(--color-purple);
  bottom: -5%;
  left: -5%;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 200px;
  height: 200px;
  background: var(--color-magenta);
  top: 40%;
  left: 50%;
  opacity: 0.1;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Content */
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
}

.hero__label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-blue);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
  animation-delay: 0.2s;
}

.hero__heading {
  color: var(--color-text);
  font-size: clamp(1.75rem, 5vw + 0.5rem, 3.5rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero__sub {
  color: var(--color-text-sub);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  animation: hero-fade-up 0.8s ease forwards;
  animation-delay: 0.6s;
}

.hero__sub-line {
  display: inline;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--space-xl);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1;
  color: var(--color-text-sub);
  text-decoration: none;
  opacity: 0;
  animation: hero-scroll-fade 0.8s ease forwards;
  animation-delay: 1s;
  transition: color var(--transition-base);
}

.hero__scroll:hover {
  color: var(--color-blue);
}

.hero__scroll-text {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 56px;
  background: rgba(31, 35, 40, 0.14);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44, 107, 237, 0) 0%, var(--color-blue) 45%, rgba(44, 107, 237, 0) 100%);
  animation: hero-scroll-line 1.8s ease-in-out infinite;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-scroll-line {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes hero-scroll-fade {
  from {
    opacity: 0;
    transform: translate(-50%, 24px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (max-width: 767px) {
  .hero__sub {
    font-size: var(--text-sm);
  }

  .hero__sub-line {
    display: block;
  }

  .about-grid__statement {
    font-size: var(--text-sm) !important;
  }

  .hero__scroll {
    bottom: var(--space-lg);
  }

  .hero__scroll-line {
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::after {
    animation: none;
  }
}

/* === Business cards grid === */
.business-cards {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

.business-cards .card {
  box-shadow: none;
}

.business-cards .card:hover {
  box-shadow: none;
}

@media (min-width: 768px) {
  .business-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .business-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .business-cards .card h3 {
    min-height: 3.5em;
  }
}

/* === About grid === */
.about-grid {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.about-grid__item h3 {
  margin-bottom: var(--space-sm);
  color: var(--color-blue);
}

.about-grid__item p {
  color: var(--color-text-sub);
}

.about-grid__statement {
  font-size: clamp(1.125rem, 2vw + 0.25rem, 1.5rem);
  line-height: 1.8;
  color: var(--color-text);
  font-weight: 500;
}

/* === Affiliate section === */
.affiliate-list {
  max-width: 420px;
  margin: 0 auto;
}

.affiliate-card {
  text-align: center;
  border: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  box-shadow: none;
  padding: 0;
}

.affiliate-card:hover {
  box-shadow: none;
}

.affiliate-card__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-lg);
}

.affiliate-card__logo {
  width: min(100%, 173px);
  height: auto;
}

.affiliate-card h3 {
  margin-bottom: var(--space-sm);
}

.affiliate-card p:last-child {
  color: var(--color-text-sub);
}

/* === Service block === */
.service-block {
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.service-block h3 {
  margin-bottom: var(--space-md);
}

.service-block__content {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  margin-top: var(--space-lg);
}

.service-block__challenge,
.service-block__solution {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.service-block__challenge {
  background-color: var(--color-bg-alt);
}

.service-block__challenge h4,
.service-block__solution h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.service-block__solution {
  background-color: #EEF2FF;
}

.service-block__challenge p,
.service-block__solution p {
  color: var(--color-text-sub);
  font-size: var(--text-sm);
}

@media (min-width: 768px) {
  .service-block__content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Legal content === */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--color-text-sub);
  font-size: var(--text-sm);
  line-height: 2;
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content ul li {
  color: var(--color-text-sub);
  font-size: var(--text-sm);
  line-height: 2;
}

/* === Notice (empty state) === */
.notice-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.notice-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.notice-page .page-hero {
  padding: var(--space-2xl) 0 var(--space-lg);
}

.notice-page .section {
  padding: 0 0 var(--space-2xl);
}

.notice-page .notice-empty {
  padding: var(--space-xl) 0;
}

.notice-page .site-footer {
  margin-top: 0;
}

.notice-empty {
  text-align: center;
  padding: var(--space-4xl) 0;
  color: var(--color-text-sub);
}
