:root {
  color-scheme: dark;
  --primary: #08111f;
  --secondary: #0e1b2b;
  --accent-orange: #ff874f;
  --accent-blue: #54e0d1;
  --accent-purple: #a78bfa;
  --accent-green: #54e0d1;
  --text: #f4f7fb;
  --text-muted: #a7b3c5;
  --border: rgba(165, 190, 218, 0.14);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 12% 10%, rgba(255, 135, 79, 0.13), transparent 34rem),
    radial-gradient(ellipse at 90% 86%, rgba(84, 224, 209, 0.11), transparent 38rem),
    #08111f;
  color: var(--text);
}

#magic-background {
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
}

.main-content {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 4rem);
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 3rem);
}

.hero-section,
.content-section {
  width: auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(17, 32, 49, 0.92), rgba(10, 21, 35, 0.82));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-section {
  flex: 0 1 36%;
  min-width: 280px;
  padding: clamp(2rem, 4vw, 4rem) 2rem;
  border-right: 1px solid var(--border);
}

.hero-image-container {
  display: grid;
  width: min(230px, 58vw);
  aspect-ratio: 1;
  margin-bottom: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 186, 128, 0.3);
  border-radius: 34%;
  background: radial-gradient(circle, rgba(255, 135, 79, 0.18), rgba(84, 224, 209, 0.07) 58%, transparent 72%);
  box-shadow: 0 0 70px rgba(255, 135, 79, 0.12), inset 0 0 35px rgba(84, 224, 209, 0.08);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.hero-image-container::before {
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 135, 79, 0.9), rgba(84, 224, 209, 0.72));
  opacity: 0.55;
  animation: none;
}

.hero-image-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 84px rgba(255, 135, 79, 0.2), inset 0 0 35px rgba(84, 224, 209, 0.12);
}

.hero-image {
  width: 68%;
  height: 68%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(255, 135, 79, 0.22));
}

.hero-title {
  margin-bottom: 0.65rem;
  background: linear-gradient(100deg, #fff2df 8%, #ff985f 52%, #75eee0 100%);
  background-size: 100% 100%;
  animation: none;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: 0.08em;
  text-shadow: none;
}

.hero-subtitle {
  max-width: 19rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(84, 224, 209, 0.2);
  border-radius: 999px;
  background: rgba(84, 224, 209, 0.07);
  color: #b8fff6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-badge span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #54e0d1;
  box-shadow: 0 0 12px rgba(84, 224, 209, 0.75);
}

.content-section {
  flex: 1 1 64%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.navbar {
  gap: 1.5rem;
  padding: 0.35rem 0 1.25rem;
  margin-bottom: 1rem;
}

.navbar::after {
  background: linear-gradient(90deg, transparent, rgba(84, 224, 209, 0.65), rgba(255, 135, 79, 0.55), transparent);
  animation: none;
}

.nav-links,
.social-links {
  align-items: center;
  gap: 0.45rem;
}

.nav-link,
.social-link {
  margin: 0;
}

.nav-link a {
  display: inline-flex;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: #c5d0df;
  font-size: 0.9rem;
}

.nav-link a::after {
  display: none;
}

.nav-link a:hover {
  background: rgba(84, 224, 209, 0.08);
  color: #8af3e7;
}

.social-link a {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  color: #c5d0df;
  box-shadow: none;
}

.social-link a:hover {
  border-color: rgba(84, 224, 209, 0.4);
  background: rgba(84, 224, 209, 0.1);
  color: #8af3e7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.welcome-content {
  align-items: flex-start;
  padding: clamp(1rem, 3vw, 2.5rem) 0;
  text-align: left;
}

.welcome-kicker {
  margin-bottom: 1rem;
  color: #78e9db;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.welcome-title {
  max-width: 780px;
  margin-bottom: 1.25rem;
  color: #f7f8fc;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.welcome-title span {
  display: block;
  background: linear-gradient(100deg, #ffae75, #80eee1 75%);
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-description {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.cta-buttons {
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-button {
  min-height: 50px;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(120deg, #ff9a5c, #ff744e);
  background-size: 100% 100%;
  box-shadow: 0 12px 30px rgba(255, 116, 78, 0.16);
  animation: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 116, 78, 0.24);
}

.cta-button-secondary {
  border-color: rgba(130, 235, 222, 0.24);
  background: rgba(84, 224, 209, 0.07);
  color: #c8fff7;
  box-shadow: none;
}

.cta-button-secondary:hover {
  border-color: rgba(130, 235, 222, 0.45);
  background: rgba(84, 224, 209, 0.13);
  box-shadow: 0 12px 28px rgba(22, 185, 172, 0.12);
}

.feature-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: clamp(2rem, 5vw, 3.8rem);
}

.feature-card {
  display: flex;
  min-height: 118px;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 224, 209, 0.28);
  background: rgba(84, 224, 209, 0.045);
}

.feature-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 135, 79, 0.2);
  border-radius: 11px;
  background: rgba(255, 135, 79, 0.08);
  color: #ffad79;
}

.feature-card h3 {
  margin: 0.1rem 0 0.4rem;
  color: #eef4fa;
  font-size: 0.86rem;
  line-height: 1.4;
}

.feature-card p {
  margin: 0;
  color: #94a4b9;
  font-size: 0.76rem;
  line-height: 1.55;
}

.nav-link a:focus-visible,
.social-link a:focus-visible,
.cta-button:focus-visible,
.hero-image-container:focus-visible {
  outline: 3px solid #78e9db;
  outline-offset: 4px;
}

@media (max-width: 1050px) {
  .main-content {
    flex-direction: column;
  }

  .hero-section {
    flex: none;
    min-width: 0;
    min-height: 0;
    padding: 2rem;
    border-right: 1px solid var(--border);
  }

  .hero-image-container {
    width: 132px;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    margin-bottom: 1rem;
  }

  .content-section {
    flex: none;
  }
}

@media (max-width: 640px) {
  .main-content {
    min-height: 100svh;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .hero-section,
  .content-section {
    border-radius: 20px;
  }

  .hero-section {
    padding: 1.35rem 1rem;
  }

  .hero-image-container {
    width: 92px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .content-section {
    padding: 1rem;
  }

  .navbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link a {
    padding: 0.55rem 0.65rem;
    font-size: 0.82rem;
  }

  .welcome-content {
    padding: 1.25rem 0 0.5rem;
  }

  .welcome-kicker {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .welcome-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .cta-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cta-button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .feature-card {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
