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

html {
    scroll-behavior: smooth;
}

/* 🚫 2.3.3 Prefers-Reduced-Motion Media Query */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    .back-to-top {
        transition: none !important;
    }
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #141619; 
    color: #f3f0f7; 
    line-height: 1.6;
    padding: 0 1.5rem;
}

/* ♿ Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #c39eff;
    color: #120e16;
    padding: 8px 16px;
    z-index: 100;
    font-weight: bold;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* 🏠 Structural Header Elements */
header {
    max-width: 850px;
    margin: 2.5rem auto;
    border-bottom: 2px solid #32273e; 
    padding-bottom: 2rem;
}

.header-brand {
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    text-decoration: none; 
    margin-bottom: 1.5rem; 
    border: none;
}

.logo-link {
    display: inline-block;
    border-radius: 4px;
    transition: outline 0.1s;
}
.logo-link:focus {
    outline: 3px solid #c39eff;
    outline-offset: 4px;
}

.header-logo {
    height: 140px; 
    width: auto; 
    display: block; 
    border: none;
}

.brand-text {
    display: block; 
    text-align: left;
}

/* 🗺️ Nav Menu & Explicit AAA Sizing (SC 2.5.5) */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav a {
    color: #f3f0f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.8rem 0.6rem; /* Increases bounding box over 44px */
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
    color: #c39eff;
    border-bottom-color: #c39eff;
}
        
nav a:focus {
    color: #c39eff;
    outline: 3px solid #c39eff;
    outline-offset: 2px;
}

nav a.active {
    color: #c39eff;
    border-bottom: 2px solid #c39eff;
}

/* 📱 Social Icons Target Area Controls (SC 2.5.5) */
.social-group {
    display: flex;
    align-items: center;
    gap: 1.25rem; 
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bdafcc;
    width: 52px;  
    height: 52px; 
    border-radius: 8px;
    position: relative;
    background-color: #1d1824;
    border: 1px solid #32273e;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.social-link .brand-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.social-link .external-glyph {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    fill: currentColor;
    opacity: 0.8;
}

.social-link:hover {
    color: #c39eff;
    background-color: #261f30;
    border-color: #4c3b5c;
}

.social-link:focus {
    color: #c39eff;
    background-color: #261f30;
    outline: 3px solid #c39eff;
    outline-offset: 2px;
}

/* Core Main Layout */
main {
    /* Explicitly limits block layouts to ~75 characters wide */
    max-width: 75ch; 
    margin: 0 auto;
    padding-bottom: 5rem;
}

.page-title {
    margin: 3rem 0 1rem 0;
    font-size: 2.2rem;
    color: #ffffff;
}

.section-intro {
    font-size: 1.2rem;
    color: #bdafcc;
    margin-bottom: 3rem;
}

.section-description {
    color: #bdafcc;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.services-section {
    margin-bottom: 4rem;
    scroll-margin-top: 2rem;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card {
    background-color: #1d1824;
    border: 1px solid #32273e;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.35rem;
    color: #ffffff;
}

.price {
    font-size: 1.35rem;
    font-weight: 700;
    color: #c39eff;
    white-space: nowrap;
}

.card p {
    color: #f3f0f7;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.meta-info {
    list-style: none;
    font-size: 0.95rem;
    color: #f3f0f7;
    border-top: 1px solid #32273e;
    padding-top: 1rem;
    margin-top: 1rem;
}

.meta-info li {
    margin-bottom: 0.5rem;
}

.meta-info strong {
    color: #ffffff;
}

.human-layer-box {
    background-color: #1d1824;
    border-left: 6px solid #c39eff;
    padding: 2.2rem;
    border-radius: 12px;
    margin: 4rem 0;
}

.human-layer-box h3 {
    font-size: 1.4rem;
    color: #c39eff;
    margin-bottom: 1rem;
}

.human-layer-box p {
    font-size: 1.1rem;
    color: #f3f0f7;
}

.home-section {
    margin-bottom: 3.5rem;
}

.home-section h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    border-left: 5px solid #c39eff;
    padding-left: 0.75rem;
}

.home-section p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #f3f0f7;
}

.solutions-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.solution-card {
    background-color: #1d1824;
    border: 1px solid #32273e;
    padding: 2.2rem;
    border-radius: 12px;
    flex: 1;
    min-width: 280px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.solution-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: #bdafcc;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* 💬 Testimonials Structural Layout Framework (WCAG AAA Compliant) */
.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: #1d1824;
    border: 1px solid #32273e;
    padding: 2.2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-quote {
    color: #f3f0f7;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid #32273e;
    padding-top: 1.2rem;
}

.author-meta {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.author-role {
    font-style: normal;
    font-size: 0.95rem;
    color: #bdafcc;
    margin-top: 0.15rem;
}

.feature-card {
    background-color: #1d1824;
    border: 1px solid #32273e;
    border-left: 6px solid #c39eff;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3.5rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #c39eff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #f3f0f7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-banner {
    background-color: #1d1824;
    border: 1px solid #32273e;
    border-left: 6px solid #c39eff;
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.cta-banner h3 {
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.cta-banner p {
    margin-bottom: 1.2rem;
    color: #f3f0f7;
    font-size: 1.1rem;
}

.cta-banner .intro-text {
    margin-bottom: 1.5rem;
}

.cta-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta-card {
    flex: 1;
    min-width: 260px;
    background-color: #141619;
    border: 1px solid #32273e;
    padding: 1.5rem;
    border-radius: 8px;
}

.cta-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cta-card p {
    font-size: 0.95rem;
    color: #d2c4e3;
    margin-bottom: 1rem;
}

.cta-link {
    color: #c39eff;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    font-size: 1.2rem;
}

.cta-link.cta-link-large {
    font-size: 1.3rem;
}

.cta-link:hover {
    text-decoration: underline;
}

.cta-link:focus {
    outline: 3px solid #c39eff;
    outline-offset: 2px;
    text-decoration: underline;
}

.cta-link svg {
    height: 1.2rem;
    width: 1.2rem;
    fill: currentColor;
}

.footer-social-group {
    margin-top: 1.5rem;
    justify-content: center;
}

/* 🎛️ Button Configurations */
.btn {
    display: inline-block;
    background-color: #c39eff;
    color: #120e16;
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background-color 0.2s;
    text-align: center;
    width: 100%; 
}

.btn:hover {
    background-color: #ddc7ff;
}
.btn:focus {
    background-color: #ddc7ff;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* 🔝 Fixed Back to Top Control */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #c39eff; 
    color: #120e16;
    border: 2px solid #32273e;
    border-radius: 8px;
    padding: 0.75rem 1.2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s, background-color 0.2s;
    pointer-events: none; 
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; 
}

.back-to-top:hover {
    background-color: #ddc7ff;
}
.back-to-top:focus {
    background-color: #ddc7ff;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

/* 👣 Page Footer Area */
footer {
    max-width: 850px;
    margin: 3rem auto 1.5rem auto;
    border-top: 1px solid #32273e;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #bdafcc;
    text-align: center;
}

.footer-nav {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #bdafcc;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem; 
    display: inline-block;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #c39eff;
    text-decoration: underline;
}
.footer-links a:focus {
    color: #c39eff;
    outline: 3px solid #c39eff;
    outline-offset: 2px;
}
