/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Dark Forest palette */
  --bg-html: #0C0F14;
  --bg-primary: #0c0f14d5;
  --bg-primary-full: #0c0f14;
  --bg-secondary: #12161Ed5;
  --bg-tertiary: #1A1F2Bd5;
  --green: #54B435;
  --green-shd: #54B43566;
  --green-dark: #449128;
  --green-glow: rgba(84, 180, 53, 0.15);
  --green-glow-strong: rgba(84, 180, 53, 0.25);
  --amber: #F59E0B;
  --text-primary: #E8ECF1;
  --text-secondary: #8B95A5;
  --text-muted: #4A5568;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1200px;
  --radius: 10px;
  --radius-lg: 16px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-html);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--amber);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.bg-shape {
    position: fixed; /* or absolute if your container is relative */
    pointer-events: none;
    opacity: 0.5; /* adjust to taste — 5–10% is usually right */
    z-index: 0;
    filter: invert(59%) sepia(100%) saturate(342%) hue-rotate(60deg) brightness(84%) contrast(87%) drop-shadow(3px 5px 2px var(--green-shd));
}

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-secondary);
  position: relative;
}

.section--dark {
  background: var(--bg-primary);
  position: relative;
}


/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 20px var(--green-glow), 0 4px 12px rgba(0,0,0,0.3);
}

.btn--primary:hover {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 0 30px var(--green-glow-strong), 0 6px 20px rgba(0,0,0,0.4);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-glow);
}

.btn--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ===== Header ===== */
.header {
  background: rgba(12, 15, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s, background 0.3s;
}

.header--scrolled {
  background: rgba(12, 15, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__logo img {
  height: 34px;
  width: 34px;
  border-radius: 8px;
}

.header__logo:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.header__logo span {
  margin-left: -8px;
  color: var(--green);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
  background: var(--glass);
  text-decoration: none;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-primary-full);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.footer__brand span {
  color: var(--green);
}

.footer__text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--green);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer__bottom a {
  color: var(--text-muted);
}

.footer__bottom a:hover {
  color: var(--green);
}

/* ===== Hero ===== */
.hero {
  padding: 7rem 0 6rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero__text {
  width: 100%;
  max-width: 800px;
  text-align: center;
}

.hero__media {
  width: 100%;
  max-width: 1100px;
}

.hero__video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--green-glow-strong);
  box-shadow: 0 0 90px rgba(84, 180, 53, 0.25), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__subtitle::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.hero__subtitle::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero__desc {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero entrance animation */
.hero__text > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero__text > *:nth-child(1) { animation-delay: 0.1s; }
.hero__text > *:nth-child(2) { animation-delay: 0.2s; }
.hero__text > *:nth-child(3) { animation-delay: 0.3s; }
.hero__text > *:nth-child(4) { animation-delay: 0.4s; }

.hero__media {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Features ===== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 3px;
  background: var(--green);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--green-glow-strong);
  box-shadow: 0 0 40px var(--green-glow), 0 8px 30px rgba(0,0,0,0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-glow);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(84, 180, 53, 0.2);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

/* ===== Testimonials ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonial {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: border-color 0.3s;
}

.testimonial:hover {
  border-color: var(--border-hover);
}

.testimonial__quote {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.testimonial__quote::before {
  content: "\201C";
  font-size: 3rem;
  color: var(--green);
  line-height: 0;
  vertical-align: -0.5em;
  margin-right: 0.1em;
  text-shadow: 0 0 20px var(--green-glow-strong);
}

.testimonial__author {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial__role {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* ===== Testimonial Video ===== */
.testimonial-video {
  margin-top: 3rem;
  text-align: center;
}

.testimonial-video__credit {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== CTA Section ===== */
.cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2rem;
}

.cta p {
  max-width: 560px;
  margin: 1.25rem auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  font-weight: 300;
}

/* ===== Page Header ===== */
.page-header {
  background: var(--bg-secondary);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

.page-header p {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-size: 1.05rem;
  font-weight: 300;
}

/* ===== Content Pages ===== */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  letter-spacing: -0.01em;
}

.content h3 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
}

.content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-weight: 300;
}

.content ul, .content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--text-secondary);
}

.content li {
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.content code {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 5px;
  font-size: 0.88em;
  color: var(--green);
}

.content pre {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.content th, .content td {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 300;
}

.content th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.content td {
  color: var(--text-secondary);
}

/* ===== Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--green-glow-strong);
  box-shadow: 0 0 30px var(--green-glow), 0 8px 24px rgba(0,0,0,0.3);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-weight: 300;
}

.card a {
  font-weight: 600;
  font-size: 0.85rem;
}

/* ===== Downloads ===== */
.download-version {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass);
}

.download-version__header {
  background: var(--bg-tertiary);
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-version__header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.download-version__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-version__date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.changelog-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.changelog-link:hover {
  color: var(--green);
}

.download-version__links {
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.88rem;
  transition: all 0.25s;
  background: var(--glass);
}

.download-link:hover {
  border-color: var(--green);
  background: var(--green-glow);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--green-glow);
}

.download-link__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}

.download-link:hover .download-link__icon {
  opacity: 1;
}

.download-version--latest {
  border-color: rgba(84, 180, 53, 0.3);
  box-shadow: 0 0 30px var(--green-glow);
}

.download-version--latest .download-version__header {
  background: var(--green-glow);
  border-bottom: 1px solid rgba(84, 180, 53, 0.15);
}

.latest-badge {
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.2em 0.7em;
  border-radius: 4px;
  margin-left: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Tabs ===== */
.tabs {
  margin: 2.5rem 0;
}

.tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.tabs__btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s;
}

.tabs__btn:hover {
  color: var(--text-primary);
}

.tabs__btn--active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.tabs__panel {
  display: none;
  padding: 2rem 0;
}

.tabs__panel--active {
  display: block;
}

/* ===== License Page ===== */
.license-card {
  max-width: 480px;
  margin: 3rem auto;
  text-align: center;
  border: 1px solid rgba(84, 180, 53, 0.3);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  background: var(--glass);
  box-shadow: 0 0 60px var(--green-glow), 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.license-card::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 60%);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.license-card__img {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
}

.license-card h2 {
  position: relative;
  z-index: 1;
}

.license-card__price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--green);
  margin: 0.75rem 0;
  position: relative;
  z-index: 1;
}

.license-card__price span {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.license-card ul {
  list-style: none;
  text-align: left;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
}

.license-card li {
  padding: 0.65rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}

.license-card li::before {
  content: "\2713  ";
  color: var(--green);
  font-weight: 700;
}

/* ===== Form ===== */
.form {
  max-width: 440px;
  margin: 2rem auto;
}

.form__group {
  margin-bottom: 1.25rem;
}

.form__label {
  display: block;
  font-weight: 600;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.form__input::placeholder {
  color: var(--text-muted);
}

.form__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 20px var(--green-glow);
}

.form__message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  display: none;
  text-align: center;
}

.form__message--success {
  background: var(--green-glow);
  color: var(--green);
  border: 1px solid rgba(84, 180, 53, 0.2);
}

.form__message--error {
  background: rgba(220, 38, 38, 0.1);
  color: #F87171;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* ===== Screenshots & Media ===== */
.screenshot {
  display: block;
  max-width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  margin: 2rem auto;
}

.content video {
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.content .small-video {
  width: 50%;
}

.content .large-video {
  width: 140%;
  margin-left: -20%;
}

.features__showcase {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.features__showcase img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.features__showcase img:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px var(--green-glow), 0 12px 40px rgba(0,0,0,0.5);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Language switcher ===== */
.lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 1000;
  font-family: var(--font-body);
}

.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  background: rgba(12, 15, 20, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  border-color: var(--green);
  background: rgba(12, 15, 20, 0.9);
  color: var(--green);
}

.lang-switcher__caret {
  transition: transform 0.2s;
  opacity: 0.7;
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__caret {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 170px;
  list-style: none;
  padding: 0.4rem;
  margin: 0;
  background: rgba(18, 22, 30, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--green-glow);
}

.lang-switcher__menu[hidden] {
  display: none;
}

.lang-switcher__menu button,
.lang-switcher__menu a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.lang-switcher__menu button:hover,
.lang-switcher__menu a:hover {
  background: var(--glass);
  color: var(--green);
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(12, 15, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  }

  .nav--open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__media {
    max-width: 100%;
  }

  .hero__subtitle::before {
    display: none;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 4rem 0;
  }

  .features__showcase {
    grid-template-columns: 1fr;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .lang-switcher {
    right: 4.5rem;
  }
}

@media (max-width: 544px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 1.25rem; }

  .lang-switcher {
    top: 0.75rem;
    right: 3.75rem;
  }

  .lang-switcher__btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
  }
}

/* ===== Checkout Warning ===== */
.checkout-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius);
  color: var(--amber);
  padding: 0.85rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.checkout-warning__icon { margin-right: 0.5rem; }

/* ===== Background Layer ===== */
#bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* ===== Content modifiers ===== */
.content--centered { text-align: center; }
.content--status   { padding: 5rem 1.5rem; }
.content--sm       { max-width: 640px; }
.content--narrow   { max-width: 600px; }
.content--wide     { max-width: 900px; }

/* ===== Container modifier ===== */
.container--section { padding: 3rem 1.5rem; }

/* ===== Button modifiers ===== */
.btn--block {
  width: 100%;
  display: block;
  text-align: center;
}

/* ===== Centered button group ===== */
.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ===== Status page icon (checkmark / emoji) ===== */
.status-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--green);
}

/* ===== Section heading (centered) ===== */
.section__title { text-align: center; }

/* ===== Note text (secondary color, small) ===== */
.note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Post-card notes block (buy page) ===== */
.buy-notes {
  text-align: center;
  margin-top: 2rem;
}
.buy-notes p + p { margin-top: 0.5rem; }

/* ===== License card helper note ===== */
.license-card__note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== Card as anchor link ===== */
a.card {
  text-decoration: none;
  color: inherit;
}

/* ===== Card call-to-action label ===== */
.card__cta {
  color: var(--green);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== Doc-page "next chapter" nav link ===== */
.content__next {
  text-align: center;
  margin-top: 2rem;
}

/* ===== Section-level upsell/note block ===== */
.section-note {
  text-align: center;
  margin-top: 2rem;
}
.section-note p { color: var(--text-secondary); }

/* ===== Margin utilities ===== */
.mt-1  { margin-top: 1rem; }
.mt-1h { margin-top: 1.5rem; }
.mt-2  { margin-top: 2rem; }
