﻿/* Arrow Puzzle: Tap Out - Official Landing Page Styles
   Cosmic Cyberpunk Dark Glassmorphism Theme (Optimized for 9:16 Portrait Screenshots)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  --primary: #06B6D4;
  --primary-glow: rgba(6, 182, 212, 0.4);
  --primary-dark: #0891B2;
  --secondary: #8B5CF6;
  --secondary-glow: rgba(139, 92, 246, 0.35);
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --bg-dark: #070913;
  --bg-surface: #0E1322;
  --bg-card: rgba(16, 22, 38, 0.72);
  --bg-card-hover: rgba(24, 34, 58, 0.85);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

html {
  scroll-behavior: smooth;
}

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

/* Custom Selection */
::selection {
  background: var(--primary);
  color: #000;
}

/* Background Ambient Glows */
.bg-glow-1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, rgba(139, 92, 246, 0.15) 45%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-2 {
  position: absolute;
  top: 1100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-glow-3 {
  position: absolute;
  top: 2400px;
  left: -150px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 8%;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 20px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  object-fit: cover;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.logo-text span {
  background: linear-gradient(135deg, var(--primary), #38BDF8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 7px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Primary Button with Gradient & Glow */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #03131A;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.btn-primary svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, #22D3EE, var(--primary));
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.6rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section with 9:16 Phone Showcase */
.hero {
  position: relative;
  padding: 8.5rem 8% 5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 0.45rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary) 0%, #38BDF8 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Stats Row */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}

.stat-item h4 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, #FFFFFF, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

/* Hero 9:16 Portrait Smartphone Showcase */
.hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 16;
  border-radius: 38px;
  overflow: hidden;
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(6, 182, 212, 0.35);
  border: 4px solid rgba(255, 255, 255, 0.16);
  background: #000;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.phone-mockup-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 100px -15px rgba(0, 0, 0, 0.95), 0 0 70px rgba(6, 182, 212, 0.55);
}

.phone-mockup-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.floating-pill {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  background: rgba(7, 9, 19, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.45);
  border-radius: 999px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.floating-pill-dot {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10B981;
}

/* Section Shared Headers */
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Core Features Section */
.features-section {
  padding: 6rem 8%;
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--primary-glow), transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 30px rgba(6, 182, 212, 0.15);
}

.feature-card:hover::before {
  opacity: 0.15;
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.3rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Game Modes Showcase Section */
.modes-section {
  padding: 6rem 8%;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 19, 34, 0.6) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(14px);
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.mode-speed {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.mode-speed.insane {
  color: #EF4444;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.mode-speed.fast {
  color: #F59E0B;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.mode-speed.normal {
  color: #06B6D4;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.mode-speed.zen {
  color: #10B981;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.mode-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Screenshots Gallery Section (Dedicated 9:16 Phone Showcase Grid) */
.screenshots-section {
  padding: 6rem 8%;
  position: relative;
  z-index: 1;
}

.screenshots-grid-916 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 3.5rem auto 0;
}

.phone-card-916 {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 3px solid var(--border);
  background: #000;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.75);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.phone-card-916 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phone-card-916:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.9), 0 0 40px var(--primary-glow);
}

.phone-card-916:hover img {
  transform: scale(1.03);
}

/* FAQ Accordion Section */
.faq-section {
  padding: 6rem 8%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
}

.faq-question {
  padding: 1.4rem 1.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.6rem 1.4rem;
}

/* CTA Download Banner */
.cta-section {
  padding: 5rem 8% 7rem;
  position: relative;
  z-index: 1;
}

.cta-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-xl);
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(6, 182, 212, 0.2);
  backdrop-filter: blur(20px);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary-glow), transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.8px;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

/* Footer */
footer {
  padding: 3rem 8%;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
  background: rgba(7, 9, 19, 0.95);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

/* Legal Container (Privacy Policy) */
.legal-container {
  max-width: 860px;
  margin: 7.5rem auto 5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.legal-container h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.8px;
}

.update-date {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  color: var(--text-main);
  line-height: 1.8;
  font-size: 1.02rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
  color: var(--primary);
}

.legal-content p {
  color: #CBD5E1;
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0 0 1.5rem 1.8rem;
  color: #CBD5E1;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .screenshots-grid-916 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 650px;
  }
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 7.5rem;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-desc {
    margin: 0 auto;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 19, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .screenshots-grid-916 {
    grid-template-columns: 1fr;
    max-width: 320px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta-title {
    font-size: 2.1rem;
  }

  .cta-box {
    padding: 3rem 1.5rem;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}
