/* Variables & Theming */
:root {
    --bg-base: #060913;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-blue: #3b82f6;
    
    --glass-bg: rgba(20, 25, 40, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Orbitron', var(--font-sans);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.blob {
    position: fixed;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.blob-2 {
    bottom: -10%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%; left: 40%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    opacity: 0.3;
    animation-delay: -10s;
}

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

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

.section {
    padding: 8rem 0;
    position: relative;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100;
    background: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    height: 36px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.desktop-nav a:hover {
    color: var(--accent-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-purple), #7e22ce);
    color: #fff !important;
}

.btn-accent:hover {
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    z-index: 2;
}

.badge {
    background: rgba(188, 19, 254, 0.15);
    border: 1px solid rgba(188, 19, 254, 0.3);
    color: #e9d5ff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 0 10px rgba(188, 19, 254, 0.2);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

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

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

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-box {
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.05);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

.integration-frame {
    overflow: hidden;
    position: relative;
    padding: 0;
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.frame-header {
    background: rgba(0,0,0,0.4);
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex; gap: 6px;
}
.dots span {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ff5f56;
}
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.frame-url {
    margin-left: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 4px;
}

.iframe-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.iframe-wrapper iframe {
    width: 200%;
    height: 200%;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    filter: brightness(0.9) contrast(1.1);
    pointer-events: none;
}

.iframe-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 9, 19, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.iframe-wrapper:hover .iframe-overlay {
    opacity: 1;
}

/* Pricing Section */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 243, 255, 0.1);
}

.pricing-card.popular {
    border-color: rgba(188, 19, 254, 0.4);
    background: linear-gradient(180deg, rgba(20, 25, 40, 0.6) 0%, rgba(188, 19, 254, 0.05) 100%);
}

.pricing-card.popular:hover {
    border-color: rgba(188, 19, 254, 0.6);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(188, 19, 254, 0.2);
}

.glow-effect {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 20px var(--accent-purple);
}

.card-badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--glass-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

.card-badge.premium {
    background: linear-gradient(90deg, #9333ea, #ec4899);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.card-title {
    font-size: 1.5rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    line-height: 1.2;
}

.card-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}

.card-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1;
}

.card-price.highlight .amount {
    background: linear-gradient(to right, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    min-height: 44px;
}

.card-features {
    list-style: none;
    text-align: left;
    width: 100%;
    margin-bottom: 2.5rem;
}

.card-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.card-features li strong {
    color: #fff;
    margin-right: 4px;
}

.check-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--accent-cyan);
    margin-top: 2px;
}

.check-icon.highlight {
    color: var(--accent-purple);
}

.qr-container {
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.qr-img {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.pricing-card:hover .qr-img {
    transform: scale(1.05);
}

.qr-scan-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-cyan);
    letter-spacing: 1px;
}

.qr-scan-text.highlight {
    color: var(--accent-purple);
}

/* Footer */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    background: rgba(6, 9, 19, 0.4);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 28px;
    border-radius: 6px;
}

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

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

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
    .integration-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .integration-frame {
        order: -1;
    }
}

@media (max-width: 600px) {
    .desktop-nav {
        display: none;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}
