/* fonts */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #050505;
    --color-primary: #50C878;
    /* emerald green */
    --color-primary-glow: rgba(80, 200, 120, 0.4);
    --color-secondary: #2E8B57;
    --color-accent: #FFD700;
    /* gold */
    --color-text: #F0F0F0;
    --color-text-muted: #A0A0A0;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* typography & utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.highlight {
    color: var(--color-primary);
    text-shadow: 0 0 20px var(--color-primary-glow);
}

.glow-text {
    text-shadow: 0 0 30px rgba(80, 200, 120, 0.2);
}

/* animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 20px var(--color-primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--color-primary-glow), 0 0 60px var(--color-primary-glow);
    }

    100% {
        box-shadow: 0 0 20px var(--color-primary-glow);
    }
}

@keyframes pulse-opacity {
    0% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* reveal on scroll classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-left {
    transform: translateX(30px);
}

.fade-left.active {
    /* Actually comes from right to left or vice versa depending on name choice, fixing logic */
    transform: translateX(0);
}

.fade-down {
    transform: translateY(-30px);
}

.fade-down.active {
    transform: translateY(0);
}

/* navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary-glow);
}

.nav-links a.clicked {
    animation: navPulse 0.4s ease-out;
}

@keyframes navPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.8;
        color: var(--color-primary);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* hero section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    max-width: 500px;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-primary);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(80, 200, 120, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(80, 200, 120, 0.6);
}

.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-ore {
    width: 100%;
    max-width: 450px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.glow-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(50% 50% at 50% 50%, rgba(80, 200, 120, 0.15) 0%, transparent 100%);
    top: 0;
    left: 0;
    z-index: -1;
    animation: pulse-opacity 4s ease-in-out infinite;
}

/* stats section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 4rem 10%;
    background: linear-gradient(to bottom, var(--color-bg), #0a0f0a);
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem 3rem;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* uses section (tabs) */
.uses-section {
    padding: 6rem 10%;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tabs-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--color-primary);
    background: rgba(80, 200, 120, 0.05);
    border-bottom: 2px solid var(--color-primary);
}

.tabs-content {
    padding: 3rem;
    min-height: 400px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pane-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.text-side {
    flex: 1;
}

.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.text-side h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.text-side p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.feature-list li::before {
    content: '✦';
    color: var(--color-primary);
}

.tilt-card {
    max-width: 100%;
    border-radius: 12px;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.tilt-card:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg) scale(1.02);
}

/* footer */
.glass-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 4rem;
}

/* mobile responsive */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 2rem;
        width: 100%;
        height: auto;
    }

    .stats-section {
        flex-direction: column;
        gap: 1rem;
    }

    .pane-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .logo {
        display: none;
        /* simplify nav for demo */
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
}

/* beauty section */
.beauty-section {
    padding: 6rem 10%;
    text-align: center;
    background: linear-gradient(to top, var(--color-bg), #0a0f0a);
}

.beauty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.beauty-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.beauty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(80, 200, 120, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.beauty-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.beauty-card:hover::before {
    opacity: 1;
}

.beauty-card h4 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.beauty-card p {
    color: var(--color-text-muted);
}