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

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #37352f;
  background: #fafafa;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.video-overlay-open {
  overflow: hidden;
}

a {
  color: #b45309;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.site-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.site-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  color: #5f5f5f;
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: #1f1f1f;
  background: #f5f5f5;
  text-decoration: none;
}

.site-nav a.active {
  color: #1f1f1f;
  background: #fff9e6;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-width: 0;
}

.site-footer {
  border-top: 1px solid #e8e8e8;
  background: #fff;
  padding: 32px 24px;
}

.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer-links a {
  font-size: 14px;
  color: #787774;
}

.site-footer-copy {
  font-size: 13px;
  color: #a8a8a8;
}

/* Sections */
.section-title {
  margin: 0 0 40px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: #1f1f1f;
}

.section-title:has(+ .section-subtitle) {
  margin-bottom: 12px;
}

.section-subtitle {
  margin: 0 0 40px;
  font-size: 17px;
  line-height: 1.5;
  text-align: center;
  color: #787774;
}

.video-frame {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  background: #1f1f1f;
  aspect-ratio: 16 / 9;
  min-height: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}

.video-frame:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
}

.video-frame:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 3px;
}

.video-frame-hero {
  aspect-ratio: 16 / 10;
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Hero */
.hero {
  padding: 16px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 32px;
  min-width: 0;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #b45309;
  background: #fff9e6;
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1f1f1f;
}

.hero-lead {
  max-width: 480px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.6;
  color: #787774;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-perks {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #5f5f5f;
}

.hero-perks li + li {
  margin-top: 6px;
}

.hero-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #16a34a;
}

.hero-use-cases {
  margin: -32px 0 0;
  padding: 0 0 48px;
  text-align: center;
}

.hero-use-cases-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.hero-use-cases-items {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a8a8a8;
}

.hero-use-cases-items span {
  margin: 0 10px;
  color: #a8a8a8;
}

.hero-social-proof {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e8e8e8;
  max-width: 420px;
}

.hero-stars {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 2px;
  color: #f59e0b;
}

.hero-social-proof p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #787774;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: #1f1f1f;
  background: #ffd700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.45);
}

.btn.site-header-install {
  flex-shrink: 0;
  padding: 6px 24px;
  font-size: 14px;
  border-radius: 8px;
  box-shadow: none;
}

.btn.site-header-install:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35);
}

.btn-secondary {
  color: #37352f;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 17px;
}

/* Translation modes */
.modes {
  padding: 72px 0;
  border-top: 1px solid #e8e8e8;
}

.modes-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}

.mode-block {
  min-width: 0;
  width: 100%;
}

.mode-header {
  max-width: 640px;
  margin: 0 0 28px;
  text-align: left;
}

.mode-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 8px 16px;
  font-size: 18px;
  font-weight: 700;
  color: #1f1f1f;
  background: #fff9e6;
  border-radius: 999px;
}

.mode-badge-select {
  background: #f0f7ff;
}

.mode-tag {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #b45309;
}

.mode-badge-select + .mode-tag {
  color: #2563eb;
}

.mode-header p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #37352f;
}

.mode-detail {
  margin-top: 8px !important;
  color: #787774 !important;
  font-size: 16px !important;
}

.video-frame-mode {
  aspect-ratio: 16 / 9;
}

/* Video overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
}

.video-overlay.is-open {
  display: flex;
}

.video-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
}

.video-overlay-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
}

.video-overlay-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.video-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.video-overlay-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.video-overlay-close:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

.video-overlay-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 12px;
  background: #000;
}

@media (min-width: 901px) {
  .video-frame-hero {
    min-height: 360px;
  }

  .video-frame-mode {
    min-height: 480px;
  }
}

/* Why */
.why {
  padding: 72px 0;
  border-top: 1px solid #e8e8e8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
}

.why-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #1f1f1f;
}

.why-card p {
  margin: 0;
  font-size: 14px;
  color: #787774;
}

/* Pricing preview */
.pricing-preview {
  padding: 72px 0;
  border-top: 1px solid #e8e8e8;
}

.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
}

.pricing-preview-card {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid #e8e8e8;
}

.pricing-preview-card:last-child {
  border-right: none;
}

.pricing-preview-card.featured {
  background: #fffdf5;
}

.pricing-preview-amount {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  color: #1f1f1f;
}

.pricing-star {
  font-size: 20px;
  vertical-align: middle;
}

.pricing-preview-translations {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #787774;
}

.pricing-preview-action {
  margin-top: 28px;
  text-align: center;
}

/* CTA */
.cta {
  margin-top: 16px;
  padding: 64px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
}

.cta-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.cta-subtitle {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: #37352f;
}

.cta-badge {
  margin: 0 0 28px;
  font-size: 14px;
  color: #787774;
}

.cta .btn-lg {
  min-width: 200px;
}

/* Pricing */
.page-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.page-subtitle {
  margin: 0 0 40px;
  font-size: 16px;
  color: #787774;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.pricing-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  text-align: center;
}

.pricing-card.featured {
  border-color: #ffd700;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.pricing-amount {
  margin: 0 0 4px;
  font-size: 36px;
  font-weight: 800;
  color: #1f1f1f;
}

.pricing-translations {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #37352f;
}

.pricing-bonus {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  background: #fff9e6;
  border-radius: 999px;
}

.pricing-note {
  font-size: 14px;
  color: #787774;
}

.pricing-info {
  padding: 24px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
}

.pricing-info h2 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.pricing-info ul {
  margin: 0;
  padding-left: 20px;
  color: #5f5f5f;
}

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

/* Legal pages */
.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1f1f1f;
}

.legal-updated {
  margin: 0 0 32px;
  font-size: 14px;
  color: #a8a8a8;
}

.legal-content h2 {
  margin: 32px 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1f1f1f;
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #37352f;
}

.legal-content p {
  margin: 0 0 16px;
  color: #5f5f5f;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: #5f5f5f;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-content strong {
  color: #37352f;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero {
    padding-bottom: 48px;
  }

  .video-frame-hero,
  .video-frame-mode {
    min-height: 0;
  }

  .hero-content {
    text-align: center;
  }

  .hero-lead,
  .hero-social-proof,
  .hero-perks {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-perks {
    display: inline-block;
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }

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

@media (max-width: 640px) {
  .site-header-inner {
    height: auto;
    min-height: 64px;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .site-header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .site-nav {
    overflow-x: auto;
  }

  .site-main {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .hero,
  .modes,
  .why,
  .pricing-preview {
    padding-top: 48px;
    padding-bottom: 48px;
  }

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

  .pricing-preview-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .pricing-preview-card {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }

  .pricing-preview-card:last-child {
    border-bottom: none;
  }

  .cta {
    padding: 48px 24px;
  }

  .video-overlay {
    padding: 16px;
  }

  .video-overlay-video {
    max-height: calc(100vh - 88px);
  }
}
