/* ========================================
   DANI-SYS VETRINA — Design System
   Premium Dark Mode + Glassmorphism
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 30, 0.6);
    --bg-card-hover: rgba(25, 25, 40, 0.8);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #f0f0f5;
    --text-secondary: #8b8b9e;
    --text-muted: #5a5a6e;
    --accent-blue: #6366f1;
    --accent-blue-glow: rgba(99, 102, 241, 0.2);
    --accent-green: #10b981;
    --accent-amber: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    --gradient-text: linear-gradient(135deg, #6366f1, #a78bfa, #6366f1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Animated Background */
.bg-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0; pointer-events: none;
}
.bg-glow {
    position: fixed; border-radius: 50%; filter: blur(120px);
    z-index: 0; pointer-events: none; opacity: 0.4;
}
.bg-glow-1 { width: 600px; height: 600px; background: rgba(99, 102, 241, 0.08); top: -200px; right: -100px; animation: float 20s ease-in-out infinite; }
.bg-glow-2 { width: 500px; height: 500px; background: rgba(16, 185, 129, 0.06); bottom: -150px; left: -100px; animation: float 25s ease-in-out infinite reverse; }
.bg-glow-3 { width: 400px; height: 400px; background: rgba(245, 158, 11, 0.05); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: float 30s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(40px, 30px) scale(1.02); }
}

/* Animations */
.animate-fade-in {
    opacity: 0; transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent; transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border-color);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-icon {
    background: var(--gradient-primary); padding: 0.5rem; border-radius: var(--radius-sm);
    color: white; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.brand-text { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-accent { color: var(--accent-blue); }
.nav-links { display: flex; gap: 2rem; }
.nav-link {
    color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
    transition: var(--transition); position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent-blue);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* Mobile Nav Toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.nav-mobile {
    display: none; flex-direction: column; gap: 1rem; padding: 1rem 2rem 1.5rem;
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
}
.nav-mobile.active { display: flex; }

/* Hero */
.hero {
    position: relative; z-index: 1; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 8rem 2rem 4rem; text-align: center;
}
.hero-content { max-width: 800px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1.25rem; border-radius: 100px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-blue); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 2rem; letter-spacing: 0.02em;
}
.badge-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em;
}
.text-gradient {
    background: var(--gradient-text); background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

.hero-subtitle {
    font-size: 1.15rem; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 2rem;
    padding: 1.5rem 2rem; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; border: none; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-primary {
    background: var(--gradient-primary); color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4); }
.btn-outline {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-hover);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2); }
.btn-card {
    width: 100%; justify-content: center; margin-top: 1.5rem;
    padding: 0.85rem 1.5rem; border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03); color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-card:hover { background: var(--accent-glow); border-color: var(--btn-accent, var(--accent-blue)); color: var(--btn-accent, var(--accent-blue)); transform: translateY(-2px); }

/* Sections */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block; padding: 0.4rem 1rem; border-radius: 100px;
    background: var(--accent-blue-glow); color: var(--accent-blue);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* Products */
.products { position: relative; z-index: 1; padding: 6rem 0; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card {
    position: relative; padding: 2rem; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    backdrop-filter: blur(10px); transition: var(--transition); overflow: hidden;
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card:hover::before { opacity: 1; }
.product-card.featured { border-color: rgba(99, 102, 241, 0.2); box-shadow: var(--shadow-glow); }
.featured-ribbon {
    position: absolute; top: 16px; right: -32px; padding: 0.25rem 2.5rem;
    background: var(--gradient-primary); color: white; font-size: 0.75rem;
    font-weight: 700; transform: rotate(45deg); letter-spacing: 0.05em;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.card-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.card-badge { padding: 0.3rem 0.75rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.card-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-category { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.card-features { margin-bottom: 0.5rem; }
.card-features li {
    padding: 0.4rem 0; color: var(--text-secondary); font-size: 0.85rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.card-features li::before { content: '→'; color: var(--accent); font-weight: 700; }

/* About */
.about { position: relative; z-index: 1; padding: 6rem 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; }
.about-text { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 1.5rem; }
.about-text strong { color: var(--text-primary); }
.about-values { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2rem; }
.value-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-secondary); font-size: 0.95rem; }
.info-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 2rem; backdrop-filter: blur(10px);
}
.info-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-primary); }
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; border-bottom: 1px solid var(--border-color);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 0.85rem; }
.info-value { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }

/* Contact */
.contact { position: relative; z-index: 1; padding: 6rem 0; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.contact-card {
    padding: 2rem; border-radius: var(--radius-lg); text-align: center;
    background: var(--bg-card); border: 1px solid var(--border-color);
    transition: var(--transition); cursor: pointer;
}
.contact-card:hover { border-color: var(--border-hover); transform: translateY(-4px); background: var(--bg-card-hover); }
.contact-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    background: var(--accent-blue-glow); color: var(--accent-blue);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.contact-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Footer */
.footer {
    position: relative; z-index: 1; padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color); background: var(--bg-secondary);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-text { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-links h5 { font-weight: 700; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-links a { display: block; color: var(--text-muted); font-size: 0.85rem; padding: 0.3rem 0; transition: var(--transition); }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { padding-top: 2rem; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* Responsive */
@media (max-width: 968px) {
    .products-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .stat-divider { width: 40px; height: 1px; }
}
@media (max-width: 480px) {
    .hero { padding: 6rem 1rem 3rem; }
    .section-container { padding: 0 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-lg { width: 100%; justify-content: center; }
}
