:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --secondary: #90E0EF;
    --accent: #CAF0F8;
    --text: #03045E;
    --text-light: #444;
    --text-muted: #6B7280;
    --bg: #FFFFFF;
    --bg-alt: #F8FDFF;
    --white: #FFFFFF;
    --border: #E1EFF6;
    --radius: 12px;
    --container: 1200px;
    --shadow: 0 10px 30px rgba(0, 119, 182, 0.08);
}

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

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

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

/* Typography */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header & Nav */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

th, td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-alt);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Alerts & Boxes */
.alert {
    padding: 1.2rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.alert.info {
    background: var(--accent);
    color: var(--primary-dark);
    border: 1px solid var(--secondary);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.p-3 { padding: 1.5rem; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-alt); }
.text-primary { color: var(--primary); }

/* Animation reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Quiz UI */
.quiz-container {
    padding: 60px 0;
    max-width: 800px;
    margin: 0 auto;
}

.quiz-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.quiz-progress {
    margin-bottom: 40px;
}

.progress-bar {
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 10px;
    transition: width 0.5s ease;
}

.quiz-progress span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.question-text {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

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

.option-card {
    background: var(--bg-alt);
    border: 2px solid transparent;
    padding: 30px;
    border-radius: 16px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.option-card:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateY(-5px);
}

.option-card i {
    color: var(--primary);
    width: 40px;
    height: 40px;
}

.option-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.result-card {
    background: var(--white);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow);
    text-align: center;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.result-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    text-align: left;
    align-items: center;
    margin-top: 30px;
}

.result-features {
    margin: 20px 0;
}

.result-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
}

.icon-small {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.result-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ROI Calculator UI */
.roi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 0;
}

.roi-form-card, .roi-result-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.roi-result-card {
    background: var(--bg-alt);
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}

.metric-item {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 800;
}

.metric-value.primary {
    color: var(--primary);
}

.impact-bar-bg {
    height: 12px;
    background: #e1e1e1;
    border-radius: 6px;
    margin: 10px 0;
    overflow: hidden;
}

.impact-bar-fill {
    height: 100%;
    width: 0;
    transition: width 1s ease;
}

.roi-analysis {
    background: var(--white);
    padding: 20px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    margin-top: 30px;
}

.comp-list {
    margin-top: 15px;
}

.comp-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

/* Existing Styles Override/Addition */
.form-group input, .form-group select {
    background: var(--bg-alt);
    border: 2px solid var(--border);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary);
    background: var(--white);
}

/* Mobile */
@media (max-width: 992px) {
    .roi-grid { grid-template-columns: 1fr; }
    .result-content { grid-template-columns: 1fr; }
}