/* =============================================================================
   BASE.CSS — Reset, Typography, & Utility Classes
   ============================================================================= */

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

ul {
  list-style: none;
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6D28D9, #9061F9);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-dark {
  background: var(--text-primary);
  color: #fff;
}

.btn-dark:hover {
  background: #1a2332;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
}

.btn-ghost:hover {
  color: var(--purple);
}

/* ── Section Typography ── */
.section-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Download App Modal ── */
.download-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.download-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.download-modal-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 80px rgba(124, 58, 237, 0.18), 0 4px 20px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s ease;
}

.download-modal-overlay.open .download-modal-card {
  transform: translateY(0) scale(1);
}

.download-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-section);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background 0.15s;
}

.download-modal-close:hover {
  background: var(--border-strong);
}

.download-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  overflow: hidden;
}

.download-modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.download-modal-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.download-modal-stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  color: #fff;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.store-apple {
  background: #000;
}

.store-google {
  background: #000;
  border: 1px solid rgba(255,255,255,0.15);
}

.store-btn div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 0.66rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Maintaining Toast ── */
.maintaining-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A0A2E;
  color: #fff;
  padding: 13px 24px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.maintaining-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
