:root {
  --bg: #161618;
  --canvas: #1e1e20;
  --fg: #ebebeb;
  --accent: #aa8e4e;
  --muted: #9e9e9c;
  --deep: #707070;
  --line: rgba(170, 142, 78, 0.22);
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(22, 22, 24, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  letter-spacing: 0.38em;
  font-size: 13px;
  text-decoration: none;
}

.brand img {
  width: 22px;
  height: 22px;
  filter: invert(72%) sepia(28%) saturate(700%) hue-rotate(6deg);
}

#nav-toggle {
  position: absolute;
  left: -9999px;
}

.nav-toggle {
  display: none;
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.nav a {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}

.nav a.nav-cta {
  background: var(--accent);
  color: #161618 !important;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav a.nav-cta:hover {
  background: #c5a059;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 1.7rem;
  margin: 0 0 12px;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.lede,
.prose p,
.prose li {
  color: #d6d6d4;
}

.lede {
  font-size: 1.08rem;
  max-width: 42rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #161618;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--fg);
}

.btn-secondary {
  background: rgba(170, 142, 78, 0.16);
  color: #e2ba69;
  border-color: rgba(170, 142, 78, 0.45);
}

.btn-secondary:hover {
  background: rgba(170, 142, 78, 0.28);
  border-color: var(--accent);
  text-decoration: none;
}

.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--canvas);
}

.frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  font-size: 13px;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

.card p,
.muted {
  color: var(--muted);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mosaic img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.2rem;
  font-family: var(--serif);
  color: #fff;
}

.prose h3 {
  margin-top: 1.6rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin: 1rem 0;
  color: var(--fg);
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.prose th, .prose td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.prose th {
  color: var(--accent);
  font-weight: 700;
  background: rgba(170, 142, 78, 0.08);
  border-bottom: 1px solid rgba(170, 142, 78, 0.35);
}

.prose td {
  color: var(--fg);
}

.prose code {
  background: rgba(170, 142, 78, 0.12);
  color: #f3d489;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  color: var(--muted);
  margin: 10px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--deep);
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic img {
    height: 220px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #161618;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
    flex-direction: column;
  }

  #nav-toggle:checked ~ .nav {
    display: flex;
  }
}

/* Phone Mockup Frames */
.phone-mockup-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 0 0 6px #222226, 0 0 0 8px rgba(170, 142, 78, 0.35), 0 20px 40px rgba(0, 0, 0, 0.8);
  background: #000;
  max-width: 280px;
  margin: 0 auto;
}

.phone-mockup-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-wrap .phone-mockup-frame {
  max-width: 255px;
  max-height: 520px;
  border-radius: 30px;
}

.hero-phone-wrap .phone-mockup-frame img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.mockups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.mockup-item {
  text-align: center;
}

.mockup-item .phone-mockup-frame {
  max-width: 210px;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-item .phone-mockup-frame img {
  max-height: 430px;
  width: auto;
  object-fit: contain;
  margin: 0 auto;
}

.mockup-item:hover .phone-mockup-frame {
  transform: translateY(-4px);
  box-shadow: 0 0 0 6px #222226, 0 0 0 8px rgba(170, 142, 78, 0.6), 0 24px 50px rgba(0, 0, 0, 0.9);
}

.mockup-item h3 {
  margin-top: 14px;
  margin-bottom: 4px;
  font-size: 0.95rem;
  color: var(--accent);
}

.mockup-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .mockups-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 16px;
    padding: 20px 0 16px;
    align-items: center;
  }

  .hero h1 {
    font-size: 1.45rem;
    line-height: 1.18;
    margin-bottom: 8px;
  }

  .hero .kicker {
    font-size: 9.5px;
    margin-bottom: 6px;
    letter-spacing: 0.16em;
  }

  .hero .lede {
    font-size: 12px;
    line-height: 1.42;
    margin-bottom: 12px;
  }

  .hero .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero .actions .btn {
    padding: 8px 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .hero-phone-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-phone-wrap .phone-mockup-frame {
    max-width: 175px;
    max-height: 350px;
    border-radius: 24px;
    box-shadow: 0 0 0 5px #222226, 0 0 0 7px rgba(170, 142, 78, 0.45), 0 16px 36px rgba(0, 0, 0, 0.85);
  }

  .hero-phone-wrap .phone-mockup-frame img {
    max-height: 350px;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 540px) {
  .hero {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 10px;
    padding: 12px 0 12px;
  }

  .hero h1 {
    font-size: 1.25rem;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .hero .kicker {
    font-size: 8.5px;
    margin-bottom: 4px;
    letter-spacing: 0.14em;
  }

  .hero .lede {
    font-size: 11px;
    line-height: 1.36;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero .actions {
    flex-direction: column;
    gap: 6px;
  }

  .hero .actions .btn {
    padding: 6px 10px;
    font-size: 10.5px;
    text-align: center;
    justify-content: center;
    width: 100%;
  }

  .hero-phone-wrap .phone-mockup-frame {
    max-width: 140px;
    max-height: 280px;
    border-radius: 18px;
    box-shadow: 0 0 0 4px #222226, 0 0 0 5px rgba(170, 142, 78, 0.4), 0 12px 24px rgba(0, 0, 0, 0.85);
  }

  .hero-phone-wrap .phone-mockup-frame img {
    max-height: 280px;
  }

  .mockups-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .hero {
    grid-template-columns: 1fr 0.9fr;
    gap: 8px;
    padding: 8px 0 10px;
  }

  .hero h1 {
    font-size: 1.15rem;
  }

  .hero .lede {
    font-size: 10.5px;
    -webkit-line-clamp: 3;
  }

  .hero-phone-wrap .phone-mockup-frame {
    max-width: 120px;
    max-height: 245px;
    border-radius: 16px;
  }

  .hero-phone-wrap .phone-mockup-frame img {
    max-height: 245px;
  }
}

/* Feature Spotlight & Superiority Comparison */
.comparison-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 14px;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(170, 142, 78, 0.15);
  color: var(--accent);
  border: 1px solid rgba(170, 142, 78, 0.35);
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(170, 142, 78, 0.4);
}

.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
  margin-left: 12px;
}

.faq-item[open] summary::after {
  content: "2";
}

.faq-item .faq-answer {
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Store Badges & Download Actions */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Dual Translation Architecture Cards */
.translation-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.translation-path-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.translation-path-card.primary-path {
  border-color: rgba(170, 142, 78, 0.45);
  background: rgba(170, 142, 78, 0.05);
}

.translation-path-card h3 {
  font-size: 1.25rem;
  margin: 10px 0 8px;
  color: #fff;
}

.translation-path-card .path-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(170, 142, 78, 0.18);
  color: #e2ba69;
  border: 1px solid rgba(170, 142, 78, 0.35);
  margin-bottom: 12px;
}

.translation-path-card.primary-path .path-badge {
  background: var(--accent);
  color: #161618;
  border-color: var(--accent);
}

.translation-path-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* AI Pipeline 5-Stage Cascade */
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 36px;
}

.pipeline-step-item {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 28px;
}

.pipeline-step-item:nth-child(even) {
  grid-template-columns: 1.15fr 1fr;
}

.pipeline-step-item:nth-child(even) .pipeline-step-info {
  order: 2;
}

.pipeline-step-item:nth-child(even) .pipeline-step-media {
  order: 1;
}

.pipeline-step-info .step-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pipeline-step-info h3 {
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: #fff;
}

.pipeline-step-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.pipeline-step-info .model-tag {
  display: inline-block;
  font-size: 11px;
  font-family: monospace;
  background: rgba(170, 142, 78, 0.12);
  color: #f3d489;
  border: 1px solid rgba(170, 142, 78, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.pipeline-step-media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.pipeline-step-media img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {
  .translation-dual-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-step-item,
  .pipeline-step-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }
  .pipeline-step-item:nth-child(even) .pipeline-step-info {
    order: 1;
  }
  .pipeline-step-item:nth-child(even) .pipeline-step-media {
    order: 2;
  }
}
