/* =====================================================
   RE:BOOT v2 | Premium Modern UI Design System
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------- Advanced Fluid Variables & Dark Mode Matrix ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(37, 99, 235, 0.15);
    
    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 24px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12);

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;

    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --max-width: 1220px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f8fafc;
        --text-light: #94a3b8;
        --text-muted: #64748b;
        --background: #0b0f19;
        --surface: #131c2e;
        --surface-hover: #1e293b;
        --border: #1e293b;
        --border-hover: #334155;
        --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    }
}

/* ---------- Base Document Layout ---------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button, input, select {
    font: inherit;
    color: inherit;
}

/* ---------- Global Layout Utilities ---------- */
.container {
    width: min(92%, var(--max-width));
    margin: auto;
}

.hidden {
    display: none !important;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--text) 60%, var(--text-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    max-width: 620px;
    margin: auto;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* =====================================================
   HEADER & GLASSMORPHIC NAVIGATION
===================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(11, 15, 25, 0.8);
    }
}

.nav-wrapper {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px var(--primary-glow));
}

nav {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

/* =====================================================
   HERO ARCHITECTURE
===================================================== */
.hero {
    padding: 7.5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero h1 {
    font-size: 4.25rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-glow);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.hero-image img {
    width: 100%;
    max-width: 440px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.06));
    animation: floatAnimation 6s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =====================================================
   ANALYZER CONSOLE PANELS
===================================================== */
.analyzer {
    padding: 5rem 0;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 2.5rem;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    letter-spacing: -0.02em;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.field {
    display: flex;
    flex-direction: column;
}

.field label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.field input, .field select {
    height: 54px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 1.1rem;
    background: var(--surface);
    color: var(--text);
    transition: var(--transition);
}

.field input::placeholder {
    color: var(--text-muted);
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* ---------- Grid Pattern for Component Matrix ---------- */
.component-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.component-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    transition: var(--transition);
}

.component-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: scale(1.01);
}

.component-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.component-card select {
    width: 100%;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    background: var(--background);
    color: var(--text);
    transition: var(--transition);
}

.component-card select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.analyze-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.analyze-wrapper .primary-btn {
    min-width: 280px;
    height: 60px;
    font-size: 1.05rem;
}

/* =====================================================
   ANALYSIS RADIAL & METRIC REPORT SECTION
===================================================== */
.report-section {
    margin-top: 4rem;
    scroll-margin-top: 100px;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.report-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-card h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.score-circle {
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    border: 6px solid var(--border);
    background: var(--surface);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    transition: var(--transition);
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 6px solid var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.score-circle.secondary {
    color: var(--success);
}
.score-circle.secondary::before {
    border-color: var(--success);
}

.report-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    max-width: 280px;
}

/* ---------- Intelligent Financial & Impact Matrix ---------- */
.decision-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 2.5rem 0;
}

.decision-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
}

.decision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.decision-card h5 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.decision-card p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.summary-box {
    margin-top: 2.5rem;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    background: var(--primary-glow);
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.summary-box h4 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.summary-box p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* =====================================================
   VALUE FEATURES ARCHITECTURE
===================================================== */
.features {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =====================================================
   FOOTER STRUCTURE
===================================================== */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.footer-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* =====================================================
   ANIMATION INTERFACES
===================================================== */
@keyframes contentFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .feature-card, .report-card, .decision-card {
    animation: contentFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* System Custom Minimal Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =====================================================
   RESPONSIVE LAYOUT ENGINE (MEDIA QUERIES)
===================================================== */
@media (max-width: 1100px) {
    .decision-grid, .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero h1 { font-size: 3.25rem; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-image { order: -1; }
}

@media (max-width: 768px) {
    .section-title h2 { font-size: 2.1rem; }
    .grid-2, .component-grid, .report-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

@media (max-width: 560px) {
    .nav-wrapper {
        flex-direction: column;
        height: auto;
        padding: 1.5rem 0;
        gap: 1.25rem;
    }
    nav { gap: 1.25rem; }
    .hero h1 { font-size: 2.5rem; }
    .card { padding: 1.5rem; }
    .decision-grid { grid-template-columns: 1fr; }
    .score-circle { width: 120px; height: 120px; font-size: 1.85rem; }
}
.next-step{

    margin-top:40px;

    text-align:center;

}

.next-step p{

    color:#6b7280;

    margin-bottom:18px;

}

.primary-btn{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:14px 28px;

    border-radius:12px;

    text-decoration:none;

    background:#111827;

    color:#ffffff;

    font-weight:600;

    transition:.25s ease;

}

.primary-btn:hover{

    transform:translateY(-2px);

    box-shadow:0 12px 30px rgba(0,0,0,.15);

}
/* =====================================================
   AUTH MODAL
===================================================== */

#authModal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.6);
    z-index:9999;
}

.auth-overlay{
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.auth-box{
    background:#fff;
    padding:24px;
    width:320px;
    border-radius:12px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.auth-box input{
    padding:10px;
    border:1px solid #ddd;
    border-radius:8px;
}

.auth-box button{
    padding:10px;
    border:none;
    border-radius:8px;
    cursor:pointer;
}

#signInBtn{
    background:#111;
    color:#fff;
}

#signUpBtn{
    background:#e5e7eb;
}

#closeAuthBtn{
    background:#f3f4f6;
}
#saveDevicesBtn {
    /* Change #000000 to whatever color your button is supposed to be */
    background-color: #8c8888 !important; 
    
    /* Change #ffffff to whatever color your text is supposed to be */
    color: #ffffff !important; 
    
    /* Blocks mobile phones from overriding your styles with white themes */
    -webkit-appearance: none;
    appearance: none;
}