/* DESIGN SYSTEM VARIABLES */
:root {
    --bg-dark: #030712;
    --bg-card: rgba(15, 23, 42, 0.35);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    /* Neon Colors */
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Shadow Glows */
    --glow-indigo: rgba(99, 102, 241, 0.15);
    --glow-purple: rgba(168, 85, 247, 0.15);
    --glow-cyan: rgba(6, 182, 212, 0.15);
}

/* RESET & CORE STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* BACKGROUND GLOW SHAPES */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.bg-glow-1 {
    top: -200px;
    left: -100px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
    animation: floatShape 12s infinite alternate ease-in-out;
}

.bg-glow-2 {
    top: 500px;
    right: -200px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    animation: floatShape 16s infinite alternate-reverse ease-in-out;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.1); }
}

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

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* CUSTOM BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--glow-indigo);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* GLASS EFFECT CARD */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* HEADER & NAVIGATION */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* simple responsive nav hide */
    }
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* HERO SECTION */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

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

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    max-width: 900px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-indigo) 50%, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* FEATURE CARDS */
.features-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SIMULATOR COMPONENT */
.simulator-section {
    padding: 80px 0;
}

.simulator-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
}

@media (max-width: 900px) {
    .simulator-container {
        grid-template-columns: 1fr;
    }
}

.simulator-inputs {
    padding: 40px;
    border-right: 1px solid var(--border-glass);
}

@media (max-width: 900px) {
    .simulator-inputs {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
    }
}

.simulator-outputs {
    padding: 40px;
    background: rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.widget-subtitle {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

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

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    background: rgba(3, 7, 18, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-indigo);
    box-shadow: 0 0 12px var(--glow-indigo);
}

/* SIMULATOR OUTPUT STYLES */
.output-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.pulse-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-muted);
    animation: iconPulse 2s infinite ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.6; }
}

.output-loader {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.output-results {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.output-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.output-row.border-top {
    border-top: 1px solid var(--border-glass);
    margin-top: 10px;
    padding-top: 20px;
}

.output-row .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.output-row .value {
    font-weight: 600;
}

.badge-brand {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.highlight-cyan {
    color: var(--accent-cyan);
    font-weight: 700;
}

.highlight-purple {
    color: var(--accent-purple);
    font-weight: 700;
}

.output-box {
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.output-box strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

/* ROI CALCULATOR COMPONENT */
.roi-section {
    padding: 80px 0;
}

.roi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 48px;
}

@media (max-width: 900px) {
    .roi-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.slider-group {
    margin-bottom: 32px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-title {
    font-weight: 600;
}

.slider-value {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 1.1rem;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

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

.range-slider::-webkit-slider-thumb:hover {
    background: var(--accent-purple);
}

.roi-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 20px 24px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
}

/* TECH STACK & SYSTEM ARCHITECTURE */
.architecture-section {
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tech-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.5);
}

.tech-card-title {
    font-size: 1.1rem;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 8px;
}

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

.tech-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}

.tech-list li::before {
    content: "•";
    color: var(--accent-indigo);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* FOOTER & SCROLL */
.main-footer {
    border-top: 1px solid var(--border-glass);
    padding: 40px 0;
    background: rgba(3, 7, 18, 0.8);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* HELPER CLASS */
.hidden {
    display: none !important;
}
