/* 
  Aivapad Landing Page Styles
  Theme: Modern Dark Mode with Dollar Green/Emerald Accents
  Design: Glassmorphism, Micro-animations, Premium Typography
*/

:root {
    /* Colors */
    --bg-dark: #0a0c10;
    --bg-card: rgba(20, 24, 32, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    /* Accents (Dollar Green / Emerald) */
    --primary: #10b981;
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.4);
    
    --accent: #3b82f6;
    
    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary-glow);
}

.orb-2 {
    top: 40%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.2);
}

.orb-3 {
    bottom: -5%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

h1 span, h2 span {
    color: var(--primary);
    background: linear-gradient(135deg, #34d399, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

p {
    color: var(--text-muted);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

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

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

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

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    color: var(--text-main);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-accent {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

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

.nav-actions {
    display: flex;
    gap: 16px;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    padding: 24px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Hero Section */
.hero {
    padding: 160px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Glass Mockup */
.glass-mockup {
    background: rgba(25, 30, 41, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
}

.glass-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    display: flex;
    height: 350px;
}

.abstract-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-glass);
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.sidebar-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: var(--primary);
}

.abstract-content {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.kpi-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }

.text-green { background: var(--primary); }

.abstract-chart {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    justify-content: space-between;
}

.chart-bar {
    width: 12%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.chart-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chart-bar.highlight {
    background: var(--primary);
}

.floating-element {
    position: absolute;
    background: rgba(20, 24, 32, 0.9);
    border: 1px solid var(--border-glass);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.float-1 {
    bottom: -20px;
    left: -30px;
}

.float-2 {
    top: 50px;
    right: -40px;
    animation-delay: 2s;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.15rem;
}

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

.center-text h2 {
    font-size: 2.5rem;
    margin-bottom: 48px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 40px 32px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Showcase Section (AI) */
.showcase {
    position: relative;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-text h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.showcase-text p {
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--primary);
    font-size: 1.5rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 40px;
    position: relative;
}

.ai-card {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ai-avatar {
    align-self: center;
    position: relative;
}

.ai-avatar img {
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 3px solid var(--primary);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite ease-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
}

.received {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
}

.sent {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
}

/* Portals Grid */
.portals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.portal-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 32px 24px;
    border-radius: 16px;
    transition: var(--transition);
}

.portal-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.portal-item i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
}

.portal-item h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.portal-item p {
    font-size: 0.9rem;
}

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

.glass-container {
    background: linear-gradient(135deg, rgba(20, 24, 32, 0.8), rgba(16, 185, 129, 0.1));
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.glass-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjgiPgo8cmVjdCB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
    z-index: 0;
}

.glass-container h2, .glass-container p, .glass-container .cta-buttons {
    position: relative;
    z-index: 1;
}

.glass-container h2 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.glass-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 80px 0 0;
    background: #050608;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
}

.copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-content { grid-template-columns: 1fr; gap: 60px; text-align: center; }
    .feature-list { align-items: center; }
    .portals-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .menu-toggle { display: block; }
    
    .hero { padding-top: 120px; text-align: center; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-subtitle { margin: 0 auto 40px; }
    .hero-cta { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    
    .section-header h2 { font-size: 2.2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .portals-grid { grid-template-columns: 1fr; }
    .glass-container h2 { font-size: 2.2rem; }
    .cta-buttons { flex-direction: column; }
    .footer-container { grid-template-columns: 1fr; }
    .copyright { flex-direction: column; gap: 16px; text-align: center; }
}
