:root {
    /* Colors */
    --bg-main: #f8fafc;
    --bg-alt: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-nav: rgba(248, 250, 252, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;

    --accent-primary: #6366f1;
    /* Indigo */
    --accent-secondary: #8b5cf6;
    /* Violet */
    --accent-tertiary: #a855f7;
    /* Purple */

    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    font-size: 3rem;
}

.section-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.bg-alternate {
    background-color: var(--bg-alt);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.15);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.link-arrow:hover {
    gap: 0.75rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 6rem;
    /* Reduced to bring content up */
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3rem;
    /* Restored desktop size here */
    margin-bottom: 2rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.mobile-break {
    display: none;
    /* Hidden on desktop */
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.hero-actions .btn-large {
    padding: 1.25rem 3.5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

/* VSL Container */
.vsl-container {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.25);
    border: 4px solid var(--accent-primary);
    background: var(--bg-card);
    aspect-ratio: 16 / 9;
}

.vsl-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
    }

    .hero {
        padding-top: 5.5rem;
        padding-bottom: 0;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem;
        /* Increased size to match rebalanced lines */
        /* Strict maximum to force full sentence on 1 screen width */
        margin-bottom: 2.5rem;
        /* Pushing VSL further down */
        line-height: 1.25;
        padding: 0;
        max-width: 100%;
        word-wrap: break-word;
    }

    .mobile-break {
        display: block;
    }

    .hero .text-gradient {
        display: inline;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0.25rem;
        margin-top: 2rem;
        /* Was 0.5rem - dropped lower */
        padding: 0 1rem;
    }

    .hero-actions .btn,
    .hero-actions .btn-large {
        width: auto;
        padding: 1rem 3rem;
        /* Was 0.75rem 2.5rem */
        font-size: 1.15rem;
        /* Was 1rem */
        border-radius: 100px;
        font-weight: 600;
    }

    .vsl-container {
        margin-bottom: 2rem;
        width: 70%;
        /* Sweet spot width */
        margin-left: auto;
        margin-right: auto;
        border: 2px solid var(--accent-primary);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
        /* Soft, optimized glow */
    }
}

/* Trust Bar */
.trust-bar {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
}

@media (max-width: 768px) {
    .trust-bar {
        padding-top: 0;
    }

    .trust-bar p {
        margin-bottom: 0.5rem;
        font-size: 0.75rem;
    }

    .trust-logos {
        gap: 2vw;
        flex-wrap: nowrap !important;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        padding: 0 2vw;
        white-space: nowrap;
        margin: 0;
        overflow: hidden;
    }

    .logo-text-item {
        font-size: 2.5vw;
        /* Strictly scaling fluid size */
        white-space: nowrap;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        line-height: 1.2;
    }

    .logo-text-item .supp-king {
        font-size: 2.5vw !important;
        line-height: 1 !important;
    }

    .logo-text-item .supp-london {
        font-size: 0.45em !important;
        letter-spacing: 0.1em;
    }
}

.trust-bar p {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-text-item {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    letter-spacing: -0.02em;
}

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

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    grid-auto-rows: minmax(250px, auto);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal), border-color var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 0, 0, 0.03), transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}

.bento-card>* {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.5rem;
}

.large-card {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

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

    .large-card {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
}

/* Code Animation Block inside Custom AI */
.animated-code {
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.code-line {
    display: block;
    color: #475569;
    margin-bottom: 0.5rem;
}

.code-line.indent {
    padding-left: 1rem;
    color: #64748b;
}

.code-line.success {
    color: #10b981;
    font-weight: bold;
}

/* Results Section */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.result-metric {
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

/* Calculator Section */
.calculator-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.calc-content {
    padding: var(--spacing-lg);
}

.calc-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.input-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.val-display {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--accent-primary);
}

.calc-result {
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.result-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.calc-visual {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Add a glowing animated sphere to the calc visual */
.glow-sphere {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

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

    .calc-visual {
        display: none;
    }
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-alt);
    padding: var(--spacing-xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-glow);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent-primary);
}

.faq-question i {
    color: var(--accent-primary);
    transition: transform var(--transition-normal);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Leadership Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

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

.team-card {
    text-align: center;
}

.team-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.02));
    border: 2px solid var(--border-color);
    padding: 6px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.team-role {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Bio Dropdown Styles */
.bio-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition-fast);
}

.bio-toggle:hover {
    color: var(--accent-primary);
}

.bio-toggle i {
    transition: transform var(--transition-fast);
}

.bio-toggle.active i {
    transform: rotate(180deg);
}

.bio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
    opacity: 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bio-content.open {
    max-height: 800px;
    opacity: 1;
    margin-top: 1.5rem;
}

.bio-content p {
    margin-bottom: 1rem;
}

.bio-content p:last-child {
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

.cta-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.contact-form {
    max-width: 500px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.06);
}

.contact-form .form-group textarea {
    resize: vertical;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: var(--accent-primary);
    cursor: pointer;
    transform: scale(1.2);
}

.radio-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.25rem;
    font-size: 1.25rem;
    /* New enlarged desktop size */
    font-weight: 700;
    /* Thicker weight for visibility */
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.link-group a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .cta-card h2.section-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .btn-submit {
        font-size: 1.25rem;
        font-weight: 700;
        padding: 1.25rem;
    }
}