:root {
  color-scheme: dark;
  --bg: #06112f;
  --panel: rgba(8, 19, 48, 0.74);
  --panel-strong: rgba(9, 24, 61, 0.92);
  --line: rgba(164, 197, 255, 0.24);
  --text: #f4f8ff;
  --muted: #b8c7e7;
  --soft: #dce8ff;
  --accent: #51d7ff;
  --accent-2: #ff76c9;
  --button: #1664ff;
  --button-2: #101f4f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top right, #183b9d 0, #071332 38%, #030816 100%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(4, 10, 28, 0.82), rgba(4, 10, 28, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #26d5ff, #1b5dff 52%, #ff73c9);
  box-shadow: 0 0 24px rgba(63, 172, 255, 0.44);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dropdown { position: relative; }

.nav-button,
.primary,
.secondary,
.download-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(10, 27, 68, 0.72);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.nav-button:hover,
.primary:hover,
.secondary:hover,
.download-button:hover { border-color: rgba(125, 221, 255, 0.72); }

.lang-button { min-width: 138px; justify-content: flex-start; }

.menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 13, 33, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.dropdown.open .menu { display: block; }

.menu a,
.menu button {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--soft);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
}

.menu a:hover,
.menu button:hover { background: rgba(81, 215, 255, 0.12); }

.lang-menu {
  max-height: min(68vh, 560px);
  overflow: auto;
  min-width: 260px;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 120px clamp(20px, 6vw, 82px) clamp(54px, 8vh, 84px);
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 8, 22, 0.86), rgba(4, 11, 32, 0.30) 48%, rgba(3, 8, 22, 0.18)),
    linear-gradient(0deg, rgba(3, 8, 22, 0.72), transparent 48%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
  word-break: normal;
}

h1 {
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
  margin: 0 0 18px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.lead {
  color: var(--soft);
  max-width: 660px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  margin: 0;
}

.actions,
.software-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.software-strip {
  margin-top: 30px;
}

.software-title {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.software-row {
  margin-top: 0;
}

.software-pill {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px 8px 8px;
  background: rgba(10, 27, 68, 0.72);
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.software-pill:hover {
  border-color: rgba(125, 221, 255, 0.72);
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  font-size: 13px;
}

.primary {
  background: linear-gradient(135deg, #1c72ff, #14cfff);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
  font-weight: 800;
}

.secondary { font-weight: 700; }

.band,
.download-section {
  padding: clamp(42px, 7vw, 86px) clamp(20px, 6vw, 82px);
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-head.compact { margin-bottom: 18px; }

.feature-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid article,
.download-card,
.version-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.24);
}

.feature-grid p,
.download-card p,
.version-box span {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-page {
  background:
    linear-gradient(180deg, rgba(4, 10, 28, 0.12), rgba(4, 10, 28, 0.96)),
    url("./assets/docstudio-hero.png") center top / cover fixed,
    #06112f;
}

.product-hero {
  min-height: 60svh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 0.72fr);
  align-items: end;
  gap: clamp(24px, 6vw, 84px);
  padding: 132px clamp(20px, 6vw, 82px) 42px;
}

.product-copy { max-width: 760px; }

.product-description {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 18, 46, 0.84);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.product-description h2 {
  font-size: clamp(26px, 3.2vw, 44px);
  margin-bottom: 16px;
}

.product-description p {
  color: var(--soft);
  font-size: 17px;
  line-height: 1.58;
  margin: 0 0 16px;
}

.product-description ul {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.product-description li + li { margin-top: 9px; }

.version-box {
  min-width: 170px;
  background: var(--panel-strong);
}

.version-box strong {
  display: block;
  font-size: 32px;
  margin-top: 8px;
}

.download-card {
  background: rgba(7, 18, 46, 0.88);
  display: grid;
  gap: 14px;
}

.download-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.os-badge {
  color: var(--accent);
  border: 1px solid rgba(81, 215, 255, 0.34);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 800;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.download-button {
  min-height: 42px;
  padding: 0 12px;
  font-weight: 800;
  background: rgba(22, 100, 255, 0.72);
}

.download-button.full {
  background: linear-gradient(135deg, #1c72ff, #14cfff);
}

.download-button.disabled {
  opacity: 0.48;
  pointer-events: none;
}

.fineprint {
  font-size: 12px;
  color: #91a4cc;
}

[dir="rtl"] .menu a,
[dir="rtl"] .menu button { text-align: right; }

[dir="rtl"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(3, 8, 22, 0.86), rgba(4, 11, 32, 0.30) 48%, rgba(3, 8, 22, 0.18)),
    linear-gradient(0deg, rgba(3, 8, 22, 0.72), transparent 48%);
}

@media (max-width: 820px) {
  .topbar { padding: 14px 16px; align-items: flex-start; }
  .brand span:last-child { display: none; }
  .nav { gap: 8px; }
  .nav-button { padding: 0 12px; }
  .lang-button { min-width: 112px; }
  .feature-grid,
  .download-grid,
  .product-hero { grid-template-columns: 1fr; }
  .hero { min-height: 100svh; padding-top: 104px; }
  .hero-image { object-position: center center; }
  .product-hero { min-height: auto; padding-top: 112px; }
  .download-actions { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .topbar { gap: 8px; }
  .nav { width: 100%; justify-content: flex-end; }
  .lang-button { max-width: 144px; }
  .menu { right: 0; }
  .hero { padding-left: 18px; padding-right: 18px; }
}
