html {
  width: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

:root {
  --bg: #010009;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --surface: rgba(15, 23, 42, 0.76);
  --surface-strong: rgba(15, 23, 42, 0.92);
  --highlight: rgba(59, 130, 246, 0.55);
  --border: rgba(148, 163, 184, 0.25);
  --accent-a: #60a5fa;
  --accent-b: #f472b6;
  --accent-c: #facc15;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100%;
  scrollbar-width: none;
  min-height: 100vh;
  background:
  radial-gradient(circle at 15% -10%, rgba(124, 58, 237, 0.42), transparent 60%),
  radial-gradient(circle at 80% 12%, rgba(147, 51, 234, 0.3), transparent 65%),
  radial-gradient(circle at 50% 95%, rgba(59, 130, 246, 0.18), transparent 55%),
  var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.5rem 1.25rem 7rem;
  position: relative;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}

.backdrop::before,
.backdrop::after {
  content: '';
  position: absolute;
  width: 120vw;
  height: 120vw;
  top: -60vw;
  left: -10vw;
  background: conic-gradient(from 120deg, rgba(124, 58, 237, 0.38) 0deg, rgba(147, 51, 234, 0.32) 150deg, rgba(59, 130, 246, 0.24) 300deg, rgba(124, 58, 237, 0.38) 360deg);
  filter: blur(140px);
  transform-origin: 60% 55%;
  animation: rotateMesh 42s linear infinite;
  mix-blend-mode: screen;
}

.backdrop::after {
  animation-direction: reverse;
  animation-duration: 58s;
  top: auto;
  bottom: -70vw;
  left: -35vw;
  opacity: 0.6;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
  linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 0),
  linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 0);
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.4), transparent 70%);
  z-index: -1;
  animation: driftGrid 22s linear infinite;
}

.hero {
  width: min(100%, 960px);
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero h1,
.hero p,
.hero .fx-line {
  opacity: 0;
  animation: fadeUpSoft 620ms ease forwards;
}

.hero h1 {
  animation-delay: 80ms;
}

.hero p {
  animation-delay: 200ms;
}

.hero .fx-line {
  animation-delay: 320ms;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -22% -8% 45% -8%;
  background: radial-gradient(circle at top, rgba(147, 51, 234, 0.45), transparent 70%);
  filter: blur(80px);
  opacity: 0.85;
  animation: pulseLight 16s ease-in-out infinite;
  z-index: -1;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 1.7rem;
  backdrop-filter: blur(14px);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  color: #f8fafc;
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 620px;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--muted);
}

.fx-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.1rem;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.2em;
}

.fx-line::before,
.fx-line::after {
  content: '';
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4));
}

.apps {
  width: min(100%, 1024px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  margin-bottom: 4.2rem;
}

.app-card {
  position: relative;
  padding: 2.4rem 2.2rem;
  opacity: 0;
  animation: riseSoft 640ms ease forwards;
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.95), rgba(1, 6, 20, 0.9));
  border: 1px solid rgba(59, 130, 246, 0.22);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-height: 300px;
  backdrop-filter: blur(18px);
  transform: perspective(1100px) rotateX(3deg) rotateY(-2deg);
  transition: border-color 280ms ease, box-shadow 280ms ease;
  box-shadow: 0 28px 80px rgba(2, 6, 23, 0.65);
  overflow: hidden;
}

.apps .app-card:nth-child(1) {
  animation-delay: 200ms;
}

.apps .app-card:nth-child(2) {
  animation-delay: 320ms;
}

.apps .app-card:nth-child(3) {
  animation-delay: 440ms;
}

.app-card::before {
  content: '';
  position: absolute;
  inset: -35% -25% 45%;
  background: radial-gradient(circle at 20% 25%, rgba(124, 58, 237, 0.6), transparent 55%),
  radial-gradient(circle at 78% 30%, rgba(147, 51, 234, 0.38), transparent 60%);
  filter: blur(22px);
  opacity: 0.85;
  animation: driftSparks 16s ease-in-out infinite;
  z-index: -1;
}

.app-card:hover {
  transform: perspective(1100px) rotateX(3deg) rotateY(-2deg);
  border-color: rgba(147, 51, 234, 0.4);
  box-shadow: 0 32px 90px rgba(124, 58, 237, 0.35);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.app-icon {
  width: 82px;
  height: 82px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(59, 130, 246, 0.35));
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 44px rgba(2, 6, 23, 0.6);
  animation: floatIcon 7s ease-in-out infinite;
  overflow: hidden;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  box-sizing: border-box;
}

.app-title {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-title span {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.app-title h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f8fafc;
  text-transform: none;
}

.app-description {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  line-height: 1.7;
  font-size: 1rem;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  font-weight: 600;
  color: #f8fafc;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  background: linear-gradient(140deg, #1e1b4b, #4c1d95);
  position: relative;
  overflow: hidden;
  transition: box-shadow 220ms ease, filter 220ms ease;
  box-shadow: 0 16px 34px rgba(30, 27, 75, 0.45);
}

.app-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-100%);
  transition: transform 420ms ease;
}

.app-link:hover::after,
.app-link:focus-visible::after {
  transform: translateX(0);
}

.app-link:hover,
.app-link:focus-visible {
  box-shadow: 0 22px 48px rgba(76, 29, 149, 0.55);
  filter: brightness(1.05);
}

footer {
  position: sticky;
  bottom: 1.5rem;
  width: min(100%, 1024px);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  margin-top: 2.5rem;
  z-index: 5;
}

body.contact-page {
  padding: 2.8rem 1.6rem 3.2rem;
  align-items: stretch;
}

.contact-page__container {
  width: min(100%, 720px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  min-height: calc(100vh - 5.5rem);
}

.contact-page__header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  opacity: 0;
  animation: fadeUpSoft 420ms ease 40ms forwards;
}

.contact-page__header h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
}

.contact-page__header p {
  margin: 0;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.7;
  font-size: 1rem;
}

.contact-page__back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: rgba(148, 163, 184, 0.85);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: border 200ms ease, color 200ms ease, background 200ms ease;
}

.contact-page__back:hover,
.contact-page__back:focus-visible {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.4);
  color: #f8fafc;
  outline: none;
}

.contact-page__main {
  flex: 1 1 auto;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.9));
  border-radius: 28px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 36px 120px rgba(2, 6, 23, 0.66);
  padding: 2.2rem 2.3rem 2.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  opacity: 0;
  animation: riseSoft 480ms ease 120ms forwards;
  will-change: transform, opacity;
}

.contact-page__main .contact-form {
  flex: 1 1 auto;
}

.contact-page__main #form-result {
  margin-top: auto;
}

.contact-wrap {
  pointer-events: auto;
}

.contact-cta {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, #1b1839, #5b21b6);
  color: #f8fafc;
  font-weight: 600;
  padding: 0.95rem 2.7rem;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  border: 1px solid rgba(124, 58, 237, 0.65);
  box-shadow: 0 0 0 2px rgba(15, 6, 32, 0.6), 0 18px 42px rgba(46, 16, 101, 0.5);
  transition: box-shadow 220ms ease, filter 220ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-cta:hover,
.contact-cta:focus-visible {
  box-shadow: 0 0 0 2px rgba(91, 33, 182, 0.75), 0 30px 60px rgba(91, 33, 182, 0.6);
  filter: brightness(1.06);
  outline: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

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

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-input,
.contact-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.75);
  color: var(--text);
  padding: 0.95rem 1.05rem;
  font-size: 1rem;
  transition: border 200ms ease, box-shadow 200ms ease, background 200ms ease;
  resize: vertical;
  min-height: 52px;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: rgba(2, 6, 23, 0.95);
}

.contact-textarea {
  min-height: 170px;
}

.contact-submit {
  align-self: flex-start;
  border: none;
  border-radius: 999px;
  background: linear-gradient(140deg, #1e1b4b, #4c1d95);
  color: #f8fafc;
  font-weight: 600;
  padding: 0.9rem 2.6rem;
  cursor: pointer;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: box-shadow 200ms ease, filter 200ms ease;
  box-shadow: 0 20px 46px rgba(30, 27, 75, 0.45);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  box-shadow: 0 26px 60px rgba(76, 29, 149, 0.55);
  filter: brightness(1.05);
  outline: none;
}

.contact-form__result {
  min-height: 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: rgba(148, 163, 184, 0.8);
}

.contact-form__result.is-success {
  color: #34d399;
}

.contact-form__result.is-error {
  color: #f87171;
}

.contact-form__result.is-sending {
  color: rgba(148, 163, 184, 0.85);
}

.contact-form__honeypot {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

@keyframes rotateMesh {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

@keyframes driftGrid {
0% { transform: translate3d(0, 0, 0); }
50% { transform: translate3d(28px, 20px, 0); }
100% { transform: translate3d(0, 0, 0); }
}

@keyframes pulseLight {
0%, 100% { opacity: 0.7; transform: scale(1); }
50% { opacity: 0.95; transform: scale(1.07); }
}

@keyframes driftSparks {
0%, 100% { transform: translate3d(-10px, 8px, 0); }
50% { transform: translate3d(10px, -6px, 0); }
}

@keyframes floatIcon {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-6px); }
}

@keyframes fadeUpSoft {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes riseSoft {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 1200px) {
  body {
    padding: 3.5rem 2.5rem 3.5rem;
    justify-content: center;
  }

  .hero {
    margin-bottom: 2.4rem;
  }

  .apps {
    gap: 1.75rem;
    margin-bottom: 2.2rem;
  }

  .app-card {
    min-height: 280px;
  }

  footer {
    position: static;
    margin-top: 0;
  }

  .contact-cta {
    padding: 0.85rem 2.4rem;
  }
}

@media (max-width: 960px) {
  body {
    padding: 4rem 1.1rem 6.5rem;
  }

  .apps {
    gap: 1.75rem;
  }

  body.contact-page {
    padding: 2.4rem 1.35rem 2.8rem;
  }

  .contact-page__main {
    padding: 2rem 2rem 2.5rem;
  }
}

@media (max-width: 720px) {
  body {
    padding-top: 3.2rem;
    padding-bottom: 4.5rem;
  }

  .hero {
    margin-bottom: 2.4rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .apps {
    gap: 1.4rem;
  }

  .app-card {
    padding: 2rem 1.8rem;
    transform: none;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }

  footer {
    position: static;
    bottom: auto;
    width: 100%;
    margin-top: 2.2rem;
    pointer-events: auto;
  }

  .contact-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  body.contact-page {
    padding: 1.8rem 1.1rem 2rem;
  }

  .contact-page__container {
    width: 100%;
    gap: 1.7rem;
    min-height: calc(100vh - 3.8rem);
  }

  .contact-page__header {
    gap: 0.6rem;
  }

  .contact-page__header p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .contact-page__main {
    border-radius: 20px;
    padding: 1.6rem 1.35rem 2.1rem;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  body.contact-page .contact-page__header,
  body.contact-page .contact-page__main {
    opacity: 1 !important;
    animation: none !important;
  }
}
