:root {
  --brand-navy: #35546f;
  --brand-cyan: #47b5e6;
  --brand-blue: #1171e6;
  --ink: #1f2f40;
  --muted: #557089;
  --bg: #f4f8fc;
  --surface: #ffffff;
  --line: #d9e5ef;
  --success: #2f9d68;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Montserrat", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: linear-gradient(170deg, #f8fbfe 0%, #eef4fa 60%, #f7fbff 100%);
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 82px;
  z-index: 100;
  border-bottom: 1px solid #dfe8f1;
  background: rgba(254, 253, 254, 0.97);
  backdrop-filter: blur(8px);
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 60px;
  width: auto;
}

.brand-name {
  font-size: 0.96rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto;
}

.nav-home-minimal {
  gap: 0;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--ink);
}

.nav-links a.active,
.nav-links a:hover {
  background: #e9f3fb;
  color: var(--brand-navy);
}

.lang-switch {
  display: inline-flex;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--brand-navy);
  padding: 7px 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch button.active {
  background: var(--brand-navy);
  color: #fff;
}

.lang-switch .lang-toggle {
  min-width: auto;
  padding: 0;
  background: transparent;
  color: #5a738a;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.lang-switch .lang-toggle:hover {
  background: transparent;
  color: var(--brand-navy);
  text-decoration: underline;
}

.header-lang {
  margin-left: 10px;
  flex: 0 0 auto;
}

main {
  padding-top: 112px;
}

.hero {
  padding: 38px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 26px;
  align-items: center;
}

.hero-card,
.panel,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(53, 84, 111, 0.09);
}

.hero-card {
  padding: 34px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.16;
  color: var(--brand-navy);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  color: var(--brand-navy);
}

p {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--muted);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(95deg, var(--brand-blue), var(--brand-cyan));
  color: #fff;
}

.btn-light {
  background: #f0f7fd;
  border-color: #d5e8f7;
  color: var(--brand-navy);
}

.btn[disabled] {
  opacity: 0.72;
  cursor: not-allowed;
}

.coming-soon-note {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(95deg, #1171e6, #1f8cff);
  border: 1px solid #0f5fc3;
  box-shadow: 0 6px 16px rgba(17, 113, 230, 0.24);
}

.hero-right {
  padding: 28px;
}

.home-hero .hero-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.home-hero .hero-card {
  height: 100%;
}

.home-app-card {
  padding: 34px;
}

.logo-app {
  max-width: 100%;
  border-radius: 14px;
}

.content-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  margin: 6px 0 14px;
  border-radius: 16px;
  border: 1px solid #d7e5f2;
  box-shadow: 0 10px 24px rgba(31, 47, 64, 0.12);
}

.section {
  padding: 18px 0 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 20px;
}

.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card-link {
  display: block;
  height: 100%;
  padding: 20px;
}

.product-card-link:hover {
  background: linear-gradient(180deg, #fbfdff 0%, #f2f8fd 100%);
}

.home-card-media-fill {
  display: flex;
  flex-direction: column;
}

.home-card-media-fill .home-bottom-image {
  margin-top: auto;
}

.card h3 {
  margin: 0 0 8px;
  color: var(--brand-navy);
}

.product-logo-small {
  width: 65%;
  max-width: 180px;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

.product-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-weight: 700;
  color: var(--brand-blue);
}

.product-card-button {
  margin-top: 8px;
  align-self: flex-start;
}

.home-app-card {
  display: flex;
  flex-direction: column;
}

.home-app-card .btn {
  align-self: flex-end;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel-muted {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7fc 100%);
}

.contact-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.contact-email {
  font-weight: 700;
  color: var(--brand-blue);
  word-break: break-word;
}

.note-text {
  font-size: 0.92rem;
}

.reset-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
}

.reset-brand-panel {
  background: #ffffff;
}

.reset-note {
  padding: 16px 18px;
  border: 1px solid #d7e5f2;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.reset-note h2 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.reset-success-state {
  padding: 20px;
  border: 1px solid #9fddbe;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3fff7 0%, #e6f8ee 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 157, 104, 0.08);
}

.reset-success-state h2,
.reset-success-state p {
  color: var(--success);
}

.reset-success-state h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  margin-bottom: 8px;
}

.stack-sm > * + * {
  margin-top: 12px;
}

.info-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.info-list li + li {
  margin-top: 8px;
}

label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: var(--brand-navy);
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfe0ef;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.cf-turnstile {
  margin: 8px 0 12px;
}

.form-feedback {
  margin-top: 8px;
  font-weight: 600;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ok {
  color: var(--success);
}

.err {
  color: #b73535;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.play-badge img {
  width: 170px;
  max-width: 100%;
  height: auto;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  padding: 20px 0;
  color: var(--muted);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-version-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  color: #7a8da0;
}

.home-under-construction {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding: 36px 0 24px;
}

.home-under-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(254, 253, 254, 0.97);
}

.home-under-logo {
  width: auto;
  max-height: 200px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}

.footer-versions-only {
  justify-content: center;
}

body:has(.home-under-construction) {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-shell-header {
  position: static;
  height: auto;
}

.home-lang-floating {
  position: fixed;
  right: max(24px, calc((100vw - min(800px, 92vw)) / 2 + 16px));
  top: 22px;
  z-index: 250;
}

.home-lang-floating .lang-switch {
  background: transparent;
  box-shadow: none;
}

body:has(.home-under-construction) main {
  padding-top: 0;
  flex: 1 1 auto;
  display: flex;
}

body:has(.home-under-construction) .home-under-construction {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px 0 8px;
}

body:has(.home-under-construction) .site-footer {
  margin-top: 0;
  position: sticky;
  bottom: 0;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .home-hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    height: auto;
    padding: 8px 0;
  }

  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
  }

  .header-lang {
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    transform: none;
    margin-left: 0;
    z-index: 260;
  }

  main {
    padding-top: 126px;
  }


}
