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

:root {
    /* Knoq Brand Colors */
    --primary: #F4D03F;       /* Vibrant Knoq Yellow */
    --primary-dark: #D4AC0D;
    --primary-light: rgba(244, 208, 63, 0.15);
    
    --bg-base: #F8FAFC;
    --bg-dark: #0F172A;       /* Slate 900 */
    --bg-dark-glass: rgba(15, 23, 42, 0.6);
    
    --text-heading: #0F172A;  
    --text-body: #475569;     
    --text-muted: #94A3B8;    
    
    /* Liquid Glassmorphism Tokens */
    --glass-bg-light: rgba(255, 255, 255, 0.65);
    --glass-bg-solid: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-blur: blur(20px);
    
    /* Dynamic Shadows */
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
    --shadow-hover: 0 20px 40px 0 rgba(31, 38, 135, 0.12);
    --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Structure */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 9999px;
    
    --container: 1280px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 100px; }
body {
    font-family: var(--font-body); color: var(--text-body);
    background-color: var(--bg-base); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative; overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading); color: var(--text-heading);
    font-weight: 700; line-height: 1.15; letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

h1 { font-size: 4rem; letter-spacing: -0.04em; }
h2 { font-size: 2.8rem; letter-spacing: -0.03em; }
h3 { font-size: 1.6rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Utilities */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
.section { padding: 8rem 0; position: relative; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-dark); }
.bg-dark { background-color: var(--bg-dark); color: #fff; }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark p { color: var(--text-muted); }

/* Grid System */
.grid { display: grid; gap: 2.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Liquid Animated Background Blobs */
.liquid-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; overflow: hidden; pointer-events: none;
    background: var(--bg-base);
}
.blob {
    position: absolute; filter: blur(80px); opacity: 0.6;
    animation: floatBlob 20s infinite alternate ease-in-out;
}
.blob-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}
.blob-2 {
    bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(15,23,42,0.15) 0%, transparent 70%);
    animation-delay: -5s; animation-duration: 25s;
}
.blob-3 {
    top: 40%; left: 60%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(244,208,63,0.4) 0%, transparent 70%);
    animation-delay: -10s; animation-direction: alternate-reverse;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Module Cards */
.module-card {
    padding: 1.5rem; border-radius: var(--radius-md); transition: var(--transition);
    background: #ffffff; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.module-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); border-color: transparent; }
.module-icon { font-size: 1.8rem; margin-bottom: 1rem; display: inline-block; padding: 0.75rem; background: var(--bg-base); border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.module-card h4 { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text-heading); font-family: var(--font-body); font-weight: 600; }
.module-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.5; }

/* Glassmorphism Components */
.glass-panel {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.glass-panel-dark {
    background: var(--bg-dark-glass);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-glass);
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.25rem; font-family: var(--font-heading); font-weight: 600;
    font-size: 1.1rem; border-radius: var(--radius-pill); cursor: pointer;
    transition: var(--transition); border: 2px solid transparent; gap: 0.5rem;
    position: relative; overflow: hidden;
}
.btn-primary {
    background-color: var(--primary); color: #0F172A !important;
    box-shadow: 0 8px 24px rgba(244, 208, 63, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px); box-shadow: 0 12px 32px rgba(244, 208, 63, 0.6);
}
.btn-outline {
    background-color: var(--glass-bg-light); backdrop-filter: blur(10px);
    border-color: var(--text-heading); color: var(--text-heading);
}
.btn-outline:hover { background-color: var(--text-heading); color: #fff; }
.btn-light { background-color: rgba(255,255,255,0.1); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.2); }
.btn-light:hover { background-color: #fff; color: var(--bg-dark); }

/* App Store Buttons */
.btn-store {
    display: inline-flex; align-items: center; gap: 1rem;
    background-color: #000; color: #fff; padding: 0.75rem 1.75rem;
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}
.btn-store:hover {
    transform: translateY(-4px); background-color: #111;
    border-color: rgba(255,255,255,0.4); box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Navigation */
.navbar {
    position: fixed; top: 0; left: 0; transform: none;
    width: 100%; max-width: none; z-index: 1000;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: none; border-bottom: 1px solid var(--glass-border); padding: 1rem 0;
    border-radius: 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0; }
.logo { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--text-heading); letter-spacing: -1px; display: flex; align-items: center; gap: 10px;}
.logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }
.nav-links a { font-weight: 600; font-size: 1rem; color: var(--text-body); }
.nav-links a:hover { color: var(--text-heading); }
.nav-cta { padding: 0.75rem 1.75rem; font-size: 1rem; box-shadow: none; }

/* Badges */
.badge {
    display: inline-block; padding: 0.5rem 1.25rem; border-radius: var(--radius-pill);
    background-color: rgba(255, 255, 255, 0.8); color: var(--primary-dark);
    backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
    font-weight: 700; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase;
    margin-bottom: 1.5rem; box-shadow: var(--shadow-glass);
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem 0; text-align: center;
}
.hero h1 { max-width: 950px; margin: 0 auto 1.5rem auto; line-height: 1.1; }
.hero p { max-width: 700px; margin: 0 auto 3rem auto; font-size: 1.35rem; color: var(--text-body); }
.hero-actions { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 5rem; }
.hero-image-wrapper {
    max-width: 1050px; margin: 0 auto;
    border-radius: var(--radius-lg); padding: 1rem;
    background: var(--glass-bg-light); backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow-float);
    transform: perspective(1000px) rotateX(2deg); transition: transform 0.5s;
}
.hero-image-wrapper:hover { transform: perspective(1000px) rotateX(0deg); }
.hero-image-wrapper img { width: 100%; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }

/* Cards (Glassmorphism) */
.card {
    padding: 3rem; transition: var(--transition);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(255,255,255,0.8); }
.card-icon {
    width: 64px; height: 64px; border-radius: var(--radius-md); 
    background: linear-gradient(135deg, var(--glass-bg-solid), rgba(255,255,255,0.2));
    border: 1px solid var(--glass-border); box-shadow: var(--shadow-glass);
    display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 2rem;
}

/* Feature Table */
.pricing-table { overflow: hidden; position: relative; }
.pricing-header { padding: 3rem; text-align: center; border-bottom: 1px solid var(--glass-border); }
.price { font-size: 4.5rem; font-weight: 800; color: var(--text-heading); font-family: var(--font-heading); margin: 1rem 0; letter-spacing: -0.05em; }
.price span { font-size: 1.25rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.pricing-features { padding: 3rem; }
.pricing-features li { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; color: var(--text-body); font-weight: 500; }
.pricing-features li::before { content: '✓'; color: var(--primary-dark); font-weight: bold; background: #fff; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; box-shadow: var(--shadow-glass); }

/* Liquid App Mockup & Abstract Images */
.mockup-container {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-float); border: 4px solid var(--glass-bg-solid);
}
.mockup-container img { width: 100%; object-fit: cover; aspect-ratio: 4/5; }

/* Trust Banner */
.trust-banner { margin: 2rem 0 6rem 0; }
.trust-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; padding: 2.5rem; }
.trust-item { display: flex; align-items: center; gap: 1rem; font-family: var(--font-heading); font-weight: 600; color: var(--text-heading); font-size: 1.2rem; }

/* Simple List (For Compliance Pages) */
.content-page { padding: 12rem 0 6rem 0; max-width: 800px; margin: 0 auto; position: relative; z-index: 10; }
.content-page h2 { margin-top: 3rem; }
.content-page h3 { margin-top: 2rem; font-size: 1.35rem; }
.content-page ul { margin-left: 1.5rem; margin-bottom: 1.5rem; list-style-type: disc; }
.content-page li { margin-bottom: 0.75rem; font-size: 1.1rem; }

/* Forms */
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: #000; }
.form-control { width: 100%; padding: 1rem 1.5rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.1); font-size: 1rem; font-family: var(--font-body); outline: none; transition: var(--transition); background: rgba(255,255,255,0.9); }
.form-control:focus { border-color: var(--primary-dark); box-shadow: 0 0 0 4px rgba(244, 208, 63, 0.3); }

/* Pre-footer CTA */
.cta-glass-box {
    background: radial-gradient(circle at top right, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg); padding: 5rem; text-align: center; color: #000; margin-bottom: 6rem; box-shadow: 0 20px 40px rgba(244, 208, 63, 0.3);
    position: relative; overflow: hidden;
}
.cta-glass-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}

/* Footer Focus */
.footer { background: var(--bg-dark); color: var(--text-muted); padding: 6rem 0 3rem 0; position: relative; z-index: 10; margin-top: 4rem; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { color: #fff; margin-bottom: 1.75rem; font-size: 1.15rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.footer-legal-links { display: flex; gap: 2rem; }

/* Responsive */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .navbar { width: 95%; top: 1rem; padding: 1rem; }
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.2rem; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero-actions { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
}
