:root {
  color-scheme: light;
  --bg: #f7f8f3;
  --surface: #ffffff;
  --surface-strong: #f0f6ff;
  --text: #12201d;
  --muted: #5d6965;
  --line: #dce3dc;
  --primary: #0e7c66;
  --primary-strong: #085a49;
  --accent: #2f63d8;
  --accent-soft: #e4edff;
  --warm: #ffb84d;
  --shadow: 0 20px 60px rgba(17, 32, 29, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101412;
  --surface: #171d1a;
  --surface-strong: #1b2429;
  --text: #eef5f1;
  --muted: #aab8b1;
  --line: #2b3833;
  --primary: #4cd3ad;
  --primary-strong: #86eacb;
  --accent: #83a7ff;
  --accent-soft: #1f2d4f;
  --warm: #ffd28a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 0%, rgba(76, 211, 173, 0.16), transparent 34rem),
    linear-gradient(180deg, var(--bg), var(--surface-strong));
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(14, 124, 102, 0.24);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.94rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

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

.select-wrap {
  position: relative;
}

.select-wrap select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 34px 0 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  appearance: none;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.icon-button,
.menu-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-button:hover,
.menu-button:hover,
.icon-button:focus-visible,
.menu-button:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  transform: translateY(-1px);
}

.theme-icon,
.menu-icon,
.close-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.theme-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: 7px -4px 0 -3px currentColor;
}

.menu-icon::before,
.menu-icon::after,
.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 4px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu-icon::after {
  top: 12px;
}

.close-icon::before {
  top: 8px;
  transform: rotate(45deg);
}

.close-icon::after {
  top: 8px;
  transform: rotate(-45deg);
}

.menu-button {
  display: none;
}

.mobile-panel {
  display: none;
}

.hero,
.section,
.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100dvh - 72px);
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--primary-strong);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 740px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 32px rgba(14, 124, 102, 0.24);
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.button .arrow {
  width: 16px;
  height: 16px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.trust-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.trust-item strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-visual {
  min-height: 540px;
  position: relative;
  display: grid;
  place-items: center;
}

.phone {
  width: min(380px, 100%);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, #1e2b27, #0b0f0d);
  box-shadow: var(--shadow);
}

.phone-screen {
  overflow: hidden;
  border-radius: 24px;
  min-height: 640px;
  background: #f8fbf6;
  color: #13211d;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .phone-screen {
  background: #121815;
  color: #eef5f1;
}

.app-top {
  padding: 22px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.app-top span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent);
}

.translation-card {
  margin: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.lang-row,
.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.82rem;
}

.swap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary-strong);
  font-weight: 900;
}

.input-box,
.output-box {
  margin-top: 16px;
  padding: 16px;
  min-height: 118px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.input-box {
  background: color-mix(in srgb, var(--surface-strong) 88%, white);
  color: var(--muted);
}

.output-box {
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.mode-row {
  margin: 18px;
}

.mini-tab {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mini-tab.active {
  color: var(--primary-strong);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.floating-note {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: min(250px, 58vw);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.floating-note strong {
  display: block;
  margin-bottom: 4px;
}

.floating-note span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.feature-card p,
.step p,
.case p,
.pricing-card p,
.faq p,
.footer p {
  color: var(--muted);
}

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

.feature-card,
.case,
.pricing-card,
.faq,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.feature-card {
  min-height: 220px;
  padding: 22px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
  color: var(--primary-strong);
}

.feature-icon::before {
  content: "";
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(45deg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.workflow {
  display: grid;
  gap: 14px;
}

.step {
  padding: 22px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

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

.case {
  padding: 22px;
}

.case strong {
  display: block;
  margin-bottom: 10px;
}

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

.pricing-card {
  padding: 24px;
}

.pricing-card.highlight {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow);
}

.price {
  margin: 18px 0;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.check-list {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
}

.check-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, white 72%, transparent);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq {
  padding: 22px;
}

.cta-band {
  margin: 56px auto 0;
  padding: 42px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, var(--surface)), color-mix(in srgb, var(--accent) 18%, var(--surface)));
  border: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.footer-inner {
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, white);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  .mobile-panel {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 35;
    display: none;
    padding: 18px 16px 22px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .mobile-panel.open {
    display: grid;
    gap: 12px;
  }

  .mobile-panel a,
  .mobile-panel .select-wrap,
  .mobile-panel .icon-button {
    width: 100%;
  }

  .mobile-panel a {
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--text);
    font-weight: 750;
  }

  .mobile-panel .icon-button {
    display: flex;
    justify-content: center;
  }

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

  .hero {
    padding-top: 42px;
  }

  .product-visual {
    min-height: 520px;
  }

  .floating-note {
    right: 12px;
    bottom: 22px;
  }

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

@media (max-width: 640px) {
  .nav,
  .hero,
  .section,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: auto;
    padding-bottom: 32px;
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 3.5rem);
  }

  .lead {
    font-size: 1rem;
  }

  .trust-row,
  .feature-grid,
  .cases,
  .pricing-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-visual {
    min-height: auto;
    padding-bottom: 76px;
  }

  .phone {
    width: min(350px, 100%);
  }

  .phone-screen {
    min-height: 584px;
  }

  .floating-note {
    left: 22px;
    right: 22px;
    width: auto;
    bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions,
  .footer-inner,
  .footer-links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .cta-band {
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
