:root {
  --bg: #f6f9fc;
  --surface: #ffffff;
  --dark: #0f2a3a;
  --dark-soft: #173d53;
  --teal: #2fb7a5;
  --teal-soft: #dff6f2;
  --text: #1f2d3d;
  --muted: #546676;
  --border: #dbe7f0;
  --shadow-soft: 0 16px 40px rgba(16, 38, 53, 0.08);
  --shadow-strong: 0 26px 60px rgba(16, 38, 53, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(47, 183, 165, 0.15), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(23, 61, 83, 0.18), transparent 32%),
    linear-gradient(180deg, #f9fbfe 0%, var(--bg) 35%, #eef4f9 100%);
  color: var(--text);
  line-height: 1.6;
}

@keyframes revealFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.99);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.99);
  filter: blur(3px);
  transition:
    opacity 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

a {
  color: inherit;
}

header,
footer {
  color: #fff;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-content {
  min-height: 50vh;
}

.section {
  padding: 86px 0;
}

.section h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section p {
  color: var(--muted);
  max-width: 860px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(15, 42, 58, 0.96),
    rgba(23, 61, 83, 0.92)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.logo-wrap img,
.logo-img {
  max-width: 118px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text a {
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.22s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

nav a.active {
  background: rgba(47, 183, 165, 0.2);
  border-color: rgba(47, 183, 165, 0.45);
  color: #fff;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-switch a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  transition: 0.2s ease;
}

.lang-switch a.active {
  color: var(--dark);
  border-color: var(--teal);
  background: var(--teal);
}

.hero {
  text-align: center;
  margin-top: 90px;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--muted);
}

.hero-home {
  padding-top: 34px;
  padding-bottom: 40px;
}

.hero-video-layout {
  margin-top: 90px;
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}

.demo-sidebar {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.demo-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-sidebar li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  color: #314756;
  background: #f2f9fd;
  border: 1px solid #dce9f3;
  font-size: 0.95rem;
  line-height: 1.45;
}

.demo-sidebar li img {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
}

.video-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
}

video {
  width: 100%;
  display: block;
}

.hero-pills {
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 980px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid #d8e1ea;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
  color: #3d4e5e;
  font-size: 1rem;
  line-height: 1.35;
  box-shadow: 0 3px 9px rgba(15, 42, 58, 0.06);
}

.hero-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;
}

.hero-video-only {
  max-width: 980px;
  margin: 140px auto 0;
}

.home-why h2 {
  text-align: center;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: linear-gradient(180deg, #ffffff, #f9fcff);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 24px rgba(19, 52, 74, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(19, 52, 74, 0.14);
  border-color: #bfd4e3;
}

.card div {
  text-align: center;
}

.card h3 {
  font-size: 1.13rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.97rem;
  color: var(--muted);
}

.card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 183, 165, 0.2), rgba(15, 42, 58, 0.07));
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.screenshot,
.img-placeholder {
  width: 100%;
  max-width: 760px;
  display: block;
  margin: 26px auto 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  height: auto;
}

.section-divider {
  margin: 56px 0;
  border: 0;
  border-top: 1px solid #d8e5ef;
}

.site-footer {
  margin-top: 90px;
  background: linear-gradient(145deg, var(--dark) 0%, var(--dark-soft) 100%);
}

.site-footer .container {
  padding-bottom: 34px;
}

.cta,
.cta-in-footer {
  text-align: center;
  padding: 72px 0 56px;
}

.cta h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.45rem);
  margin-bottom: 14px;
}

.cta p {
  color: rgba(240, 248, 255, 0.88);
  max-width: 720px;
  margin: 0 auto 28px;
}

.cta a,
.cta-in-footer .btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--dark);
  background: linear-gradient(180deg, #ffffff, #eafaf7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta a:hover,
.cta-in-footer .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.cta-in-footer .btn-cta-with-icon img {
  width: 18px;
  height: 18px;
}

.contact-section {
  max-width: 720px;
  margin: 0 auto 56px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(4px);
}

.contact-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.contact-intro,
.contact-email-line {
  text-align: center;
  color: rgba(236, 245, 252, 0.92);
}

.contact-email-line {
  margin-bottom: 20px;
}

.contact-email-label {
  font-weight: 700;
}

.contact-email-link {
  color: #8ce5d9;
  text-decoration: none;
  font-weight: 700;
}

.contact-email-link:hover {
  text-decoration: underline;
}

.contact-form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
  color: #f4faff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: #f9feff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(240, 248, 255, 0.66);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.46);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #93ebdf;
  background: rgba(255, 255, 255, 0.16);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #68e4d2, var(--teal));
  color: #12303f;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-submit:disabled {
  opacity: 0.75;
  transform: none;
  cursor: not-allowed;
}

.form-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 0.94rem;
}

.form-status.success {
  color: #a9f3cd;
}

.form-status.error {
  color: #ffcccc;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
}

.link-author {
  color: #8ce5d9;
  text-decoration: none;
  font-weight: 700;
}

.link-author:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 0;
  color: rgba(237, 246, 252, 0.84);
  font-size: 0.9rem;
}

.skip-link {
  position: absolute;
  top: -110px;
  left: 14px;
  z-index: 99;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--teal);
  color: #0e2b3a;
  border-radius: 10px;
  padding: 10px 16px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .hero-video-layout {
    grid-template-columns: 1fr;
  }

  .demo-sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .demo-sidebar li {
    flex: 1 1 260px;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 12px 0;
    flex-wrap: wrap;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    order: 3;
  }

  nav a {
    font-size: 0.9rem;
    padding: 7px 10px;
  }

  .hero {
    margin-top: 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .section {
    padding: 68px 0;
  }

  .grid {
    gap: 16px;
    margin-top: 24px;
  }

  .card {
    padding: 22px 18px;
  }

  .contact-section {
    padding: 20px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

