/* Custom Design System for Fundica AlgoBots */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #030712;
    --bg-card: rgba(17, 24, 39, 0.6);
    --border-color: rgba(6, 182, 212, 0.15);
    --border-hover: rgba(16, 185, 129, 0.4);
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --shadow-cyan: rgba(6, 182, 212, 0.25);
    --shadow-emerald: rgba(16, 185, 129, 0.2);
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-outfit);
    font-weight: 700;
}

/* Neural Canvas */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header/Navbar */
header {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo img {
    height: 36px;
    width: auto;
}

.logo span {
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Menu Styling */
.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none !important;
    font-family: var(--font-outfit);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s ease;
    padding: 0;
    border: none;
    background: none;
}

.nav-menu a:hover {
    color: #ffffff !important;
    background: none;
    border: none;
}

.nav-menu a.active {
    color: #ffffff !important;
    font-weight: 700;
    background: none;
    border: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 36px;
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #030712;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 25px var(--shadow-cyan);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px var(--accent-emerald);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.1);
    transform: translateY(-5px);
}

/* Grid Layouts */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 48px;
    background: linear-gradient(135deg, #fff 60%, var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

/* Bot Showcase Card */
.bot-card {
    display: flex;
    flex-direction: column;
}

.bot-icon {
    font-size: 40px;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.bot-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-stat-row:last-of-type {
    border-bottom: none;
}

.bot-stat-label {
    color: var(--text-secondary);
}

.bot-stat-value {
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Interactive License Checker Widget */
.checker-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-outfit);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 14px;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-inter);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-family: var(--font-outfit);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #030712;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
}

.result-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.result-valid {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--accent-emerald);
    color: #34d399;
}

.result-invalid {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Simulator Widget */
.sim-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .sim-grid {
        grid-template-columns: 1fr;
    }
}

.sim-slider-group {
    margin-bottom: 24px;
}

.sim-slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.sim-slider-label span:last-child {
    color: var(--accent-cyan);
    font-weight: 700;
}

.sim-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 12px 0;
}

.sim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: all 0.2s ease;
}

.sim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.sim-result-card {
    background: rgba(6, 182, 212, 0.05);
    border: 1px dashed var(--accent-cyan);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sim-result-amount {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-family: var(--font-outfit);
    font-weight: 800;
    color: var(--accent-emerald);
    margin: 12px 0;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Accordion */
.accordion-item {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-outfit);
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px 0;
}

.accordion-header::after {
    content: '+';
    font-size: 22px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-secondary);
    font-size: 15px;
    padding-top: 0;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding-top: 10px;
}

/* Visual Integration Guide Steps */
.step-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-num {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    color: #030712;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.step-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 14px;
}

.step-code {
    background: #030712;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--accent-cyan);
    padding: 4px 8px;
    font-family: monospace;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: #030712;
}

/* Redesigned Features Grid Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
    margin-top: 60px;
}

.feature-card-box {
    position: relative;
    padding: 48px 24px 32px 24px !important; /* Extra padding at top for the badge */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card-box:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.15);
}

.feature-card-box.card-box-emerald:hover {
    border-color: var(--accent-emerald);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.15);
}

.feature-circle-badge {
    position: absolute;
    top: -30px; /* Float above the card edge */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #030712;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-outfit);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transition: all 0.4s ease;
    user-select: none;
}

.feature-card-box:hover .feature-circle-badge {
    background: var(--accent-cyan);
    color: #030712;
    box-shadow: 0 0 25px var(--accent-cyan);
}

.feature-circle-badge.badge-emerald {
    border-color: var(--accent-emerald);
    color: var(--accent-emerald);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.feature-card-box.card-box-emerald:hover .feature-circle-badge.badge-emerald {
    background: var(--accent-emerald);
    color: #030712;
    box-shadow: 0 0 25px var(--accent-emerald);
}

.feature-card-content h3 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: var(--font-outfit);
}

.feature-card-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
