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

:root {
  /* Premium Dark Theme Palette */
  --primary: #3B82F6;
  /* Brighter Blue */
  --primary-dark: #1E3A8A;
  --primary-glow: rgba(59, 130, 246, 0.6);

  --secondary: #10B981;
  /* Emerald Green */
  --secondary-glow: rgba(16, 185, 129, 0.5);

  --accent: #F59E0B;
  /* Amber */

  --dark-bg: #020617;
  /* Darker Slate/Black */
  --card-bg: #0F172A;
  /* Slate 900 */

  --text-main: #F8FAFC;
  /* Slate 50 */
  --text-muted: #94A3B8;
  /* Slate 400 */

  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
}

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

body {
  font-family: 'Outfit', sans-serif;
  /* Modern friendly font */
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

/* Navigation */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  transition: all 0.3s ease;
}

header.scrolled {
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 10px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

/* Hero Premium Section */
.hero-premium {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem 2rem;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #020617 100%);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Antonio', sans-serif;
  font-size: 25vw;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -10px;
}

/* Hero 3-Column Layout */
.hero-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-content-left {
  text-align: right;
  z-index: 20;
}

.hero-content-right {
  text-align: left;
  z-index: 20;
  display: flex;
  align-items: center;
}

.hero-visual-center {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  /* animation: float 6s ease-in-out infinite; */
}

.hero-floating-phone {
  max-width: 380px;
  filter: drop-shadow(0 0 50px var(--primary-glow));
  transform: rotate(-5deg);
}

.premium-headline {
  font-family: 'Antonio', sans-serif;
  font-size: 5rem;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.premium-headline .highlight {
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  text-shadow: 0 0 30px var(--primary-glow);
}

.premium-subtext {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 400px;
  margin-left: auto;
  /* Push to right side of its container */
}

.cta-group.vertical {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.cta-button {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta-button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px var(--primary-glow);
}

.cta-button.primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 40px var(--primary-glow);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-main);
}

.cta-button.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

/* Responsive Stacking */
@media (max-width: 1024px) {
  .premium-headline {
    font-size: 3.5rem;
  }

  .hero-floating-phone {
    max-width: 300px;
  }
}

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

  .hero-content-left {
    text-align: center;
    order: 1;
  }

  .premium-subtext {
    margin: 0 auto;
    margin-top: 1rem;
  }

  .hero-visual-center {
    order: 2;
  }

  .hero-content-right {
    order: 3;
    justify-content: center;
  }

  .cta-group.vertical {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}

/* Ambient Glows */
.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.glow-1 {
  background: var(--primary);
  top: -200px;
  left: -200px;
}

.glow-2 {
  background: var(--secondary);
  bottom: -200px;
  right: -200px;
}

/* Features Section */
.features {
  padding: 8rem 2rem;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: rgba(30, 41, 59, 1);
  display: inline-block;
  padding: 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
}

/* Academy Section */
.academy {
  padding: 8rem 2rem;
  background: linear-gradient(to bottom, var(--dark-bg), #111827);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.academy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.article-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.article-image {
  height: 200px;
  background-color: #334155;
  position: relative;
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
  transform: scale(1.1);
}

.article-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.article-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 0.8rem;
}

/* How It Works */
.how-it-works {
  padding: 8rem 2rem;
}

.steps {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-image img {
  max-width: 280px;
  border-radius: 20px;
  border: 5px solid #2e2e2e;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.step-number {
  background: var(--primary);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.step h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* FAQ */
.faq {
  padding: 8rem 2rem;
  background-color: #111827;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  margin-bottom: 1rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  display: none;
  /* Controlled by JS */
}

/* Download Section */
.download-section {
  padding: 8rem 2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-options {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.download-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  color: var(--dark-bg);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.download-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: #0B1120;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-column a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  margin-bottom: 0.8rem;
}

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

.social-icons a {
  display: inline-flex;
  margin-right: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animation Keyframes */
@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, -50px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility Animations classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Media Queries */
/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 30px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  transform: translateY(-20px);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mobile-cta {
  background: var(--primary);
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  box-shadow: 0 0 20px var(--primary-glow);
}

/* Media Queries */
@media (max-width: 1024px) {
  .premium-headline {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .premium-headline {
    font-size: 3rem;
  }

  .hero-premium {
    padding-top: 8rem;
    /* More space for header */
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  /* Fix overflowing text */
  .hero-floating-phone {
    max-width: 80%;
  }

  .hero-content-left {
    text-align: center;
    order: 1;
  }

  .premium-subtext {
    margin: 1rem auto;
  }

  .hero-visual-center {
    order: 2;
  }

  .hero-content-right {
    order: 3;
    justify-content: center;
  }

  .cta-group.vertical {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    /* Prevent buttons getting cut off */
  }

  .step {
    flex-direction: column !important;
    text-align: center;
    gap: 3rem;
  }

  .step:nth-child(even) {
    flex-direction: column !important;
  }
}

/* Legal & Article Pages */
.legal-container {
  max-width: 900px;
  margin: 8rem auto 4rem;
  padding: 3rem;
  border-radius: 20px;
}

.legal-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
  display: block;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content strong {
  color: var(--text-main);
}

@media (max-width: 768px) {
  .legal-container {
    margin-top: 6rem;
    padding: 1.5rem;
  }

  .legal-content h1 {
    font-size: 2rem;
  }
}