/* ── FanMirror Landing Page ── */

/* Fonts:
   Orbitron  — futuristic display headings
   Rajdhani — semi-geometric subheadings/nav
   Inter    — clean body text
*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --c-bg:       #07071a;
  --c-surface:  rgba(15, 15, 40, 0.65);
  --c-border:   rgba(255, 255, 255, 0.08);
  --c-red:      #e63946;
  --c-blue:     #4895ef;
  --c-text:     #e0e0e8;
  --c-muted:    #777790;
  --font-display: 'Orbitron', sans-serif;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Canvas background ── */
#swirl-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Layout ── */
.page-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(7, 7, 26, 0.5);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo {
  height: 36px;
  width: auto;
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-muted);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* ── Hero ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  min-height: 80vh;
}

.hero-logo {
  width: min(340px, 60vw);
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 40px rgba(72, 149, 239, 0.3))
          drop-shadow(0 0 40px rgba(230, 57, 70, 0.3));
  animation: logo-float 6s ease-in-out infinite;
}

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

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-blue), var(--c-red));
  color: #fff;
  box-shadow: 0 4px 24px rgba(72, 149, 239, 0.25),
              0 4px 24px rgba(230, 57, 70, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(72, 149, 239, 0.35),
              0 8px 32px rgba(230, 57, 70, 0.3);
}

/* Launch button image — dominates the hero */
.btn-launch {
  display: block;
  width: 55vw;
  max-width: 700px;
  transition: opacity 0.4s, transform 0.4s, filter 0.4s;
  position: relative;
  border-radius: 16px;
}

.btn-launch::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 24px;
  opacity: 0;
  background: radial-gradient(ellipse at center,
    rgba(72, 149, 239, 0.5) 0%,
    rgba(230, 57, 70, 0.4) 40%,
    transparent 70%);
  filter: blur(20px);
  transition: opacity 0.4s;
  z-index: -1;
  pointer-events: none;
}

.btn-launch:hover {
  opacity: 0.35;
  transform: scale(1.06);
  filter: brightness(1.3);
}

.btn-launch:hover::after {
  opacity: 1;
}

.launch-btn-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.hero-learn-more {
  margin-top: 1.5rem;
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--c-blue);
  box-shadow: 0 0 16px rgba(72, 149, 239, 0.15);
}

/* ── Features ── */
.features {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Shared Section Headings ── */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 2px;
  color: #fff;
}

.glass-heading {
  display: inline-block;
  width: 100%;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  background: rgba(15, 15, 40, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

/* ── Glassmorphism Panel ── */
.glass-panel {
  background: rgba(15, 15, 40, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric texture on glass panel */
.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/cards/geometric-3d.webp') center / cover no-repeat;
  opacity: 0.04;
  filter: brightness(0.3);
  pointer-events: none;
  z-index: 0;
}

/* How It Works — pre-rendered card image */
.how-card-img {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  border-radius: 20px;
  margin: 0 auto;
  transition: opacity 0.3s, filter 0.3s;
}

.how-card-img:hover {
  opacity: 0.88;
  filter: hue-rotate(10deg) brightness(1.05);
}

.glass-panel > * {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Feature Card: Base ── */
.feature-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.3s, filter 0.3s, border-color 0.3s;
  min-height: 220px;
}

.feature-card:hover {
  opacity: 0.88;
  filter: hue-rotate(10deg) brightness(1.05);
  border-color: rgba(72, 149, 239, 0.2);
}

/* Background image layer (deepest) */
.card-bg-layer {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  filter: brightness(0.4) saturate(1.3);
  transition: opacity 0.4s, filter 0.4s, background-position 0.1s ease-out;
  z-index: 0;
}

.feature-card:hover .card-bg-layer {
  opacity: 0.55;
  filter: brightness(0.5) saturate(1.5);
}

/* Mid-layer (splash or secondary image, parallax offset) */
.card-mid-layer {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: brightness(0.3);
  transition: opacity 0.4s, transform 0.15s ease-out;
  z-index: 1;
  transform: scale(1.1);
}

.feature-card:hover .card-mid-layer {
  opacity: 0.2;
}

/* Pre-rendered standalone card images — full width, natural aspect ratio */
.prerendered-card-img {
  width: 100%;
  max-width: 1060px;
  height: auto;
  display: block;
  margin: 0 auto 2rem;
  border-radius: 16px;
  transition: opacity 0.3s, filter 0.3s;
}

.prerendered-card-img:hover {
  opacity: 0.88;
  filter: hue-rotate(10deg) brightness(1.05);
}

/* Dark gradient overlay for text readability */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7, 7, 26, 0.85) 0%,
    rgba(7, 7, 26, 0.6) 50%,
    rgba(7, 7, 26, 0.75) 100%
  );
  z-index: 3;
  pointer-events: none;
  border-radius: 16px;
}

/* Card content sits on top */
.card-content {
  position: relative;
  z-index: 4;
  padding: 1.5rem;
}

/* ── Feature Icon (SVG-based, no emojis) ── */
.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-icon.red {
  background: rgba(230, 57, 70, 0.12);
  color: var(--c-red);
}

.feature-icon.blue {
  background: rgba(72, 149, 239, 0.12);
  color: var(--c-blue);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.feature-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ── Branding watermark in corner ── */
.card-brand-mark {
  position: absolute;
  bottom: 10px;
  right: 12px;
  width: 28px;
  height: auto;
  opacity: 0.15;
  filter: grayscale(0.3);
  transition: opacity 0.3s;
  z-index: 5;
}

.feature-card:hover .card-brand-mark {
  opacity: 0.3;
}

/* ── Corner Ribbons ── */
.card-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  overflow: hidden;
  z-index: 5;
  pointer-events: none;
}

.card-ribbon span {
  position: absolute;
  display: block;
  width: 130px;
  padding: 4px 0;
  background: linear-gradient(135deg, var(--c-red), #b71c33);
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transform: rotate(45deg);
  top: 18px;
  right: -35px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* Ribbon fold shadow (3D wrap-around effect) */
.card-ribbon::before {
  content: '';
  position: absolute;
  top: 0;
  right: 78px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 6px solid #7a1020;
}

.card-ribbon::after {
  content: '';
  position: absolute;
  top: 78px;
  right: 0;
  width: 0;
  height: 0;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #7a1020;
}

/* Blue ribbon variant */
.card-ribbon.ribbon-blue span {
  background: linear-gradient(135deg, var(--c-blue), #2b6cb0);
}

.card-ribbon.ribbon-blue::before {
  border-right-color: #1a4a7a;
}

.card-ribbon.ribbon-blue::after {
  border-left-color: #1a4a7a;
}

/* Glassmorphism ribbon variant */
.card-ribbon.ribbon-glass span {
  background: rgba(72, 149, 239, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(72, 149, 239, 0.3);
  box-shadow: 0 0 15px rgba(72, 149, 239, 0.15);
  animation: ribbon-glow 3s ease-in-out infinite;
}

.card-ribbon.ribbon-glass::before,
.card-ribbon.ribbon-glass::after {
  display: none;
}

@keyframes ribbon-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(72, 149, 239, 0.15); }
  50% { box-shadow: 0 0 20px rgba(72, 149, 239, 0.35); }
}

/* ── Card Variants ── */

/* Elevated card: extra shadow depth */
.card-elevated {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-elevated:hover {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6),
              0 0 40px rgba(230, 57, 70, 0.1);
}

/* Glow-pulse card: subtle border glow animation */
.card-glow-pulse {
  animation: card-pulse 4s ease-in-out infinite;
}

@keyframes card-pulse {
  0%, 100% {
    border-color: rgba(72, 149, 239, 0.12);
    box-shadow: 0 0 0 rgba(72, 149, 239, 0);
  }
  50% {
    border-color: rgba(72, 149, 239, 0.3);
    box-shadow: 0 0 20px rgba(72, 149, 239, 0.08);
  }
}

/* ── How It Works ── */
.how-it-works {
  padding: 3rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.how-it-works .section-heading {
  margin-bottom: 2rem;
}

.steps {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--c-blue), var(--c-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #fff;
}

.step p {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* ── Footer ── */
.footer {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid var(--c-border);
  backdrop-filter: blur(8px);
  background: rgba(7, 7, 26, 0.5);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo {
  height: 24px;
  width: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-muted);
}

.footer p {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.footer a {
  color: var(--c-blue);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav {
    padding: 0.75rem 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 3rem 1.25rem;
    min-height: 70vh;
  }

  .features {
    padding: 2rem 1.25rem;
  }

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--c-bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) var(--c-bg);
}
