:root {
  --brand-500: #10b981;
  --brand-600: #059669;
  --ink-900: #111827;
  --ink-700: #374151;
  --line-200: #e5e7eb;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', 'Noto Sans', 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 8% 5%, #ecfdf5 0%, #f8fafc 35%, #ffffff 65%);
  color: var(--ink-900);
}

body[data-locale='ar'] {
  font-family: 'Noto Sans Arabic', 'Manrope', sans-serif;
}

body[data-locale='hi'] {
  font-family: 'Noto Sans Devanagari', 'Manrope', sans-serif;
}

body[data-locale='ja'] {
  font-family: 'Noto Sans JP', 'Manrope', sans-serif;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(10px);
}

.brand-shadow {
  box-shadow: 0 20px 65px rgba(16, 185, 129, 0.18);
}

.hero-phone-stage {
  position: relative;
  overflow: hidden;
  min-height: clamp(440px, 58vw, 640px);
  border-radius: 1.8rem;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background:
    radial-gradient(circle at 18% 12%, rgba(16, 185, 129, 0.2), transparent 44%),
    radial-gradient(circle at 86% 88%, rgba(14, 165, 233, 0.18), transparent 46%),
    linear-gradient(140deg, #f8fffc 0%, #ffffff 52%, #effaf5 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(6px);
  pointer-events: none;
}

.hero-orb-left {
  left: -44px;
  top: -30px;
  width: 180px;
  height: 180px;
  background: rgba(16, 185, 129, 0.22);
}

.hero-orb-right {
  right: -50px;
  bottom: -36px;
  width: 210px;
  height: 210px;
  background: rgba(14, 165, 233, 0.2);
}

.hero-phone-frame {
  position: absolute;
  z-index: 2;
  width: clamp(160px, 42%, 255px);
  height: clamp(330px, 80%, 530px);
  margin: 0;
  padding: 10px;
  border-radius: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.24),
    0 0 0 2px rgba(255, 255, 255, 0.25) inset;
}

.hero-phone-image {
  width: 100%;
  height: 100%;
  border-radius: 1.45rem;
  object-fit: cover;
  object-position: top;
}

.hero-phone-main {
  left: 11%;
  top: 7%;
  transform: rotate(-6deg);
}

.hero-phone-alt {
  right: 10%;
  top: 17%;
  transform: rotate(6deg);
}

.mock-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mock-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.section-anchor-offset {
  scroll-margin-top: 90px;
}

.fade-up {
  animation: fadeUp 0.7s ease both;
}

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

.legal-link {
  font-size: 0.875rem;
  color: #475569;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--brand-600);
}

.language-select {
  border: 1px solid var(--line-200);
  background: white;
  color: #0f172a;
  border-radius: 0.75rem;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.modal-backdrop {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  max-height: min(78vh, 820px);
}

.agreement-body {
  color: #334155;
  line-height: 1.7;
}

.agreement-body h1,
.agreement-body h2,
.agreement-body h3,
.agreement-body h4 {
  color: #0f172a;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.agreement-body p {
  margin-bottom: 0.75rem;
}

.agreement-body ul,
.agreement-body ol {
  margin: 0.5rem 0 0.75rem 1.2rem;
}

.agreement-body li {
  margin-bottom: 0.3rem;
}

.agreement-body a {
  color: #047857;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-phone-stage {
    min-height: clamp(420px, 70vw, 560px);
  }

  .hero-phone-main {
    left: 8%;
    top: 8%;
    transform: rotate(-4.5deg);
  }

  .hero-phone-alt {
    right: 7%;
    top: 18%;
    transform: rotate(4.5deg);
  }
}

@media (max-width: 640px) {
  .hero-phone-stage {
    min-height: 430px;
  }

  .hero-phone-frame {
    width: clamp(146px, 46%, 200px);
    height: clamp(305px, 76vw, 410px);
    padding: 8px;
  }

  .hero-phone-main {
    left: 5%;
    top: 10%;
    transform: rotate(-3.5deg);
  }

  .hero-phone-alt {
    right: 5%;
    top: 23%;
    transform: rotate(3.5deg);
  }
}
