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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #05070d;
    color: white;
    overflow-x: hidden;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 212, 255, .22), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(162, 89, 255, .28), transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(255, 47, 146, .18), transparent 35%),
        #05070d;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

/* Container */
.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(5, 7, 13, .65);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 150px;
    width: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

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

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: #c8d3e2;
    text-decoration: none;
    font-size: 14px;
    transition: color .2s;
}

.nav-links a:hover {
    color: white;
}

.lang {
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: white;
    padding: 9px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s;
}

.lang:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
}

/* Hero Section */
.hero {
    min-height: calc(100svh - 72px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 56px;
    padding: 60px 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #9eeeff;
    background: rgba(0, 212, 255, .08);
    border: 1px solid rgba(0, 212, 255, .28);
    margin-bottom: 22px;
}

h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -3px;
    margin-bottom: 22px;
}

.gradient-text {
    background: linear-gradient(135deg, #00d4ff, #a259ff, #ff2f92);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: #b7c3d4;
    font-size: 18px;
    line-height: 1.7;
    max-width: 650px;
    margin-bottom: 30px;
}

/* Buttons */
.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 16px;
    padding: 15px 22px;
    font-weight: 700;
    transition: .25s ease;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, #00d4ff, #a259ff);
    box-shadow: 0 0 28px rgba(0,212,255,.25);
}

.btn-secondary {
    color: white;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.13);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 35px rgba(162,89,255,.34);
}

/* Phone Mockup */
.phone-wrap {
    display: flex;
    justify-content: center;
}

.phone {
    width: 310px;
    min-height: 610px;
    padding: 16px;
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 40px 100px rgba(0,0,0,.55);
    animation: float 5s ease-in-out infinite;
}

.phone-screen {
    height: 100%;
    min-height: 575px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.72)),
        url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80') center/cover;
    padding: 34px 22px;
    text-align: center;
}

.avatar {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #00d4ff, #a259ff);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 28px;
    box-shadow: 0 0 35px rgba(0,212,255,.45);
}

.mock-title {
    font-size: 25px;
    font-weight: 800;
    margin-bottom: 8px;
}

.mock-text {
    color: #dbe6f5;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.mock-link {
    display: block;
    padding: 14px;
    margin: 10px 0;
    border-radius: 14px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    transition: all .2s;
}

.mock-link:hover {
    background: rgba(255,255,255,.2);
}

.mock-link.main {
    background: linear-gradient(135deg, #00d4ff, #a259ff);
}

/* Sections */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.section-subtitle {
    text-align: center;
    color: #aebbd0;
    max-width: 720px;
    margin: 0 auto 46px;
    line-height: 1.7;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

/* Cards */
.card {
    padding: 26px;
    border-radius: 24px;
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.11);
    backdrop-filter: blur(14px);
    transition: .25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,.35);
    box-shadow: 0 0 36px rgba(0,212,255,.13);
}

.icon {
    font-size: 30px;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 21px;
    margin-bottom: 10px;
}

.card p,
.card li {
    color: #b8c5d6;
    line-height: 1.6;
    font-size: 14px;
}

/* Pricing */
.price {
    font-size: 38px;
    font-weight: 800;
    margin: 18px 0 8px;
}

.price span {
    font-size: 15px;
    color: #aebbd0;
    font-weight: 400;
}

ul {
    list-style: none;
    margin: 18px 0 24px;
}

li {
    margin: 10px 0;
}

.featured {
    position: relative;
    background: linear-gradient(180deg, rgba(0,212,255,.14), rgba(162,89,255,.10));
    border-color: rgba(0,212,255,.42);
}

.featured::before {
    content: "Best value";
    position: absolute;
    top: -14px;
    right: 22px;
    padding: 7px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, #00d4ff, #a259ff);
    font-size: 12px;
    font-weight: 800;
}

/* Process Flow */
#process {
    overflow: hidden;
}

.process-flow {
    position: relative;
    max-width: 980px;
    margin: 55px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 90px;
    row-gap: 55px;
    align-items: center;
}

/* Cards */
.process-step {
    position: relative;
    width: 100%;
    min-height: 205px;
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    overflow: hidden;
    transition: .35s ease;
}

.process-step:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(0,212,255,.48);
    box-shadow: 0 0 45px rgba(0,212,255,.16);
}

/* Desktop positions by class */
.process-step.step-left {
    grid-column: 1;
}

.process-step.step-right {
    grid-column: 2;
    transform: translateY(35px);
}

.process-step.step-right:hover {
    transform: translateY(29px) scale(1.015);
}

/* Bubble */
.step-bubble {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #a259ff);
    box-shadow: 0 0 32px rgba(0,212,255,.45);
}

.step-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #9eeeff;
    background: rgba(0,212,255,.09);
    border: 1px solid rgba(0,212,255,.26);
}

.process-step h3 {
    font-size: 21px;
    margin-bottom: 8px;
}

.process-step p {
    color: #d8e3f2;
    line-height: 1.6;
    font-size: 14px;
}

.approval {
    background:
        linear-gradient(180deg, rgba(0,212,255,.16), rgba(162,89,255,.12)),
        rgba(255,255,255,.06);
    border-color: rgba(0,212,255,.46);
}

/* Desktop arrows */
.process-connector {
    position: absolute;
    width: 210px;
    height: 58px;
    pointer-events: none;
    opacity: .8;
    filter: drop-shadow(0 0 12px rgba(0,212,255,.5));
}

.process-connector svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.process-connector path {
    stroke: #00d4ff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 8 10;
    animation: dashMove 1.8s linear infinite;
}

.process-connector circle {
    fill: #00d4ff;
    animation: nodePulse 1.8s ease-in-out infinite;
}

/* Arrow 1: card 1 -> card 2 */
.process-connector:nth-of-type(2) {
    left: 415px;
    top: 20px;
    rotate: 210deg;
}

/* Arrow 2: card 2 -> card 3 */
.process-connector:nth-of-type(4) {
    left: 369px;
    top: 287px;
    transform: scaleX(-1);
    rotate: -15deg;
}

/* Arrow 3: card 3 -> card 4 */
.process-connector:nth-of-type(6) {
    left: 416px;
    top: 525px;
}

/* Mobile: keep simple vertical layout */
@media (max-width: 900px) {

    .process-flow {
        display: flex;
        flex-direction: column;
        max-width: 100%;
        margin-top: 45px;
        gap: 15px;
        padding: 0;
    }

    .process-step,
    .process-step.step-left,
    .process-step.step-right {
        width: 100%;
        transform: none;
    }

    .process-step:hover,
    .process-step.step-right:hover {
        transform: translateY(-4px);
    }

    /* 🔥 ВЕРТИКАЛНА ЛИНИЯ */
    .process-connector {
        position: relative;
        width: 2px;
        height: 45px;
        margin: 0 auto;
        background: linear-gradient(to bottom, #00d4ff, transparent);
        opacity: .9;
        transform: none !important;
        rotate: 0deg !important;
    }

    /* ❌ махаме кривите линии */
    .process-connector svg {
        display: none;
    }

    /* reset на позициите */
    .process-connector:nth-of-type(2),
    .process-connector:nth-of-type(4),
    .process-connector:nth-of-type(6) {
        left: auto;
        top: auto;
        transform: none;
        rotate: 0deg;
    }
}

@media (max-width: 480px) {
    .process-step {
        min-height: auto;
        padding: 26px 24px;
    }

    .process-connector {
        width: 2px;
        height: 35px;
    }
}

/* CTA */
.cta {
    padding: 70px 30px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(0,212,255,.18), rgba(255,47,146,.14)),
        rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(0,212,255,.18);
    filter: blur(70px);
    right: -80px;
    top: -80px;
}

.cta h2 {
    font-size: clamp(32px, 4vw, 52px);
    margin-bottom: 16px;
}

.cta p {
    color: #c9d5e5;
    margin-bottom: 28px;
}

/* Footer */
footer {
    padding: 35px 0;
    color: #7f8ca2;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
}

/* Language Toggle */
[data-lang="en"] {
    display: none;
}

body.en [data-lang="bg"] {
    display: none;
}

body.en [data-lang="en"] {
    display: initial;
}

body.en .block[data-lang="en"] {
    display: block;
}

body.en .grid[data-lang="en"],
body.en .steps[data-lang="en"] {
    display: grid;
}

.block[data-lang="en"],
.grid[data-lang="en"],
.steps[data-lang="en"] {
    display: none;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: .75s ease;
}

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

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}

@keyframes dashMove {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: 44; }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: .45;
        r: 4;
    }

    50% {
        opacity: 1;
        r: 6;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .actions {
        justify-content: center;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links a {
        display: none;
    }

    .process-flow {
        max-width: 100%;
        margin-top: 45px;
        gap: 15px;
        padding: 0;
    }

    .process-step,
    .step-left,
    .step-right {
        align-self: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .process-connector {
        width: 110px;
        height: 50px;
        transform: rotate(90deg);
        align-self: center;
        opacity: .7;
        margin: 0;
    }

    .connector-right,
    .connector-left {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .phone {
        width: 285px;
        min-height: 560px;
    }

    .phone-screen {
        min-height: 525px;
    }

    .hero {
        padding-top: 38px;
    }

    section {
        padding: 70px 0;
    }

    .process-step {
        min-height: auto;
        padding: 26px 24px;
    }

    .process-connector {
        width: 76px;
        height: 38px;
    }
}

/* Accessibility - Skip to main content */
.skip-to-main {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999;
    padding: 12px 20px;
    background: #00d4ff;
    color: #05070d;
    text-decoration: none;
    font-weight: 700;
    border-radius: 0 0 8px 8px;
}

.skip-to-main:focus {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
}

/* Logo link styling */
.logo a {
    color: inherit;
    text-decoration: none;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid #00d4ff;
    outline-offset: 3px;
}

/* Print styles for better printing */
@media print {
    .bg-glow,
    .bg-grid,
    nav,
    .badge,
    .actions,
    .phone-wrap {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    h1, h2, h3 {
        color: black;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
