:root {
  --home-max-width: 1080px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #fff8fb 0%, #ffe6ef 35%, #fff1f6 100%);
  color: #32121f;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 24px 20px 12px;
}

.home-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--berry-dark);
  text-decoration: none;
}

.home-header__brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(226, 67, 98, 0.25);
}

.language-switcher {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 6px;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(50, 18, 31, 0.1);
}

.language-switcher button {
  background: transparent;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--berry-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-switcher button.active,
.language-switcher button:hover {
  background: var(--berry-primary);
  color: #fff;
}

.hero {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 32px 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: center;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 3rem);
  margin-bottom: 16px;
  color: var(--berry-dark);
}

.hero__text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual img {
  width: min(100%, 420px);
  border-radius: 28px;
  box-shadow: 0 28px 56px rgba(226, 67, 98, 0.18);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__cta a,
.hero__cta button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.hero__cta button {
  font-family: inherit;
}

.hero__cta a.primary,
.hero__cta button.primary {
  background: var(--berry-primary);
  color: #fff;
  box-shadow: 0 16px 32px rgba(226, 67, 98, 0.35);
}

.hero__cta a.primary:hover,
.hero__cta button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(226, 67, 98, 0.45);
}

.hero__cta button.primary:disabled,
.hero__cta button.primary[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.hero__cta a.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--berry-dark);
  border: 1px solid rgba(226, 67, 98, 0.35);
}

.hero__cta a.secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(226, 67, 98, 0.25);
}

.hero__cta-note {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 420px;
  color: rgba(50, 18, 31, 0.85);
}

.hero__card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 32px 64px rgba(226, 67, 98, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(226, 67, 98, 0.15);
}

.hero__card h2 {
  margin-top: 0;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--berry-primary);
}

.hero__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero__card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.section {
  max-width: var(--home-max-width);
  margin: 0 auto;
  padding: 32px 20px;
}

.section h2 {
  font-size: 1.8rem;
  color: var(--berry-dark);
  margin-bottom: 12px;
}

.section p.section-intro {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 32px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 24px 48px rgba(226, 67, 98, 0.12);
  border: 1px solid rgba(226, 67, 98, 0.15);
}

.highlight-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--berry-primary);
}

.highlight-card p {
  margin-bottom: 0;
  line-height: 1.55;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.command-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 16px 32px rgba(50, 18, 31, 0.08);
  border: 1px solid rgba(226, 67, 98, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.command-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--berry-dark);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.command-card .aliases {
  font-size: 0.85rem;
  color: rgba(50, 18, 31, 0.65);
}

.command-card p {
  margin: 0;
  line-height: 1.5;
}

.command-card code {
  background: rgba(50, 18, 31, 0.08);
  border-radius: 12px;
  padding: 6px 10px;
  display: inline-block;
  font-family: "Fira Code", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.command-card .example-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(50, 18, 31, 0.6);
}

.productivity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.productivity-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
}

.productivity-list strong {
  color: var(--berry-primary);
}

.home-footer {
  margin-top: 40px;
  padding: 32px 20px 48px;
  text-align: center;
  background: rgba(50, 18, 31, 0.06);
}

.home-footer p {
  margin: 0;
  line-height: 1.5;
}

.home-footer a {
  color: var(--berry-primary);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__card {
    order: -1;
  }

  .hero__visual img {
    max-width: 320px;
  }

  .home-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .language-switcher {
    align-self: flex-end;
  }
}
