:root {
  /* Colors */
  --bg-color: #000000;
  --text-primary: #ffffff;
  --text-secondary: #bfbfbf;
  --text-muted: #666666;
  --accent-purple: #a855f7;
  --accent-purple-light: #c084fc;
  --button-bg: #ffffff;
  --button-text: #000000;
  --card-bg: #111111;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Urbanist', sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.125rem; /* 18px */
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 24px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.btn-primary:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

/* Specific Button Sizes */
.nav-cta .btn {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.hero-cta .btn {
  padding: 20px 48px;
  font-size: 1.25rem;
  border-radius: 16px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

nav {
  display: flex;
  align-items: center;
  gap: 230px;
  height: 80px;
}

.nav-cta {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: normal;
  display: inline-block;
}

.logo-icon {
  height: 34px;
  width: auto;
  display: block;
  transform: translateY(0px); /* TWEAK THIS: use -px to move up, +px to move down */
}

/* Hero Section */
.hero {
  height: 99vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(168, 85, 247, 0.15) 0%, #000 80%), #000;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-video {
  z-index: 2;
}

.hero-img {
  z-index: 1;
  opacity: 0.8;
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero h1 {
  font-size: 88px; /* Restored original */
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: #ffffff;
}

.hero p {
  font-size: 18px; /* Restored original */
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero-subtext {
  margin-bottom: 48px;
}

.input-group {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 20px;
  color: var(--text-primary);
  outline: none;
  font-size: 1rem;
}

.hero-ps {
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Topics Section */
.topics {
    background: #000;
    padding: 50px 0; /* Synced with white version */
}

.topics-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 48px;
    font-family: var(--font-main);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.topic-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.topic-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #ffffff;
}

.topic-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Topic Colors - Subtle Dark Theme adaptation */
.topic-card.purple:hover { border-color: #a855f7; background: rgba(168, 85, 247, 0.05); }
.topic-card.orange:hover { border-color: #f97316; background: rgba(249, 115, 22, 0.05); }
.topic-card.blue:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); }
.topic-card.yellow:hover { border-color: #eab308; background: rgba(234, 179, 8, 0.05); }
.topic-card.red:hover { border-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.topic-card.pink:hover { border-color: #ec4899; background: rgba(236, 72, 153, 0.05); }

/* Story Section */
.story {
    background: #000;
    text-align: center;
    padding-top: 40px; /* Synced with white version */
}

.story-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 32px;
    font-family: var(--font-main);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-content h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.story-content p {
    margin-bottom: 24px;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.story-highlight {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    margin-top: 48px;
    font-family: var(--font-main);
}

/* Marquee Section */
.marquee-section {
    padding: 32px 0;
    background: #000;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
    gap: 20px;
}

.marquee-content span {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: var(--font-heading);
}

.marquee-content .sep {
    color: #f97316; /* Orange separator from reference */
    font-weight: 400;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pricing Section */
.join {
    background: #000;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 60px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.pricing-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.price-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.pricing-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 48px;
}

.pricing-features li {
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.pricing-features li span {
    position: absolute;
    left: 0;
    color: #10b981; /* Green checkmark */
    font-weight: bold;
}

.btn-yellow {
    background-color: #fbbf24; /* Yellow from reference */
    color: #000;
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.2);
}

.btn-yellow:hover {
    background-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.3);
    opacity: 1;
}

/* About Section Transition */
.about {
    position: relative;
    z-index: 2;
    background: #000;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.about-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-purple);
}

.about-card img {
    width: 64px;
    margin-bottom: 32px;
}

/* Features */
.features {
    background: #000;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

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

.feature-content h3 {
    font-size: 2.75rem;
    margin-bottom: 24px;
}

.feature-image img {
    max-width: 100%;
    border-radius: 24px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
}

/* Footer */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    max-width: 320px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu Toggle Styling */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Toggle Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
    overflow: hidden !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .feature-row { flex-direction: column !important; text-align: center; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; justify-items: center; }
    .footer-about p { margin: 0 auto; }
}

@media (max-width: 768px) {
    header {
        padding: 12px 0 !important;
    }

    footer {
        padding: 100px 0 60px; /* Increased top space */
    }

    .footer-links-col h4 {
        display: none; /* Keep hidden on mobile as per previous request */
    }

    .footer-bottom {
        margin-top: 50px; /* Reduced space for mobile */
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
    .container {
        padding: 0 20px;
    }

    .pricing-card {
        padding: 40px 20px;
        margin: 0 10px;
    }

    nav {
        display: flex;
        justify-content: space-between;
        gap: 0;
        height: 44px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-cta {
        display: none; /* Hide top CTA on mobile as per reference */
    }

    .logo-text {
        font-size: 1.2rem !important;
    }

    .logo-icon {
        height: 26px !important;
    }

    .mobile-menu-toggle {
        display: flex;
        padding: 5px;
    }

    .mobile-menu-toggle span {
        width: 22px;
        height: 2px;
    }

    /* Hero Mobile Refinement */
    .hero {
        padding-top: 160px !important; /* Reduced further per request */
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: flex-start; /* Ensure content starts at the top, not centered middle */
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 30px; /* Reduced from 34px to ensure 2-line layout on iPhone 13 Pro */
        line-height: 1.1;
        letter-spacing: -1px;
        margin-bottom: 16px;
        text-transform: uppercase; /* Added as requested */
        font-family: 'General Sans', sans-serif; /* New font for mobile */
    }

    .hero-subtext {
        font-size: 17px !important; /* Increased by 2px */
        line-height: 1.5 !important;
        margin-bottom: 28px !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .hero-ps {
        margin-top: 24px !important;
        font-size: 12px !important; /* Increased back to 12px */
    }

    .btn-primary {
        width: fit-content !important; /* Shorter width based on text */
        white-space: nowrap !important; /* Force one line */
        margin: 0 auto;
        display: block;
        padding: 14px 28px !important; /* Tighter horizontal padding */
        font-size: 0.95rem; /* Slightly smaller font to help fit */
        text-align: center;
    }

    /* Mobile Topics Accordion Transition */
    .marquee-content {
        animation: marquee 20s linear infinite; /* Faster on mobile, renamed to marquee */
    }

    .topics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .topic-card {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 24px;
        min-height: 80px;
        border-radius: 20px;
        border: 1px solid var(--border-color);
        background: rgba(255, 255, 255, 0.03); 
        position: relative;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .topic-card img {
        display: none;
    }

    .topic-card p {
        display: none; 
        margin-top: 16px;
        font-size: 1rem;
        color: var(--text-secondary);
        line-height: 1.6;
        padding: 0 10px;
    }

    .topic-card.active {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }

    .topic-card.active p {
        display: block; 
    }

    .topic-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0;
        font-weight: 700;
        color: #fff;
        padding: 0 40px; /* Space for chevron */
    }

    .topic-card.active h3 {
        margin-bottom: 0;
    }

    .chevron {
        display: block;
        position: absolute;
        top: 40px; /* Synced with white version fixed position */
        right: 24px;
        width: 12px;
        height: 12px;
        border-right: 2px solid rgba(255,255,255,0.4);
        border-bottom: 2px solid rgba(255,255,255,0.4);
        transform: translateY(-50%) rotate(45deg);
        transition: all 0.3s ease;
    }

    .topic-card.active .chevron {
        transform: translateY(-50%) rotate(-135deg); /* Stay centered, only rotate */
    }
}


/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex !important;
}

.modal-content {
  background-color: #0c0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  width: 90%;
  max-width: 450px;
  border-radius: 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-modal {
  position: absolute;
  right: 24px;
  top: 16px;
  color: #666;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #fff;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  font-family: var(--font-heading);
  color: #fff;
}

.modal-content p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 30px;
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}

.modal-form input:focus {
  border-color: #a855f7;
}

.modal-form .btn {
  padding: 16px;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  background: white;
  color: black;
  transition: all 0.2s;
}

.modal-form .btn:hover {
  background: #a855f7;
  color: white;
  transform: translateY(-2px);
}
