:root {
    /* Colors - Light, elegant, slightly warm/mystical palette based on requested style */
    --bg-color: #faf9fb;
    --text-main: #333140;
    /* Dark slate for high readability */
    --text-muted: #6b687f;
    /* Lighter text for author role and subtitles */
    --primary-color: #9d8bba;
    /* soft purple/lavender */
    --accent-color: #e2c0ad;
    /* soft peach/rose gold */
    --blue-accent: #c3d6e8;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95); /* Increased opacity to prevent dark background bleed */
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(142, 131, 163, 0.15);

    /* Image Dark Theme Simulation */
    --dark-placeholder: #1e1e24;

    /* Typography */
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Curves */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-color); 
    /* Gradient handles by body::before to prevent mobile height miscalculations */
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 300;
}

/* Fixed bottom gradient to avoid mobile stretch issues */
body::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1200px; /* Fixed height for the gradient transition */
    background: linear-gradient(to bottom, transparent 0%, #182340 70%, #182340 100%);
    z-index: -2;
    pointer-events: none;
}

/* --- Background Ornaments --- */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -150px;
    left: -100px;
}

.shape-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    bottom: -200px;
    right: -100px;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--blue-accent);
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
}

/* --- Layout --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header Section --- */
.header {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.logo-top {
    height: 60px;
    /* Increased slightly for better visibility when centered */
    max-width: 100%;
    object-fit: contain;
}

/* Glass Panel Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* --- Block 1: Quote Section --- */
.quote-block {
    width: 100%;
    margin-bottom: 2rem;
}

.hero-quote, .footer-quote {
    padding: 0;
    max-width: 900px;
    margin-bottom: 3.5rem;
}

.hero-quote .quote, .footer-quote .quote {
    font-size: 1.3rem;
    line-height: 1.6;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.hero-quote .avatar, .footer-quote .avatar {
    width: 65px;
    height: 65px;
}

.hero-quote .author-name, .footer-quote .author-name {
    font-size: 1.1rem;
}

.quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    /* Smaller text size */
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);
    line-height: 1.5;
    /* Slightly tighter line height */
    margin-bottom: 1.5rem;
    position: relative;
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.avatar {
    width: 45px;
    /* Smaller avatar */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(157, 139, 186, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

/* --- Main content styling --- */
.main-content {
    width: 100%;
    padding: 4rem;
    padding-bottom: 2.5rem;
    /* Reduced bottom padding */
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-title {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

.sub-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 2.5rem;
    line-height: 1.4;
}

.article-content {
    display: flex;
    flex-direction: column;
}

p {
    margin-bottom: 1.5rem;
    color: #4a4855;
    letter-spacing: 0.2px;
}

p:last-of-type {
    margin-bottom: 0;
}

/* Images & Placeholders */
/* The dark placeholder design emulating the Dark Theme of the software */
.image-wrapper {
    margin: 3rem 0;
    position: relative;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--dark-placeholder);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    /* Deep elegant shadow */
    transition: transform 0.3s ease;
    display: flex;
    /* For text centering */
    align-items: center;
    justify-content: center;
    min-height: 250px;
    /* Base height for placeholder */
}

.image-wrapper:hover {
    transform: translateY(-5px);
}

.image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    position: relative;
    z-index: 2;
    /* Sits above the placeholder */
}

.image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    z-index: 1;
    /* Sits beneath the image. Visible if img is not found or fails to load */
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.image-placeholder small {
    font-size: 0.9rem;
    font-family: monospace;
    opacity: 0.6;
}

/* Modifiers for images */
.hero-image {
    min-height: 350px;
    margin-top: 2.5rem;
}

.full-width {
    width: 100%;
}

/* Pseudo columns / Float text around images for visual rhythm */
@media (min-width: 768px) {
    .align-right {
        float: right;
        width: 50%;
        margin: 1rem 0 1rem 2rem;
        min-height: 200px;
    }

    .align-left {
        float: left;
        width: 50%;
        margin: 1rem 2rem 1rem 0;
        min-height: 200px;
    }
}

.block-separator {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(157, 139, 186, 0.3);
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Back to left-aligned Header */
    text-align: left;
    margin-bottom: 4rem;
}

.logo-wrapper {
    width: 100%; /* Spans width to allow centering logo if needed, but here we align it */
    display: flex;
    justify-content: center; /* Center logo horizontally at top */
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.logo-top {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
}

/* .quote-block max-width moved to .hero-quote or kept generic */

.quote-block.footer-quote {
    margin-top: 5rem !important;
    margin-bottom: 0 !important;
    align-self: center !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

.footer-quote .quote {
    color: #ffffff !important;
    border-left-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-quote .author-name {
    color: #ffffff !important;
}

.footer-quote .author-role {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Footer elements */
.footer-block {
    margin-top: 1rem; /* Tight gap to social icons */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 4rem;
}

.logo-footer {
    height: 52px;
    /* Increased by about 10% from 48px */
    max-width: 100%;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    /* Pulled subtitle closer */
}

.footer-subtitle {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    letter-spacing: 0.3px;
}

/* --- Contact & Social Section --- */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* Reduced gap to be proportional to text lines */
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
}

.contact-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0; /* Gap handles this now */
    font-weight: 400;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem; /* Halved per user request */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    /* Squircle appearance */
    color: white;
    /* For icon stroke/fill */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    color: white;
}

.whatsapp-btn {
    background-color: #25D366;
}

.instagram-btn {
    background: radial-gradient(circle farthest-corner at 35% 90%, #fec564, transparent 50%),
        radial-gradient(circle farthest-corner at 0 140%, #fec564, transparent 50%),
        radial-gradient(ellipse farthest-corner at 0 -25%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 20% -50%, #5258cf, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 0, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 60% -20%, #893dc2, transparent 50%),
        radial-gradient(ellipse farthest-corner at 100% 100%, #d9317a, transparent),
        linear-gradient(#6559ca, #bc318f 30%, #e33f5f 50%, #f77638 70%, #fec66d 100%);
}

.mail-btn {
    background-color: #007AFF;
    /* Apple Mail blue */
}

.youtube-logo {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, filter 0.3s ease;
    margin: 0 auto;
    margin-top: 0.5rem; /* Small extra push down from the gap */
}

.youtube-logo:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Clearfix for floats */
.article-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        padding: 2.5rem 1.5rem;
        padding-bottom: 1.5rem;
    }

    .quote-block {
        padding: 1.5rem;
    }

    .quote {
        font-size: 0.95rem;
        /* Even smaller on mobile to save space */
        line-height: 1.4;
    }

    .logo-wrapper {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .sub-title {
        font-size: 1.2rem;
    }

    .image-wrapper {
        margin: 2rem 0;
        min-height: auto;
    }

    .image-wrapper.hero-image {
        aspect-ratio: 1 / 1;
        /* Makes the first wrapper a square */
    }

    .image-wrapper.hero-image img {
        object-position: left center;
        /* Align image to the left */
        height: 100%;
        /* Ensure it fills the square */
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Superpower Section --- */
.complex-solution-header {
    width: 100%;
    margin-top: 6rem;
    margin-bottom: 3rem;
    text-align: left; /* Aligned to left */
    position: relative;
    z-index: 10;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    padding: 0 4rem; /* Match card padding */
}

.hero-gradient-title {
    font-size: 3.5rem; /* Slightly smaller to fit Better */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #182340 0%, #3a4b7c 50%, #9d8bba 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.hero-titles {
    text-align: left;
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: -0.5px;
}

.hero-main-layout {
    display: none; /* Removed in favor of hero-titles */
}

.superpower-subtext {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-top: 1rem;
    font-weight: 400;
    max-width: 650px;
    line-height: 1.4;
}

.superpower-section {
    width: 100%;
    padding: 2rem 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.service-card {
    padding: 3rem 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 100%; /* Ensure equal card heights */
}

.service-card.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--glass-shadow);
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1); /* Slightly more solid on hover */
}

.title-dark { color: #182340; }

.card-number {
    position: absolute;
    top: -1rem;
    right: -1rem;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(157, 139, 186, 0.05);
    line-height: 1;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.service-icon, .service-title, .service-text {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img, .service-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.1));
}

/* Hardware Footnote (Wide element) */
.hardware-footnote {
    margin-top: 5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 3rem;
    border-radius: var(--radius-md);
    width: 100%;
    transition: var(--transition);
}

.footnote-dark {
    background: linear-gradient(135deg, rgba(24, 35, 64, 0.75) 0%, rgba(58, 75, 124, 0.75) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.hardware-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hardware-icon svg {
    width: 100%;
    height: 100%;
}

.footnote-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hardware-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

.service-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Colored Typography for Card Titles */
.title-blue { color: #2e86de; }
.title-purple { color: #8e44ad; }
.title-orange { color: #e67e22; }
.title-green { color: #27ae60; }

.service-text {
    font-size: 1.05rem;
    color: #555365;
    line-height: 1.6;
    margin-bottom: 0;
}



/* Responsive updates for superpower section */
@media (max-width: 768px) {
    .superpower-section {
        padding: 2.5rem 1.5rem;
    }

    .complex-solution-header {
        padding: 0 1.5rem;
        margin-top: 4rem;
    }

    .hero-gradient-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .logo-wrapper {
        margin-bottom: 2rem;
    }

    .quote-block {
        margin-bottom: 3rem;
    }

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

    .service-card {
        padding: 2.5rem 1.5rem;
    }

    .card-number {
        font-size: 7rem;
        top: -0.5rem;
        right: -0.5rem;
    }

    .hardware-footnote {
        flex-direction: column;
        padding: 2rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
    }

    .hardware-icon {
        width: 50px;
        height: 50px;
    }
}