/* CSS Reset and Variables */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Color Palette */
    --color-primary: #3b82f6; /* Premium Brand Blue */
    --color-primary-hover: #2563eb;
    --color-secondary: #6366f1; /* Indigo */
    --color-accent: #f43f5e; /* Rose Coral */
    --color-dark: #0f172a; /* Slate 900 */
    --color-dark-muted: #1e293b; /* Slate 800 */
    --color-light: #f8fafc; /* Slate 50 */
    --color-border: #e2e8f0; /* Slate 200 */
    --color-text: #334155; /* Slate 700 */
    --color-text-light: #64748b; /* Slate 500 */
    --color-white: #ffffff;
    
    /* GTM Platform Colors */
    --color-aws: #ff9900;
    --color-azure: #0078d4;
    --color-gcp: #4285f4;

    /* Gradients */
    --grad-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --grad-dark: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    --grad-card-hover: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);

    /* Shadows & Border Radii */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-white);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.text-center { text-align: center; }
.text-gradient {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--color-light);
    color: var(--color-dark);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--color-dark);
    color: var(--color-white);
}

.btn-dark:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-outline-white {
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

/* Badge/Tag */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-normal);
}

header.scrolled .nav-container {
    height: 70px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark);
    gap: 0.5rem;
}

.logo svg {
    height: 32px;
    width: 32px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

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

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Burger menu */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--color-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-white);
        box-shadow: var(--shadow-xl);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: var(--transition-normal);
        z-index: 999;
    }

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

    .nav-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 3rem;
    }

    .nav-cta .btn {
        width: 100%;
    }
}

/* Hero Section Layout */
.hero-grid-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-graphic-content {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-svg {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(99, 102, 241, 0.1));
}

/* Animations for GTM Flows */
@keyframes dash-flow {
    to {
        stroke-dashoffset: -20;
    }
}

.dash-flow-1, .dash-flow-2, .dash-flow-3 {
    stroke-dasharray: 6 6;
    animation: dash-flow 1.5s linear infinite;
}

.dash-flow-1 { animation-delay: 0s; }
.dash-flow-2 { animation-delay: 0.5s; }
.dash-flow-3 { animation-delay: 1s; }

@media (max-width: 992px) {
    .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text-content p {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

/* Logo Ticker Slider */
.logo-track {
    display: flex;
    width: max-content;
    animation: ticker 30s linear infinite;
    gap: 4rem;
}

.logo-slide {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.logo-slide span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #cbd5e1; /* Slate 300 */
    letter-spacing: -0.03em;
    user-select: none;
    transition: var(--transition-fast);
}

.logo-slide span:hover {
    color: var(--color-dark);
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Core Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--grad-card-hover);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-learn-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.feature-learn-more:hover {
    color: var(--color-primary-hover);
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* Stats Section Layout */
.stats-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.stats-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    background: var(--grad-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-title {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

@media (max-width: 992px) {
    .stats-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats-text {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .stats-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonial Section */
.testimonial-text {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-dark);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    text-align: left;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Global Footer Layout */
footer {
    background-color: var(--color-light);
    border-top: 1px solid var(--color-border);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.9fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column-brand p {
    margin-top: 1rem;
    max-width: 280px;
}

footer h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

footer ul a {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

footer ul a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

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

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }
}

