/* MafiaMate Landing Page — Standalone Noir/Art Deco Theme */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Theme Tokens ── */
:root {
  --noir-950: #0a0a0a;
  --noir-900: #121212;
  --noir-800: #1a1a1a;
  --noir-700: #252525;
  --noir-600: #333333;
  --noir-500: #4a4a4a;

  --blood-600: #8b0000;
  --blood-500: #a52a2a;
  --blood-400: #c41e3a;
  --blood-300: #dc143c;

  --gold-500: #b8860b;
  --gold-400: #d4af37;
  --gold-300: #ffd700;

  --smoke-400: #696969;
  --smoke-300: #808080;
  --smoke-200: #a9a9a9;
  --smoke-100: #d3d3d3;

  --font-display: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  font-family: var(--font-body);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--noir-950);
  color: var(--smoke-100);
  background-image:
    radial-gradient(ellipse at top, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(10, 10, 10, 1) 0%, transparent 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Fog Overlay ── */
.fog-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(50, 50, 50, 0.2) 0%, transparent 50%);
  z-index: 1;
}

/* ── Art Deco Corner Decoration ── */
.art-deco-corner {
  position: relative;
}

.art-deco-corner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-top: 2px solid var(--gold-500);
  border-left: 2px solid var(--gold-500);
}

.art-deco-corner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  border-bottom: 2px solid var(--gold-500);
  border-right: 2px solid var(--gold-500);
}

/* ── Layout ── */
.page-content {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.hero-frame {
  padding: 60px 48px;
  max-width: 700px;
  width: 100%;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--noir-700);
  border-radius: 12px;
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.logo {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--smoke-100);
  animation: hero-entrance 0.8s ease-out both;
}

.logo-accent {
  color: var(--blood-400);
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--smoke-300);
  margin-top: 12px;
  letter-spacing: 0.08em;
  font-style: italic;
  animation: hero-entrance 0.8s ease-out 0.15s both;
}

.description {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--smoke-200);
  margin-top: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  animation: hero-entrance 0.8s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  margin-top: 36px;
  padding: 16px 48px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #fff;
  background: linear-gradient(180deg, var(--blood-500), var(--blood-600));
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: 10px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 20px rgba(139, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.25s ease;
  animation: hero-entrance 0.8s ease-out 0.45s both;
}

.cta-button:hover {
  background: linear-gradient(180deg, var(--blood-400), var(--blood-500));
  box-shadow: 0 0 40px rgba(196, 30, 58, 0.45);
  transform: translateY(-2px);
}

.cta-button:active {
  transform: translateY(0);
  background: linear-gradient(180deg, var(--blood-600), var(--blood-600));
}

.cta-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--smoke-400);
  animation: hero-entrance 0.8s ease-out 0.55s both;
}

/* ── Section Title ── */
.section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 48px;
  background: linear-gradient(
    135deg,
    #b8860b 0%, #d4af37 20%, #ffd700 35%,
    #fffacd 50%, #ffd700 65%, #d4af37 80%, #b8860b 100%
  );
  background-size: 200% 200%;
  animation: shimmer 3s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  max-width: 200px;
  gap: 16px;
  padding: 20px 0 60px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--noir-600), transparent);
}

.divider-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-500);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Features Section ── */
.features {
  padding: 80px 24px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  padding: 32px 24px;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--noir-700);
  border-radius: 10px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--noir-600);
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(139, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blood-400);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--smoke-100);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--smoke-300);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  padding: 80px 24px;
}

.steps {
  display: flex;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
  justify-content: center;
}

.step {
  flex: 1;
  text-align: center;
  max-width: 260px;
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }

.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--noir-950);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-300));
  border-radius: 50%;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--smoke-100);
}

.step p {
  font-size: 0.9rem;
  color: var(--smoke-300);
  line-height: 1.5;
}

/* ── Bottom CTA ── */
.bottom-cta {
  text-align: center;
  padding: 60px 24px 100px;
}

.bottom-cta .cta-button {
  animation: none;
  opacity: 1;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--noir-700);
}

.logo-small {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 12px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--smoke-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--smoke-100);
}

.legal-footer-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
}

.legal-footer-links a {
  font-size: 0.85rem;
  color: var(--smoke-400);
  transition: color 0.2s ease;
}

.legal-footer-links a:hover {
  color: var(--smoke-100);
}

.footer-sep {
  color: var(--noir-600);
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--smoke-400);
}

/* ── Legal Pages ── */
.legal-nav {
  padding: 24px;
  border-bottom: 1px solid var(--noir-700);
}

.legal-content {
  max-width: 800px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal-content h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--smoke-100);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--smoke-400);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--smoke-100);
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--noir-700);
}

.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--smoke-200);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.95rem;
  color: var(--smoke-200);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-content li {
  font-size: 0.95rem;
  color: var(--smoke-200);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--blood-400);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: var(--blood-300);
}

.legal-content strong {
  color: var(--smoke-100);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--noir-700);
  color: var(--smoke-200);
}

.legal-table th {
  font-weight: 600;
  color: var(--smoke-100);
  background: var(--noir-800);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.legal-table tr:hover td {
  background: var(--noir-900);
}

/* ── Keyframes ── */
@keyframes hero-entrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { background-position: 200% 50%; }
  100% { background-position: -200% 50%; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .hero-frame {
    padding: 48px 28px;
  }
}

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

  .hero-frame {
    padding: 40px 20px;
  }

  .cta-button {
    padding: 14px 36px;
    font-size: 1rem;
  }

}

/* ── Waitlist Form ── */
.waitlist-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  animation: hero-entrance 0.8s ease-out 0.45s both;
}

.waitlist-form input[type="email"] {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--smoke-100);
  background: var(--noir-800);
  border: 1px solid var(--noir-600);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--smoke-400);
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--blood-400);
}

.waitlist-form .cta-button {
  width: 100%;
  margin-top: 16px;
  white-space: nowrap;
  animation: none;
  opacity: 1;
  border: none;
  text-decoration: none;
  box-sizing: border-box;
}

.waitlist-form .cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.waitlist-error {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--blood-300);
  text-align: center;
}

.waitlist-success {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gold-400);
  text-align: center;
  animation: hero-entrance 0.5s ease-out both;
}
