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

:root {
  --bg-color: #08081a;
  --text-color: #dde0f0;
  --text-muted: #8a90b0;
  --neon-blue: #7eb8ff;
  --neon-purple: #b07eff;
  --card-bg: #0e0e28;
  --card-border: #2a2a55;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-display: 'Cinzel', Georgia, serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(80, 30, 160, 0.45) 0%, transparent 60%),
              radial-gradient(circle at 15% 40%, rgba(40, 20, 120, 0.3) 0%, transparent 40%),
              radial-gradient(circle at 85% 60%, rgba(100, 50, 200, 0.2) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
  animation: bg-pulse 10s ease-in-out infinite alternate;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px 512px;
  background-repeat: repeat;
}

@keyframes bg-pulse {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(8, 8, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--neon-blue);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.8;
  color: var(--neon-blue);
  text-shadow: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

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

/* Main Logo Branding */
.main-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 0 2rem;
  width: 100%;
}

.main-logo {
  width: min(700px, 95vw);
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.1) saturate(1.2);
  border-radius: 32px;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 82%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 82%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%);
  mask-composite: intersect;
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

/* Hero Section */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 4rem 0 8rem;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 0 0 320px;
  perspective: 1000px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  text-align: left;
  margin-bottom: 1.5rem;
}

.hero-content .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  color: #fff;
}

/* Phone Mockup */
.phone-mockup {
  position: relative;
  width: 100%;
  padding-top: 200%; /* Aspect ratio */
  background: #000;
  border-radius: 40px;
  box-shadow: 
    0 0 0 12px #1a1a2e,
    0 20px 50px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(126, 184, 255, 0.2);
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.phone-mockup:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-mockup img,
.phone-mockup video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero eyebrow label (used for "Coming Soon" etc.) */
.hero-eyebrow {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--neon-purple);
  margin-bottom: 0.75rem;
}

/* Coming-soon ribbon for app-grid cards */
.coming-soon-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  box-shadow: 0 4px 14px rgba(176, 126, 255, 0.35);
}

/* When the card visual is just an app icon (e.g. GhostCode pre-launch) */
.card-icon-visual {
  width: 140px !important;
  height: 140px !important;
  border-radius: 28px !important;
  object-fit: cover;
  transform: translateY(0) !important;
}
.app-card:hover .card-icon-visual {
  transform: translateY(0) scale(1.06) !important;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.display-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.section-header p {
  color: var(--text-muted);
}

/* Grid & Cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.app-card {
  --card-accent: var(--neon-blue);
  background: rgba(14, 14, 40, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card-visual {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-screenshot {
  width: auto;
  height: 85%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

/* Ensure hidden elements are actually hidden before animation */
.hidden-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hidden-on-scroll.is-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.app-card:hover .card-screenshot {
  transform: translateY(0) scale(1.05);
}

.card-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-card h2 {
  font-size: 1.25rem;
  color: var(--text-color);
}

.app-card p {
  font-size: 1rem;
  color: var(--text-muted);
}

.app-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-12px);
  border-color: var(--card-accent);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.app-card:hover::after {
  opacity: 1;
}

.guide-link {
  font-weight: 600;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: rgba(126, 184, 255, 0.05);
  border: 1px solid rgba(126, 184, 255, 0.1);
}

/* Background Blobs */
.bg-blob {
  position: fixed;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  transition: transform 0.2s ease-out;
}

.blob-1 {
  background: var(--neon-blue);
  top: -10%;
  left: -10%;
  transform: translate(calc(var(--scroll-y, 0) * -0.15px), calc(var(--scroll-y, 0) * -0.2px));
  will-change: transform;
}

.blob-2 {
  background: var(--neon-purple);
  bottom: -10%;
  right: -10%;
  transform: translate(calc(var(--scroll-y, 0) * 0.15px), calc(var(--scroll-y, 0) * 0.2px));
  will-change: transform;
}

@media (max-width: 850px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding: 2rem 0 4rem;
  }
  .hero-content h1, .hero-content .tagline {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-visual {
    flex: 0 0 auto;
    width: 260px;
  }
}


.btn-store {
  display: inline-block;
  background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
  color: #fff !important;
  text-decoration: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-store:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(188, 19, 254, 0.4);
  text-shadow: none;
  color: #fff !important;
}

.btn-store-disabled,
.btn-store-disabled:hover {
  cursor: default;
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.25);
  text-shadow: none;
}

.tagline {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

footer {
  max-width: 800px;
  margin: 4rem auto 0;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

footer p {
  font-size: 0.875rem;
  margin: 0;
}

.back-link {
  margin-bottom: 2rem;
}

.back-link a {
  color: var(--text-muted);
}

.back-link a:hover {
  color: var(--neon-blue);
}

.app-description {
  margin-top: 4rem;
}

.app-description h2 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-purple);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-visual {
  flex: 0 0 200px;
}

.hero-visual .app-screenshot {
  margin: 0;
  width: 100%;
}

.hero-section h1 {
  text-align: left;
}

.hero-section .tagline {
  text-align: left;
  margin-bottom: 2rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--neon-purple);
  transform: translateY(-4px);
}

.feature-card h3 {
  color: var(--neon-blue);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h3 .icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

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

/* FAQ Section */
.faq-section {
  margin-top: 6rem;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem !important;
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 3px solid var(--neon-blue);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}

.bottom-cta {
  text-align: center;
  margin-top: 6rem;
  padding: 4rem 2rem;
  background: radial-gradient(circle at center, rgba(0, 243, 255, 0.05) 0%, transparent 70%);
  border-radius: 24px;
}

.bottom-cta h2 {
  margin-bottom: 1.5rem;
}

.screenshot-gallery {
  margin-top: 4rem;
}

.screenshot-gallery h2 {
  text-align: center;
  margin-bottom: 1rem;
}

.section-intro {
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

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

.gallery-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 1rem;
}

.gallery-item img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.gallery-item figcaption {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.app-meta span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

/* Media Queries */
@media (max-width: 768px) {
  .site-nav {
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hero-section {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .hero-section h1, .hero-section .tagline {
    text-align: center;
  }
  .hero-visual {
    flex: 0 0 auto;
    width: 160px;
  }
  .nav-links {
    gap: 1rem;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-links a {
    font-size: 0.8rem;
  }
}

.logo-container img {
  mix-blend-mode: screen;
  filter: brightness(1.1) saturate(1.2);
  border-radius: 32px;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, black 8%, black 80%, transparent 100%),
    linear-gradient(to right,  transparent 0%, black 8%, black 92%, transparent 100%);
  mask-composite: intersect;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.logo-container::after {
  content: "";
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse at center, rgba(50, 15, 120, 0.55) 0%, transparent 65%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  main { padding: 3rem 1.2rem; }
  .logo-container img {
    width: min(360px, 90vw);
    height: auto;
  }
}
