/* Tally Counter 123 — refined warm editorial. Fraunces + Geist on a cream→blush→lavender wash. */

:root {
  --bg-1: #FFF1E1;
  --bg-2: #FFDDD9;
  --bg-3: #E8DDF3;

  --ink: #1A1626;
  --ink-soft: #4A4254;
  --ink-mute: #7A7287;
  --paper: #FFF9F0;

  --glass-bg: rgba(255, 252, 246, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 14px 36px -8px rgba(60, 40, 80, 0.18),
    0 2px 8px rgba(60, 40, 80, 0.06);

  --accent: #E8743C;
  --accent-deep: #B83F1A;

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: linear-gradient(170deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle film grain — SVG noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.12 0 0 0 0.32 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.42;
  mix-blend-mode: multiply;
}

/* Background "123" watermark — only behind hero */
.bg-mark {
  position: absolute;
  top: 2vh;
  right: -8vw;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 300;
  font-size: clamp(20rem, 50vw, 56rem);
  color: rgba(232, 116, 60, 0.055);
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.06em;
  line-height: 0.82;
  font-feature-settings: "lnum";
  user-select: none;
}
[dir="rtl"] .bg-mark { left: -8vw; right: auto; }

main {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
}

.page-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}
[dir="rtl"] .page-header { justify-content: flex-start; }

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4.5rem 0 6rem;
  position: relative;
}

.hero__icon {
  width: 104px;
  height: 104px;
  border-radius: 23.5%;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 28px -4px rgba(60, 40, 80, 0.22),
    0 2px 6px rgba(60, 40, 80, 0.08);
  margin-bottom: 2.25rem;
  animation: pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.5rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 1.1rem;
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero__counter {
  font-feature-settings: "lnum";
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  padding: 0 0.05em;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  color: var(--ink-soft);
  margin-bottom: 2.75rem;
  letter-spacing: -0.01em;
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.875rem 1.875rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  margin-bottom: 3rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 14px rgba(26, 22, 38, 0.22);
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.hero__cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 10px 24px rgba(184, 63, 26, 0.32);
}
.hero__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero__blurb {
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.62;
  font-size: 1.0625rem;
  animation: fadeup 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

/* ─── Screenshots showcase ────────────────────────────── */
.showcase {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  padding: 2rem 0 5rem;
  direction: ltr; /* screenshots flow LTR even on RTL pages */
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.showcase::-webkit-scrollbar { display: none; }

.showcase__shot {
  flex: 0 0 auto;
  width: clamp(140px, 18vw, 200px);
  border-radius: 26px;
  overflow: hidden;
  filter:
    drop-shadow(0 22px 36px rgba(60, 40, 80, 0.22))
    drop-shadow(0 6px 14px rgba(60, 40, 80, 0.08));
  scroll-snap-align: center;
  transform: rotate(var(--rot, -2deg));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase__shot:nth-child(1) { --rot: -2.5deg; }
.showcase__shot:nth-child(2) { --rot:  1.5deg; }
.showcase__shot:nth-child(3) { --rot: -0.5deg; transform: rotate(-0.5deg) translateY(-10px); }
.showcase__shot:nth-child(4) { --rot:  1deg; }
.showcase__shot:nth-child(5) { --rot: -2deg; }
.showcase__shot:hover {
  transform: rotate(0deg) translateY(-12px);
}
.showcase__shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1320 / 2868;
}

/* ─── Feature cards (text-only) ───────────────────────── */
.features { display: flex; flex-direction: column; gap: 2rem; }

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.25rem;
  align-items: start;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  padding: 2.5rem 2.75rem;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--glass-shadow);
  position: relative;
}

.feature__num {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 4.25rem);
  line-height: 0.95;
  color: var(--accent);
  letter-spacing: -0.025em;
  font-feature-settings: "lnum";
  user-select: none;
  margin-top: 0.05em;
}

.feature__content h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.feature__content ul {
  list-style: none;
  columns: 1;
}

.feature__content li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.5;
  font-size: 0.9875rem;
}
.feature__content li:last-child { margin-bottom: 0; }
.feature__content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
[dir="rtl"] .feature__content li {
  padding-left: 0;
  padding-right: 1.4rem;
}
[dir="rtl"] .feature__content li::before { left: auto; right: 0; }

/* ─── Pitch / final CTA ───────────────────────────────── */
.pitch {
  text-align: center;
  padding: 7rem 0 3rem;
}

.pitch h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  letter-spacing: -0.028em;
  line-height: 1.06;
  margin-bottom: 1.375rem;
}

.pitch p {
  max-width: 580px;
  margin: 0 auto 2.5rem;
  color: var(--ink-soft);
  line-height: 1.62;
  font-size: 1.0625rem;
}

/* ─── Footer ──────────────────────────────────────────── */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 3rem 0 2.5rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(60, 40, 80, 0.08);
  color: var(--ink-mute);
  font-size: 0.875rem;
}

footer nav {
  display: flex;
  gap: 1.75rem;
}

footer a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.25s;
}
footer a:hover { color: var(--accent); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem 0.45rem 0.85rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--ink-soft);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover { color: var(--accent); border-color: rgba(232,116,60,0.45); }
.lang-switch svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.75; }
.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  padding: 0 1rem 0 0;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%237A7287' d='M6 8 1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 9px;
}
.lang-switch option {
  background: var(--paper);
  color: var(--ink);
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 820px) {
  main { padding: 2rem 1.125rem 1rem; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero__icon { width: 84px; height: 84px; margin-bottom: 1.75rem; }
  .showcase {
    padding: 1.5rem 0 3rem;
    justify-content: flex-start;
    gap: 0.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .showcase__shot { width: 60vw; max-width: 220px; }
  .feature {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1.75rem;
  }
  .feature__num {
    font-size: 2.75rem;
  }
  .pitch { padding: 4rem 0 2rem; }
  footer { flex-direction: column; align-items: center; text-align: center; }
}

/* ─── Animations ──────────────────────────────────────── */
@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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