/* Custom Color Palette Extracted from ClickGui.java */
:root {
    --bg-page: #152139;       /* Midnight Blue Base */
    --gui-header: #141414;    /* ClickGui Dark Grey Header */
    --gui-body: #0E0E0E;      /* ClickGui Darker Body (Not Black) */
    --gui-border: #252525;    /* ClickGui Border Color */
    --accent: #3CA2FD;        /* ClickGui Active Sidebar Light Blue */
    --text-main: #FFFFFF;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
    /* Sticky Footer Logic */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Top & Bottom Gradient Fades --- */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 350px;
    background: linear-gradient(to bottom, #161616 0%, rgba(21, 33, 57, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 300px;
    background: linear-gradient(to top, #161616 0%, rgba(21, 33, 57, 0) 100%);
    z-index: 0;
    pointer-events: none;
}

h1, h2, h3, h4, .brand-text, .tagline, .gui-header, .price-header {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
}

a:hover {
    color: var(--accent); 
}

.text-link {
    color: var(--text-main); /* Makes the link white so it pops against the dim grey text */
    font-weight: 500;
    border-bottom: 1px solid transparent; /* Invisible border to prevent jumping on hover */
    transition: all 0.2s ease;
}

.text-link:hover {
    color: var(--accent); /* Shifts to your midnight/tech blue */
    border-bottom: 1px solid var(--accent); /* Adds a super clean, smooth underline */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10; /* Keeps content above shadows and background gradients */
}

.text-center {
    text-align: center;
}

/* --- Animated Background Shadows --- */
.bg-shadow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.shadow-1 {
    width: 500px; height: 500px;
    background-color: #0c1529; 
    top: -100px; left: -150px;
}

.shadow-2 {
    width: 600px; height: 600px;
    background-color: #0e1933; 
    bottom: -150px; right: -100px;
    animation-duration: 30s;
    animation-direction: alternate-reverse;
}

.shadow-3 {
    width: 400px; height: 400px;
    background-color: #091024;
    top: 40%; left: 30%;
    animation-duration: 35s;
    opacity: 0.8;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.1); }
}

/* --- Entrance Animations --- */
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0; 
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Navbar */
.navbar {
    background-color: transparent; /* Changed to let the body gradient show through */
    padding: 25px 0 15px;
    position: relative;
    z-index: 10;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo { height: 32px; }
.brand-text { font-size: 1.2rem; font-weight: 700; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--gui-border);
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.btn-primary:hover { background-color: #2b84d6; }

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #1a1a1a;
}

.btn-discord {
    background-color: #5865F2;
    color: white;
    border: none;
}

.btn-discord:hover {
    background-color: #4752C4;
}

.full-width { width: 100%; }

/* Hero Section */
.hero {
    padding: 50px 20px 10px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tagline {
    color: #cbd5e1;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.hero-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* Video Wrapper */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border: 1px solid var(--gui-border);
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* --- Interactive ClickGUI Accordion Styles --- */
.gui-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gui-card {
    background-color: var(--gui-body);
    border: 1px solid var(--gui-border);
    border-radius: 4px;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden; /* Important so the sidebar doesn't bleed out */
}

.gui-header {
    background-color: var(--gui-header); 
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background-color 0.2s;
}

.gui-header:hover {
    background-color: #1a1a1a; 
}

.toggle-icon {
    font-size: 1.2rem;
    color: var(--text-dim);
    transition: transform 0.3s ease;
}

.gui-body-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
}

.gui-content { overflow: hidden; }

/* Active Sidebar & Open State */
.gui-card.open { 
    border-color: #333; 
}

.gui-card.open::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 3px;
    background-color: var(--accent);
    z-index: 5;
}

.gui-card.open .gui-header { border-bottom: 1px solid var(--gui-border); }
.gui-card.open .toggle-icon {
    transform: rotate(45deg);
    color: var(--accent);
}
.gui-card.open .gui-body-wrapper { grid-template-rows: 1fr; }
.gui-card.open .gui-content { padding: 30px 20px; }

/* Pricing Section inside Accordion */
.pricing-wrapper {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.price-box {
    background-color: var(--gui-header); 
    border: 1px solid var(--gui-border);
    padding: 30px;
    width: 100%;
    max-width: 320px;
    border-radius: 4px;
}

.price-box.highlight {
    border-color: #333;
    background: linear-gradient(180deg, rgba(60, 162, 253, 0.08) 0%, var(--gui-header) 100%);
}

.price-header {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.highlight .price-header { color: var(--accent); }

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    font-family: 'JetBrains Mono', monospace;
}

.price-amount span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }

.price-features { list-style: none; margin-bottom: 30px; }
.price-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gui-border);
    font-size: 0.95rem;
    color: var(--text-dim);
}
.price-features li:last-child { border-bottom: none; }
.price-features strong { color: var(--text-main); }

/* FAQ Grid Layout */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.faq-item {
    cursor: help;
}

.faq-item h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.faq-item p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background-color: transparent; /* Lets the bottom gradient show through */
    padding: 40px 0 30px;
    margin-top: auto; /* Sticky Footer Fix */
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-right { display: flex; gap: 20px; }
.footer-right a { color: var(--text-dim); font-size: 0.9rem; }
.footer-right a:hover { color: var(--text-main); }

/* Responsive */
@media (max-width: 600px) {
    .faq-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; gap: 20px; }
}

.dose-title-container {
    margin-bottom: 25px;
}

.dose-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tolerance-text {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}