:root {
    /* Palette */
    --accent-color: #635bff;
    --text-dark: #0a2540;
    --text-body: #425466;
    --bg-color: #ffffff;
    --surface-color: #f6f9fc;
    --border-color: #e6ebf1;

    /* Background Blob Colors */
    --blob-1: #ff80df;
    /* Brighter Pink */
    --blob-2: #635bff;
    /* Deep Purple */
    --blob-3: #40e0d0;
    /* Bright Turquoise */
    --blob-bottom: #635bff;

    --radius-md: 12px;
    --shadow-card: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);

    /* Layout Angles */
    --clip-angle: clamp(50px, 8vw, 100px);
    --angle-hero: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--clip-angle)));
    --angle-faq: polygon(0 var(--clip-angle), 100% 0, 100% 100%, 0 100%);
}

.dark {
    --accent-color: #9e99ff;
    --text-dark: #ffffff;
    --text-body: #cbd5e1;
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --border-color: #334155;
    /* Dark mode blobs need to be slightly different to show on dark bg */
    --blob-1: #c026d3;
    --blob-2: #4f46e5;
    --blob-3: #0ea5e9;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    transition: background 0.3s, color 0.3s;
}

/* --- Animated Gradients --- */
.gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 130vh;
    overflow: hidden;
    z-index: -1;
    background: var(--surface-color);
    transition: background 0.3s;
}

.dark .gradient-canvas {
    background: #0f172a;
}

.blob {
    position: absolute;
    border-radius: 50%;
    /* Reduced blur slightly so shapes are more defined */
    filter: blur(60px);
    opacity: 0.7;
    /* Faster animation speed (10s-15s instead of 20s+) */
    animation: float 8s infinite ease-in-out alternate;
    will-change: transform, opacity;
}

/* Top Blobs - More noticeable positioning and opacity */
.blob-1 {
    top: -5%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-1);
    opacity: 0.6;
    animation-duration: 8s;
}

.blob-2 {
    top: 20%;
    right: -15%;
    width: 55vw;
    height: 55vw;
    background: var(--blob-2);
    opacity: 0.5;
    animation-delay: -3s;
    animation-duration: 12s;
}

.blob-3 {
    bottom: 10%;
    left: 10%;
    width: 45vw;
    height: 45vw;
    background: var(--blob-3);
    opacity: 0.6;
    animation-delay: -7s;
    animation-duration: 10s;
}

/* Secondary Bottom Gradient */
.gradient-canvas-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob-4 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-2);
    opacity: 0.4;
    animation: float 14s infinite ease-in-out reverse;
}

/* Wider movement range for the animation */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    33% {
        transform: translate(50px, -30px) scale(1.1) rotate(5deg);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.95) rotate(-5deg);
    }

    100% {
        transform: translate(20px, -20px) scale(1.05) rotate(2deg);
    }
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1300px;
    }
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .nav.scrolled {
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.logo img {
    width: 32px;
    border-radius: 8px;
}

.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.theme-btn:hover {
    background: rgba(125, 125, 125, 0.1);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 100px;
    clip-path: var(--angle-hero);
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

@media(min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
    }
}

.hero-text {
    z-index: 1;
    position: relative;
}

.hero-text h1 {
    font-size: 2.75rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-text p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: 2rem;
    max-width: 550px;
}

@media (min-width: 1400px) {
    .hero-text h1 {
        font-size: 3.75rem;
    }

    .hero-text p {
        font-size: 1.35rem;
    }
}

/* --- Phone Parallax --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.phone-group {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
    padding: 20px;
    will-change: transform;
}

.phone-img {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 1400px) {
    .phone-img {
        width: 220px;
    }
}

.phone-ios {
    z-index: 2;
    transform: translateX(20px) rotate(-3deg);
}

.phone-android {
    z-index: 1;
    transform: translateX(-20px) translateY(10px) rotate(3deg) scale(0.95);
}

.badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badge-link img {
    height: 42px;
    width: auto;
    transition: transform 0.2s;
}

.badge-link:hover img {
    transform: translateY(-3px);
}

/* --- Features --- */
.features {
    /* background: var(--surface-color); */
    margin-top: calc(var(--clip-angle) * -1.5);
    padding-top: calc(var(--clip-angle) + 4rem);
    padding-bottom: 6rem;
    /* position: relative; */
    z-index: 0;
}

.features::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 91, 255, 0.08) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-text p,
.hero .badges {
    padding: 0 2em;
}

h1 {
    padding: 0 35px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.tag {
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

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

.card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-top: 3px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--accent-color);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(99, 91, 255, 0.1);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.card p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.5;
}

/* --- Areas --- */
.areas {
    padding: 4rem 0;
    background: var(--bg-color);
    text-align: center;
    position: relative;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 800px;
    margin: 2rem auto;
}

.area-pill {
    background: var(--surface-color);
    color: var(--text-body);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: 0.2s;
    cursor: pointer;
    /* Changed to pointer */
    text-decoration: none;
    /* Removed underline for links */
    display: inline-block;
}

.area-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--bg-color);
    transform: translateY(-1px);
}

/* --- FAQ --- */
.faq {
    background: transparent;
    padding: 8rem 0 6rem 0;
    clip-path: var(--angle-faq);
    margin-top: -3rem;
    position: relative;
}

.faq-card-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.dark .faq-card-container {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-a {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-a a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background: linear-gradient(to bottom, transparent, rgba(99, 91, 255, 0.05));
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-body);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

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

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text p {
        text-align: center;
        margin: 0 auto 2rem auto;
    }

    .badges {
        justify-content: center;
    }

    .hero {
        padding-top: 110px;
        display: block;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .phone-group {
        margin-top: 1rem;
        transform: scale(0.9);
    }

    .faq-card-container {
        padding: 1.5rem;
        background: transparent;
        backdrop-filter: none;
        border: none;
    }

    /* Mobile blobs need to be visible but not overwhelming */
    .blob {
        opacity: 0.5;
        filter: blur(50px);
    }
}

.lochy-banner {
    margin: 4rem auto 2rem auto;
    max-width: 800px;
    padding: 3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #635bff, #ff80df, #40e0d0, #635bff);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 20px 40px rgba(99, 91, 255, 0.2);
    position: relative;
    z-index: 10;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.lochy-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 21px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .lochy-content {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.lochy-content:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark .lochy-content:hover {
    background: rgba(30, 41, 59, 0.95);
}

.lochy-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(3deg);
    }
}

.lochy-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #635bff, #ff80df);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lochy-text p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.85;
}

.btn-fancy {
    margin-left: auto;
    background: #635bff;
    color: white !important;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 20px rgba(99, 91, 255, 0.3);
    transition: all 0.3s ease;
}

.lochy-content:hover .btn-fancy {
    background: #ff80df;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(255, 128, 223, 0.4);
}

@media (max-width: 768px) {
    .lochy-content {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .btn-fancy {
        margin-left: 0;
    }

    .lochy-icon {
        width: 80px;
        height: 80px;
    }
}
/* --- Bins.Ren Banner --- */
.bins-banner {
    margin: 2rem auto 4rem auto;
    max-width: 800px;
    padding: 3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #635bff, #0ea5e9, #635bff);
    background-size: 200% 200%;
    animation: gradientMove 8s linear infinite;
    box-shadow: 0 20px 40px rgba(99, 91, 255, 0.2);
    position: relative;
    z-index: 10;
}

.bins-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 21px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.dark .bins-content {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.bins-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: iconFloat 3s ease-in-out infinite;
}

.bins-text {
    flex: 1;
}

.bins-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(90deg, #635bff, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bins-text p {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.85;
}

.banner-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-mini {
    background: #1e293b;
    color: white !important;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-mini:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: #0f172a;
}

.dark .btn-mini {
    background: #334155;
}

.dark .btn-mini:hover {
    background: #475569;
}

@media (max-width: 768px) {
    .bins-content {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-mini {
        width: 100%;
        justify-content: center;
        padding: 14px;
        font-size: 1rem;
    }

    .bins-icon {
        width: 72px;
        height: 72px;
    }
}

/* --- MyBins.UK Banner --- */
.mybinsuk-banner {
    margin: 4rem auto 2rem auto;
    max-width: 800px;
    padding: 3px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0ea5e9, #10b981, #34d399, #0ea5e9);
    background-size: 300% 300%;
    animation: gradientMove 6s ease infinite;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 10;
}

.mybinsuk-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 21px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark .mybinsuk-content {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.mybinsuk-content:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.dark .mybinsuk-content:hover {
    background: rgba(30, 41, 59, 0.95);
}

.mybinsuk-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: iconFloat 3s ease-in-out infinite;
    object-fit: cover;
}

.mybinsuk-text h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mybinsuk-text p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.85;
}

.btn-fancy-green {
    background: #10b981 !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3) !important;
}

.mybinsuk-content:hover .btn-fancy-green {
    background: #0ea5e9 !important;
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4) !important;
}

@media (max-width: 768px) {
    .mybinsuk-content {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .btn-fancy-green {
        margin-left: 0;
    }

    .mybinsuk-icon {
        width: 80px;
        height: 80px;
    }
}
