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

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #EFF6FF;
    --accent: #8B5CF6;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --bg-main: #FFFFFF;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Grainy Texture Overlay --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    z-index: 10000;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* --- Wave Background --- */
.waves-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40vh;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom, transparent, #F8FAFC);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    transform: translate3d(0, 0, 0);
}

.wave-1 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%232563EB" fill-opacity="0.05" d="M0,160L48,176C96,192,192,224,288,224C384,224,480,192,576,165.3C672,139,768,117,864,128C960,139,1056,181,1152,197.3C1248,213,1344,203,1392,197.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: wave 20s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    z-index: 1;
}

.wave-2 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%238B5CF6" fill-opacity="0.05" d="M0,192L48,197.3C96,203,192,213,288,208C384,203,480,181,576,186.7C672,192,768,224,864,218.7C960,213,1056,171,1152,160C1248,149,1344,171,1392,181.3L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: wave 25s cubic-bezier(0.36, 0.45, 0.63, 0.53) -5s infinite;
    z-index: 2;
    opacity: 0.7;
}

.wave-3 {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%233B82F6" fill-opacity="0.05" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,250.7C960,235,1056,181,1152,149.3C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    animation: wave 30s cubic-bezier(0.36, 0.45, 0.63, 0.53) -10s infinite;
    z-index: 3;
    opacity: 0.5;
}

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

/* --- Header --- */
.header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centered Logo */
    padding: 0 5%;
    background: transparent;
    position: relative;
    z-index: 1001;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

/* --- Hero --- */
.hero {
    padding: 80px 10% 80px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -3px;
    line-height: 1.05;
    background: linear-gradient(135deg, #0F172A 40%, #2563EB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero p {
    font-size: 21px;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 52px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

.btn {
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 25px 45px -12px rgba(37, 99, 235, 0.55);
}

/* --- Product Hub --- */
.product-hub {
    padding: 40px 10% 180px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 
        0 4px 6px -1px rgba(0,0,0,0.05),
        0 10px 15px -3px rgba(0,0,0,0.02),
        inset 0 1px 1px rgba(255,255,255,0.4);
    height: 100%;
    animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    position: relative;
}

.product-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.12);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(37, 99, 235, 0.3);
}

.card-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: linear-gradient(135deg, white 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--primary);
    box-shadow: 0 12px 24px -6px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.product-card:hover .card-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-8deg) scale(1.1);
}

.card-icon i {
    font-size: 32px;
}

.product-card h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: -0.6px;
}

.product-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 40px;
    flex-grow: 1;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 800;
}

.btn-card:after {
    content: '\e5c8'; 
    font-family: 'Material Icons Round';
    font-size: 22px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .btn-card:after {
    transform: translateX(8px);
}

/* --- Footer --- */
.footer {
    padding: 100px 10% 60px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

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

.footer-bottom {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.7;
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 48px;
    }
}
