/* ============================================
   V1 - GSAP Animation Version
   ============================================ */

:root {
    --color-bg: #0a0a0f;
    --color-bg-card: rgba(18, 18, 26, 0.8);
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-accent: #6366f1;
    --color-accent-light: #818cf8;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-text: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text-primary);
    overflow-x: hidden;
}

/* Background */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-follower {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    font-size: 1.25rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    height: 82px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.nav-cta {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border-radius: 6px;
    color: white !important;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 6rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 1.5rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-line span, .title-line {
    display: inline-block;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating Shapes */
.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.3);
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.25);
    top: 60%;
    right: 15%;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: rgba(139, 92, 246, 0.2);
    bottom: 20%;
    left: 20%;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: rgba(99, 102, 241, 0.35);
    top: 30%;
    right: 25%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-secondary {
    background: var(--color-bg-card);
    color: white;
    border: 1px solid var(--color-border);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    color: var(--color-accent-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-intro {
    color: var(--color-text-secondary);
    font-size: 1.125rem;
}

/* Cards */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card, .product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.feature-card h3, .product-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p, .product-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.card-icon, .product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-icon svg, .product-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-accent-light);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.product-badge {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.product-badge.highlight {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--color-accent-light);
}

.product-tagline {
    font-size: 0.875rem;
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
    position: relative;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #22c55e;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-content > p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.footer-contact address {
    font-style: normal;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-contact address strong {
    color: var(--color-text-primary);
}

.footer-email {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--color-accent-light);
}

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

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-cta { display: none; }
    .nav-links { gap: 1rem; }
    .logo-img { height: 80px; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; }
    .approach-grid, .products-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .cta-content { padding: 2rem; }
    .footer-content { flex-direction: column; text-align: center; gap: 2rem; }
    .footer-contact { width: 100%; text-align: center; }
    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .nav-links a { display: none; }
    .logo-img { height: 80px; }
    .hero-title { font-size: 2rem; }
    .btn { padding: 0.875rem 1.5rem; font-size: 0.875rem; }
}

/* Legal Pages */
.legal-page {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-updated {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.legal-content h3 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-primary);
}

.legal-content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-content address a {
    color: var(--color-accent);
    text-decoration: none;
}

.legal-content address a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Split text animation helper */
.split-char {
    display: inline-block;
}
