:root {
    --deep-navy: #1a2a4a;
    --midnight: #2c3e6e;
    --slate: #2d3e50;
    --steel: #64748b;
    --silver: #94a3b8;
    --pearl: #e2e8f0;
    --ivory: #f8fafc;
    --accent-blue: #3a9fd5;
    --accent-blue-light: #5bb5e0;
    --accent-blue-text: #1a73a8;
    --accent-indigo: #3d4a99;
    --accent-gold: #d4a574;
    --accent-gold-light: #e8c49a;
    --gradient-primary: linear-gradient(135deg, var(--deep-navy) 0%, var(--midnight) 50%, #3d5a8a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-light) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--ivory);
    color: var(--slate);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-navy);
    font-weight: 600;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    height: 42px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05);
}

/* The DP Frame.works lockup (mark and wordmark in one image, for dark
   backgrounds). Source files: public/brand/. */
.logo-lockup {
    display: block;
    height: 38px;
    width: auto;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--accent-blue-light);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}


.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: white;
}

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

.nav-cta {
    background: var(--gradient-accent);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(58, 159, 213, 0.35);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-primary);
    background-image: url('/hero-banner-circuit.png');
    background-image: image-set(url('/hero-banner-circuit.webp') type('image/webp'), url('/hero-banner-circuit.png') type('image/png'));
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
    align-items: center;
    padding: 8rem 5% 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(26, 42, 74, 0.85) 0%, rgba(44, 62, 110, 0.75) 50%, rgba(61, 90, 138, 0.65) 100%);
    pointer-events: none;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
}

.hero-content {
    max-width: 620px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(58, 159, 213, 0.15);
    border: 1px solid rgba(58, 159, 213, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-blue-light);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-blue-light);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 4.2vw, 3.6rem);
    color: white;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero h1 span {
    color: var(--accent-blue-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 159, 213, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(58, 159, 213, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Hero product shot */
.hero-visual {
    position: relative;
    z-index: 2;
    margin-right: -6vw;
    perspective: 1800px;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
    transform: rotateY(-8deg) rotateX(2deg);
    transform-origin: left center;
    transition: transform 0.6s ease;
}

.hero-visual:hover .hero-shot {
    transform: none;
}

.hero-shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* Section Styling */
section {
    padding: 7rem 5%;
}

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

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-blue-text);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.25rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--steel);
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.25rem;
    color: var(--slate);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--pearl);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-blue);
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--steel);
    margin-top: 0.5rem;
}

.about-visual {
    position: relative;
    padding: 2rem;
}

.about-card {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(58, 159, 213, 0.2) 0%, transparent 60%);
}

.about-card h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    position: relative;
}

/* Links on the dark card: light blue, visited or not (the browser's visited
   purple is nearly invisible on the gradient). */
.about-card a,
.about-card a:visited {
    color: var(--accent-blue-light);
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--ivory) 0%, white 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--pearl);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(58, 159, 213, 0.1) 0%, rgba(58, 159, 213, 0.05) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-blue);
    stroke-width: 1.5;
    fill: none;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--steel);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* APEX Platform Section */
.platform {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.platform::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(58, 159, 213, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
}

.platform-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.platform-text .section-label {
    color: var(--accent-gold-light);
}

.platform-text h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.platform-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.apex-features {
    display: grid;
    gap: 1.25rem;
}

.apex-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.apex-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(8px);
}

.apex-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apex-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.apex-feature h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.apex-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.platform-visual {
    position: relative;
    min-width: 0;
}

.platform-diagram {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .platform-diagram {
        overflow-x: auto;
    }

    .platform-diagram svg {
        min-width: 560px;
    }
}

/* APEX Capability Grid */
.apex-capabilities {
    max-width: 1200px;
    margin: 4.5rem auto 0;
    position: relative;
    z-index: 2;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.capability-card:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.capability-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.capability-card h4 svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent-blue-light);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

.capability-card p {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.65;
}

.capability-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.capability-heading h3 {
    color: white;
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.capability-heading p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.02rem;
    margin: 0;
}

/* Lifecycle Strip */
.lifecycle {
    background: white;
}

.lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
    counter-reset: step;
}

.lifecycle-step {
    position: relative;
    padding: 1.75rem 1.25rem;
    background: var(--ivory);
    border-radius: 14px;
    border: 1px solid var(--pearl);
    transition: all 0.3s ease;
}

.lifecycle-step:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.lifecycle-step::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.lifecycle-step h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.lifecycle-step p {
    font-size: 0.9rem;
    color: var(--steel);
    line-height: 1.6;
    margin: 0;
}

/* Trust & Security */
.trust {
    background: var(--ivory);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-item {
    background: white;
    border: 1px solid var(--pearl);
    border-radius: 14px;
    padding: 1.75rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.trust-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-blue);
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.trust-item h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.trust-item p {
    font-size: 0.9rem;
    color: var(--steel);
    line-height: 1.6;
    margin: 0;
}

/* Hero proof line */
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin-top: 2.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    animation: fadeInUp 1s ease 0.6s backwards;
}

.hero-proof > span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-proof > span::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
}

/* Why Choose Section */
.why-choose {
    background: white;
}

/* APEX Tagline */
.apex-tagline {
    font-size: 1rem;
    color: var(--accent-gold-light);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 500;
}

.apex-letter {
    font-weight: 700;
    color: var(--accent-blue-light);
}

/* Framework Suite Section */
.framework-suite {
    background: linear-gradient(180deg, white 0%, var(--ivory) 100%);
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.framework-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--pearl);
    transition: all 0.4s ease;
    position: relative;
}

.framework-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(10, 22, 40, 0.1);
}

.framework-card.featured {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.framework-card.featured h3,
.framework-card.featured p {
    color: white;
}

.framework-card.featured .framework-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.framework-card.featured .framework-standards span {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.framework-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.framework-icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.5;
    fill: none;
}

.framework-icon.data {
    background: linear-gradient(135deg, rgba(58, 159, 213, 0.15) 0%, rgba(58, 159, 213, 0.05) 100%);
}

.framework-icon.data svg {
    stroke: var(--accent-blue);
}

.framework-icon.ai {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.framework-icon.ai svg {
    stroke: #6366f1;
}

.framework-icon.privacy {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.2) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.framework-icon.privacy svg {
    stroke: var(--accent-gold);
}

.framework-icon.unified {
    background: rgba(255, 255, 255, 0.15);
}

.framework-icon.unified svg {
    stroke: var(--accent-blue-light);
}

.framework-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.framework-subtitle {
    font-size: 0.9rem;
    color: var(--accent-blue-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.framework-card p {
    color: var(--steel);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.framework-standards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.framework-standards span {
    background: rgba(58, 159, 213, 0.1);
    color: var(--accent-blue-text);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.standalone-note {
    text-align: center;
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 12px;
    border: 1px dashed var(--pearl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.standalone-note p {
    color: var(--steel);
    font-size: 0.95rem;
    margin: 0;
}

.standalone-note strong {
    color: var(--deep-navy);
}

/* Platform Showcase / Carousel */
.platform-showcase {
    background: var(--gradient-primary);
    color: white;
    overflow: hidden;
}

.platform-showcase .section-label {
    color: var(--accent-gold-light);
}

.platform-showcase .section-title {
    color: white;
}

.platform-showcase .section-desc {
    color: rgba(255, 255, 255, 0.75);
}

.carousel-container {
    max-width: 1200px;
    margin: 0 auto;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-image {
    aspect-ratio: 16 / 10;
    /* Shrink on short screens so the caption and arrows stay in view */
    width: min(100%, max(28rem, (100vh - 21rem) * 1.6));
    width: min(100%, max(28rem, (100dvh - 21rem) * 1.6));
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.slide-content {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.7fr);
    gap: 2rem;
    align-items: baseline;
    padding: 0 0.5rem 0.5rem;
}

.slide-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: white;
}

.slide-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-blue-light);
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Playbook */
.playbook {
    background: var(--ivory);
}

.playbook-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.playbook-text p {
    color: var(--steel);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.playbook-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.playbook-list li {
    padding-left: 1.25rem;
    border-left: 3px solid var(--accent-blue);
    font-size: 0.95rem;
    color: var(--steel);
    line-height: 1.6;
}

.playbook-list strong {
    color: var(--deep-navy);
}

.playbook-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--pearl);
    box-shadow: 0 30px 70px rgba(10, 22, 40, 0.12);
}

.playbook-shot img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 900px) {
    .carousel-slide {
        padding: 1rem;
        gap: 1.25rem;
    }

    .slide-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0;
    }

    .slide-content h3 {
        font-size: 1.4rem;
    }
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--pearl);
    line-height: 1;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.why-item p {
    color: var(--steel);
    font-size: 0.95rem;
}

/* CTA Section */
.cta {
    background: var(--ivory);
    text-align: center;
}

.cta-box {
    max-width: 1040px;
    margin: 0 auto;
    background: white;
    padding: 4rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
    border: 1px solid var(--pearl);
}

.cta-box h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-box > p {
    color: var(--steel);
    font-size: 1.1rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    text-align: left;
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

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

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.4rem;
}

.field .optional {
    font-weight: 400;
    color: var(--steel);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.95rem;
    color: var(--slate);
    background: var(--ivory);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input,
.field select {
    height: 3.1rem;
}

.field textarea {
    resize: vertical;
    min-height: 130px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-blue-text);
    box-shadow: 0 0 0 3px rgba(58, 159, 213, 0.2);
    background: white;
}

.field [aria-invalid="true"] {
    border-color: #c2410c;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form .btn {
    justify-self: start;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.form-note {
    font-size: 0.85rem;
    color: var(--steel);
}

.form-note a,
.contact-side a:not(.btn) {
    color: var(--accent-blue-text);
}

.form-status:empty {
    display: none;
}

.form-status {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.form-status.success {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.contact-side {
    background: var(--gradient-primary);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    align-self: start;
}

.contact-side h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.contact-side p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-side .contact-email {
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
}

.contact-side .contact-email a {
    color: var(--accent-blue-light);
}

@media (max-width: 900px) {
    .contact-grid,
    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Footer */
footer {
    background: var(--deep-navy);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo {
    display: block;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
}

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

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .hero-visual {
        margin-right: 0;
        max-width: 760px;
    }

    .hero-shot {
        transform: none;
    }

    .about-grid,
    .platform-content,
    .playbook-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        order: -1;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

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

/* Six navigation items: the menu button takes over below 1100px */
@media (max-width: 1100px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--deep-navy);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }
}

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

    .hero {
        padding: 7rem 5% 4rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    section {
        padding: 4rem 5%;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-box {
        padding: 2.5rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Framework library teaser */
.domain-tile { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.6rem; border-top: 4px solid var(--c); }
.domain-tile h3 { margin-bottom: 0; }
.domain-tile .count { font-size: 0.85rem; font-weight: 600; color: var(--accent-blue-text); }
.domain-tile .go { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--accent-blue-text); }
.framework-card.featured.domain-tile { border-top-color: var(--accent-gold); }
.framework-card.featured.domain-tile .count,
.framework-card.featured.domain-tile .go { color: var(--accent-gold-light); }
.library-cta { text-align: center; margin-top: 2.5rem; }

/* Framework anatomy */
.anatomy { background: white; }
.anatomy-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.anatomy-list { list-style: none; display: grid; gap: 1.6rem; counter-reset: anat; }
.anatomy-list li { position: relative; padding-left: 3.4rem; }
.anatomy-list li::before {
    counter-increment: anat; content: counter(anat);
    position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
    background: var(--gradient-accent); color: white; display: grid; place-items: center; font-weight: 700;
}
.anatomy-list h3 { font-family: 'DM Sans', sans-serif; font-size: 1.12rem; font-weight: 700; margin-bottom: 0.3rem; }
.anatomy-list p { color: var(--steel); }
.anatomy-visual { min-width: 0; margin: 0; }
.anatomy-caption { font-size: 0.85rem; color: var(--steel); margin-top: 0.85rem; text-align: center; }
@media (max-width: 1024px) { .anatomy-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.about-legal { font-size: 0.9rem; color: var(--steel); }

/* APEX editions */
.editions { background: white; }
.editions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 1200px; margin: 0 auto; }
.edition-card { border: 1px solid var(--pearl); border-radius: 16px; padding: 1.75rem; background: var(--ivory); display: flex; flex-direction: column; gap: 0.5rem; }
.edition-card .tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--accent-blue-text); }
.edition-card h3 { font-size: 1.4rem; }
.edition-card p { color: var(--steel); font-size: 0.95rem; }
.edition-card.featured { background: var(--gradient-primary); border: none; color: white; }
.edition-card.featured h3 { color: white; }
.edition-card.featured p { color: rgba(255, 255, 255, 0.75); }
.edition-card.featured .tag { color: var(--accent-gold-light); }
.editions-note { text-align: center; margin-top: 2rem; color: var(--steel); }
.editions-note .btn { margin-top: 1rem; }

.footer-logo { text-decoration: none; display: inline-flex; align-items: center; gap: 0.75rem; }
.footer-logo .logo-icon { height: 44px; width: auto; }
.footer-logo .logo-lockup { height: 42px; }

@media (max-width: 1024px) { .editions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .editions-grid { grid-template-columns: 1fr; } }

/* Home hero: framework tree + control card */
.hero-visual.hero-stack { padding: 2.5rem 0 3.5rem; margin-right: 0; }
.hero-stack .stack-back { width: 86%; }
.control-card {
    position: absolute; right: 2%; top: 0; width: min(340px, 48%);
    background: white; color: var(--slate); border-radius: 14px; padding: 1.1rem 1.15rem 1rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.78rem; line-height: 1.4; text-align: left;
}
.control-card h3, .control-card h4 { font-family: 'DM Sans', sans-serif; }
.cc-crumb { font-size: 0.66rem; color: var(--silver); margin-bottom: 0.3rem; }
.cc-title { font-size: 0.98rem; font-weight: 700; color: var(--deep-navy); }
.cc-desc { color: var(--steel); margin: 0.2rem 0 0.45rem; }
.cc-source { display: inline-block; font-size: 0.66rem; font-weight: 600; color: #0f7c8a; background: #e6f4f5; border: 1px solid #b9e0e3; border-radius: 999px; padding: 0.1rem 0.55rem; margin-bottom: 0.55rem; }
.cc-block { border-left: 3px solid var(--c); background: var(--ivory); border-radius: 0 8px 8px 0; padding: 0.45rem 0.65rem; margin-top: 0.45rem; }
.cc-block h4 { font-size: 0.62rem; letter-spacing: 1.4px; text-transform: uppercase; color: var(--steel); margin-bottom: 0.2rem; }
.cc-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.12rem; }
.cc-block li { padding-left: 1rem; position: relative; }
.cc-block li::before { position: absolute; left: 0; color: var(--c); font-weight: 700; }
.cc-impl { --c: #2e9e6b; } .cc-impl li::before { content: '\2713'; }
.cc-pit { --c: #d08a2c; } .cc-pit li::before { content: '\2715'; }
.cc-metric { --c: #3a7bd5; } .cc-metric li::before { content: '\2022'; }
.cc-maturity { --c: #7655c9; }
.cc-scale { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; margin-top: 0.15rem; }
.cc-scale span { text-align: center; font-size: 0.66rem; font-weight: 700; padding: 0.15rem 0; border-radius: 4px; background: #e9e5f7; color: #8b7cc4; }
.cc-scale span.on { background: #7655c9; color: white; }
.cc-scale span.now { box-shadow: 0 0 0 2px white, 0 0 0 4px #7655c9; }
.cc-scale span.target { background: white; color: #7655c9; border: 1.5px dashed #7655c9; }
.cc-scale-note { font-size: 0.66rem; color: var(--steel); margin-top: 0.3rem; }
.hero-callout {
    position: absolute; display: inline-flex; flex-direction: column; gap: 0.05rem;
    background: rgba(10, 22, 40, 0.88); border: 1px solid rgba(91, 181, 224, 0.55); color: rgba(255, 255, 255, 0.8);
    padding: 0.45rem 0.8rem; border-radius: 10px; font-size: 0.78rem; backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); white-space: nowrap;
}
.hero-callout b { color: var(--accent-blue-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; }
.co-what { left: 4%; top: 0.5rem; }
.co-how { right: calc(min(340px, 48%) + 4%); top: 44%; }
.co-where { right: calc(min(340px, 48%) + 4%); bottom: 3rem; }
@media (max-width: 1024px) {
    .hero-visual.hero-stack { max-width: 720px; }
}
@media (max-width: 640px) {
    .hero-visual.hero-stack { padding: 0; }
    .hero-stack .stack-back { width: 100%; }
    .control-card { position: relative; right: auto; width: 92%; margin: -3.5rem auto 0; }
    .hero-callout { display: none; }
    .control-card .cc-pit { display: none; }
}

/* Standard vs Framework */
.compare { background: white; }
.compare-table { max-width: 1000px; margin: 0 auto; border: 1px solid var(--pearl); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(10, 22, 40, 0.06); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr 1.4fr; }
.compare-row > span { padding: 1.1rem 1.4rem; border-top: 1px solid var(--pearl); }
.compare-row > span:nth-child(3) { background: #f2f9fd; color: var(--deep-navy); font-weight: 500; border-left: 3px solid var(--accent-blue); }
.compare-row > span:first-child { font-weight: 700; color: var(--deep-navy); }
.compare-row > span.none { color: var(--silver); font-style: italic; }
.compare-row em { color: var(--steel); font-style: normal; font-weight: 400; font-size: 0.92em; }
.compare-head > span { border-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--steel); background: var(--ivory); }
.compare-head > span:nth-child(3) { background: var(--deep-navy); color: white; border-left-color: var(--accent-blue); }
@media (max-width: 720px) {
    .compare-head { display: none; }
    .compare-row { grid-template-columns: 1fr; border-top: 1px solid var(--pearl); }
    .compare-head + .compare-row { border-top: 0; }
    .compare-row > span { border-top: 0; padding: 0.5rem 1.1rem; }
    .compare-row > span:first-child { padding-top: 1.1rem; }
    .compare-row > span:last-child { padding-bottom: 1.1rem; margin-bottom: 0; }
    .compare-row > span[data-label]::before { content: attr(data-label); display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--steel); font-style: normal; }
}

/* APEX page */
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn-outline { border: 1px solid var(--pearl); color: var(--deep-navy); background: white; }
.btn-outline:hover { border-color: var(--silver); transform: translateY(-3px); }
.platform-more { margin-top: 2rem; }
.nav-links a[aria-current="page"] { color: white; }
.nav-links a[aria-current="page"]::after { width: 100%; }
