/* Emosion marketing site — brand from lib/theme/app_colors.dart */
:root {
  --primary: #7c4dff;
  --secondary: #3b82f6;
  --accent: #ffb36a;
  --success: #22c55e;
  --error: #ef4444;
  --background: #0b0c12;
  --surface: #151822;
  --surface-light: #1c2030;
  --border: #2a2f42;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --grad-primary: linear-gradient(135deg, var(--primary), var(--secondary));
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ambient-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.bg-glow-1 {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.bg-glow-2 {
  top: 360px;
  right: -160px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 12, 18, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
}

.logo span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(124, 77, 255, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(124, 77, 255, 0.08);
}

.nav-btn {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

/* Hero */
.hero-section {
  padding: 8.5rem 0 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(124, 77, 255, 0.12);
  border: 1px solid rgba(124, 77, 255, 0.3);
  color: #c4b5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-lead {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.pill span {
  color: var(--accent);
  margin-left: 0.35rem;
}

.hero-visual {
  position: relative;
}

.mockup-card {
  background: rgba(28, 32, 48, 0.85);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.mockup-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.mockup-header strong {
  display: block;
  font-size: 1rem;
}

.mockup-header span {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.chat-bubble {
  max-width: 90%;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.chat-bubble.them {
  background: rgba(124, 77, 255, 0.18);
  border: 1px solid rgba(124, 77, 255, 0.25);
  border-bottom-left-radius: 6px;
}

.chat-bubble.me {
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-left: auto;
  border-bottom-right-radius: 6px;
}

.call-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 0.9rem;
  font-weight: 600;
}

.call-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: rgba(124, 77, 255, 0.45);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(124, 77, 255, 0.15);
  color: #c4b5fd;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

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

.relationship-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.split-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.85rem;
}

.split-copy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.split-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.split-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-secondary);
}

.split-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--grad-primary);
  flex-shrink: 0;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.platform-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.platform-card strong {
  display: block;
  margin: 0.65rem 0 0.25rem;
}

.platform-card span {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font: inherit;
  font-weight: 600;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-question::after {
  content: "+";
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.faq-item.active .faq-question::after {
  content: "–";
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Legal */
.legal-main {
  padding: 8rem 0 4rem;
  max-width: 800px;
}

.legal-card {
  background: rgba(21, 24, 34, 0.75);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
}

.legal-card h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.meta-date {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.legal-card h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-card ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.legal-card a {
  color: #a78bfa;
  text-decoration: none;
}

.legal-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Pricing */
.pricing-banner {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 179, 106, 0.12);
  border: 1px solid rgba(255, 179, 106, 0.35);
  color: #ffd7a8;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-top: 8rem;
}

.pricing-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.pricing-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.currency-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem 0 0.5rem;
}

.currency-label {
  font-weight: 600;
  color: var(--text-secondary);
}

.currency-label.active {
  color: var(--primary);
}

.switch {
  position: relative;
  width: 64px;
  height: 34px;
  display: inline-block;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 34px;
  transition: 0.3s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 26px;
  width: 26px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

input:checked + .slider::before {
  transform: translateX(30px);
}

.rate-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.75rem;
  position: relative;
}

.price-card.featured {
  border-color: rgba(124, 77, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(124, 77, 255, 0.2), 0 20px 50px rgba(124, 77, 255, 0.12);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.price-card h3 {
  margin-bottom: 0.35rem;
}

.price-card .desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  min-height: 2.8rem;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.price-amount small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-card ul {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.55rem;
}

.price-card li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding-left: 1.2rem;
  position: relative;
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.price-card li.muted::before {
  content: "–";
  color: var(--text-secondary);
}

.topup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.topup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  text-align: center;
}

.topup-card strong {
  display: block;
  font-size: 1.35rem;
  margin: 0.35rem 0;
}

.compare-wrap {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.compare-table th {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 7px;
  padding: 2px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  text-align: center;
}

.modal-card h3 {
  margin-bottom: 0.5rem;
}

.modal-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-container,
  .split,
  .feature-grid,
  .pricing-grid,
  .topup-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links,
  .nav-btn {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(11, 12, 18, 0.96);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-section {
    padding-top: 7rem;
  }
}
