:root {
  --ink: #241108;
  --parchment: #FBF3E6;
  --saddle: #8B4A15;
  --gold: #E7B65C;
  --card-bg: #F3E7D6;
  --text-muted: #6b5a4a;
  --danger: #b3261e;
  --success: #2e6b3a;
  --max-width: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

html[dir="rtl"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--parchment);
  border-bottom: 1px solid rgba(36, 17, 8, 0.1);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 16px rgba(36, 17, 8, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(36, 17, 8, 0.25);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lang-btn:hover {
  border-color: var(--saddle);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--saddle);
  border-color: var(--saddle);
  color: var(--parchment);
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 45% at 20% 25%, rgba(231, 182, 92, 0.35), transparent 70%),
    radial-gradient(32% 40% at 85% 70%, rgba(139, 74, 21, 0.22), transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(2%, -3%) scale(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-copy {
  flex: 1 1 380px;
  animation: fadeUp 0.7s ease both;
}

.hero-image {
  animation: fadeUp 0.7s ease 0.15s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 74, 21, 0.1);
  border: 1px solid rgba(139, 74, 21, 0.35);
  color: var(--saddle);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  animation: pulseBadge 2.4s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 74, 21, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(139, 74, 21, 0); }
}

.hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.phone-shot {
  width: 260px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(36, 17, 8, 0.25);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(36, 17, 8, 0.18);
}

.btn:active { transform: translateY(0); }

.btn-play {
  background: var(--ink);
  color: var(--parchment);
}

.btn-play.disabled {
  background: rgba(36, 17, 8, 0.3);
  pointer-events: none;
  cursor: default;
}

.btn-primary {
  background: var(--saddle);
  color: var(--parchment);
}

.btn-outline {
  background: transparent;
  border-color: var(--saddle);
  color: var(--saddle);
}

/* Features */
.features {
  padding: 48px 0 64px;
}

.features h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(36, 17, 8, 0.15);
}

.feature-shot {
  border-radius: 12px;
  margin: 0 auto 16px;
  max-height: 320px;
  width: auto;
  box-shadow: 0 12px 30px rgba(36, 17, 8, 0.18);
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-shot {
  transform: scale(1.03);
}

/* Scroll-reveal (see initScrollReveal in app.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.feature-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Access CTA */
.access-cta {
  background: var(--ink);
  color: var(--parchment);
  padding: 56px 0;
  text-align: center;
}

.access-cta h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
}

.access-cta p {
  margin: 0 0 28px;
  color: rgba(251, 243, 230, 0.8);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 28px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner p { margin: 4px 0; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 17, 8, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop[hidden] { display: none; }

.modal {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

.modal h2 {
  margin: 0 0 20px;
  font-size: 1.4rem;
  padding-inline-end: 24px;
}

.field {
  display: block;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(36, 17, 8, 0.25);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}

.field textarea { resize: vertical; }

.field-row {
  display: flex;
  gap: 16px;
}

.field-row .field { flex: 1; }

.form-status {
  min-height: 20px;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 480px) {
  .field-row { flex-direction: column; gap: 0; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero-copy, .hero-image, .phone-shot, .launch-badge, .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
