/* VIVID TRADE LTD — one page */

:root {
    --bg:          #0f172a;
    --bg-deep:     #0a1120;
    --text:        #ffffff;
    --muted:       #94a3b8;
    --muted-dim:   #64748b;
    --line:        rgba(255, 255, 255, .1);
    --surface:     rgba(255, 255, 255, .05);
    --surface-hi:  rgba(255, 255, 255, .08);
    --teal:        #2dd4bf;
    --wrap:        1280px;
    --pad:         24px;
    --radius:      16px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 100%; height: 100%; }

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* ---------- фонови ефекти ---------- */

.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60rem 40rem at 50% -10%, rgba(20, 184, 166, .13), transparent 60%),
        radial-gradient(50rem 40rem at 10% 40%, rgba(59, 130, 246, .10), transparent 60%),
        radial-gradient(50rem 40rem at 90% 75%, rgba(139, 92, 246, .10), transparent 60%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .5;
}
.orb-1 { width: 26rem; height: 26rem; left: -6rem; top: 34%;  background: rgba(20, 184, 166, .18); animation: drift-a 16s ease-in-out infinite; }
.orb-2 { width: 34rem; height: 34rem; right: -8rem; bottom: 8%; background: rgba(16, 185, 129, .15); animation: drift-b 20s ease-in-out infinite; }
.orb-3 { width: 22rem; height: 22rem; left: 45%;  top: 8%;    background: rgba(56, 189, 248, .12); animation: drift-a 24s ease-in-out infinite reverse; }

@keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(50px, -30px) scale(1.2); }
}
@keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-50px, 30px) scale(1.3); }
}

main, footer { position: relative; z-index: 1; }

/* ---------- хиро ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px 0 32px;
    /* пръстенът от иконки се върти извън рамката — тук се отрязва */
    overflow: hidden;
    text-align: center;
    background: linear-gradient(to bottom, #0f172a 0%, #1a2942 50%, #0f172a 100%);
}

.hero > .wrap { width: 100%; }

/* Обвивката е широка 42rem — толкова е и в оригинала, защото flex центрирането
   я свива до текстовата колона. Пръстенът се мери спрямо нея, тоест ширината ѝ
   определя колко далеч летят иконките. */
.hero-logo {
    position: relative;
    max-width: 42rem;
    margin-inline: auto;
    transition: transform .3s;
}
.hero-logo:hover { transform: scale(1.05); }

.hero-logo img {
    position: relative;
    z-index: 1;
    width: 256px;
    margin-inline: auto;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(20, 184, 166, .3);
    animation: float 4s ease-in-out infinite;
    transition: box-shadow .3s;
}
.hero-logo:hover img { box-shadow: 0 25px 60px -10px rgba(20, 184, 166, .5); }

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

/* ---------- пръстен от иконки около логото ---------- */

.orbit {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 140%;
    margin-left: -70%;
    margin-top: -70%;
    pointer-events: none;
    animation: orbit-spin 15s linear infinite;
}

@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.orb-at { position: absolute; display: block; }

/* позиции по пръстена */
.at-w  { left: 0;    top: 50%;    transform: translateY(-50%); }
.at-e  { right: 0;   top: 50%;    transform: translateY(-50%); }
.at-n  { left: 50%;  top: 0;      transform: translateX(-50%); }
.at-s  { left: 50%;  bottom: 0;   transform: translateX(-50%); }
.at-nw { left: 15%;  top: 15%; }
.at-ne { right: 15%; top: 15%; }
.at-sw { left: 15%;  bottom: 15%; }
.at-se { right: 15%; bottom: 15%; }
.at-ww { left: 8%;   top: 35%; }
.at-ee { right: 8%;  top: 35%; }

.sz-lg { width: 20px; height: 20px; }
.sz-md { width: 16px; height: 16px; }
.sz-sm { width: 16px; height: 16px; }

.orb-ico {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--color);
    filter: drop-shadow(0 0 var(--blur) rgba(var(--glow), .65));
    animation: orb-pulse var(--dur) ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50%      { transform: scale(var(--peak)) rotate(var(--rot)); }
}

@media (min-width: 768px) {
    .hero-logo img { width: 400px; }
    .sz-lg { width: 40px; height: 40px; }
    .sz-md { width: 36px; height: 36px; }
    .sz-sm { width: 32px; height: 32px; }
}

@media (min-width: 1024px) {
    .hero-logo img { width: 500px; }
}

.hero h1 {
    margin: 40px 0 24px;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.grad {
    display: inline-block;
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shift 5s linear infinite;
}
.grad-a { background-image: linear-gradient(90deg, #ffffff, #99f6e4, #6ee7b7); }
.grad-b { background-image: linear-gradient(90deg, #2dd4bf, #34d399, #22d3ee); animation-direction: reverse; }

@keyframes shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.lede {
    max-width: 42rem;
    margin: 0 auto;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted);
}

.hero-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 8rem;
    background: linear-gradient(to top, var(--bg), transparent);
    pointer-events: none;
}

/* ---------- секции ---------- */

.section { padding: 56px 0; }
.section-stats { padding: 24px 0 56px; }

.section-head {
    max-width: 44rem;
    margin: 0 auto 40px;
    text-align: center;
}

.section-head h2 {
    margin: 0 0 16px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.02em;
}

.section-head p { margin: 0; color: var(--muted); }

.eyebrow {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal);
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- карти на направленията ---------- */

.card, .brand {
    position: relative;
    display: block;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .3s, background .3s, border-color .3s;
}

.card:hover, .brand:hover {
    transform: translateY(-4px);
    background: var(--surface-hi);
    border-color: rgba(255, 255, 255, .2);
}

.card-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--from), var(--to));
    box-shadow: 0 8px 24px -8px var(--from);
}

.card h3, .brand h3 {
    margin: 0 0 10px;
    font-size: 1.125rem;
    font-weight: 600;
}

.card p, .brand p {
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
}

.card-bar {
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--from), var(--to));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s ease;
}
.card.is-visible .card-bar { transform: scaleX(1); }
.brand .card-bar { transform: scaleX(1); opacity: 0; transition: opacity .4s; }
.brand:hover .card-bar { opacity: 1; }

/* ---------- статистики ---------- */

.stat { text-align: center; padding: 16px 8px; }

.stat-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    padding: 13px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--from), var(--to));
    box-shadow: 0 8px 24px -8px var(--from);
}

.stat-num {
    margin: 0 0 4px;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--from), var(--to));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
}

/* ---------- брандове ---------- */

.brand { display: flex; flex-direction: column; }

.brand-logo {
    display: block;
    height: 72px;
    margin-bottom: 18px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.brand p { flex: 1; margin-bottom: 16px; }

.brand-url {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    color: var(--teal);
    transition: color .3s;
}
.brand-url svg { width: 13px; height: 13px; flex: none; }
.brand:hover .brand-url { color: #5eead4; }

/* ---------- контакт ---------- */

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 26rem;
    margin-inline: auto;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #14b8a6, #10b981) 1;
    border-image-slice: 0 0 1 0;
    transition: transform .3s, background .3s;
}
.contact-card:hover { transform: translateY(-3px); background: var(--surface-hi); }

.contact-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    padding: 11px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6, #10b981);
}

.contact-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-label { font-size: .78rem; color: var(--muted-dim); }
.contact-value { font-size: 1.05rem; font-weight: 600; word-break: break-all; }

.contact-send {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--teal);
    transition: transform .3s;
}
.contact-card:hover .contact-send { transform: translate(3px, -3px); }

/* ---------- футър ---------- */

footer {
    padding: 48px 0;
    text-align: center;
    background: var(--bg-deep);
    border-top: 1px solid rgba(255, 255, 255, .05);
}
.footer-est  { margin: 0 0 8px; font-size: .875rem; color: var(--muted); }
.footer-copy { margin: 0; font-size: .875rem; color: var(--muted-dim); }

/* ---------- разкриване при скрол ---------- */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s ease-out, transform .6s ease-out;
    transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптивност ---------- */

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    :root { --pad: 20px; }
    .hero { padding-top: 48px; }
    .hero h1 { margin-top: 32px; }
    .section { padding: 40px 0; }
    .grid { gap: 14px; }

    /* направленията и броячите остават по две в ред, брандовете — едно под друго */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: 1fr; }
    .section-stats .grid-4 { grid-template-columns: repeat(2, 1fr); }

    .brand { padding: 24px; }
    .card { padding: 18px 16px; }
    .card-icon { width: 40px; height: 40px; margin-bottom: 14px; padding: 10px; }
    .card h3 { font-size: 1rem; }
    .card p { font-size: .82rem; }

    .stat { padding: 12px 4px; }
    .stat-icon { width: 44px; height: 44px; margin-bottom: 12px; padding: 11px; }
    .stat-num { font-size: clamp(1.5rem, 7vw, 1.9rem); }
    .stat-label { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
