/* === ULTRA MODERN DESIGN SYSTEM === */

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

:root {
    /* Color Palette */
    --primary-gradient: linear-gradient(135deg, #00f5ff 0%, #fc00ff 50%, #fffc00 100%);
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-accent: #00f5ff;
    --surface-dark: rgba(255, 255, 255, 0.05);
    --surface-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 245, 255, 0.3);
    
    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-neon: 0 0 30px rgba(0, 245, 255, 0.3);
    --shadow-glow: 0 0 60px rgba(252, 0, 255, 0.2);
    
    /* Animations */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Body & Background */
body {
    font-family: var(--font-family);
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 255, 198, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-darker) 0%, #0f0f0f 100%);
    z-index: -3;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

/* Floating Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.7;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 15s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.particle:nth-child(5) { left: 60%; animation-delay: 8s; animation-duration: 14s; }
.particle:nth-child(6) { left: 70%; animation-delay: 10s; animation-duration: 16s; }
.particle:nth-child(7) { left: 80%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(8) { left: 90%; animation-delay: 3s; animation-duration: 17s; }

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header {
    padding: 2rem 2rem 0;
    position: relative;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-wrapper {
    position: relative;
}

.rega-logo {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: var(--transition-smooth);
    animation: logoGlow 4s ease-in-out infinite;
}

.rega-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.5));
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3)); }
    50% { filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)); }
}

.rega-logo path {
    fill: #ffffff !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
}

/* Title Section */
.title-section {
    margin-bottom: 3rem;
}

.title-line {
    margin-bottom: 1rem;
}

.main-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.title-word {
    display: inline-block;
    margin-right: 0.5em;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleReveal 1s ease-out forwards;
    opacity: 0;
    transform: translateY(100px);
    position: relative;
}

.title-word.highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleHighlight 1.5s ease-out forwards;
}

.title-word::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
    filter: blur(20px);
    opacity: 0.5;
}

@keyframes titleReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleHighlight {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    50% {
        transform: translateY(0) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.subtitle-line {
    width: 100px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
    opacity: 0;
    animation: lineExpand 1s ease-out 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Description Section */
.description-section {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
}

.highlight-text {
    color: var(--text-accent);
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.4s forwards;
}

.feature-card {
    background: var(--surface-dark);
    border: 1px solid var(--surface-light);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary-gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--surface-light);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 16px;
    color: var(--text-accent);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Action Section */
.action-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.6s forwards;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    position: relative;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    border-radius: 50px;
    z-index: -1;
    margin: -2px;
    animation: borderRotate 4s linear infinite;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: var(--bg-darker);
    border-radius: 50px;
    z-index: -1;
}

@keyframes borderRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.cta-button:hover::before {
    animation: borderRotate 1.5s linear infinite;
}

.button-text {
    position: relative;
    z-index: 2;
}

.button-icon {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

/* Footer */
.footer {
    padding: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.8s forwards;
}

.social-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 1px solid var(--surface-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-neon);
    color: var(--bg-dark);
}

.social-link svg {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
}

/* Loading Animation */
body.loaded .title-word:nth-child(1) { animation-delay: 0.1s; }
body.loaded .title-word:nth-child(2) { animation-delay: 0.3s; }
body.loaded .title-word:nth-child(3) { animation-delay: 0.5s; }
body.loaded .title-word:nth-child(4) { animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem 0;
    }
    
    .hero-section {
        padding: 1rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .rega-logo {
        width: 140px;
        height: auto;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .brand-tagline {
        font-size: 0.75rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .social-links {
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 0.5rem;
    }
    
    .rega-logo {
        width: 120px;
    }
    
    .main-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    
    .description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

/* High-end hover effects */
@media (hover: hover) {
    .feature-card.hovered {
        transform: translateY(-15px) scale(1.03);
    }
}

/* Dark mode optimizations */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #000000;
        --bg-darker: #000000;
    }
} 