img { max-width: 100%; height: auto; display: block; }

/* === CSS RESET & BASE === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    font-size: 18px;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* === PREMIUM TOKENS === */
:root {
    --bg: #fcfcfd;
    --text: #1a1a2e;
    --text-muted: #64748b;
    --accent: #2563eb;
    --accent-light: #60a5fa;
    --white: #ffffff;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === STRUCTURAL BASELINES === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
section {
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

/* === BACKGROUND BLOBS === */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-light);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}
.blob-1 { top: -100px; right: -100px; background: #60a5fa; }
.blob-2 { bottom: -100px; left: -100px; background: #a78bfa; animation-delay: -5s; }
.blob-3 { top: 40%; left: 30%; background: #f472b6; animation-delay: -10s; }

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

/* === HEADER & NAVIGATION === */
.info-bar {
    height: 40px;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}
.info-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.info-bar-left, .info-bar-right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.info-bar i { color: var(--accent); }

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 15px 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
    box-shadow: var(--shadow-sm);
}
.main-nav.visible { transform: translateY(0); }
.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.mobile-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}
.hero-content {
    z-index: 10;
    max-width: 900px;
}
.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    animation: float 3s ease-in-out infinite;
}
.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === BUTTONS === */
.btn-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
.btn-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    background: var(--accent-light);
}

/* === METRO TILES GRID === */
.metro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.tile:hover { transform: scale(0.98); box-shadow: var(--shadow-md); }
.tile-large { grid-column: span 2; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.tile-blue { background: #3b82f6; }
.tile-purple { background: #8b5cf6; }
.tile-pink { background: #ec4899; }
.tile-emerald { background: #10b981; }
.tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    filter: brightness(0.7);
    transition: var(--transition);
}
.tile:hover img { transform: scale(1.1); filter: brightness(0.5); }
.tile-content { position: relative; z-index: 2; }
.tile h3 { font-size: 28px; margin-bottom: 12px; }
.tile p { font-size: 16px; opacity: 0.9; }

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

/* === SECTION DIVIDERS === */
.slant-divider {
    position: absolute;
    width: 100%;
    height: 100px;
    background: inherit;
    z-index: 5;
}
.slant-top { top: -50px; clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%); }
.slant-bottom { bottom: -50px; clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%); }

/* === OFFSET GRID & CONTENT DENSITY === */
.offset-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}
.offset-row:nth-child(even) { direction: rtl; }
.offset-row:nth-child(even) .content-block { direction: ltr; }
.content-block { padding: 48px; }
.content-block h2 { font-size: 42px; margin-bottom: 24px; color: var(--text); }
.content-block p { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }

/* === GLASS PANEL CARDS === */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}
.glass-panel:hover { transform: translateY(-10px); }

/* === TESTIMONIALS === */
.testimonial-row {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 60px;
}
.testimonial-row:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.testimonial-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    object-fit: cover;
    flex-shrink: 0;
}
.testimonial-content blockquote {
    font-size: 22px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--text);
    margin-bottom: 16px;
}
.testimonial-content cite {
    display: block;
    font-weight: 700;
    color: var(--accent);
    font-style: normal;
}

/* === CONFIGURATOR === */
.configurator {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-top: 40px;
}
.config-options { display: flex; flex-direction: column; gap: 32px; }
.config-group h4 { margin-bottom: 16px; font-size: 20px; }
.config-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.config-tag {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}
.config-tag.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.config-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}
.price-total {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 24px;
    display: block;
}

/* === SOCIAL FEED === */
.social-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.social-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1;
}
.social-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.social-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}
.social-card:hover .overlay { opacity: 1; }

/* === COMPARISON SECTION === */
.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.comp-side { padding: 60px; }
.comp-us { background: var(--accent); color: var(--white); }
.comp-them { background: #f1f5f9; color: var(--text); }
.comp-list { list-style: none; margin-top: 32px; }
.comp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-weight: 600;
}
.comp-us li i { color: #86efac; }
.comp-them li i { color: #ef4444; }

/* === BREADCRUMBS === */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}
.breadcrumbs a { transition: var(--transition); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { margin: 0 8px; }

/* === TIMELINE FOOTER === */
footer {
    padding: 90px 0 30px;
    background: var(--white);
    border-top: 1px solid #edf2f7;
}
.footer-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 80px;
    padding: 0 40px;
}
.footer-timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}
.timeline-event {
    position: relative;
    z-index: 2;
    background: var(--white);
    padding: 0 20px;
    text-align: center;
}
.event-dot {
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 4px #e2e8f0;
}
.event-year { font-weight: 700; color: var(--text); display: block; }
.event-text { font-size: 12px; color: var(--text-muted); }

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-col h5 { font-size: 20px; margin-bottom: 24px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-family: inherit;
}
.newsletter-form button {
    padding: 12px 24px;
    border-radius: 50px;
    background: var(--text);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}
.legal-links { display: flex; gap: 24px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .metro-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-main { grid-template-columns: repeat(2, 1fr); }
    .configurator { grid-template-columns: 1fr; }
    .config-summary { position: static; }
}

@media (max-width: 768px) {
    .info-bar { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 40px;
        box-shadow: var(--shadow-md);
        gap: 24px;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }

    .hero h1 { font-size: 3rem; }
    .metro-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .tile-large, .tile-tall { grid-column: span 1; grid-row: span 1; height: 300px; }

    .offset-row { grid-template-columns: 1fr; margin-bottom: 60px; }
    .offset-row:nth-child(even) { direction: ltr; }
    .content-block { padding: 20px 0; }

    .comparison-container { grid-template-columns: 1fr; }
    .social-feed { grid-template-columns: repeat(2, 1fr); }

    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-timeline { overflow-x: auto; padding-bottom: 20px; justify-content: flex-start; gap: 40px; }
    .timeline-event { flex-shrink: 0; }

    .testimonial-row { flex-direction: column !important; text-align: center !important; }
}

/* === UTILITIES === */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.image-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}
.image-strip img {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    scroll-snap-align: start;
}
.image-strip::-webkit-scrollbar { display: none; }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
