/* AdminJaska - Modern Landing Page Styles */
/* Optimized for performance with minimal reflows */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --glow: rgba(99, 102, 241, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-darker);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background - GPU accelerated */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease infinite;
    z-index: -1;
    will-change: transform;
}

@keyframes backgroundMove {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, 30px, 0); }
}

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

/* Glassmorphism header */
header {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
    box-shadow: 
        0 20px 60px var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    overflow: hidden;
    animation: fadeInDown 0.8s ease;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--primary), 
        var(--secondary), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: var(--text-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.tagline {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.content {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 24px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow);
    animation: fadeInUp 0.8s ease;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 30px 80px var(--shadow),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset;
}

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

h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
    letter-spacing: -0.01em;
}

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

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: rgba(51, 65, 85, 0.4);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    background: rgba(51, 65, 85, 0.6);
    box-shadow: 
        0 20px 40px var(--shadow),
        0 0 0 1px var(--glow) inset;
}

.feature:hover::before {
    width: 100%;
    opacity: 0.1;
}

.feature h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.price-card {
    background: rgba(51, 65, 85, 0.4);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.price-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(51, 65, 85, 0.7);
    border-color: var(--primary);
    box-shadow: 
        0 30px 60px var(--shadow),
        0 0 0 1px var(--glow) inset,
        0 0 40px var(--glow);
}

.price-card:hover::before {
    transform: scaleX(1);
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-card p {
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

footer {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-top: 3rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px var(--shadow);
}

.footer-links {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.contact {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.contact p {
    margin: 0.5rem 0;
}

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

/* Paragraph and list styling */
p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

ol, ul {
    color: var(--text-secondary);
    line-height: 2;
    padding-left: 1.5rem;
}

ol li, ul li {
    margin-bottom: 0.75rem;
}

ol li strong, ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Design - Mobile First Approach */

/* Tablet and below (768px) */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
        border-radius: 16px;
    }
    
    h1 {
        font-size: 2rem;
        letter-spacing: -0.01em;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .content {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 16px;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pricing {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links a {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    footer {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0.75rem;
    }
    
    header {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }
    
    h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .feature {
        padding: 1.25rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .price-card {
        padding: 1.5rem 1rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    footer {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    ol, ul {
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }
}

/* Small phones (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
    }
    
    header {
        padding: 1.25rem 0.75rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .content {
        padding: 1.25rem 0.75rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .price-card {
        padding: 1.25rem 0.75rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .content {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .footer-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Remove hover effects on touch devices */
    .content:hover,
    .feature:hover,
    .price-card:hover {
        transform: none;
    }
    
    /* Tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
}

/* Selection color */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GPU acceleration for animations */
.content,
.feature,
.price-card,
header {
    will-change: transform;
}
