/* 
    Intellvara Public Website Styles
    Design Philosophy: Modern, Enterprise AI, Premium, Trustworthy
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #06b6d4;
    --accent-purple: #a855f7;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-surface: rgba(30, 41, 59, 0.7);
    --bg-glass: rgba(15, 23, 42, 0.8);
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-copy: #cbd5e1;
    
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.1);
    --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-indigo: 0 10px 40px -10px rgba(99, 102, 241, 0.5);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-copy);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-white);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.section-tagline {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.badge-purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px; /* Base height for the wordmark inside the crop */
    width: 180px; /* Wide aspect ratio to fit the wordmark string */
    object-fit: cover;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
}

.stat-item span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-visual {
    position: relative;
}

.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.main-visual {
    box-shadow: var(--shadow-indigo);
    animation: float 6s ease-in-out infinite;
}

.img-responsive {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
}

.floating-badge {
    position: absolute;
    background: var(--bg-glass);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-white);
    backdrop-filter: blur(8px);
}

.badge-top {
    top: 10%;
    right: -5%;
    border-left: 4px solid var(--primary);
}

.badge-bottom {
    bottom: 10%;
    left: -5%;
    border-left: 4px solid var(--success);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Social Proof */
.social-proof {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-darker);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.6;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.client-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-white);
}

/* AI Feature Section */
.ai-feature {
    padding: 120px 0;
}

.ai-feature h2 span {
    color: var(--accent-purple);
}

.feature-list {
    margin-top: 2.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
}

.feature-list i {
    color: var(--accent-purple);
}

.ai-orb-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

.ai-orb-inner {
    width: 250px;
    height: 250px;
    border: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    position: relative;
}

.ai-orb-inner::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Modules Section */
.modules {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header span {
    color: var(--primary-light);
}

.module-card {
    transition: all 0.3s ease;
    cursor: default;
}

.module-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-hover);
    background: rgba(30, 41, 59, 0.9);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.icon-box.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.icon-box.purple { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.icon-box.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.icon-box.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.icon-box.indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.icon-box.rose { background: rgba(244, 63, 94, 0.1); color: #f43f5e; }

/* CTA Section */
.cta-section {
    padding: 120px 0;
}

.cta-box {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--border);
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-btns {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer ul li a {
    color: var(--text-muted);
}

.footer ul li a:hover {
    color: var(--text-white);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a:hover {
    color: var(--text-white);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 3rem; }
    
    .hero { padding: 120px 0 60px; text-align: center; }
    .hero h1 { font-size: 3rem; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .nav-links, .nav-cta { display: none; }
    .mobile-menu-toggle { display: block; }
    
    .ai-orb-container { width: 100%; height: 300px; }
    .ai-orb { width: 200px; height: 200px; }
    .ai-orb-inner { width: 180px; height: 180px; }
    
    .logo-grid { justify-content: center; }
}
