/* ============================================
   DARSHAN — Spiritual Platform Landing Page
   Design System & Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --bg-primary: #0a0a12;
    --bg-secondary: #111122;
    --bg-card: rgba(20, 20, 40, 0.6);
    --bg-card-hover: rgba(30, 30, 55, 0.8);

    --text-primary: #e8e4df;
    --text-secondary: rgba(232, 228, 223, 0.6);
    --text-muted: rgba(232, 228, 223, 0.35);

    --gold: #D4A574;
    --gold-light: #F4D03F;
    --gold-glow: rgba(212, 165, 116, 0.3);
    --purple: #7c3aed;
    --purple-light: #a78bfa;
    --purple-glow: rgba(124, 58, 237, 0.15);

    --border-subtle: rgba(212, 165, 116, 0.1);
    --border-card: rgba(212, 165, 116, 0.12);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Particles Canvas
   ============================================ */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

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

.nav-cta {
    padding: 8px 20px !important;
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--gold) !important;
    transition: all 0.3s ease !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--bg-primary) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 18, 0.3) 0%,
        rgba(10, 10, 18, 0.6) 50%,
        rgba(10, 10, 18, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s var(--ease-out) 0.2s both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--gold-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }
.title-line:nth-child(3) { animation-delay: 0.7s; }

.title-accent {
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s var(--ease-out) 0.9s both;
}

.hero-subtitle em {
    font-style: normal;
    color: var(--gold);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--ease-out) 1.1s both;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #c49060);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-glow {
    box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s var(--ease-out) 1.3s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--gold);
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--gold);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeInUp 0.8s var(--ease-out) 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(212, 165, 116, 0.06);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 100px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(212, 165, 116, 0.2);
    transform: translateY(-4px);
}

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

.feature-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 165, 116, 0.06);
    border-radius: 14px;
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Chat Demo --- */
.feature-demo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 90%;
    animation: none;
}

.chat-user {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.2);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
}

.chat-master {
    background: rgba(212, 165, 116, 0.08);
    border: 1px solid rgba(212, 165, 116, 0.15);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: var(--text-secondary);
}

.chat-master-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* ============================================
   Masters Section
   ============================================ */
.masters {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.masters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.master-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out);
    position: relative;
}

.master-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 165, 116, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--gold-glow);
}

.master-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.master-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.master-card:hover .master-image {
    transform: scale(1.05);
}

.master-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse, var(--gold-glow), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.master-card:hover .master-glow {
    opacity: 1;
}

.master-info {
    padding: 24px;
}

.master-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
}

.master-tradition {
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.master-quote {
    font-family: var(--font-display);
    font-size: 15px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 16px 0;
    padding-left: 16px;
    border-left: 2px solid rgba(212, 165, 116, 0.2);
}

.master-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.masters-coming {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.coming-soon-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.steps {
    max-width: 640px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
    min-width: 60px;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(212, 165, 116, 0.3), transparent);
    margin: 16px 0 16px 29px;
}

/* ============================================
   Waitlist Section
   ============================================ */
.waitlist {
    position: relative;
    padding: var(--section-padding);
    z-index: 1;
}

.waitlist-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    overflow: hidden;
}

.waitlist-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-glow), transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.waitlist-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

.waitlist-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    margin: 16px 0;
}

.waitlist-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.waitlist-text strong {
    color: var(--gold);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.waitlist-success {
    padding: 32px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.waitlist-success h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--gold);
}

.waitlist-success p {
    font-size: 16px;
    color: var(--text-secondary);
}

.waitlist-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.counter-avatars {
    display: flex;
}

.counter-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-left: -6px;
    border: 2px solid var(--bg-primary);
}

.counter-avatar:first-child {
    margin-left: 0;
}

.counter-text {
    font-size: 13px;
    color: var(--text-muted);
}

.counter-text strong {
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 48px 0 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-tagline {
    width: 100%;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(212, 165, 116, 0.05);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-template-columns: 1fr;
    }

    .masters-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 48px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-tagline {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 18, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 24px;
        font-family: var(--font-display);
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .step {
        gap: 20px;
    }

    .step-number {
        font-size: 36px;
        min-width: 48px;
    }

    .waitlist-card {
        padding: 40px 24px;
    }

    .masters-coming {
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}
