
<template>
  <div class="content-layer">
    <section class="about-section">
      <div class="about-container">
        <div class="section-title reveal visible">
          <div class="section-kicker">{{ $t('about.intro.kicker') }}</div>
          <h2>{{ $t('about.intro.title') }}</h2>
        </div>
        <div class="reveal visible">
          <p class="about-copy" v-html="$t('about.intro.copyHtml')" />
        </div>
      </div>
    </section>

    <section class="about-section">
      <div class="about-container">
        <div class="section-title section-title--spacious reveal visible">
          <div class="section-kicker">{{ $t('about.advantages.kicker') }}</div>
          <h2>{{ $t('about.advantages.title') }}</h2>
        </div>

        <div class="card-grid">
          <div
            class="advantage-card glass-card glow-border reveal visible"
            style="--accent: #4f46e5; --soft: #e0e7ff; --x: 50%; --y: 50%;"
            @mousemove="moveCardGlow"
            @mouseleave="resetCardGlow"
          >
            <div class="card-glow" />
            <div class="card-glow-bottom" />
            <div class="card-bg" />
            <div class="relative">
              <div class="card-heading">
                <span class="card-number">01</span>
                <div>
                  <div class="card-title">{{ $t('about.advantages.fast.title') }}</div>
                  <div class="card-subtitle">{{ $t('about.advantages.fast.subtitle') }}</div>
                </div>
              </div>
              <div class="card-tag">{{ $t('about.advantages.fast.tag') }}</div>
              <p>{{ $t('about.advantages.fast.desc') }}</p>
            </div>
          </div>

          <div
            class="advantage-card glass-card glow-border reveal visible"
            style="--accent: #0891b2; --soft: #cffafe; --x: 50%; --y: 50%;"
            @mousemove="moveCardGlow"
            @mouseleave="resetCardGlow"
          >
            <div class="card-glow" />
            <div class="card-glow-bottom" />
            <div class="card-bg" />
            <div class="relative">
              <div class="card-heading">
                <span class="card-number">02</span>
                <div>
                  <div class="card-title">{{ $t('about.advantages.accurate.title') }}</div>
                  <div class="card-subtitle">{{ $t('about.advantages.accurate.subtitle') }}</div>
                </div>
              </div>
              <div class="card-tag">{{ $t('about.advantages.accurate.tag') }}</div>
              <p>{{ $t('about.advantages.accurate.desc') }}</p>
            </div>
          </div>

          <div
            class="advantage-card glass-card glow-border reveal visible"
            style="--accent: #4f46e5; --soft: #e0e7ff; --x: 50%; --y: 50%;"
            @mousemove="moveCardGlow"
            @mouseleave="resetCardGlow"
          >
            <div class="card-glow" />
            <div class="card-glow-bottom" />
            <div class="card-bg" />
            <div class="relative">
              <div class="card-heading">
                <span class="card-number">03</span>
                <div>
                  <div class="card-title">{{ $t('about.advantages.strong.title') }}</div>
                  <div class="card-subtitle">{{ $t('about.advantages.strong.subtitle') }}</div>
                </div>
              </div>
              <div class="card-tag">{{ $t('about.advantages.strong.tag') }}</div>
              <p>{{ $t('about.advantages.strong.desc') }}</p>
            </div>
          </div>

          <div
            class="advantage-card glass-card glow-border reveal visible"
            style="--accent: #0891b2; --soft: #cffafe; --x: 50%; --y: 50%;"
            @mousemove="moveCardGlow"
            @mouseleave="resetCardGlow"
          >
            <div class="card-glow" />
            <div class="card-glow-bottom" />
            <div class="card-bg" />
            <div class="relative">
              <div class="card-heading">
                <span class="card-number">04</span>
                <div>
                  <div class="card-title">{{ $t('about.advantages.stable.title') }}</div>
                  <div class="card-subtitle">{{ $t('about.advantages.stable.subtitle') }}</div>
                </div>
              </div>
              <div class="card-tag">{{ $t('about.advantages.stable.tag') }}</div>
              <p>{{ $t('about.advantages.stable.desc') }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="about-section">
      <div class="about-container">
        <div class="section-title section-title--spacious reveal visible">
          <div class="section-kicker">{{ $t('about.credentials.kicker') }}</div>
          <h2>{{ $t('about.credentials.title') }}</h2>
        </div>

        <div class="card-grid">
          <div class="credential-card glass-card glow-border reveal visible">
            <div class="credential-icon credential-icon--amber">
              <svg viewBox="0 0 24 24"><path d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.highTech.title') }}</h3>
              <p>{{ $t('about.credentials.highTech.desc') }}</p>
            </div>
          </div>

          <div class="credential-card glass-card glow-border reveal visible">
            <div class="credential-icon credential-icon--indigo">
              <svg viewBox="0 0 24 24"><path d="M13 10V3L4 14h7v7l9-11h-7z" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.specialized.title') }}</h3>
              <p>{{ $t('about.credentials.specialized.desc') }}</p>
            </div>
          </div>

          <div class="credential-card glass-card glow-border reveal visible">
            <div class="credential-icon credential-icon--cyan">
              <svg viewBox="0 0 24 24"><path d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.techSme.title') }}</h3>
              <p>{{ $t('about.credentials.techSme.desc') }}</p>
            </div>
          </div>

          <div class="credential-card glass-card glow-border reveal visible">
            <div class="credential-icon credential-icon--emerald">
              <svg viewBox="0 0 24 24"><path d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.iso.title') }}</h3>
              <p>{{ $t('about.credentials.iso.desc') }}</p>
            </div>
          </div>

          <div class="credential-card glass-card glow-border reveal visible">
            <div class="credential-icon credential-icon--rose">
              <svg viewBox="0 0 24 24"><path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.innovative.title') }}</h3>
              <p>{{ $t('about.credentials.innovative.desc') }}</p>
            </div>
          </div>

          <div class="credential-card glass-card glow-border credential-card--forbes reveal visible">
            <div class="credential-icon credential-icon--amber">
              <svg viewBox="0 0 24 24"><path d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3z" /></svg>
            </div>
            <div>
              <h3>{{ $t('about.credentials.forbes.title') }}</h3>
              <p>{{ $t('about.credentials.forbes.descPrefix') }}<span class="forbes-text">{{ $t('about.credentials.forbes.descHighlight') }}</span>{{ $t('about.credentials.forbes.descSuffix') }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>

    <section class="about-section about-section--cta">
      <div class="about-container about-container--cta reveal visible">
        <div class="cta-card glass-card glow-border">
          <div class="cta-card__background" />
          <div class="relative">
            <h2>{{ $t('about.cta.title') }}</h2>
            <p>{{ $t('about.cta.desc') }}</p>
          </div>
        </div>
      </div>
    </section>
  </div>
</template>

<script>
export default {
  name: 'HomeAbout',
  methods: {
    moveCardGlow(event) {
      const card = event.currentTarget
      const bounds = card.getBoundingClientRect()
      const x = ((event.clientX - bounds.left) / bounds.width) * 100
      const y = ((event.clientY - bounds.top) / bounds.height) * 100

      card.style.setProperty('--x', `${x}%`)
      card.style.setProperty('--y', `${y}%`)
      card.classList.add('is-glowing')
    },
    resetCardGlow(event) {
      const card = event.currentTarget

      card.style.setProperty('--x', '50%')
      card.style.setProperty('--y', '50%')
      card.classList.remove('is-glowing')
    }
  }
}
</script>

<style scoped lang="scss">
.content-layer {
  min-height: 100%;
  padding: 88px 24px 72px;
  color: #111827;
  background:
    radial-gradient(circle at 10% 20%, rgba(224, 231, 255, 0.46), transparent 28%),
    radial-gradient(circle at 92% 52%, rgba(207, 250, 254, 0.36), transparent 30%),
    linear-gradient(180deg, #f8faff 0%, #f7f9ff 100%);
}

.about-section {
  padding: 80px 0;
}

.about-section--cta {
  padding-bottom: 20px;
}

.about-container {
  width: min(896px, 100%);
  margin: 0 auto;
}

.about-container--cta {
  width: min(768px, 100%);
  text-align: center;
}

.section-title {
  margin-bottom: 48px;
  text-align: center;
}

.section-title--spacious {
  margin-bottom: 72px;
}

.section-kicker {
  margin-bottom: 16px;
  color: #6366f1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.about-copy {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.copy-strong {
  color: #111827;
  font-weight: 600;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: 0 14px 32px rgba(71, 85, 105, 0.055);
  backdrop-filter: blur(10px);
}

.glow-border {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.glow-border:hover {
  border-color: var(--accent, #c7d2fe);
  box-shadow: 0 18px 38px rgba(79, 70, 229, 0.09);
  transform: translateY(-2px);
}

.advantage-card {
  position: relative;
  min-height: 246px;
  padding: 40px;
  overflow: hidden;
  border-radius: 16px;
}

.advantage-card::before,
.advantage-card::after {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 2px;
  content: '';
  pointer-events: none;
}

.advantage-card::before {
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  animation: advantage-border-move 3s linear infinite;
}

.advantage-card::after {
  right: -100%;
  bottom: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 10px var(--accent);
  animation: advantage-border-move-reverse 3s linear infinite;
}

.card-glow,
.card-glow-bottom,
.card-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.card-glow {
  background: radial-gradient(circle at var(--x) var(--y), var(--soft), transparent 42%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card-glow-bottom {
  background: radial-gradient(circle at 50% 125%, var(--soft), transparent 44%);
  background-size: 220% 220%;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.advantage-card.is-glowing .card-glow {
  opacity: 0.42;
}

.advantage-card.is-glowing .card-glow-bottom {
  opacity: 0.2;
  animation: card-glow-sweep 2.4s linear infinite;
}

@keyframes card-glow-sweep {
  0% {
    background-position: -100% 100%;
  }

  100% {
    background-position: 160% -80%;
  }
}

@keyframes advantage-border-move {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes advantage-border-move-reverse {
  0% {
    right: -100%;
  }

  100% {
    right: 100%;
  }
}

.card-bg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent);
}

.relative {
  position: relative;
  z-index: 2;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.card-number {
  color: var(--soft);
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.07em;
  text-shadow: 0 1px 0 var(--accent);
}

.card-title {
  color: #111827;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
}

.card-subtitle {
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.card-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 10px;
  color: var(--accent);
  font-size: 11px;
  line-height: 1;
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 999px;
}

.advantage-card p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.75;
}

.credential-card {
  position: relative;
  min-height: 112px;
  padding: 32px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: hidden;
  border-radius: 16px;
}

.credential-card--forbes::after {
  position: absolute;
  top: -46px;
  right: -46px;
  width: 150px;
  height: 150px;
  content: '';
  background: radial-gradient(circle, rgba(254, 243, 199, 0.88), transparent 70%);
  border-radius: 999px;
}

.credential-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 12px;
}

.credential-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.credential-icon--amber {
  color: #d97706;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  border-color: #fde68a;
}

.credential-icon--indigo {
  color: #4f46e5;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  border-color: #c7d2fe;
}

.credential-icon--cyan {
  color: #0891b2;
  background: linear-gradient(135deg, #cffafe, #ccfbf1);
  border-color: #a5f3fc;
}

.credential-icon--emerald {
  color: #059669;
  background: linear-gradient(135deg, #d1fae5, #dcfce7);
  border-color: #a7f3d0;
}

.credential-icon--rose {
  color: #e11d48;
  background: linear-gradient(135deg, #ffe4e6, #fce7f3);
  border-color: #fecdd3;
}

.credential-card h3 {
  position: relative;
  z-index: 1;
  margin: 2px 0 10px;
  color: #111827;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

.credential-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
}

.forbes-text {
  color: #d97706;
  font-weight: 600;
}

.cta-card {
  position: relative;
  padding: 64px;
  overflow: hidden;
  border-radius: 24px;
}

.cta-card__background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), transparent 45%, rgba(236, 254, 255, 0.85));
}

.cta-card h2 {
  margin: 0 0 16px;
  color: #111827;
  font-size: clamp(28px, 3.4vw, 36px);
  line-height: 1.3;
  font-weight: 800;
}

.cta-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .content-layer {
    padding: 64px 18px 32px;
  }

  .about-section {
    padding: 52px 0;
  }

  .section-title--spacious {
    margin-bottom: 40px;
  }

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

  .advantage-card,
  .credential-card {
    padding: 28px;
  }

  .cta-card {
    padding: 42px 24px;
  }
}

@media (max-width: 480px) {
  .content-layer {
    padding-right: 14px;
    padding-left: 14px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .about-copy {
    font-size: 14px;
  }

  .card-number {
    font-size: 42px;
  }

  .card-title {
    font-size: 25px;
  }

  .credential-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .credential-card h3 {
    font-size: 16px;
  }
}
</style>
