:root {
  --primary: hsl(140, 71%, 45%);
  --primary-hover: hsl(140, 76%, 36%);
  --primary-soft: hsl(140, 61%, 20%);
  --primary-light: hsl(140, 100%, 80%);

  --bg-main: hsl(140, 29%, 5%);
  --bg-card: hsl(140, 22%, 8%);
  --bg-card-2: hsl(140, 20%, 11%);
  --bg-element: hsl(140, 21%, 7%);
  --bg-element-2: hsl(140, 19%, 13%);

  --card-inner-a: hsl(0, 0%, 100%);
  --card-inner-b: hsl(0, 0%, 75%);
  --card-border-a: hsl(0, 0%, 75%);
  --card-border-b: hsl(0, 0%, 100%);

  --text-main: hsl(0, 0%, 100%);
  --text-soft: hsl(140, 16%, 76%);
  --text-muted: hsl(140, 10%, 58%);
  --text-footer: hsl(140, 8%, 49%);

  --btn-secondary: hsl(140, 22%, 12%);
  --btn-secondary-hover: hsl(140, 18%, 16%);

  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, hsla(142, 71%, 45%, 0.1), transparent 35%),
    var(--bg-main);
  color: var(--text-main);
}

.glowing {
  color: var(--primary-light);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.language-dropdown {
  position: relative;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-width: 92px;
  height: 48px;
  padding: 0 16px;

  background: var(--btn-secondary);
  color: var(--text-main);

  border: 1px solid var(--border-soft);
  border-radius: 14px;

  font-weight: 700;
  font-size: 16px;
  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.language-switcher:hover {
  background: var(--btn-secondary-hover);
  border-color: hsla(140, 71%, 45%, 0.3);
}

.language-switcher:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(140, 71%, 45%, 0.2);
}

.language-dropdown.open .language-switcher {
  background: var(--btn-secondary-hover);
  border-color: hsla(140, 71%, 45%, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.language-switcher-label {
  line-height: 1;
  white-space: nowrap;
}

.language-switcher-arrow {
  width: 10px;
  height: 10px;
  flex-shrink: 0;

  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);

  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.language-dropdown.open .language-switcher-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1000;

  min-width: 100%;
  padding: 8px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  background: rgba(16, 25, 20, 0.98);
  border: 1px solid hsla(140, 71%, 45%, 0.2);
  border-radius: 16px;

  box-shadow: 0 18px 40px hsla(0, 0%, 0%, 0.4);
  backdrop-filter: blur(12px);

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.language-dropdown.open .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-option {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: flex-start;

  background: transparent;
  color: var(--text-main);

  border: 1px solid transparent;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.language-option:hover {
  background: hsla(140, 71%, 45%, 0.1);
  border-color: hsla(140, 71%, 45%, 0.2);
  color: var(--primary-light);
}

.language-option.is-active {
  background: hsla(140, 71%, 45%, 0.15);
  border-color: hsla(140, 71%, 45%, 0.2);
  color: var(--primary-light);
}

.language-switcher-native {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.language-menu[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px hsla(140, 71%, 45%, 0.2);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--btn-secondary);
  color: #fff;
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

.hero {
  padding: 44px 0 26px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: center;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-title h1 {
  flex: 1;
  min-width: 0;
  height: 150px;
  margin: 0;

  display: flex;
  align-items: center;

  font-size: 32px;
  line-height: 1.1;
}

.hero h1 {
  margin: 0;
}

.hero p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-note {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.hero-logo-card {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.hero-logo-card .link-border {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background-image: linear-gradient(
    to right bottom,
    var(--card-border-a),
    var(--card-border-b)
  );
  transition: 0.2s;
}

.hero-logo-card .link-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-image: linear-gradient(
    to right bottom,
    var(--card-inner-a),
    var(--card-inner-b)
  );

  box-shadow: var(--shadow-soft);
  transition: 0.2s;
}

.hero-logo-card:hover .link-border {
  background-image: linear-gradient(
    to right bottom,
    var(--card-border-b),
    var(--card-border-a)
  );
}

.hero-logo-card:hover .link-inner {
  background-image: linear-gradient(
    to right bottom,
    var(--card-inner-b),
    var(--card-inner-a)
  );
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: hsla(140, 71%, 45%, 0.1);
  border: 1px solid hsla(140, 71%, 45%, 0.2);
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.preview-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--primary);
  box-shadow: 0 20px 60px hsla(0, 0%, 0%, 0.45);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.25s ease;
}

.preview-image:hover {
  transform: scale(1.02);
}

.section {
  padding: 34px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 34px;
}

.section-intro {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.step-card,
.plan-card {
  background: var(--bg-card);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}

.feature-card h3,
.step-card h3,
.plan-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.feature-card p,
.step-card p,
.plan-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 15px;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: hsla(140, 71%, 45%, 0.15);
  color: var(--primary-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 14px;
  border: 1px solid hsla(140, 71%, 45%, 0.2);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.plan-card h3 {
  font-size: 24px;
}

.plan-card .plan-price {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 14px;
}

.plan-card p {
  margin-bottom: 14px;
}

.pro-trial {
  font-size: 13px;
  font-weight: bold;
  color: var(--detail-color);
  margin-top: -10px;
  margin-bottom: 15px;
}

.plan-list {
  margin: 0;
  padding-left: 18px;
  color: #fff;
  line-height: 1.8;
}

.featured-plan {
  position: relative;
}

.cta {
  padding: 40px 0 60px;
}

.cta-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-2));
  border-radius: 28px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border-soft);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.cta-box p {
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.6;
  max-width: 760px;
  margin-inline: auto;
}

.footer {
  padding: 24px 0 40px;
  text-align: center;
  color: var(--text-footer);
  font-size: 14px;
}

.footer-legal-links {
  margin-top: 10px;
  font-size: 14px;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 20px;
  transition: color 0.2s ease;
}

.footer-legal-links a:last-child {
  margin-right: 0;
}

.footer-legal-links a:hover {
  color: var(--text-main);
}

.scroll-top-btn {
  position: fixed;
  bottom: 26px;
  right: 26px;

  width: 48px;
  height: 48px;

  border-radius: 14px;
  border: none;

  background: hsla(140, 71%, 45%, 0.15);
  border: 1px solid hsla(140, 71%, 45%, 0.25);

  color: var(--primary-light);
  font-size: 20px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);

  opacity: 0;
  transform: translateY(10px);

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-top-btn:hover {
  background: hsla(140, 71%, 45%, 0.25);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.scroll-top-btn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .topbar-actions,
  .hero-actions {
    width: 100%;
  }

  .topbar-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .language-dropdown {
    width: 100%;
  }

  .language-switcher {
    width: 100%;
  }

  .language-menu {
    left: 0;
    right: 0;
    min-width: unset;
  }

  .hero-logo-card {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
  }

  .hero {
    padding: 26px 0 20px;
  }

  .hero-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero-title h1 {
    height: 70px;
    font-size: 18px;
    line-height: 1.1;
  }

  .hero-grid,
  .features,
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .hero p {
    font-size: 16px;
  }

  .section {
    padding: 28px 0;
  }

  .section h2,
  .cta-box h2 {
    font-size: 28px;
  }

  .section-intro,
  .cta-box p {
    font-size: 16px;
  }

  .feature-card,
  .step-card,
  .plan-card {
    padding: 20px;
  }

  .cta-box {
    padding: 24px 18px;
  }

  .scroll-top-btn {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}
