@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #22d3ee;
    --secondary: #0891b2;
    --accent: #fbbf24;
    --bg: #020617;
    --surface: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(34, 211, 238, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #f59e0b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(8, 145, 178, 0.1) 100%);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Elements - Cyber-Transit Route Map */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    z-index: -2;
    overflow: hidden;
}

.bg-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.05), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(251, 191, 36, 0.03), transparent 40%);
    z-index: -1;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Route Lines & Sparks Animation */
.routes-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.route-line {
    position: absolute;
    background: rgba(34, 211, 238, 0.05);
}

.route-v { width: 1px; height: 100%; top: 0; }
.route-h { height: 1px; width: 100%; left: 0; }

.spark {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    offset-path: path('M 0 0 L 100 0'); /* Placeholder, updated via JS */
    animation: travel 10s infinite linear;
}

@keyframes travel {
    0% { offset-distance: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
}

/* Typography */
h1, h2, .lang-switch {
    font-weight: 700;
    transition: var(--transition);
}

.lang-switch span {
    opacity: 0.5;
    font-weight: 400;
}

.lang-switch:hover {
    color: var(--primary);
}

.lang-switch.active {
    color: var(--primary);
    font-weight: 800;
}

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
}

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

/* Glassmorphism */
.glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: var(--bg);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

/* Specific Nav Button Style */
.nav-content .btn-outline {
    background: rgba(255, 255, 255, 0.05); /* iOS Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.3); /* Primary Cyan border */
    border-radius: 16px;
    color: var(--text);
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-content .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    color: var(--primary);
}

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

section {
    padding: 120px 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05); /* iOS Glass panel */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 211, 238, 0.3); /* Primary Cyan border */
    border-radius: 14px;
    transition: var(--transition);
    display: block;
    white-space: nowrap;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--primary);
}

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

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing Grid */
.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.price-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.price-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.price-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.price-amount {
    font-size: 3rem;
    margin-bottom: 30px;
}

.price-amount span {
    font-size: 1rem;
    color: var(--text-muted);
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
}

.price-features li {
    margin-bottom: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-features li i {
    color: var(--primary);
}

/* Hero Section - Integrated Typography Redesign */
.hero.full-screen {
    min-height: 100vh;
    display: flex;
    align-items: flex-end; /* Align to bottom to avoid Nav Bar overlap */
    justify-content: flex-start;
    position: relative;
    padding-bottom: 80px;
    overflow: hidden;
    z-index: 10;
}

.hero-bg-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: saturate(1.1);
    animation: slow-zoom 20s infinite alternate linear;
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 40%, rgba(15, 23, 42, 0.1) 100%);
    z-index: 2;
}

.hero-container {
    width: 100%;
    z-index: 5;
}

.hero-text-integrated {
    width: 100%;
    text-align: center;
}

.hero-text-integrated h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-subline p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@keyframes slow-zoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.2); }
}

/* Feature Cards - Modern Visual Layout */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.feature-card {
    padding: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.4);
    border-radius: 24px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.feature-visual {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
}

.feature-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent);
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.feature-card-content {
    padding: 24px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--primary);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--bg);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    margin-bottom: 24px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

/* myPOS Terminal Image Stack */
.mypos-image-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-main img {
    transition: var(--transition);
}

.mypos-image-stack:hover .terminal-main {
    transform: perspective(1000px) rotateY(0deg) rotateX(5deg) scale(1.02) !important;
}

.terminal-validation {
    transition: var(--transition);
}

.mypos-image-stack:hover .terminal-validation {
    transform: perspective(1000px) rotateY(0deg) translateX(10px) !important;
}

@media (max-width: 768px) {
    .mypos-image-stack {
        height: 350px !important;
    }
    
    .terminal-validation {
        width: 120px !important;
        bottom: 40px !important;
        left: -10px !important;
    }
}

/* How It Works Section */
#how-it-works {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.step-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.step-visual {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.step-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.step-card:hover .step-visual img {
    transform: scale(1.1);
}

.step-content {
    padding: 30px;
}

.step-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

.step-content p {
    color: var(--text-muted);
}

/* Info Panel */
.info-panel {
    padding: 60px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.info-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.info-panel-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 60px;
    align-items: center;
}

.info-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--bg);
    box-shadow: 0 20px 40px rgba(34, 211, 238, 0.3);
}

.info-text h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.info-text > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.renewal-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.method {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.method i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 5px;
}

.method div strong {
    display: block;
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 8px;
}

.method div span {
    color: var(--text-muted);
    line-height: 1.4;
}

/* New Benefits Styles */
.benefits-divider {
    height: 1px;
    background: linear-gradient(to right, var(--glass-border), transparent);
    margin: 40px 0;
}

.benefits-title {
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefits-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-3px);
}

.benefit-item strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.benefit-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links { display: none; }
    
    .hero.full-screen {
        padding-top: 80px; /* Space for the fixed navbar */
        padding-bottom: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 100vh;
    }

    .hero-text-integrated {
        padding: 40px 15px;
        text-align: center;
        width: 100%;
        margin: 0 auto;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        box-shadow: none;
        position: relative;
    }

    .hero-text-integrated h1 {
        font-size: clamp(2rem, 10vw, 3rem); /* Fluid sizing to prevent overflow */
        margin-bottom: 15px;
        letter-spacing: -1.5px;
        line-height: 1.1;
        text-align: center;
        text-shadow: 0 5px 20px rgba(0,0,0,0.8);
    }

    .hero-subline p {
        font-size: 1.05rem;
        margin: 0 auto;
        opacity: 1;
        color: var(--text-muted);
        line-height: 1.4;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 260px;
        margin: 20px auto 0; /* Reduced margin to lift buttons */
    }

    .btn-group .btn-primary {
        display: inline-block;
    }

    .btn-group .btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
    }

    .hero-bg-visual img {
        filter: brightness(0.35);
        object-position: center center;
    }

    .mypos-layout {
        grid-template-columns: 1fr !important;
        padding: 40px !important;
        gap: 40px !important;
        text-align: center;
    }

    .mypos-benefits {
        text-align: left;
    }

    .mypos-image-stack {
        max-width: 100%;
        margin: 0 auto;
        gap: 30px !important;
    }

    .info-panel {
        padding: 40px;
    }

    .info-panel-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .info-icon {
        margin: 0 auto;
    }

    .renewal-methods {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .benefits-title::after {
        display: none;
    }
    
    .benefits-title {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { gap: 40px; flex-wrap: wrap; }
    
    .mypos-text h2 {
        font-size: 2rem !important;
    }
    
    .info-text h3 {
        font-size: 1.8rem;
    }
    
    #how-it-works {
        padding: 80px 0;
    }
}

@media (max-width: 600px) {
    .hero-text-integrated {
        width: 100%;
        padding: 30px 10px;
        background: transparent;
        backdrop-filter: none;
    }

    .hero-text-integrated h1 {
        font-size: 2.3rem; /* Further reduced to fit 'Трансформирайте' on narrow screens */
        line-height: 1.1;
        letter-spacing: -1.5px;
    }

    .hero-subline p {
        font-size: 1.1rem;
    }
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 12px;
    color: white;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

select.form-input option {
    background: #0f172a;
    color: white;
}

@media (max-width: 768px) {
    #contact .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-input-row {
        grid-template-columns: 1fr !important;
    }
}
