:root {
    --bg-color: #0d0e14;
    --accent-color: #7c4dff;
    --accent-gradient: linear-gradient(135deg, #7c4dff 0%, #448aff 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --font-main: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #448aff;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #ff4081;
    top: 50%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.2);
    }
}

#app-container {
    width: 100%;
    max-width: 1000px;
    padding: 2rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
}

.vs {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.currency {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

input[type="number"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.8rem 1rem 0.8rem 3rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s ease;
}

input[type="number"]:focus {
    border-color: var(--accent-color);
}

.toggle-group {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.toggle-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0;
}

input[type="checkbox"] {
    accent-color: var(--accent-color);
    width: 18px;
    height: 18px;
}

.results-preview {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--card-border);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.result-row span:first-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.value {
    font-weight: 700;
}

.highlight {
    font-size: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.comparison-summary {
    margin-top: 2rem;
}

.verdict-container {
    padding: 2rem 0;
    text-align: center;
}

.comparison-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

#comparison-fill {
    height: 100%;
    width: 60%;
    background: var(--accent-gradient);
    border-radius: 6px;
    transition: width 0.5s ease;
}

#verdict-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.percentage {
    color: var(--success);
}

.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.breakdown-item h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.breakdown-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Hormozi CTA Section */
.hormozi-cta {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid var(--accent-color);
    background: linear-gradient(rgba(124, 77, 255, 0.05), rgba(0, 0, 0, 0.2));
}

.hormozi-cta .badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hormozi-cta h2 {
    text-align: center;
    font-size: 2.5rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
}

.cta-main-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.offer-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 3rem;
}

.offer-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.offer-item .icon {
    font-size: 1.2rem;
}

.offer-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.offer-item strong {
    color: white;
}

.btn-primary {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: var(--accent-gradient);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 40px rgba(124, 77, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 50px rgba(124, 77, 255, 0.5);
}

.btn-primary small {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-weight: 400;
}

/* AEO Info Section */
.info-section {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.faq-group h2,
.glossary-group h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.glossary-group dl div {
    margin-bottom: 1.5rem;
}

.glossary-group dt {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.glossary-group dd {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sources {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.sources a {
    color: var(--accent-color);
    text-decoration: underline;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.6;
}

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

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

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

    #app-container {
        padding: 1rem;
    }
}