:root {
    --bg: #0b0b0c;
    --muted: #9aa0a6;
    --accent: #7a1a84;
    --accent-2: #d7ff00;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.03);
    --card: rgba(255, 255, 255, 0.02);
    --maxw: 1200px;
    --radius: 12px;
    --gap: 20px;
}

/* Reset / base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
    background: var(--bg);
    color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: transparent
}

/* Page layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 36px;
    align-items: start;
}

/* Panel */
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero-title {
    margin: 0 0 14px 0;
    font-weight: 900;
    font-size: clamp(28px, 6vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--white);
}

/* Language toggle (top-right) */
.lang-toggle {
    position: fixed;
    right: 18px;
    top: 18px;
    display: flex;
    gap: 8px;
    z-index: 30;
}

.lang-toggle button {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--white);
    font-weight: 700;
    transition: all .12s;
}

.lang-toggle button[aria-pressed="true"] {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #0b0b0b;
    box-shadow: 0 8px 30px rgba(122, 26, 132, 0.14);
}

/* Back to site */
.back-site-wrap {
    position: fixed;
    left: 18px;
    top: 18px;
    z-index: 30;
}

.back-site {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--white);
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform .12s, background .12s;
}

.back-site:hover {
    transform: translateY(-3px);
    background: linear-gradient(90deg, rgba(122, 26, 132, 0.08), rgba(215, 255, 0, 0.03));
}

/* Tabs */
.tabs {
    display: flex;
    gap: 14px;
    margin: 16px 0 20px 0;
    align-items: center;
    flex-wrap: wrap;
}

.tab,
.tab.link {
    font-weight: 800;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: all .14s;
    text-transform: none;
    letter-spacing: 0.02em;
}

.tab:focus,
.tab.link:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(122, 26, 132, 0.08)
}

.tab.active {
    color: var(--white);
    background: linear-gradient(90deg, rgba(122, 26, 132, 0.12), rgba(111, 17, 112, 0.04));
    border-color: rgba(122, 26, 132, 0.10);
    transform: translateY(-4px);
}

.tab.link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* service-nav (small label + arrow) */
.service-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.service-nav .label {
    font-weight: 900;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mini-arrow {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--card);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    transform: rotate(0deg);
    transition: transform .18s ease, background .12s, color .12s;
    cursor: pointer;
}

.mini-arrow.open {
    transform: rotate(90deg);
    background: linear-gradient(90deg, var(--accent), rgba(122, 26, 132, 0.06));
    color: #fff;
}

/* Content */
.content {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    line-height: 1.6;
}

/* hero-visual decorative area */
.hero-visual {
    margin-top: 18px;
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}

.visual-graphic {
    position: relative;
    width: 220px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    filter: blur(10px);
}

.blob.b1 {
    width: 140px;
    height: 140px;
    left: -20px;
    top: -30px;
    background: linear-gradient(90deg, var(--accent), #6dd3ff);
    animation: drift 10s linear infinite;
}

.blob.b2 {
    width: 80px;
    height: 80px;
    right: -10px;
    bottom: -20px;
    background: linear-gradient(90deg, #ff7aa0, var(--accent));
    animation: drift 12s linear infinite reverse;
}

@keyframes drift {
    0% {
        transform: translateX(0) translateY(0)
    }

    50% {
        transform: translateX(10px) translateY(6px)
    }

    100% {
        transform: translateX(0) translateY(0)
    }
}

.visual-state {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex: 1;
    text-align: right;
}

.status-title {
    font-weight: 900;
    font-size: 18px;
    color: var(--accent-2);
}

.status-desc {
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
}

/* Right side */
.side {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.processing {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--muted);
    font-weight: 800;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.dots {
    display: inline-block;
    width: 36px;
    text-align: left;
}

.dots span {
    display: inline-block;
    animation: dot .9s infinite;
    opacity: 0.2;
}

.dots span:nth-child(1) {
    animation-delay: 0s
}

.dots span:nth-child(2) {
    animation-delay: .12s
}

.dots span:nth-child(3) {
    animation-delay: .24s
}

@keyframes dot {
    0% {
        opacity: 0.2;
        transform: translateY(0)
    }

    50% {
        opacity: 1;
        transform: translateY(-6px)
    }

    100% {
        opacity: 0.2;
        transform: translateY(0)
    }
}

/* Responsive */
@media (max-width:980px) {
    .container {
        grid-template-columns: 1fr;
        padding: 0
    }

    .panel {
        padding: 20px
    }

    .side {
        order: 2
    }

    .lang-toggle {
        position: fixed;
        top: 12px;
        right: 12px;
    }

    .back-site-wrap {
        left: 12px;
        top: 12px;
    }
}

@media (max-width:480px) {
    .hero-title {
        font-size: 20px
    }

    .tabs {
        gap: 10px
    }
}