/* ===========================
   Direct Debits Page Styles
   =========================== */

/* Hero Section */
.dd-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.dd-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.dd-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.dd-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.3rem;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 100%;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.hero-feature-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hexagon Stack Visual */
.dd-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-stack {
    position: relative;
    width: 300px;
    height: 350px;
}

.hex-icon {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hex-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.hex-2 {
    bottom: 40px;
    left: 0;
    animation-delay: 0.5s;
}

.hex-3 {
    bottom: 40px;
    right: 0;
    animation-delay: 1s;
}

/* Features Section */
.dd-features {
    padding: 100px 0;
    background: var(--white);
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px var(--shadow-hover);
    border-color: var(--primary-color);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Technical Section */
.dd-technical {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

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

.technical-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 20px var(--shadow);
    transition: var(--transition);
}

.technical-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.tech-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tech-content p {
    color: var(--text-light);
    line-height: 1.6;
}

/* MCP Section */
.dd-mcp {
    padding: 100px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.mcp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mcp-text .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.mcp-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mcp-text .lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.mcp-text > p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.mcp-features-list {
    margin: 2.5rem 0;
}

.mcp-features-list h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.mcp-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mcp-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mcp-feature i {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mcp-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.mcp-feature p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* MCP Diagram */
.mcp-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mcp-diagram {
    position: relative;
    width: 400px;
    height: 400px;
}

.mcp-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mcp-hub {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 40px rgba(233, 30, 99, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.mcp-hub i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.mcp-hub span {
    font-weight: 700;
    font-size: 1.2rem;
}

.mcp-nodes {
    position: relative;
    width: 100%;
    height: 100%;
}

.mcp-node {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 5px 20px var(--shadow);
}

.mcp-node i {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.mcp-node-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.mcp-node-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.mcp-node-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.mcp-node-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(233, 30, 99, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 50px rgba(233, 30, 99, 0.5);
    }
}

/* Pricing Section */
.dd-pricing {
    padding: 100px 0;
    background: var(--white);
}

.pricing-calculator {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.calculator-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 50px var(--shadow);
    overflow: hidden;
}

.calculator-header {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    padding: 2.5rem;
    text-align: center;
}

.calculator-header h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    opacity: 0.95;
}

.calculator-body {
    padding: 2.5rem;
}

.slider-container {
    margin-bottom: 3rem;
}

.slider-container label {
    display: block;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

#volumeSlider,
#sunSlider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    outline: none;
    -webkit-appearance: none;
}

#volumeSlider::-webkit-slider-thumb,
#sunSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

#volumeSlider::-moz-range-thumb,
#sunSlider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.slider-value {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-breakdown {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.breakdown-item.total {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.breakdown-item.vat-note {
    margin-bottom: 0;
    margin-top: 0.5rem;
    justify-content: center;
}

.breakdown-value {
    font-weight: 600;
    color: var(--primary-color);
}

.breakdown-divider {
    height: 2px;
    background: var(--primary-color);
    margin: 1rem 0;
    opacity: 0.2;
}

.pricing-tiers {
    margin-bottom: 2rem;
}

.pricing-tiers h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.tier-item {
    background: var(--white);
    border: 2px solid var(--bg-light);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
}

.tier-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.tier-range {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.tier-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.calculator-footer {
    text-align: center;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.pricing-note {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pricing-features {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 20px;
}

.pricing-features h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.included-features {
    list-style: none;
}

.included-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.included-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* API Section */
.dd-api {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.api-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.api-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.api-feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.api-feature i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    font-size: 1rem;
}

.api-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-dark);
}

.api-feature p {
    font-size: 0.95rem;
    margin: 0;
}

.code-window {
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.code-header {
    background: #2d2d44;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.code-title {
    margin-left: auto;
    color: #8b8b8b;
    font-size: 0.9rem;
}

.code-content {
    padding: 2rem;
    margin: 0;
    overflow-x: auto;
}

.code-content code {
    color: #e91e63;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* CTA Section */
.dd-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.cta-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.cta-stat {
    text-align: center;
}

.cta-stat .stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-stat .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 968px) {
    .dd-hero-content {
        grid-template-columns: 1fr;
    }

    .hexagon-stack {
        margin-top: 3rem;
    }

    .dd-hero h1 {
        font-size: 2.5rem;
    }

    .pricing-calculator {
        grid-template-columns: 1fr;
    }

    .api-content {
        grid-template-columns: 1fr;
    }

    .mcp-content {
        grid-template-columns: 1fr;
    }

    .mcp-diagram {
        margin-top: 3rem;
        width: 350px;
        height: 350px;
    }

    .features-grid,
    .technical-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dd-hero {
        padding: 120px 0 80px;
    }

    .dd-hero h1 {
        font-size: 2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1rem;
    }

    .tier-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-stats {
        gap: 2rem;
    }

    .cta-stat .stat-number {
        font-size: 2rem;
    }

    .mcp-features-grid {
        grid-template-columns: 1fr;
    }

    .mcp-diagram {
        width: 300px;
        height: 300px;
    }

    .mcp-hub {
        width: 100px;
        height: 100px;
    }

    .mcp-hub i {
        font-size: 2rem;
    }

    .mcp-node {
        width: 80px;
        height: 80px;
    }

    .mcp-node i {
        font-size: 1.5rem;
    }
}