:root {
  --bg: #f7f4ee;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --ink: #171512;
  --muted: #6f665c;
  --line: #ded6ca;
  --line-strong: #c8bdb0;
  --streak: #b9533f;
  --streak-dark: #8e3a2d;
  --countdown: #286f69;
  --countdown-dark: #1d5652;
  --blue: #3f5f8a;
  --shadow: 0 18px 45px rgba(47, 38, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(247, 244, 238, 0.94), rgba(247, 244, 238, 1)),
    repeating-linear-gradient(90deg, rgba(23, 21, 18, 0.025) 0, rgba(23, 21, 18, 0.025) 1px, transparent 1px, transparent 80px);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

:lang(zh-CN),
:lang(zh-TW) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:lang(ja) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
}

:lang(ko) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

:lang(ar) {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.86);
  border-bottom: 1px solid rgba(222, 214, 202, 0.82);
  backdrop-filter: blur(18px);
}

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

.logo {
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.lang-selector {
  position: relative;
}

.lang-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  padding: 8px;
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.active {
  display: grid;
  gap: 2px;
}

.lang-option {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.lang-option:hover {
  background: #f4eee5;
  color: var(--ink);
}

.hero {
  padding: 74px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--streak-dark);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

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

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: 0;
}

.tagline {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-buttons,
.cta-group-buttons,
.app-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-buttons {
  margin: 28px 0 24px;
}

.btn-download {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  text-decoration: none;
  font-weight: 760;
  font-size: 0.94rem;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-download:hover {
  transform: translateY(-1px);
  background: #2a251f;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  background: var(--surface-strong);
  border-color: var(--ink);
}

.btn-alt {
  background: var(--countdown);
  border-color: var(--countdown);
}

.btn-alt:hover {
  background: var(--countdown-dark);
  border-color: var(--countdown-dark);
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
}

.hero-media {
  margin: 0;
  position: relative;
}

.phone-frame {
  min-height: 590px;
  display: grid;
  place-items: center;
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  width: 72%;
  height: 82%;
  background: #e6d2bd;
  border: 1px solid rgba(80, 61, 42, 0.18);
  border-radius: 8px;
  transform: rotate(-5deg) translate(-10px, 10px);
  box-shadow: var(--shadow);
}

.phone-frame img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  display: block;
  filter: drop-shadow(0 24px 34px rgba(47, 38, 28, 0.28));
}

.section {
  padding: 82px 0;
}

.section + .section {
  border-top: 1px solid rgba(222, 214, 202, 0.7);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--streak-dark);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

[dir="rtl"] .section-kicker {
  letter-spacing: 0;
}

.section-title {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.7vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-subtitle {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.app-card,
.feature,
.template-card,
.review {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(47, 38, 28, 0.05);
}

.app-card {
  min-height: 100%;
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.app-card h3 {
  margin-bottom: 10px;
  font-size: 1.7rem;
}

.date-direction {
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.direction-word {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: 0;
}

.direction-word.countup {
  color: var(--streak-dark);
}

.direction-word.countdown {
  color: var(--countdown-dark);
}

.direction-label {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

[dir="rtl"] .direction-label {
  letter-spacing: 0;
}

.app-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.app-chip {
  border: 1px solid rgba(185, 83, 63, 0.28);
  border-radius: 999px;
  color: var(--streak-dark);
  background: #fff3eb;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 780;
}

.app-chip-alt {
  border-color: rgba(40, 111, 105, 0.28);
  color: var(--countdown-dark);
  background: #edf7f4;
}

.app-chip-muted {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.app-tagline {
  color: var(--muted);
  margin-bottom: 20px;
}

.app-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  color: #3f3932;
}

.app-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.app-list i {
  color: var(--streak);
  margin-top: 2px;
}

.app-card-alt .app-list i {
  color: var(--countdown);
}

.app-links {
  margin-top: auto;
}

.app-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.app-examples {
  margin: 0 0 24px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
}

.app-examples div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.app-examples i {
  margin-top: 2px;
}

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

.feature {
  padding: 22px;
}

.feature-icon,
.template-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--streak-dark);
  background: #fff6ef;
}

.feature:nth-child(even) .feature-icon,
.template-card:nth-child(n+5) .template-icon {
  color: var(--countdown-dark);
  background: #eef8f5;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.templates-grid,
.reviews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.template-column {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(47, 38, 28, 0.05);
}

.template-column h3 {
  margin-bottom: 16px;
  font-size: 1.25rem;
}

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

.template-card {
  padding: 20px;
}

.template-card h3,
.template-card h4 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.template-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.screens {
  background: #171512;
  color: #fffaf2;
  padding: 84px 0;
}

.screens .section-kicker {
  color: #e8b69b;
}

.screens .section-subtitle {
  color: #cfc4b6;
}

.screenshot-stage {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 440px);
  align-items: center;
  gap: 50px;
}

.preview-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preview-panel {
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.05);
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
}

.preview-panel-head {
  max-width: 440px;
}

.preview-panel-head h3 {
  margin: 12px 0 8px;
  font-size: 1.45rem;
}

.preview-panel-head p {
  margin-bottom: 0;
  color: #cfc4b6;
}

.preview-phone {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.preview-phone img {
  width: auto;
  max-width: min(100%, 320px);
  max-height: 430px;
  display: block;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.46));
}

.screen-copy {
  display: grid;
  gap: 14px;
}

.screen-point {
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.05);
}

.screen-point strong {
  display: block;
  margin-bottom: 5px;
}

.screen-point span {
  color: #cfc4b6;
}

.screens img {
  width: auto;
  max-width: min(100%, 390px);
  max-height: 470px;
  display: block;
  justify-self: center;
  filter: drop-shadow(0 24px 42px rgba(0, 0, 0, 0.46));
}

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

.review {
  padding: 24px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue);
}

.review h3 {
  margin: 0;
  font-size: 1.06rem;
}

.review p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-section {
  padding: 82px 0 96px;
}

.cta-panel {
  border: 1px solid #2c2721;
  border-radius: 8px;
  background: #1c1915;
  color: #fffaf2;
  padding: clamp(28px, 6vw, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.cta-panel p {
  max-width: 620px;
  margin-bottom: 0;
  color: #d5cabe;
}

.cta-panel .btn-secondary {
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.34);
}

.cta-panel .btn-secondary:hover {
  background: rgba(255, 250, 242, 0.1);
  border-color: rgba(255, 250, 242, 0.7);
}

footer {
  border-top: 1px solid var(--line);
  background: #ede6db;
  color: var(--muted);
  padding: 48px 0 28px;
}

.footer-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.footer-section h3 {
  color: var(--ink);
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.footer-section a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-section a:hover {
  color: var(--ink);
}

.footer-bottom {
  width: min(1120px, calc(100% - 40px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .cta-buttons,
[dir="rtl"] .cta-group-buttons,
[dir="rtl"] .app-links,
[dir="rtl"] .app-card-header,
[dir="rtl"] .app-list li,
[dir="rtl"] .review-header {
  flex-direction: row-reverse;
}

@media (max-width: 980px) {
  .hero-grid,
  .screenshot-stage,
  .preview-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 28px;
  }

  .phone-frame {
    min-height: auto;
  }

  .phone-frame img {
    width: min(86vw, 390px);
  }

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

  .reviews,
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .nav-container {
    min-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 36px 0 34px;
    position: relative;
    overflow: hidden;
  }

  .hero-grid {
    display: block;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .section {
    padding: 60px 0;
  }

  .apps-grid,
  .features,
  .templates-grid,
  .split-templates,
  .reviews,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .template-column .templates-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons,
  .cta-group-buttons,
  .app-links {
    align-items: stretch;
    flex-direction: column;
  }

  .btn-download {
    width: 100%;
  }

  .hero .cta-buttons {
    align-items: stretch;
    flex-direction: row;
    gap: 8px;
    margin: 22px 0 18px;
  }

  .hero .btn-download {
    width: auto;
    min-width: 0;
    flex: 1 1 calc(50% - 4px);
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .hero .btn-download:last-child {
    flex-basis: 100%;
  }

  .hero-notes {
    gap: 8px;
    font-size: 0.86rem;
  }

  .hero-notes span {
    padding: 5px 9px;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-media {
    position: absolute;
    right: -80px;
    bottom: 14px;
    width: 210px;
    opacity: 0.16;
  }

  [dir="rtl"] .hero-media {
    right: auto;
    left: -80px;
  }

  .hero .phone-frame {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .hero .phone-frame::before {
    display: none;
  }

  .hero .phone-frame img {
    width: 210px;
    filter: drop-shadow(0 16px 24px rgba(47, 38, 28, 0.2));
  }

  .screens img {
    width: auto;
    max-width: min(88vw, 340px);
    max-height: 390px;
  }

  .preview-panel {
    padding: 20px;
  }

  .preview-phone {
    min-height: 330px;
  }

  .preview-phone img {
    max-height: 330px;
  }
}
