/* ── Variables ──────────────────────────────────────────── */
:root {
  --wa-green: #075e54;
  --wa-light-green: #25d366;
  --wa-chat-bg: #e5ddd5;
  --wa-out: #dcf8c6;
  --wa-in: #ffffff;
  --wa-time: #667781;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --bg: #fbfbfd;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.rtl { direction: rtl; text-align: right; }


/* ── Language Button ───────────────────────────────────── */
.lang-wrapper {
  position: fixed;
  top: 16px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

body.rtl .lang-wrapper {
  right: auto;
  left: 24px;
}

.lang-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #aaa;
  letter-spacing: 0.3px;
}

.lang-btn {
  z-index: 200;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 8px 20px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}


.lang-btn:hover {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ── Page ──────────────────────────────────────────────── */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Reveal Animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px) translateY(0);
}

.reveal-left.visible {
  transform: translateX(0) translateY(0);
}

.reveal-right {
  transform: translateX(40px) translateY(0);
}

.reveal-right.visible {
  transform: translateX(0) translateY(0);
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 20px 0 24px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: -8px;
}

.hero-title {
  font-size: 6rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-sub {
  max-width: 580px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text2);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Phones Section ────────────────────────────────────── */
.phones-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px 0;
}

.phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.phone-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.phone-icon {
  font-size: 1.1rem;
}

/* ── Center Brand ──────────────────────────────────────── */
.center-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.center-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  opacity: 0.12;
}

/* ── WhatsApp Phone ────────────────────────────────────── */
.phone {
  width: 260px;
  height: 420px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  background: var(--wa-chat-bg);
}

.wa-header {
  background: var(--wa-green);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wa-back {
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  font-weight: 300;
}

.wa-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
}

.wa-info { display: flex; flex-direction: column; }

.wa-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.wa-status {
  color: rgba(255,255,255,0.6);
  font-size: 0.65rem;
}

/* ── Chat Body ─────────────────────────────────────────── */
.wa-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='p' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='20' cy='20' r='0.8' fill='%23c8c4bc' opacity='0.25'/%3E%3C/pattern%3E%3C/defs%3E%3Crect fill='url(%23p)' width='200' height='200'/%3E%3C/svg%3E");
}

.wa-body::-webkit-scrollbar { width: 3px; }
.wa-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }

/* ── Bubbles ───────────────────────────────────────────── */
.wa-msg {
  max-width: 88%;
  padding: 6px 8px 3px;
  border-radius: 7px;
  font-size: 0.72rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  word-wrap: break-word;
}

.wa-msg.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.wa-msg.incoming {
  background: var(--wa-in);
  align-self: flex-start;
  border-top-left-radius: 0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.wa-msg.outgoing {
  background: var(--wa-out);
  align-self: flex-end;
  border-top-right-radius: 0;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.msg-text { display: block; }

.msg-time {
  display: block;
  text-align: right;
  font-size: 0.58rem;
  color: var(--wa-time);
  margin-top: 1px;
}

.wa-msg.outgoing .msg-time::after {
  content: ' ✓✓';
  color: #53bdeb;
}

.msg-attachment {
  background: rgba(0,0,0,0.04);
  padding: 4px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  font-weight: 500;
  font-size: 0.68rem;
}

/* ── Typing Indicator ──────────────────────────────────── */
.wa-typing {
  align-self: flex-start;
  background: var(--wa-in);
  padding: 8px 12px;
  border-radius: 7px;
  border-top-left-radius: 0;
  display: flex;
  gap: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}

.wa-typing.show { opacity: 1; transform: translateY(0); }

.wa-typing span {
  width: 5px;
  height: 5px;
  background: #aaa;
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}

.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-3px); }
}

/* ── Industries ────────────────────────────────────────── */
.industries {
  padding: 40px 0 24px;
  text-align: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.industries-heading {
  font-size: 0.9rem;
  font-weight: 500;
  color: #aaa;
  text-align: center;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
}

.industry-track {
  display: flex;
  gap: 20px;
  animation: marquee 20s linear infinite;
  width: max-content;
  will-change: transform;
}

.industry-tag {
  background: rgba(0,0,0,0.04);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

/* ── CTA ───────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 32px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cta-desc {
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  line-height: 1.5;
  color: #aaa;
  text-align: center;
  max-width: 90%;
}

.cta-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%), #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  color: #fff;
  padding: 18px 64px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

.cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%), #1a1a1a;
}

.cta-btn:active {
  transform: scale(0.98);
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px 0 40px;
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: #fff;
  padding: 32px;
  border-radius: 20px;
  width: 90%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.15);
  transform: translateY(16px) scale(0.97);
  transition: all 0.3s;
  position: relative;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #bbb;
  transition: color 0.2s;
  line-height: 1;
}

body.rtl .modal-close { right: auto; left: 18px; }

.modal-close:hover { color: #333; }

.modal-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  object-fit: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.modal-title {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #111;
  text-align: center;
  position: relative;
  z-index: 1;
}

.modal-desc {
  font-size: 0.78rem;
  line-height: 1.6;
  color: #999;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

#form-view { position: relative; z-index: 1; }

/* Success View */
.success-view {
  text-align: center;
  padding: 20px 0;
}

.success-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 16px;
}

.success-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
}

.success-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #666;
  margin-bottom: 12px;
}

.success-highlight {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #333;
  font-weight: 600;
  font-style: italic;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #555;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: #333;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,0,0,0.04);
}

.form-submit {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  margin-top: 8px;
}

.form-submit:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .phones-section {
    flex-direction: column;
    gap: 24px;
  }
  .center-brand { order: -1; }
  .phone { width: 280px; height: 400px; }
  .hero-logo { width: 180px; height: 180px; }
  .hero-title { font-size: 4.5rem; }
}

@media (max-width: 480px) {
  .hero { padding: 16px 0 16px; }
  .hero-logo { width: 140px; height: 140px; }
  .hero-title { font-size: 3.2rem; }
  .hero-tagline { font-size: 1.15rem; }
  .hero-sub { font-size: 0.88rem; padding: 0 8px; }
  .phone { width: 260px; height: 380px; }
  .cta-btn { padding: 14px 40px; font-size: 1rem; }
}
