:root {
    --green-light: #4ade80;
    --green-primary: #22c55e;
    --green-dark: #16a34a;
    --green-darker: #15803d;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(20, 40, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);

    --discord-bg: #313338;
    --discord-embed-bg: #2b2d31;
    --discord-text: #dbdee1;
    --discord-channel: #5865F2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
}

/* Background Image & Overlay */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/img/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75) 0%, rgba(10, 15, 28, 0.95) 100%);
    z-index: -1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1000px;
    margin: 1.5rem auto 0;
    width: 90%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border-radius: 9999px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.nav-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.nav-login {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-login:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Main Layout Wrapper */
.content-wrapper {
    margin-top: 80px;
    /* Accounts for fixed navbar */
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    /* Fill screen min */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem 6rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.main-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.3));
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--green-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
    background: var(--green-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}


/* Scrollable Feature Rows Layout */
.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    width: 100%;
    min-height: 70vh;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-main);
}

.feature-list li i {
    color: var(--green-primary);
    width: 20px;
    height: 20px;
}

.feature-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}


/* Discord Messages Mockup (Scoped exactly to mockup container) */
.features-showcase {
    width: 100%;
    max-width: 550px;
    background: var(--discord-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
}

.discord-message {
    display: flex;
    gap: 1rem;
    padding: 0.25rem 0;
}

.discord-message:hover {
    background-color: rgba(2, 2, 2, 0.06);
}

.discord-pfp {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #2b2d31;
}

.user-pfp {
    object-fit: cover;
}

.bot-msg .discord-pfp {
    padding: 2px;
}

.discord-msg-content {
    flex: 1;
}

.discord-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.discord-username {
    font-weight: 500;
    color: #fff;
    cursor: pointer;
}

.discord-username:hover {
    text-decoration: underline;
}

.bot-badge {
    background: #5865F2;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    margin-left: 0.25rem;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.bot-badge-icon {
    width: 11px;
    height: 11px;
    margin-right: 3px;
}

.discord-timestamp {
    font-size: 0.75rem;
    color: #949ba4;
}

.discord-text {
    color: var(--discord-text);
    line-height: 1.5;
}

.discord-text strong {
    color: #fff;
    font-weight: 600;
}

.msg-channel {
    color: var(--discord-channel);
    background: rgba(88, 101, 242, 0.15);
    padding: 0 4px;
    border-radius: 4px;
    cursor: pointer;
}

.msg-channel:hover {
    background: rgba(88, 101, 242, 0.3);
    text-decoration: underline;
}

.discord-embed {
    background: var(--discord-embed-bg);
    border-radius: 4px;
    border-left: 4px solid #fff;
    padding: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

.embed-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.embed-author-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.embed-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.embed-description {
    color: var(--discord-text);
    font-size: 0.875rem;
    line-height: 1.5;
}

.embed-image {
    width: 100%;
    border-radius: 4px;
    margin-top: 1rem;
    max-height: 200px;
    object-fit: cover;
}

.discord-reactions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reaction-btn {
    background: #2b2d31;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.1s;
}

.reaction-btn.active {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
}

.reaction-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: #313338;
}

.reaction-btn.active:hover {
    background: rgba(88, 101, 242, 0.3);
}

.reaction-count {
    color: var(--discord-text);
    font-weight: 500;
}

/* ── Bot Status Section ───────────────────────────────────────────────────── */
.bot-status-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    width: 100%;
}

.bot-status-card {
    background: rgba(10, 20, 40, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2.5rem 2rem;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
}

/* Header row */
.bot-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.bot-status-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bot-status-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.12);
    object-fit: contain;
    background: #1e293b;
}

.bot-status-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
}

.bot-status-tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1px;
}

/* Operational status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.status-pill.operational {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.status-pill.maintenance {
    background: rgba(234, 179, 8, 0.12);
    border-color: rgba(234, 179, 8, 0.3);
    color: #facc15;
}

.status-pill.unstable {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

.status-pill.operational .status-dot { background: #4ade80; }
.status-pill.maintenance .status-dot { background: #facc15; animation: none; }
.status-pill.unstable .status-dot { background: #f87171; animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Stats grid */
.bot-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.bot-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    transition: background 0.2s ease;
}

.bot-stat-card:hover {
    background: rgba(255, 255, 255, 0.07);
}

.bot-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.bot-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.bot-stat-value.green  { color: #4ade80; }
.bot-stat-value.yellow { color: #facc15; }
.bot-stat-value.red    { color: #f87171; }

/* 90-day graph */
.status-graph-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.75rem;
}

.status-graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-graph-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.status-graph-uptime {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-graph-uptime span {
    color: #4ade80;
    font-weight: 600;
}

.status-graph-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 48px;
    width: 100%;
    position: relative;
}

.status-bar {
    flex: 1;
    min-width: 3px;
    border-radius: 2px;
    cursor: default;
    transition: transform 0.15s ease, filter 0.15s ease;
    position: relative;
}

.status-bar:hover {
    transform: scaleY(1.15);
    filter: brightness(1.25);
}

.status-bar.bar-operational { background: #22c55e; height: 100%; }
.status-bar.bar-maintenance  { background: #eab308; height: 100%; }
.status-bar.bar-unstable      { background: #ef4444; height: 100%; }
.status-bar.bar-unknown       { background: rgba(255,255,255,0.1); height: 60%; }

/* Tooltip on hover */
.status-bar::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 28, 0.95);
    color: #fff;
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}

.status-bar:hover::after { opacity: 1; }

.status-graph-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.status-graph-labels span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .bot-status-section { padding: 4rem 1rem 2rem; }
    .bot-status-card { padding: 1.5rem 1.25rem 1.25rem; }
    .bot-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
    .bot-stat-value { font-size: 1.1rem; }
    .status-graph-bars { height: 36px; }
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: auto;
    background: rgba(10, 15, 28, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Base Animations for Hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-down {
    opacity: 0;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal.active .feature-text {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal.active .feature-mockup {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        padding: 4rem 1.5rem;
        gap: 3rem;
        text-align: center;
    }

    .feature-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .feature-mockup {
        width: 100%;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding: 2rem 1rem 4rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-showcase {
        padding: 1rem;
    }
}