:root {
  --bg-color: #000330;
  --gold: #f4b41a;
  --gold-hover: #d99f15;
  --text-white: #ffffff;
  --text-gray: #b0b5c1;
  --white-section-bg: #ffffff;
  --dark-text: #020518;
  --footer-bg: #01020a;
}

/* --- RESET & BASICS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scroll */
}

body {
  background-color: var(--bg-color);
  color: var(--text-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

/* Global Link Reset */
a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 3D PERSPECTIVE CONTAINERS --- */
.hero,
.mindset-section,
.white-section-wrapper,
.master-section {
  perspective: 1000px;
  overflow: hidden;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.15;
}
.serif-gold {
  font-family: "Playfair Display", serif;
  color: var(--gold);
  font-weight: 700;
}
p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* --- BUTTONS & LINKS --- */
.btn {
  background-color: var(--gold);
  color: #000;
  padding: 14px 35px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background-color: var(--gold-hover);
  transform: translateY(-2px);
}

.desktop-links a:not(.btn) {
  color: var(--text-white);
  margin: 0 20px;
  font-size: 1rem;
  opacity: 0.9;
  transition: color 0.3s;
}
.desktop-links a:not(.btn):hover {
  color: var(--gold);
  opacity: 1;
}

/* --- NAVBAR --- */
nav {
  padding: 20px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Hamburger */
.hamburger-menu {
  display: none;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 20px;
  position: relative;
}
.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease-in-out;
}
.hamburger-menu span:nth-child(1) {
  top: 0;
}
.hamburger-menu span:nth-child(2) {
  top: 9px;
}
.hamburger-menu span:nth-child(3) {
  top: 18px;
}
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Mobile Menu */
.nav-links.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #010313;
  padding: 100px 30px 30px;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.4);
  transition: right 0.4s ease-in-out;
  z-index: 999;
}
.nav-links.mobile-menu.open {
  right: 0;
  display: flex;
}
.nav-links.mobile-menu a {
  margin: 15px 0;
  font-size: 1.2rem;
  color: var(--text-white);
}
.nav-btn-mobile {
  margin-top: 30px;
  text-align: center;
}

/* --- HERO SECTION --- */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.app-badges {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}
.app-badge {
  padding: 10px 20px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}
.app-badge i {
  font-size: 1.2rem;
  margin-right: 8px;
}
.hero-image-box {
  text-align: center;
}

/* --- STOCK TICKER --- */
.stock-ticker-strip {
  margin-bottom: 90px;
  position: relative;
  z-index: 10;
}
.tradingview-widget-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- MASTER SECTION --- */
.master-section {
  padding: 60px 0;
}
.master-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.master-text h2 {
  font-size: 3.2rem;
  margin-bottom: 20px;
}
.master-text p {
  margin-bottom: 30px;
}

/* --- MINDSET SECTION (Exact Scattered Design) --- */
.mindset-section {
  padding: 100px 0 140px;
  text-align: center;
  position: relative;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(20, 30, 60, 0.4) 0%,
    rgba(2, 5, 24, 0) 70%
  );
  overflow: visible; /* Allows cards to float outside bounds */
}

.mindset-title {
  font-size: 3rem;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.laptop-wrapper {
  position: relative;
  max-width: 800px; /* Fixed reference frame for cards */
  margin: 0 auto;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.laptop-main-image {
  width: 65%; /* Size of laptop */
  max-width: 550px;
  position: relative;
  z-index: 10;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}

/* Background Ripples */
.circle {
  position: absolute;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.1); /* Fixed syntax error */
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.circle-1 {
  width: 700px;
  height: 700px;
}
.circle-2 {
  width: 450px;
  height: 450px;
  border-color: rgba(255, 179, 0, 0.3); /* Fixed syntax error */
}

/* --- GLASS CARDS BASE STYLE --- */
.glass-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker for better readability */
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 240px;
  z-index: 20;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(244, 180, 26, 0.15);
  border-color: rgba(244, 180, 26, 0.3);
}

.glass-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-content h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.glass-content p {
  color: #a0a5b0;
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 0;
}

/* --- INDIVIDUAL CARD POSITIONING (DESKTOP) --- */

/* 1. Support (Left Side) */
.gc-1 {
  top: 15%;
  left: -90px;
  text-align: right;
  flex-direction: row;
  justify-content: flex-end;
}
#card-support .glass-content { order: 1; }
#card-support .glass-icon { order: 2; margin-left: 5px; }

/* 2. Upgrade (Top Right) */
.gc-2 {
  top: 1%;
  right: 20px;
  text-align: left;
}

/* 3. Academy (Bottom Left) */
.gc-3 {
  bottom: -5px;
  left: -2px;
  flex-direction: row;
  text-align: left;
  width: 250px;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker for better readability */
}
#card-academy .glass-icon {
  margin-bottom: 0;
  width: 45px;
  height: 45px;
}

/* 4. Community (Bottom Right) */
.gc-4 {
  bottom: 20%;
  right: -60px;
  text-align: left;
}

/* =========================================
   RESPONSIVE FIXES (Laptop & Mobile)
   ========================================= */

@media (max-width: 1024px) {
  .mindset-section {
    padding: 60px 0;
    overflow: hidden; /* Prevents side-scrolling if animations fly out */
  }
  
  .mindset-title {
    font-size: 2.2rem;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  /* 1. RESET THE WRAPPER TO A VERTICAL COLUMN */
  .laptop-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* This forces everything to center horizontally */
    justify-content: flex-start;
    height: auto; /* Remove fixed height from desktop */
    margin: 0 auto 40px;
    width: 100%;
  }

  /* 2. SHOW AND CENTER THE LAPTOP */
  .laptop-main-image {
    display: block; 
    position: relative; /* Reset from absolute */
    width: 80%;
    max-width: 450px;
    margin: 0 0 40px 0; /* Add space below laptop */
    z-index: 5;
    left: auto; right: auto; top: auto; bottom: auto; /* Safety reset */
  }
  
  /* Hide decorative circles on mobile to clean up UI */
  .circle {
    display: none;
  }

  /* 3. FORCE CARDS TO STACK NEATLY */
  .glass-card {
    /* CRITICAL: Override absolute positioning from desktop */
    position: relative !important; 
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    
    /* CRITICAL: Center the card */
    margin: 8px auto !important; 
    
    /* Sizing */
    width: 90% !important;
    max-width: 400px !important;
    
    /* Layout: Always Icon Left, Text Right */
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    
    /* Design consistency */
    background: rgba(30, 35, 55, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: none !important; /* Remove any desktop tilts */
  }

  /* 4. FIX INTERNAL CARD LAYOUTS (Reset specific overrides) */

  /* Fix 'Support' Card (Card 1) */
  #card-support .glass-content { order: 2; text-align: left; }
  #card-support .glass-icon { order: 1; margin-left: 0; margin-right: 15px; }

  /* Fix 'Upgrade' Card (Card 2) */
  .gc-2 { text-align: left; }

  /* Fix 'Academy' Card (Card 3) - Was vertical on desktop, make horizontal now */
  #card-academy { 
    width: 90% !important; 
    flex-direction: row !important;
    padding: 15px 20px !important;
  }
  #card-academy .glass-icon { 
    margin-bottom: 0; 
    margin-right: 15px; 
    width: 45px; 
    height: 45px; 
  }

  /* Fix 'Community' Card (Card 4) */
  .gc-4 { text-align: left; }
}

@media (max-width: 600px) {
  .mindset-title {
    font-size: 1.8rem;
  }
  
  .laptop-main-image {
    width: 95%; /* Wider laptop on small phones */
  }
  
  .glass-card {
    width: 95% !important; /* Wider cards on small phones */
  }
}


/* --- WHITE CARD SECTION (Exact Match Design) --- */
.white-section-wrapper {
  /* Huge top margin needed because the phones stick out the top */
  margin: 220px auto 120px;
  position: relative;
  z-index: 20;
  /* CRITICAL: Allows phones to hang outside the box */
  overflow: visible;
}

.white-card {
  background: var(--white-section-bg);
  border-radius: 40px;
  padding: 80px 60px;
  color: var(--dark-text);
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  min-height: 400px;
  /* CRITICAL: Ensures the card doesn't cut off the phones */
  overflow: visible;
}

.white-card-content {
  width: 55%; /* Text stays on the left */
  z-index: 2;
  position: relative;
}

.white-card h2 {
  font-size: 3.2rem;
  margin-bottom: 25px;
  color: #020518;
  line-height: 1.15;
  font-weight: 800;
}

.white-card-paragraph {
  color: #4a5568;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 35px;
  text-align: left;
  font-weight: 500;
  max-width: 90%;
}

/* --- THE FLOATING PHONES (Target Look) --- */
.phones-combined {
  position: absolute;
  /* Pulls the image UP nicely above the card edge */
  bottom: 1rem;
  /* Pulls the image RIGHT off the card edge */
  right: -10px;
  /* Large width to match the screenshot scale */
  width: 450px;
  height: auto;
  /* Deep shadow */
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.35));
  z-index: 10;
  pointer-events: none;
}

/* Hover Effect */
.white-card:hover .phones-combined {
  transform: translateY(-15px);
  transition: transform 0.5s ease;
}

/* --- RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
  .white-section-wrapper {
    margin-top: 120px;
    margin-bottom: 150px;
  }

  .white-card {
    flex-direction: column;
    padding: 60px 40px 0 40px;
    text-align: center;
    min-height: auto;
  }

  .white-card-content {
    width: 100%;
    margin-bottom: 40px;
  }

  .white-card-paragraph {
    margin: 0 auto 30px;
    text-align: center;
  }

  /* On Tablet/Mobile: Stack the phones at the bottom */
  .phones-combined {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 450px;
    /* Make it hang off the bottom like a footer image */
    margin-bottom: -80px;
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .white-section-wrapper {
    margin-top: 100px;
    margin-bottom: 180px;
  }

  .white-card {
    padding: 50px 25px 0 25px;
    border-radius: 25px;
  }

  .white-card h2 {
    font-size: 2.2rem;
  }

  .phones-combined {
    width: 110%; /* Make it slightly wider than card on mobile for impact */
    margin-bottom: -60px;
  }
}

/* --- 3M SYSTEM (FIXED) --- */
.steps-section {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 5;
}
.steps-content h4 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.steps-content h2 {
  font-size: 3rem;
  margin-bottom: 15px;
}
.step-items-wrapper {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid transparent;
  transition: all 0.3s ease;
  color: var(--text-white);
  width: 100%;
  position: relative;
  opacity: 1;
  visibility: visible; /* Ensure default visibility */
}
.step-item:hover {
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}
.step-icon {
  min-width: 50px;
  height: 50px;
  background: rgba(244, 180, 26, 0.2);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}
.step-item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

/* --- FOUNDER SECTION --- */
.founder-wrapper {
  margin-bottom: 100px;
  padding: 0 20px;
}
.founder-card {
  background: var(--white-section-bg);
  border-radius: 30px;
  padding: 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  overflow: hidden;
}
.founder-image-container {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-left: 40px;
  padding-top: 40px;
}
.founder-image {
  width: 90%;
  max-width: 400px;
}
.founder-content {
  padding: 50px;
  text-align: left;
}
.founder-heading {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark-text);
}
.founder-content h3 {
  color: var(--dark-text);
  margin-bottom: 5px;
  font-size: 1.3rem;
}

/* --- FOOTER --- */
footer {
  background: var(--footer-bg);
  padding: 50px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-logo {
  width: 180px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}
.footer-col a {
  display: block;
  color: var(--text-gray);
  margin-bottom: 10px;
}
.subscribe-form {
  display: flex;
  margin-top: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.sub-input {
  width: 100%;
  border: none;
  background: none;
  color: #fff;
  padding: 10px;
}
.send-btn {
  background: var(--gold);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}
.copyright {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 25px;
  font-size: 0.85rem;
  color: var(--text-gray);
}

/* =========================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================= */

@media (max-width: 1024px) {
  .desktop-links {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }

  /* Hero Adjustments */
  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-image-box {
    order: -1;
    max-width: 80%;
    margin: 0 auto;
  }
  .app-badges {
    justify-content: center;
  }

  /* Grids to Single Column */
  .master-grid,
  .steps-section,
  .founder-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Text Alignment Fixes */
  .master-text,
  .steps-content,
  .founder-content {
    text-align: center;
  }
  .master-image-box,
  .steps-image-box {
    order: -1;
    margin-bottom: 20px;
  }

  /* 3M Section Responsive */
  .step-items-wrapper {
    align-items: center;
  }
  .step-item {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
  }


  /* Founder Section */
  .founder-image-container {
    height: 300px;
    padding: 0;
    background: #fff;
    order: -1;
  }
  .founder-image {
    width: auto;
    max-height: 280px;
    transform: translateY(0);
  }
  .founder-content {
    padding: 40px 25px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-info,
  .newsletter-col {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }
  .footer-moto {
    margin: 0 auto 20px;
  }
  .subscribe-form {
    margin: 15px auto;
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .master-text h2,
  .steps-content h2,
  .white-card h2,
  .founder-heading {
    font-size: 2rem;
  }
  .mindset-title {
    font-size: 2rem;
  }

  .app-badges {
    flex-direction: column;
    width: 100%;
  }
  .app-badge {
    width: 100%;
    text-align: center;
  }

  .step-item {
    width: 100%;
    padding: 15px;
  }
  .step-icon {
    min-width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .step-item h3 {
    font-size: 1rem;
  }

  .founder-content {
    padding: 30px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
