:root {
  --container: 1080px;
  --red1: #e43136;
  --red2: #ff5151;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #111827;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.float {
  will-change: transform;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #efefef;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-logo {
  width: 145px;
  height: auto;
}

.lang-toggle {
  border: 1px solid #e5e7eb;
  background: #fff;
  min-width: 52px;
  height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s;
}

.lang-toggle:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

.lang-toggle-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.02em;
}

.hero {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--red1), var(--red2));
  border-bottom-left-radius: 52% 15%;
  border-bottom-right-radius: 52% 15%;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1rem 2.7rem;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.logo {
  width: 160px;
  margin-bottom: 1.25rem;
}

.tagline {
  margin: 0 0 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  display: inline-block;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.stats li {
  font-size: 0.74rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.95);
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stats strong {
  display: block;
  font-size: 1.08rem;
  color: #fff;
}

.stats span {
  color: rgba(255, 255, 255, 0.8);
}

.hero-phone-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.phone {
  width: min(390px, 92%);
}

.download {
  background-color: #fff;
  padding: 0.8rem 0 1rem;
}

.download-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 1.4rem 1.2rem 1.2rem;
}

.download-header {
  text-align: center;
  margin-bottom: 1rem;
}

.download-header h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  color: #111827;
}

.download-header p {
  margin: 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.download-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.robot {
  flex: 0 0 auto;
  background: transparent;
}

.robot img {
  display: block;
  width: min(240px, 34vw);
  background: transparent;
  mix-blend-mode: multiply;
}

.platform-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 520px;
}

.platform-card {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 0.9rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  text-align: center;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex: 1;
}

.platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.platform-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  text-align: left;
}

.platform-head p {
  margin: 0.08rem 0 0;
  font-size: 0.68rem;
  color: #9ca3af;
  text-align: left;
  line-height: 1.35;
  min-height: 2.7em;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--red1), var(--red2));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.download-btn:hover {
  opacity: 0.9;
}

/* Safety fallback: download section should never be hidden */
.download-header,
.robot,
.platform-card {
  opacity: 1 !important;
  transform: none !important;
}

.trust {
  padding: 1.1rem 0 0.7rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.trust-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: #c3232d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-item h4 {
  margin: 0 0 0.2rem;
  color: #c3232d;
  font-size: 0.98rem;
}

.trust-item p {
  margin: 0;
  color: #6b7280;
  font-size: 0.78rem;
  line-height: 1.45;
}

.highlight {
  padding: 1.8rem 0 1.4rem;
}

.highlight-inner {
  width: 100%;
  text-align: center;
}

.highlight-visual {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
}

.highlight-visual svg {
  width: 100%;
  height: 100%;
  display: block;
}

.highlight-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
}

.highlight-desc {
  margin: 0 auto 0.9rem;
  max-width: 26rem;
  color: #6b7280;
  font-size: 0.86rem;
  line-height: 1.6;
}

.highlight-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.highlight-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid #f0d4d4;
  border-radius: 999px;
  background: #fffafa;
  color: #c3232d;
  font-size: 0.78rem;
  font-weight: 600;
}

.highlight-tag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #e43136;
}

.highlight-tag-icon svg {
  width: 15px;
  height: 15px;
}

.footer {
  margin-top: auto;
  padding: 0.8rem 0 1.2rem;
}

.footer-inner {
  border-top: 1px solid #ececec;
  padding-top: 0.7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.footer-text {
  flex: 1;
  min-width: 0;
}

.footer-logo {
  width: 130px;
  height: auto;
}

.footer p {
  margin: 0;
  color: #6b7280;
  font-size: 0.74rem;
}

.footer .copy {
  margin-top: 0.2rem;
}

.socials {
  display: flex;
  flex-shrink: 0;
  gap: 0.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icon.youtube svg {
  width: 22px;
  height: 22px;
}

.social-icon:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.social-icon.facebook {
  background: #1877f2;
}

.social-icon.linkedin {
  background: #0a66c2;
}

.social-icon.youtube {
  background: #ff0000;
}

.social-icon.twitter {
  background: #1da1f2;
}

@media (max-width: 900px) {
  .hero-top,
  .download-body {
    flex-direction: column;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 0.7rem;
  }

  .topbar-inner {
    height: 48px;
  }

  .top-logo {
    width: 108px;
  }

  .lang-toggle {
    min-width: 46px;
    height: 28px;
    padding: 0 0.6rem;
  }

  .lang-toggle-text {
    font-size: 0.75rem;
  }

  .hero {
    border-bottom-left-radius: 38% 8%;
    border-bottom-right-radius: 38% 8%;
  }

  .hero-inner {
    padding: 0.75rem 0.7rem 0.5rem;
  }

  .hero-top {
    gap: 0.55rem;
    align-items: flex-start;
    flex-direction: row;
  }

  .hero-text {
    flex: 1;
    display: block;
    text-align: left;
    width: auto;
  }

  .tagline {
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
    padding: 0.12rem 0.5rem;
  }

  .hero-text h1 {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    line-height: 1.25;
  }

  .hero-text p {
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.2rem;
    margin-top: 0.6rem;
    width: 100%;
  }

  .stats li {
    align-items: center;
    text-align: center;
    font-size: 0.58rem;
    gap: 0.05rem;
  }

  .stat-icon {
    width: 18px;
    height: 18px;
    margin-bottom: 0.05rem;
  }

  .stat-icon svg {
    width: 16px;
    height: 16px;
  }

  .stats strong {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .stats span {
    font-size: 0.52rem;
    line-height: 1.2;
  }

  .hero-phone-wrap {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
    justify-content: flex-end;
    align-items: flex-start;
  }

  .phone {
    width: 175px;
    margin: 0;
  }

  .download {
    padding: 0.55rem 0 0.65rem;
  }

  .download-card {
    border: none;
    border-radius: 12px;
    padding: 0.75rem 0.65rem 0.7rem;
  }

  .download-header {
    margin-bottom: 0.45rem;
  }

  .download-header h2 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.15rem;
  }

  .download-header p {
    font-size: 0.72rem;
  }

  .download-body {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
  }

  .robot {
    flex: 0 0 108px;
    min-width: 108px;
  }

  .robot img {
    width: 108px;
    margin: 0;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
    gap: 0.4rem;
  }

  .platform-card {
    padding: 0.55rem 0.35rem 0.6rem;
  }

  .platform-head {
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.4rem;
  }

  .platform-head h3 {
    font-size: 0.76rem;
    text-align: center;
  }

  .platform-head p {
    font-size: 0.56rem;
    text-align: center;
    line-height: 1.3;
    min-height: 2.6em;
  }

  .platform-icon svg {
    width: 22px;
    height: 22px;
  }

  .download-btn {
    font-size: 0.66rem;
    padding: 0.4rem 0.3rem;
  }

  .trust {
    padding: 0.75rem 0 0.45rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .trust-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.18rem;
  }

  .trust-icon {
    width: 22px;
    height: 22px;
    margin-top: 0;
  }

  .trust-icon svg {
    width: 18px;
    height: 18px;
  }

  .trust-item h4 {
    font-size: 0.68rem;
    margin-bottom: 0;
  }

  .trust-item p {
    font-size: 0.52rem;
    line-height: 1.2;
  }

  .highlight {
    padding: 1rem 0 1rem;
  }

  .highlight-visual {
    width: 68px;
    height: 68px;
    margin-bottom: 0.75rem;
  }

  .highlight-title {
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
  }

  .highlight-desc {
    font-size: 0.68rem;
    line-height: 1.5;
    margin-bottom: 0.65rem;
    max-width: 16rem;
  }

  .highlight-tags {
    gap: 0.35rem;
  }

  .highlight-tags li {
    font-size: 0.62rem;
    padding: 0.28rem 0.55rem;
  }

  .highlight-tag-icon {
    width: 14px;
    height: 14px;
  }

  .highlight-tag-icon svg {
    width: 12px;
    height: 12px;
  }

  .footer {
    padding: 0.5rem 0 0.75rem;
  }

  .footer-inner {
    padding-top: 0.5rem;
    gap: 0.3rem;
  }

  .footer-row {
    gap: 0.65rem;
  }

  .footer-logo {
    width: 100px;
  }

  .footer p {
    font-size: 0.64rem;
    line-height: 1.4;
  }

  .footer .copy {
    margin-top: 0.15rem;
  }

  .social-icon {
    width: 28px;
    height: 28px;
  }

  .social-icon svg {
    width: 15px;
    height: 15px;
  }

  .social-icon.youtube svg {
    width: 18px;
    height: 18px;
  }
}
