:root {
  --blue-900: #0b2f58;
  --blue-800: #114d8f;
  --blue-700: #1a65b8;
  --blue-600: #2c84d6;
  --blue-300: #a9d5ff;
  --ink: #0f2f4f;
  --soft: #567596;
  --white: #fff;
  --border: rgba(26, 101, 184, 0.2);
  --shadow: 0 20px 42px rgba(9, 46, 90, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Sora", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(44, 132, 214, 0.15), transparent 35%),
    radial-gradient(circle at 88% 82%, rgba(17, 77, 143, 0.1), transparent 32%),
    linear-gradient(165deg, #f9fcff 0%, #eef6ff 48%, #f8fbff 100%);
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.bg-shape-1 {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -90px;
  background: radial-gradient(circle, rgba(44, 132, 214, 0.18) 0%, rgba(44, 132, 214, 0.02) 74%);
}

.bg-shape-2 {
  width: 300px;
  height: 300px;
  left: -76px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(26, 101, 184, 0.16) 0%, rgba(26, 101, 184, 0.02) 72%);
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 34px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 249, 255, 0.92));
  box-shadow: var(--shadow);
}

.site-lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-end;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.88);
}

.site-lang-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--blue-800);
}

.site-lang-select {
  border: 1px solid rgba(26, 101, 184, 0.25);
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 24px));
  margin: 14px auto 24px;
  padding: 10px;
}

.hero-main {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", "Gill Sans", sans-serif;
  letter-spacing: -0.02em;
  color: var(--blue-900);
}

h1 {
  margin-top: 2px;
  font-size: clamp(1.55rem, 3.2vw, 2.3rem);
  line-height: 1.1;
}

.hero-text {
  margin: 0 auto;
  max-width: 64ch;
  color: var(--soft);
  line-height: 1.56;
  font-size: clamp(0.9rem, 1.7vw, 1rem);
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--blue-700);
  font-weight: 700;
  text-transform: uppercase;
}

.logo-stage {
  position: relative;
  width: min(92vw, 430px);
  margin: 0 auto 10px;
  aspect-ratio: 16 / 7;
  display: grid;
  place-items: center;
}

.hero-logo {
  width: clamp(250px, 40vw, 430px);
  height: auto;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 12px 18px rgba(17, 77, 143, 0.16));
}

.orbit {
  position: absolute;
  inset: 16% 8%;
  border-radius: 999px;
  border: 1px solid rgba(44, 132, 214, 0.22);
}

.orbit-a {
  animation: spin 12s linear infinite;
}

.orbit-b {
  inset: 8% 2%;
  border-color: rgba(17, 77, 143, 0.14);
  animation: spin-reverse 16s linear infinite;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 14px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  box-shadow: 0 12px 22px rgba(11, 66, 124, 0.26);
}

.button-primary:hover {
  box-shadow: 0 14px 26px rgba(11, 66, 124, 0.3);
}

.button-ghost {
  text-decoration: none;
  color: var(--blue-800);
  border-color: rgba(26, 101, 184, 0.25);
  background: rgba(255, 255, 255, 0.86);
}

.hero-actions .button {
  min-width: clamp(170px, 23vw, 240px);
}

.hero-legal-note {
  margin: 10px auto 0;
  max-width: 72ch;
  border: 1px solid rgba(26, 101, 184, 0.16);
  border-radius: 10px;
  background: rgba(238, 246, 255, 0.78);
  color: #436688;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 8px 10px;
}

.modules {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(236, 247, 255, 0.88));
  padding: 16px;
  box-shadow: 0 12px 26px rgba(9, 46, 90, 0.1);
  animation: card-in 0.55s ease both;
}

.module-card:nth-child(2) {
  animation-delay: 0.08s;
}

.module-card:nth-child(3) {
  animation-delay: 0.16s;
}

.module-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid rgba(26, 101, 184, 0.25);
  background: linear-gradient(145deg, rgba(232, 244, 255, 0.94), rgba(218, 236, 255, 0.86));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.module-icon svg {
  width: 34px;
  height: 34px;
  stroke: var(--blue-700);
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.module-card h2 {
  font-size: 1.03rem;
  margin-bottom: 6px;
}

.module-card p {
  margin: 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.versions {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(237, 247, 255, 0.9));
  padding: 14px;
  box-shadow: var(--shadow);
}

.version-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.version-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(26, 101, 184, 0.25);
  color: var(--blue-800);
  background: rgba(235, 246, 255, 0.94);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.version-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 360px);
}

.version-brand-logo {
  width: clamp(96px, 18vw, 132px);
  height: auto;
  object-fit: contain;
  flex-shrink: 1;
}

.version-copy {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.license-box {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(237, 247, 255, 0.9));
  padding: 14px;
  box-shadow: var(--shadow);
}

.license-copy {
  margin: 7px 0 0;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.5;
}

.license-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--blue-800);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid rgba(26, 101, 184, 0.24);
  border-radius: 9px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.license-link:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 101, 184, 0.45);
  box-shadow: 0 8px 16px rgba(9, 46, 90, 0.12);
}

.developer {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.95), rgba(235, 247, 255, 0.9));
  padding: 8px;
  box-shadow: 0 12px 22px rgba(9, 46, 90, 0.1);
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(100%, 560px);
  margin: 0 auto;
}

.developer-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  border: 1px solid rgba(26, 101, 184, 0.24);
}

.developer-copy {
  text-align: left;
}

.developer-copy h2 {
  margin: 0;
  font-size: 0.86rem;
}

.developer-role {
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.developer-role-tech {
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: var(--blue-700);
}

.developer-role-creator {
  font-size: 0.66rem;
  font-weight: 800;
  color: #1f9b53;
}

.developer-text {
  margin: 6px 0 0;
  color: var(--soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.developer-linkedin {
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: #0a66c2;
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid rgba(10, 102, 194, 0.24);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 6px;
  transition: transform 0.14s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  align-self: center;
}

.developer-linkedin:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 102, 194, 0.45);
  box-shadow: 0 8px 16px rgba(10, 102, 194, 0.14);
}

.developer-linkedin svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer p {
  margin: 0;
  color: var(--soft);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--blue-800);
  font-weight: 600;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 101, 184, 0.35);
}

.footer-credit a:hover {
  border-bottom-color: rgba(26, 101, 184, 0.75);
}

.download-dialog {
  border: 1px solid rgba(26, 101, 184, 0.25);
  border-radius: 18px;
  box-shadow: 0 24px 44px rgba(9, 46, 90, 0.24);
  padding: 0;
  width: min(94vw, 860px);
  max-width: 860px;
}

.download-dialog::backdrop {
  background: rgba(8, 27, 51, 0.42);
  backdrop-filter: blur(2px);
}

.download-form {
  width: min(94vw, 860px);
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  background: linear-gradient(170deg, #fff 0%, #f4faff 100%);
}

.download-form h3 {
  margin: 0;
  font-size: 1.2rem;
}

.download-intro {
  margin: 0;
  color: var(--soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-top: 2px;
}

.download-form input[type="email"] {
  border: 1px solid rgba(26, 101, 184, 0.28);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  font-size: 0.94rem;
}

.download-form input[type="email"]:focus {
  outline: 2px solid rgba(44, 132, 214, 0.3);
  border-color: rgba(44, 132, 214, 0.45);
}

.check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.check-row a {
  color: var(--blue-700);
  font-weight: 600;
}

.legal-note {
  margin: 2px 0 0;
  border: 1px solid rgba(26, 101, 184, 0.18);
  border-radius: 10px;
  background: rgba(235, 246, 255, 0.72);
  color: var(--soft);
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.download-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.download-msg {
  min-height: 1.2em;
  font-size: 0.84rem;
  font-weight: 600;
  margin: 0;
}

.download-msg[data-tone="info"] {
  color: var(--blue-800);
}

.download-msg[data-tone="ok"] {
  color: #1a8f3c;
}

.download-msg[data-tone="error"] {
  color: #be2c4a;
}

.field-error {
  outline: 2px solid rgba(190, 44, 74, 0.24);
  border-color: rgba(190, 44, 74, 0.45) !important;
}

.license-dialog {
  border: 1px solid rgba(26, 101, 184, 0.25);
  border-radius: 14px;
  box-shadow: 0 24px 44px rgba(9, 46, 90, 0.24);
  padding: 0;
  width: min(92vw, 760px);
  max-width: 760px;
}

.license-dialog::backdrop {
  background: rgba(8, 27, 51, 0.42);
  backdrop-filter: blur(2px);
}

.license-dialog-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(170deg, #fff 0%, #f4faff 100%);
  max-height: min(82vh, 760px);
}

.license-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.license-dialog-head h3 {
  margin: 0;
  font-size: 1.06rem;
}

.license-full {
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(26, 101, 184, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .modules {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-lang-switch-wrap {
    align-self: stretch;
    justify-content: space-between;
  }

  .site-shell {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 8px;
  }

  .developer {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .developer-photo {
    width: 72px;
  }

  .download-actions {
    flex-direction: column-reverse;
  }

  .download-actions .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
  }

  .version-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .version-brand {
    width: 100%;
    justify-content: space-between;
  }

  .version-brand-logo {
    width: clamp(86px, 36vw, 124px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit,
  .module-card {
    animation: none !important;
  }
}
