/* ===== Custom Properties ===== */
:root {
    --landing-primary: #2e7d32;
    --landing-primary-light: #4caf50;
    --landing-primary-dark: #1b5e20;
    --landing-accent: #00bfa5;
    --landing-accent-light: #64ffda;
    --landing-dark: #0f1a0f;
    --landing-dark-card: #162016;
    --landing-dark-surface: #1a2c1a;
    --landing-text: #e8f5e9;
    --landing-text-muted: #a5d6a7;
    --landing-glow: rgba(76, 175, 80, 0.3);
}

/* ===== Page Override ===== */
body.landing-page {
    background: var(--landing-dark);
    color: var(--landing-text);
    overflow-x: hidden;
}

body.landing-page .navbar {
    background: rgba(15, 26, 15, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
}

body.landing-page .navbar .nav-link {
    color: var(--landing-text-muted) !important;
}

body.landing-page .navbar .btn-outline-primary {
    border-color: var(--landing-primary-light);
    color: var(--landing-primary-light) !important;
}

body.landing-page .navbar .btn-outline-primary:hover {
    background: var(--landing-primary-light);
    color: #fff !important;
}

body.landing-page .navbar .btn-info {
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    border: none;
}

body.landing-page main.py-4 {
    padding-top: 0 !important;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1rem 4rem;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(46, 125, 50, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(0, 191, 165, 0.1) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-5%, 5%) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.85rem;
    color: var(--landing-accent-light);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

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

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--landing-primary-light), var(--landing-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--landing-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-glow-primary {
    background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
    color: #fff;
    box-shadow: 0 4px 24px rgba(46, 125, 50, 0.4);
}

.btn-glow-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(46, 125, 50, 0.6);
    color: #fff;
    text-decoration: none;
}

.btn-glow-outline {
    background: transparent;
    color: var(--landing-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-glow-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--landing-primary-light);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: 2s;
    animation-duration: 12s;
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: 4s;
    animation-duration: 9s;
}

.particle:nth-child(4) {
    left: 60%;
    animation-delay: 1s;
    animation-duration: 11s;
}

.particle:nth-child(5) {
    left: 75%;
    animation-delay: 3s;
    animation-duration: 10s;
}

.particle:nth-child(6) {
    left: 90%;
    animation-delay: 5s;
    animation-duration: 13s;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== Falling Cannabis Leaves ===== */
.falling-leaves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;

}

.leaf {
    position: absolute;
    top: -60px;
    opacity: 0;
    animation: leafFall linear infinite;
    will-change: transform, opacity;
    /* Cannabis leaf SVG shape */
    background-image: url("/img/cannabis-leaf.png");
    background-size: contain;
    background-repeat: no-repeat;
    /* background: var(--landing-primary-light); */
}

.leaf:nth-child(1) {
    left: 5%;
    width: 28px;
    height: 34px;
    animation-duration: 14s;
    animation-delay: 0s;
}

.leaf:nth-child(2) {
    left: 12%;
    width: 22px;
    height: 26px;
    animation-duration: 18s;
    animation-delay: 2s;
}

.leaf:nth-child(3) {
    left: 22%;
    width: 32px;
    height: 38px;
    animation-duration: 16s;
    animation-delay: 5s;
}

.leaf:nth-child(4) {
    left: 33%;
    width: 20px;
    height: 24px;
    animation-duration: 20s;
    animation-delay: 3s;
}

.leaf:nth-child(5) {
    left: 42%;
    width: 26px;
    height: 31px;
    animation-duration: 15s;
    animation-delay: 7s;
}

.leaf:nth-child(6) {
    left: 55%;
    width: 30px;
    height: 36px;
    animation-duration: 17s;
    animation-delay: 1s;
}

.leaf:nth-child(7) {
    left: 65%;
    width: 24px;
    height: 29px;
    animation-duration: 19s;
    animation-delay: 4s;
}

.leaf:nth-child(8) {
    left: 74%;
    width: 28px;
    height: 34px;
    animation-duration: 14s;
    animation-delay: 6s;
}

.leaf:nth-child(9) {
    left: 83%;
    width: 20px;
    height: 24px;
    animation-duration: 21s;
    animation-delay: 8s;
}

.leaf:nth-child(10) {
    left: 92%;
    width: 26px;
    height: 31px;
    animation-duration: 16s;
    animation-delay: 2.5s;
}

.leaf:nth-child(11) {
    left: 18%;
    width: 18px;
    height: 22px;
    animation-duration: 22s;
    animation-delay: 9s;
}

.leaf:nth-child(12) {
    left: 48%;
    width: 24px;
    height: 29px;
    animation-duration: 18s;
    animation-delay: 11s;
}

@keyframes leafFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.4;
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(25px);
        opacity: 0.35;
    }

    95% {
        opacity: 0;
    }

    100% {
        transform: translateY(105vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}

/* ===== Stats Bar ===== */
.stats-bar {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    background: rgba(22, 32, 22, 0.5);
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--landing-primary-light), var(--landing-accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Features Section ===== */
.features-section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--landing-accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.feature-card {
    background: var(--landing-dark-card);
    border: 1px solid rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--landing-primary), var(--landing-accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px var(--landing-glow);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.feature-icon-green {
    background: rgba(76, 175, 80, 0.15);
    color: var(--landing-primary-light);
}

.feature-icon-teal {
    background: rgba(0, 191, 165, 0.15);
    color: var(--landing-accent);
}

.feature-icon-amber {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd54f;
}

.feature-icon-blue {
    background: rgba(33, 150, 243, 0.15);
    color: #64b5f6;
}

.feature-icon-purple {
    background: rgba(156, 39, 176, 0.15);
    color: #ce93d8;
}

.feature-icon-rose {
    background: rgba(233, 30, 99, 0.15);
    color: #f48fb1;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--landing-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Screenshots / Demo Section ===== */
.demo-section {
    padding: 6rem 0;
    position: relative;
}

.demo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(46, 125, 50, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.demo-mockup {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--landing-glow);
}

.demo-mockup-toolbar {
    background: var(--landing-dark-surface);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot-red {
    background: #ff5f56;
}

.mockup-dot-yellow {
    background: #ffbd2e;
}

.mockup-dot-green {
    background: #27c93f;
}

.demo-mockup img {
    width: 100%;
    display: block;
}

.demo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-features-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.demo-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--landing-text-muted);
    font-size: 1rem;
}

.demo-features-list li .material-icons {
    color: var(--landing-accent);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.cta-card {
    background: linear-gradient(135deg, var(--landing-dark-surface), var(--landing-dark-card));
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 24px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--landing-primary), transparent, var(--landing-accent));
    z-index: -1;
    opacity: 0.3;
}

.cta-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--landing-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ===== Footer ===== */
.landing-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    background: rgba(15, 26, 15, 0.5);
}

.landing-footer h5 {
    color: var(--landing-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.landing-footer ul {
    list-style: none;
    padding: 0;
}

.landing-footer ul li {
    margin-bottom: 0.6rem;
}

.landing-footer a {
    color: var(--landing-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.landing-footer a:hover {
    color: var(--landing-accent-light);
    text-decoration: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    max-height: 36px;
}

.footer-brand span {
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-desc {
    color: var(--landing-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid rgba(76, 175, 80, 0.1);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--landing-text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ===== 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);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

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

    .hero-section {
        min-height: 80vh;
        padding: 4rem 1rem 3rem;
    }

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

/* ===== Features Section ===== */
.features-section {
    padding: 6rem 0;
    position: relative;
}

/* ===== Responsive (hero) ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-section {
        min-height: 80vh;
        padding: 4rem 1rem 3rem;
    }
}