img { max-width: 100%; height: auto; display: block; }

/* === Glaze & Glimmer Sweets - Premium CSS Foundation === */

/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Fonts */
@import url('https://fonts.googleapis.com/css2?family=Erode:wght@400;600;700&family=Inter:wght@300;400;600;700&display=swap');

:root {
    /* Color Palette - LIGHT THEME (Mandatory) */
    --bg-page: #fdfaf5; /* Warm Cream */
    --bg-card: rgba(255, 255, 255, 0.7);
    --text: #1a1a2e;
    --text-muted: #53536b;
    --accent-primary: #ff8ab3; /* Sweet Pink */
    --accent-secondary: #97e2ff; /* Sky Blue Candy */
    --accent-stripe: #ff8ab3;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    --shadow-glass: 0 8px 32px 0 rgba(255, 138, 179, 0.1);
    --glass-border: rgba(255, 255, 255, 0.4);

    --container-width: 1200px;
    --nav-height: 80px;
}

body, html {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    color: var(--text);
    background: var(--bg-page);
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: 'Erode', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* === BACKGROUND TEXTURE (SUBTLE DOT GRID) === */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: radial-gradient(var(--accent-secondary) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

.blur-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: var(--accent-primary);
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.1;
    animation: moveBlobs 20s infinite alternate ease-in-out;
}

.blob-1 { top: -10%; left: -10%; background: var(--accent-primary); }
.blob-2 { bottom: -10%; right: -10%; background: var(--accent-secondary); animation-delay: -5s; }

@keyframes moveBlobs {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 50px); }
}

/* === STRUCTURAL BASELINES === */
.layout-wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    padding: 20px;
}

section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.section-divider {
    width: 100%;
    height: 6px;
    background: var(--accent-stripe);
    margin: 0;
}

/* === NAVIGATION (FLOATING PILL) === */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-pill);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-glass);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1.75rem;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

/* Animated Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

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

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* === BUTTONS (SPLIT COLOR) === */
.btn-split {
    display: inline-flex;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-split:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-split span {
    padding: 1.2rem 2.5rem;
    display: block;
    width: 50%;
    transition: background 0.3s ease;
}

.btn-split .left {
    background: var(--accent-primary);
    color: #fff;
    text-align: right;
    padding-right: 0.5rem;
}

.btn-split .right {
    background: var(--accent-secondary);
    color: var(--text);
    text-align: left;
    padding-left: 0.5rem;
}

/* === HERO (DIAGONAL SPLIT) === */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    flex: 1;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

.hero .diagonal-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50px;
    width: 100px;
    background: var(--bg-page);
    transform: skewX(-5deg);
    z-index: 2;
}

/* === GLASS PANELS & CARDS === */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: all 0.4s ease;
}

.glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px 0 rgba(255, 138, 179, 0.2);
}

/* === Z-PATTERN (STACKED BLOCKS) === */
.z-pattern-block {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.z-pattern-block:nth-child(even) {
    flex-direction: row-reverse;
}

.z-pattern-block .content {
    flex: 1;
}

.z-pattern-block .media {
    flex: 1;
    position: relative;
}

.z-pattern-block .media img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: var(--shadow-glass);
}

/* === ROI CALCULATOR === */
.calculator-container {
    max-width: 800px;
    margin: 0 auto;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calc-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.calc-input input {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.calc-result {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 1rem 0;
}

/* === MARQUEE === */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: #fff;
    padding: 40px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.marquee-content {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    font-family: 'Erode', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
}

/* === COMPARISON SECTION === */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.comparison-table th, .comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-family: 'Erode', serif;
    font-size: 1.2rem;
    color: var(--accent-primary);
}

.comparison-table .check { color: #4ade80; }
.comparison-table .cross { color: #f87171; }

/* === TESTIMONIALS (BEFORE/AFTER) === */
.testimonial-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metrics {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.metric-item {
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    flex: 1;
}

.metric-label { font-size: 0.75rem; color: var(--text-muted); display: block; }
.metric-value { font-weight: 700; font-size: 1.1rem; }

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

/* === FOOTER (GLASSMORPHISM) === */
footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 90px;
    color: var(--text);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.social-icons a:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* === MOBILE NAV & RESPONSIVE === */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    nav {
        width: 90%;
        padding: 0.75rem 1.5rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem;
        border-radius: var(--radius-lg);
        margin-top: 10px;
        box-shadow: var(--shadow-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .hero {
        flex-direction: column;
        height: auto;
        clip-path: none;
    }

    .hero-img {
        height: 40vh;
    }

    .hero-content {
        padding: 4rem 5%;
        text-align: center;
    }

    .diagonal-line {
        display: none;
    }

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

    .z-pattern-block {
        flex-direction: column !important;
        gap: 2rem;
    }

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

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

    .testimonial-card {
        grid-template-columns: 1fr;
    }

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

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

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 20px;
    }
}

/* Premium Content Grid (High Density) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.item-card:hover { transform: scale(1.02); }

.item-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.item-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }

.price-tag {
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-top: auto;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 120px 0 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumbs a {
    color: var(--accent-primary);
}

.breadcrumbs span {
    margin: 0 10px;
}
