/* ──────────────────────────────────────────────────────────────
   Twseel Station — homepage
   ────────────────────────────────────────────────────────────── */

/* ── Hero ── */
.hero {
  position: relative;
  padding-block: clamp(48px, 6vw + 1rem, 96px) clamp(64px, 8vw + 1rem, 128px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(60% 60% at 70% 30%, rgba(47, 128, 237, 0.10), transparent 70%),
    radial-gradient(40% 40% at 15% 80%, rgba(47, 128, 237, 0.06), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
html[dir="rtl"] .hero::before {
  inset: -10% -10% 30% -10%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(47, 128, 237, 0.10), transparent 70%),
    radial-gradient(40% 40% at 85% 80%, rgba(47, 128, 237, 0.06), transparent 70%);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero__copy { max-width: 560px; }
@media (max-width: 900px) { .hero__copy { max-width: none; } }

.hero__eyebrow { margin-bottom: var(--s-5); }

.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: var(--s-5);
  text-wrap: balance;
}
html[dir="rtl"] .hero__title {
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.hero__accent {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}
/* Legacy fallback in case any em remains */
.hero__title em { font-style: normal; color: var(--brand); }

.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: var(--s-6);
  max-width: 48ch;
}

.hero__cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.hero__meta-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

/* Hero visual */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
@media (max-width: 900px) {
  .hero__visual { max-width: 420px; }
}
.hero__phones {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__phone {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 800ms var(--ease-in-out), transform 8s ease-out;
}
.hero__phone.is-active {
  opacity: 1;
  transform: scale(1.02);
}
.hero__phone img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(11, 31, 58, 0.18));
}

/* Floating chips around phone */
.hero__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  z-index: 2;
  animation: chip-float 5s var(--ease-in-out) infinite;
}
.hero__chip svg {
  width: 18px; height: 18px;
  padding: 4px;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 50%;
  flex: none;
}
.hero__chip--a {
  top: 12%;
  inset-inline-start: -4%;
  animation-delay: 0s;
}
.hero__chip--b {
  bottom: 16%;
  inset-inline-end: -2%;
  animation-delay: 1.5s;
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (max-width: 540px) {
  .hero__chip { padding: 8px 12px; font-size: 0.75rem; }
  .hero__chip--a { top: 4%; inset-inline-start: 0; }
  .hero__chip--b { bottom: 8%; inset-inline-end: 0; }
}

/* ── Logos / trust strip ── */
.trust {
  padding-block: var(--s-6);
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-5);
  font-size: var(--fs-small);
  color: var(--ink-3);
}
.trust__inner strong { color: var(--ink); font-weight: 600; }
.trust__metrics {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  flex-wrap: wrap;
}
.trust__metric { display: flex; flex-direction: column; gap: 2px; }
.trust__metric b {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ── Features (bento) ── */
.features__header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
@media (max-width: 720px) {
  .features__header { grid-template-columns: 1fr; }
}
.features__title {
  font-size: var(--fs-h1);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
html[dir="rtl"] .features__title { letter-spacing: 0; line-height: 1.2; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
@media (max-width: 880px) {
  .features__grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 540px) {
  .features__grid { grid-template-columns: 1fr; gap: var(--s-3); }
}

.feat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .feat:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
  }
}
.feat__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
  border-radius: var(--r-md);
  margin-bottom: var(--s-2);
}
.feat__icon svg { width: 22px; height: 22px; stroke-width: 1.5; }
.feat__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
html[dir="rtl"] .feat__title { letter-spacing: 0; font-size: 1.125rem; }
.feat__desc {
  font-size: var(--fs-small);
  color: var(--ink-3);
  line-height: 1.55;
}

/* bento positions */
.feat--hero {
  grid-column: span 8;
  grid-row: span 2;
  padding: var(--s-7);
  background:
    radial-gradient(80% 50% at 20% 0%, rgba(47, 128, 237, 0.10), transparent 60%),
    var(--surface);
}
.feat--hero .feat__title { font-size: 1.5rem; max-width: 18ch; }
html[dir="rtl"] .feat--hero .feat__title { font-size: 1.625rem; }
.feat--hero .feat__desc { font-size: var(--fs-body); max-width: 38ch; }
.feat--hero .feat__icon {
  width: 56px; height: 56px;
}
.feat--hero .feat__icon svg { width: 28px; height: 28px; }

.feat--hero .feat__visual {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0.9;
}
.feat--hero .feat__visual svg { width: 100%; height: 100%; }

.feat-2, .feat-3 { grid-column: span 4; }
.feat-4, .feat-5, .feat-6 { grid-column: span 4; }

@media (max-width: 880px) {
  .feat--hero { grid-column: span 6; grid-row: span 1; padding: var(--s-6); }
  .feat--hero .feat__visual { width: 200px; height: 200px; inset-inline-end: -30px; bottom: -30px; }
  .feat-2, .feat-3 { grid-column: span 3; }
  .feat-4, .feat-5, .feat-6 { grid-column: span 2; }
}
@media (max-width: 540px) {
  .feat--hero { grid-column: 1; }
  .feat--hero .feat__visual { width: 160px; height: 160px; opacity: 0.55; }
  .feat-2, .feat-3, .feat-4, .feat-5, .feat-6 { grid-column: 1; }
}

/* ── App section ── */
.app {
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
}
.app__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}
@media (max-width: 880px) {
  .app__inner { grid-template-columns: 1fr; gap: 48px; }
}

.app__visual {
  position: relative;
  max-width: 520px;
  margin-inline: auto;
}
.app__visual img {
  width: 100%;
  filter: drop-shadow(0 36px 64px rgba(11, 31, 58, 0.18));
}

.app__title {
  font-size: var(--fs-h1);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-4);
}
html[dir="rtl"] .app__title { letter-spacing: 0; line-height: 1.2; }

.app__lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: var(--s-6);
  max-width: 46ch;
}

.app__stores {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.app__stores a {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out);
}
.app__stores a:active { transform: scale(0.97); }
.app__stores img { height: 48px; width: auto; }

.app__rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--ink-2);
}
.app__rating svg { width: 16px; height: 16px; color: #F5A623; }
.app__rating b { color: var(--ink); font-weight: 600; }

/* ── CTA blocks (partners + contact) ── */
.cta-blocks__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 880px) {
  .cta-blocks__grid { grid-template-columns: 1fr; }
}

.cta-block {
  position: relative;
  padding: clamp(28px, 3vw, 48px);
  border-radius: var(--r-2xl);
  overflow: hidden;
  isolation: isolate;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-5);
}
.cta-block--primary {
  background: linear-gradient(135deg, #1E6FE0 0%, #2F80ED 50%, #4D96F0 100%);
  color: #fff;
}
.cta-block--secondary {
  background: var(--ink);
  color: #fff;
}
.cta-block__eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
html[dir="rtl"] .cta-block__eyebrow { text-transform: none; letter-spacing: 0; }

.cta-block h3 {
  color: #fff;
  font-size: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--s-3);
  margin-top: var(--s-3);
}
html[dir="rtl"] .cta-block h3 { letter-spacing: 0; line-height: 1.3; }

.cta-block p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-body);
  line-height: 1.55;
  max-width: 40ch;
}

.cta-block .btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-border: #fff;
  align-self: flex-start;
  margin-top: var(--s-4);
}
.cta-block .btn:hover {
  --btn-bg: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.cta-block__decor {
  position: absolute;
  inset-inline-end: -40px;
  bottom: -40px;
  width: 240px;
  height: 240px;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
.cta-block__decor svg { width: 100%; height: 100%; color: #fff; }

/* ── Page-specific footer-brand stack tweaks ── */
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: var(--s-4);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}
.footer__legal strong { color: rgba(255, 255, 255, 0.78); font-weight: 500; margin-inline-end: 6px; }
html[dir="rtl"] .footer__legal strong { margin-inline-end: 0; margin-inline-start: 6px; }
